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]

<cell width="20">
        <button name="create" tooltip="Create New" icon="/icons/mainframe/create.png">
            <buttonPress action="Create"/>

How can I do this? What's the package name, which manages buttons, text-fiels, etc ...

Kind regards, Tomas

asked 03 Jul '12, 23:42

Tomeo's gravatar image

accept rate: 3%

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";

api_component.setVisible('TestGrid.create', 'N')

Kind Regards, Ibrahim


answered 04 Jul '12, 00:17

Ibrahim%20Sandalli's gravatar image

Ibrahim Sand... ♦♦
accept rate: 25%

edited 04 Jul '12, 00:18

Hi Ibrahim,

thanks for reply. Yes, this is the package I was looking for.

Thank you! Tomas


answered 04 Jul '12, 02:27

Tomeo's gravatar image

accept rate: 3%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 03 Jul '12, 23:42

Seen: 2,515 times

Last updated: 04 Jul '12, 02:27

© Copyright Gerger 2017