cancel
Showing results for 
Search instead for 
Did you mean: 

How to Create Multiple entries at a time

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Try to change the cardinality property of the node to 1..n in the component controller.

This will enable ur inputfield

Former Member
0 Kudos

Hi Lakshmi,

Change the cardinality of the node from 0:n to 1:n.

Regards,

Murtuza

Former Member
0 Kudos

Hi Murtuza

I tried it, But it's enabling Only single record(Row) in the table.

I Want multiple records to be enabled.

Plz find another.

Thanks in Advance

Former Member
0 Kudos

Hi Lakshmi,

It should not be for a single row ideally. Can you describe the structure of the context binded to your table along with its basic properties like cardinality, selection, etc.

Regards,

Murtuza

Former Member
0 Kudos

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

Former Member
0 Kudos

Unless u add elements to the context node ur table fields wont b enabled for input.

Bind table source to a context node.

Bind value property of input field (table column cell editor) to a value attribute inside the node.

Former Member
0 Kudos

Hi,

Thanks for reply..But my intension is to create, so i've to enter my own data.

I binded the value property of Input fields to the vslue attributes..

plz find another ..

Former Member
0 Kudos

Hi Murtuza,

Plz reply to my query,

Thanks in advance

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks for your reply Murtuza, It's worked

Thanking again

LakshmiNarayanaChowdary.N