One-Click Actions handling in List UIBB

UHTTk1471526261 One click action in list uibb or tree uibb can be handled by visibility ref field or enable ref field.

 

 

The link One-Click Actions in List UIBB shows how to design a list uibb with one click actions( row edit and row delete actions). This post is an extension to show how to handle the visibility  in the list uibb.

We have the OVP with list uibb with one click row actions as below. The requirement is like to enable the row actions may be its visibility or live-ability.

1

The list feeder class.

2

Check the et_row_actions referring table type and structure.

34

Here we have two field – visible_ref & enabled_ref  which can help us to achieve the above requirement.

5

Our feeder class list table type.

78

We have to add two more fields for the visibility ref by which we can manipulate its show or hiding and similar for the enable ref.

9

Here we added to fields.

10

In the list feeder class – GET_DEFINITION we added a visibility ref field to the ROW_EDIT action. 

11

Test the application. Here in all row the ROW_EDIT action are hidden.

12

In the list feeder class GET_DATA method, we have the below code.

13

Just make a few lines of code. For even row we make the RWO_EDIT action visible by setting the reference field value set to ‘X’.

14

Test the application. 🙂 .Now we have ROW_EDIT action visible in some row and hidden in some row.

15

Now test the enable/disable of row actions. in the feeder class GET_DEFINITION method, for the row action ROW_DELETE provide enable ref field as ‘ROW_ACT_ENABLE’ .

 

16

Test the application Here in all row the ROW_DELETE action is disabled.17

In GET_DATA method put the highlighted code, which will enable ROW_DELETE action in odd number rows and disable in even number rows.

18

Test the application.

19


 

Leave a Reply