cancel
Showing results for 
Search instead for 
Did you mean: 

First Row in a table is getting selected by default in webdynpro java

Former Member
0 Kudos

Hi,

The first row in the table getting selected by default in wd java.

I want to have no row selected by default.

Kindly help.

Regards

Gaurav

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member445255
Participant
0 Kudos


Hi,

Set "Initialize Lead selection" to false of node property.

Your problem will be solved,

Thanks

Div

Sharathmg
Active Contributor
0 Kudos

Set LeadSelection is false. This will ensure that no selection of row is done in the table.

The property is on the context node - initializeLeadSelection = false(default is true).

Try it. It should work.

Regards,

Sharath

satyam
Explorer
0 Kudos

Hi Gaurav,

create one test node (collection cardinality 0..n, selection cardinality 0...n)

write some code in doinit method

for(int i=0;i<10;i++){

   wdContext.nodeTest().setLeadSelection(-1);

    IPrivateGrnwsp_CompView.ITestElement ele = wdContext.nodeTest().createTestElement();

    ele.setData("select book "+i);

    ele.setText("edit book "+i);

    wdContext.nodeTest().addElement(ele);

   }

let me know if you have any issue, this is a sample for your reference

Thanks & Regards

Satyam

Former Member
0 Kudos

This is based on the selection cardinality of the node. If the first is being selected by default, that means the cardinality of your node could have been set to 1:n.

Make sure that's changed to 0:n. So that there could be a table with no records selected by default.

Hope this helps.

-Balajii

SandipAgarwalla
Active Contributor
0 Kudos

if I remember correctly, there is a leadSelection() property on the node context..try not to set it