Support Article

"Hide the default Action Section button" breaks data entry

SA-27994

Summary



User has a repeat grid with expand pane mode configured to expand one row at a time.

On adding two to three items in the grid, it is observed that the data entered in the expanded section on the previous rows disappears when the "Hide the default Action Section buttons" checkbox is checked in the flow action that is displayed on expand. If this option is not selected, then it works fine.


Error Messages



Not Applicable


Steps to Reproduce



1. Configure a repeat grid with expand pane option. 
2. In the Operations tab of the repeat grid, uncheck the option "Enable displaying details on multiple rows". 
3. In the Action tab of the flow action to be displayed on expand, check the option "Hide the default Action Section button". 
4. Click on Add Item button below the grid to add a row, enter the data, click on add item button again to enter a second row.
5. Click on the first row and observe that the data has disappeared.

Root Cause



The repeat grid is designed to submit the data through Save button click.

The Out-of-the-box code checks whether the Save button exists. If it does exist, a click on the save button is fired from the code itself. This is how it has been designed.

Resolution



Uncheck the "hide action buttons" in Flow Action and hide the buttons via CSS, use below steps:

1. Add the following CSS style in UserWorkForm - 
<style> 
div[datasource="DataList.pxResults_Example_1"] tr[expanded="true"] div[node_name="pyGridRowDetails"] table.buttonMainTable { 
display: none; 

</style> 

2. Change the data-source value by inspecting the DOM element of the grid.

Published September 15, 2016 - Updated September 20, 2016

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.