cancel
Showing results for 
Search instead for 
Did you mean: 

How to read a in table from interactive form in WD4A

anuraag_aggarwal
Active Participant
0 Kudos

Hello everybody,

Scenario:

If we want 25 fillable fields on an interactive form in WD4A,

-


Available solution: We create 25 attributes under a node in context of view and use this node in adobe form context. When submit button is clicked, we read these 25 values using method get_Static_attributes.

Problem: I want a table in adobe layout with 1 column and 25 intial rows. How can we design the form in this case and how to read the such data in web dynpro.

Thanks

Anuraag

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi Anuraag,

Create a line type in SE11 for the 25 fields. And then have it in the import parameters of your form interface. Drag drop it in the body page of your form in the layout tab.

Now, to fetch the data you can use the method "get_static_attributes_table" from a reference variable of type ref to if_wd_context_node in your WD component.

This will give you the data in a internal table.

Regards,

Runal

anuraag_aggarwal
Active Participant
0 Kudos

Hi Runal

Creating a line type doesn't solves the problem. It is as good as creating attributes in context.

This example is just for 25 fields. If there are 10 columns with 15 rows then we shall have to create 10 X 15 fields. Can we create a table in adobe form with 10 columns and 15 intial rows and create a node(with cardianlity 1.n for multiple lines) in context of view with 10 attributes(for 10 columns) and data comes into view as internal table.

Former Member
0 Kudos

Hi Anuraag,

Yes you can always set the initial row count of a table. Just select the check box for min row count and set it to 15 or whatever minimum number of rows you desire, you will have that many rows displayed.

Then you can read the data from it, from the context of the view to which it is assigned.

Regards,

Runal.