But when I place this layout on a tab panel and click on the button to launch the method it will only show one record, no matter which row i click on.
For example, if i first click on the first row (“indy”) below, the correct record will show (“indy”) in showFormInDialog. However, when i go to click on the 2nd row “star wars”, the showFormInDialog will launch and still show “indy”.
Icon____ID_____Commment
_x______1_______indy
_x______2_______star wars
_x______3_______the empire strikes back
any ideas?
David
Details:
OS: Windows XP SP2
Servoy: Version 3.5.6-build 519
Main Layout is based on table: core_rso_emp
TabPanel Layout is based on table: core_rso_comment
Relationship based on the emplid column in main table (core_rso_emp)
core_rso_emp to core_rso_comment
emplid ---------< emplid
Which works. But when I place this form in a tab it doesn’t work. The tab shows the correct records that are related, but when i launch the method it doesn’t show the correct record in the showFormInDialog
The relationship to actually place the tab on the other form is correct, since the correct related records are displayed.
Here is the screen shot of the form, from which the methdo works just fine:
Here is the screen shot in which the same form is used in a tab panel, but notice which row is highlighted in the background and which record is actually shown in the dialog pop-up:
One way to solve this is with an onAction method that loads that line item record’s primary key into a global. Then finds that record using the global, then shows the FID.
This is pretty bombproof but there may be a more elegant solution.