cancel
Showing results for 
Search instead for 
Did you mean: 

How to create the tool bar button choices dynamically

Former Member
0 Kudos

Hi experts,

I have a requirement where in depending on the stage of application, i need to change the tool bar button choices.

How do i create the entries of it dynamically and also do the actions for them dynamically.

Any inputs/clue is highly appreciated.

Thanks,

Ajay

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Lekha,

Thanks for your inputs.

Ajay

Former Member
0 Kudos

Hi,

For ex: If oyu have 4 stages then 4 hbuttons should be there as a part of button choices right.

Based on the stage of applicaiton, that button should be enabled and action to be triggered. Am I right.

Regards,

Lekha.

Former Member
0 Kudos

Hi,

Yes you are right, but the stage i meant is the status of the current record.

depending on the status, i want to show the next statuses as tool bar button choices.

stages are - > new, released, accepted,posted,completed.

If a record is in new, i should be able to show change_status->

released,

accenpted,

post

if record status is released->show accepted, post

if record status is accepted - > then show post

like that. i need to dynamically show the tool bar button choices and perform actions dynamically.

regards,

Ajay

Former Member
0 Kudos

Hi,

First based on the number of stages, In the MODIFYVIEW create a button choice UI element and the respective buttons.

Now, create a context attribute visible (wdui_visibility) and bind the visible property of these buttons to this attribute.

Based on the stage, you can set the visiblity right.

Regards,

Lekha.

Former Member
0 Kudos

Hi Lekha,

can you give me a small example of adding ui elements dynamically and also actions on them.

If there is any dempo application, pls let me know its name.

Thanks,

Ajay

Former Member
0 Kudos

Hi,

Refer these links -

Regards,

Lekha.