Hi all,
I am a newbie to Servoy. I am quite amazed with its tremendous functionalities.. All those Servoy guys and gals keep it up..
I have a problem. I have a table called employees. I just want to know how I can show all the employees in the table in a portal so that when I click on a row I can show the employee number in an another text_field.
Thanks in advance.
regards..
Babitha
This link and subsequent threat should give you a couple options:
http://forum.servoy.com/viewtopic.php?t … ght=portal
Babitha:
I realized that this link might not explain things as clearly as you would like.
First of all, if the portal is on the same form as the information that its referring to, then make a self-join/self-referring relationship based on a unique key, say, xxx_line_items_id.
Place a portal on the form, add the dataproviders you’d like.
Place a button on the form on the far left side of the portal.
Make sure, under the Method Editor, you NAME the portal elements!
Attached the following onAction method to the button:
elements.portal_fax_cover _line_item_ID.selectAll()
globals.gFaxCoverID = elements.portal_fax_cover_line_item_ID.getSelectedText();
controller.find()
fax_cover_line_itemsid = globals.gFaxCoverID
controller.search()
I use the name at the beginning of portal element names to distinguish them from similar non-portal elements on the form.
I use a global to capture the line_item_ID because in my FMP days, those would never get clobbered when entering find mode.
It’s simple and fast. I hope it works!
Regards,