Highlighted
Acclaimed Contributor.
Acclaimed Contributor.
401 views

2 state of button

Is it possible to make at form button with 2 state.

When just open the form displays the name of the button "View All" after press on it button displays the name of the button "View Active" and when press again name back to "View All" and so on...

0 Likes
3 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: 2 state of button

For now i make just close solution (not in ONE button).

2 BUTTONS:

first with name: "View ALL"

second with name: "View Active"

They both on same place, but displayed only one of them at same time.

Display condition for First one: [$ViewAll]<>"true"

And display condition for the second one: [$ViewAll]="true".

Also there is some "button ID", that let me set expressions in DO for this form to change value of $ViewAll variable.

Pre RAD expressions

if ($ViewAll=false or $ViewAll=NULL) then ($ViewAll=true) else ($ViewAll=false)
0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: 2 state of button

Hi,

The label of a button can be replaced by the content of a variable in the "Input" attribute.

If the variable is null, then the Caption is shown, when the variable is set, then the Caption is replaced y that content.

Best of luck with your design,

Ben Rabau

Micro Focus Professional Services
Bracknell
UK
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: 2 state of button

in addition to changing labels, should happen different actions on the push of a button, depending on - what is written on the button before pressing.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.