Cycle 2: Hide, Disable and Change Face Text of Buttons in Stateless Forms

Cycle 2: Hide, Disable and Change Face Text of Buttons in Stateless Forms

Suggestion:

Allow developers to control (via deluge script) the visibility, state and face text of Buttons in Stateless forms.


Purpose:

Improve the ...

- efficiency of designing/developing Applications with Stateless Forms

- usability of such Forms at run time


Motivation:

If Developers could ...

- hide/show

- enable/disable

- change face text of

... Buttons on a Stateless Form ... it would enhance the versatility of the of such Forms ... and the Application in turn.


Based on run time conditions, inappropriate (next) actions could be disabled, hidden from view or have their text changed e.g.

- a Form that facilitated the search for all outstanding tasks for a specified Project ID ... could have the Search Button disabled (in the on User Input section) if there were no outstanding tasks for a selected Project ... so the user would not have to click on the Button ... only to have the next page return zero records.

- actions restricted to a few Authorized users could have their corresponding Buttons hidden (in the on Load section) for all other users

Also, being able to change the face text of Buttons would not only help to deploy the same form in multiple languages ... but also allow the Button Text to dynamically respond to the contents of other form fields or user Actions


Implementation:

in the on Load and on User Input sections ...

                                          
  1. hide Button1;
  2. show OK_Button;

  3. disable Cancel_Button;
  4. enable Search_Button;

  5. if (thisCustomer.language == "French")
  6. {
  7.    input.AddItem = "Ajouter cet article"
  8. }
  9. else if (thisCustomer.language == "Spanish")
  10. {
  11.    input.AddItem = "AƱadir este tema"
  12. }
  13. else
  14. {
  15.    input.AddItem = "Add this item"
  16. }




Issues:

Can't think of any.


Workaround:

None right now.


Free Beer for anyone who votes for this   ... delivery not included !!!





















































Gaev