cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic display of records in interactive form

Former Member
0 Kudos

Hi all,

I want to display the records of table in interactive form. my context has three nodes.

1. model node which contains the data retrieved from backend.

2.value node (parent node) and a child value node.

i created a pdfsource attribute and specified the type as binary.

i had copied the records from model node to child node. set the cardinalities of parent value node to 1.n

and child value node to 0.n. when i execute the rfc iam getting the data into the child value node.

I bind this to datasource attribute of interactive form ui element .

in interactive form i created a table and wraped in subform. specified the content type of form to layout,

for the header row i unchecked the Repeat row for each Data item and checked it for row and min count to 1.

and binded the node attibutes to the columns in row.

if i deploy it is showing only one record.

what i need to display the multiple records in the interactive form. i want the table length to change dynamically .

can anyone sort out this issue.

Thanks

Satish Kumar

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Done by using Wizard

Former Member
0 Kudos

Hi Sathish,

For Dynamic Display of records, try this way. i am able to get dynamic records....

main node - cardinality = 0..n

Child Node - cardinality = 1..n

[ IPrivateA_CompView.ILeave_mainElement mainElem = null;

mainElem = wdContext.createLeave_mainElement();

mainElem.setValue("a");

wdContext.nodeLeave_main().addElement(mainElem);

Have a dummy attribute inside main node and set some value for that attribute. Initialize the main node else it might throw null pointer Exception. ]

Inside Form, have a Subform, Inside that a Table. Only for row, click "Repeat row for each Data item " and for header it is not required. Map the corresponding attributes to the element.

Hope this would resolve your issue?

Thanx and Regards,

Divya

Former Member
0 Kudos

Hi,

I have tried with the code that u posted but even this is displaying the single record . if i set the initial count of rows to more than 1 it is showing the multiple records.

Thanks

Satish Kumar

Former Member
0 Kudos

Hi Satish,

To display the Internal table in the Adobe Interactive Form from WebDynpro. Firstly you need to create a main context node and in that context node create another sub node with Cardinality "0..n" and Selection "0..1" and link that to a Table or Structure or leave that blank. if you left blank create attributes of your own or select from the table or structure you have referenced.

Now goto Methods Tab in that select the "..wdoinit"(something similar to "init")Method. Double click on that method and in that you need to fill the sub node by writing ABAP code. Here create a local internal table and fill that internal table by writing the select statements and at the end using the Code Wizard read the context subnode and not the main node. and to that node [i.e. for example: ln_nd_sub (here consider the variable something similar with the name "nd")].

Write the code "ln_nd_sub->bind_table ( local_internal_table_name )".

Now in the View after filling the template source it asks for the interface, there select the main context node. And in the Adobe Form Layout you will observe the Table.

I think this will solve your problem.

Regards

Pradeep Goli

Former Member
0 Kudos

Hi pradeep

Iam working on webdynpro using java but not ABAP.