As we are all aware we have LIST type forms that can be used to display the “Tables”. I want to list down few tips around “LIST” type forms in this blog.
You have a form that is submitted by Employee and Manager approves the form(after which data gets posted into SAP). Employee should see some fields say 20 fields and Manager should see the entire form say 50 fields. Out of the fields that Manager can see, there is a table which has 5 fields/columns.
The above requirement can easily be achieved using the “Scenario Steps” and “Field Attributes”. As a first step, define the “Field Attributes” for all these 50 fields as “Step Dependent”. Next, create two scenario steps – EMPLOYEE and MANAGER and assign respective 20 fields to the EMPLOYEE Scenario step and assign all fields to the MANAGER Scenario step.
First two fields gets displayed and the entire MANAGER related fields are hidden, except the table. Though all columns under this table are hidden, but we still see an empty table with no columns or no entries.
To resolve this issue or to get rid of this empty table, set the below attribute(Hide Empty List) –
By default the Personalization is set to “Enabled”, so this makes the “Hide Empty List” disabled. To enable the “Hide Empty List” attribute, set the Personalization attribute “Disabled”.
You have to display 5 fields in a tabular format i.e. in a table.
Add these fields to the List type form.
You might see all fields in a table, but not all rows. You might end up seeing only one row all the time.
Set the “Field Attribute” for all the table fields to SAP_PA / SAP_PD / SAP_PT / Generic Service. Even though you don’t want to default a value, kindly set with some kind of default values/dummy value, else, you will not be able to display the table data in multiple rows(only first row gets displayed). To demonstrate this issue, let’s say I have 3 fields in my table with the below configuration –
Set the default value of third field as “Without”.
I have added these fields to my FPM List form and when tested I see the below result –
By default I am supposed to see two wage types, but I am only see one wage type.
To avoid this issue, set the default value of the third field as SAP_PA with value as “DEF” –
Save your form to see the expected results –
Stay tuned for more tips in the upcoming blogs…