Displaying data in a separate frame.
I'm working on a webapp which has a table component, which first column displays company names, as hyperlinks. When the user clicks the company name I would like the appliacation to diplay the company's adress information in a separate view.
I found some information on coding this functionality in JavaScript but I would like to put my code in the hyperlink action event handler. The information in the entries already posted on this subject, did not help me out.
Could any of you help me solving this problem?
Kind regards,
Annet.
[565 byte] By [
JagX] at [2007-11-26 11:26:57]

# 1
Hi!
You can look how it has done in sample application. When you click Create New Project, choose "Samples" in Categories list and "Two Page CRUD with Table" in Projects list of New Project wizard. In this application, when you click Update for some row, detailed information about this row are reflected in another page.
Thanks,
Roman.
Grif at 2007-7-7 3:42:32 >

# 2
Thanks for your reply, I got this bit working. Now I would like the window in which the detailed information is diplayed to be smaller in size than the master window. e.g width 432 and height 240. Any one any idea of how to accomplish this.
I did not place the components on my page in a layout, they are in the default layout that comes with the page. The one shown in the property view when you click in the background of your jsp.
Kind regards,
Annet
JagX at 2007-7-7 3:42:32 >

# 3
I'm still struggling with the two page master-detail thing I would like to build. My master jsp contains a table with two collumns, one of which contains a companyname hyperlink. When the user clicks the hyperlink, the event handler gets the companyId and stores it insession scope and opens a jsp which contains static textfields to diplay detailed information on the company. To diplay this detail page in a separate window I added the following code between the <ui:head> and its closing tag.
<script type=攖ext/javascript?gt;
window.onload = resizeWindow()
function resizeWindow() {
window.resize(576, 432)
window.moveTo((.5 * screen.width) ?288), (.5 * screen.height) ?216)
}
This bit of code does the trick, however, when I close the newly opened window, and click a navigation tab, lets say to navigate to the home page, the master page closes, and only the detail page is diplayed. Anyone any idea what causes this behaviour?
Kind regards,
Annet.
JagX at 2007-7-7 3:42:33 >
