cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic actions in toolbar actions of tables

werner_miehle
Discoverer
0 Kudos

Hello all,

I have an issues when I create a dynamic action in the toolbar buttons of a table which looks like that:

if(@ZCLOSED== 'X',"ERROR","DECISION")

I tried the same syntax in a pushbutton in a normal form and here it worked w/o problems;

Did somebody used already dynamic actions in the tool bar of tables?

Thanks

Werner

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Werner,

The toolbar button expects an action name and not an expression.

If you only use the action from that form, you can simply create an action with another name and use conditional transition.

Or, you can try this cool (though long) workaround:

Create an action (lets say MyAction) and add another form (form1) to the model.

Add a spinner control to form1 and give it the dynamic action you want.

Set the visibility of form1 as false and connect your form with form1 using signal in/out to be triggered by MyAction.

finally,assign @spinner1+1 to the spinner when MyAction is raised.

Good luck,

Shay