on 09-18-2007 7:46 AM
Hi All,
I have a requirement to create multiple records into the database and the webservice is ok in backend.. I have taken InputFields in Table in webdynpro to allow multiple entries. My problem is the InputFields are appearing in disabled mode even though I put True in their properties..
Please give solution or any alternative way to allow multiple entries at a time
Thanks in Advance
LakshmiNarayanaChowdary.N
Try to change the cardinality property of the node to 1..n in the component controller.
This will enable ur inputfield
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lakshmi,
Change the cardinality of the node from 0:n to 1:n.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Murtuza,
Here is details..
ContextNode--> Create
with 4 valueAttributes
Cardinality--> 1..N
Selection--> 0..1
Singleton--> true
And I binded the valuenode "Create" to the table's datasource property
I want for example, 5 rows to be enabled at a time
Please reply for any details
Thanks in Advance
Hi Lakshmi,
Sorry for the delay in reply. I tried the same thing and yes only one row is enabled while the page is being displayed.
I am not aware of the other settings to be made to see all the rows enabled but I have worked out a way to deal with this.
You can take one more attribute within your node called add and set it to LinkToAction.
You can assign an action to this UI element which will create an element of the node and will thus allow you to edit in the 2,3,4 row so on....
But the only disadvantage is that the user needs to click once after each row.
or if the number of rows that you want to see as enabled is fixed then you can create that number of elements in wdDoInit()
eg.
IPrivateTrialView.ITableElement ele = null;
for(int i=0;i<5;i++)
{
ele = wdContext.createTableElement();
wdContext.nodeTable().addElement(ele);
}
or you can create an element each time user clicks on the link:
IPrivateTrialView.ITableElement ele = wdContext.createTableElement();
wdContext.nodeTable().addElement(ele);
Regards,
Murtuza
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.