on 11-25-2008 12:48 PM
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
Done by using Wizard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.