If you like to hide and display certain elements depending on values of data fields you can find a simple solution in this workshop. In our case a button within a free-layout-table.

In our example we will simplify a master data application.

Our application contains fields to enter the last name, first name, class, status and a symbol that displays if images are available. Last name, first name and status are string values, class is an integer and the boolean value displays if images are available.



As soon as you entered some data on the input page you can view the result in an overview.

Here you can already see that the 3 buttons are depending on certain data fields.

  • Only if images are available the fitting button “See images” will be displayed
  • Only if the status is “direct customer” the user can directly navigate to the articles.
  • If the class is “2” it’s possible to get some further details


But what is happing in the background?

On the overview page a free-layout-table exists which contains the view page “details”. On that page you’ll find all elements mentioned before.

The certain dependencies are added as expert attributes to the buttons.

The used expert attribute is called “additonalcheck” and type “text”. The following velocity call has to be used: $drRecord.getValueHolder('name').getValue()

Of course you will have to replace name by the real name of the element that you can find out by selecting the element and pressing the F4 key (expert options have to be activated in properties).

>Are any images available? (boolean)

For checking boolean values you have to add the expert attribute “valuebooleanadditionalcheck” with the value ‘true’. So the button will only be displayed if this value is true. The other way around (‚valuebooleanadditionalcheck’ equals false) the button will only appear if the value is false.

Does status equal “direct customer”?

For the string value you need to add the expert attribute “valueadditionalcheck”. The value to check is ‘direct customer’. This way the button will only show if the correct status has been chosen.

Is the class equal 2?

For the integer data field you will have to add the expert attribute ‘valueintadditionalcheck’. So the button will only appear if class equals 2.

In addition to the aforementioned scenarios there is another expert attribute ‘opadditionalcheck’, type ‘text’. The operators ‘==’ or ‘!=’ can be chosen. This way it will be checked either if the value is equal or unequal to the compared data field.

United Planet
Intrexx Application Store Press Downloads
English