Hi folks, is it possible to SHOW/HIDE button (set attribute to VISIBLE) created from IDE at runtime before displaying a panel/tabpanel? For example, I have defined a grid toolbar, with "Insert" (Create New record) button on "TestGrid panel". I would like to display it only if a parameter CanInsert = 1, otherwise do not show this button. [code]
How can I do this? What's the package name, which manages buttons, text-fiels, etc ... Kind regards, Tomas |
Hi Tomas, The package which manages Formspider components(like buttons, textFields, etc..) is api_component, you can set or get component's attributes through this package. To set button's visible attribute at runtime, you can use api_component.setVisible API. For example, to hide a button named "create" existing on a panel named "TestGrid";
Kind Regards, Ibrahim |