OUT OF SERVICE - How to use a switch in a table - UI designer

After building a table and dragging a switch field, you need TODO:

Usado em listapage, listaenv, Transaccao

1. Give a name to the table with the switch. Example "isac":

2. In JS tab add:

  • isac - nome da class da tabela

  • p_status_page - tag do checkbox/switch

  • p_id_fk - if tag hidden add _fk of each line for action purpose in the change function (3. point)

  • p_id - name of the param that will be used in method changestatus()

  • webapps?r=[app]/[page]/[actionXXX()]

OR

If the id tag is a column and not a hidden field, no need to add _fk. See name=code without _fk

3. Add this lines to the controller.java

  • In the actionIndex()

  • Import in the reserved import area:

  • In the START-PRESERVED-AREA(CUSTOM_ACTIONS)

Reading the params p_id and p_status of the javascript

Last updated