cancel
Showing results for 
Search instead for 
Did you mean: 

Table, First row is selected

J_B
Explorer
0 Kudos

Hy All,

If I use the UI-Element Table, the first row is selected as default.

How can i change this, so that no row is selected ?

Only when a user select a row, the selected row should change his design.

I did not found a property for that. (UI-Property and API!).

wdDoInit - xxx.setLeadSelection(-1) ...

wdDoModify - xxx.setLeadSelection(-1) ...

are not working.

Thanks for help.

By Jürgen

Accepted Solutions (0)

Answers (3)

Answers (3)

J_B
Explorer
0 Kudos

Hy,

the cardinality of the model-node is 0..n, selection is 0..1, singleton is true and initializedLeadSelection is true.

This are the parameters read from the properties out of the developerstudio. The initializedLeadSelection could not be changed. The nodeElements are from RFC-Backend call.

I have looked at the API, but not found the Method to change this property. I use NW 04 Version 2.0.6.

Where can i found this function ?

Thanks for help.

By Jürgen

Former Member
0 Kudos

Two options..

1.By config : Set the "initializeLeadSelection" attribute to false. This is to be done for the value node or the for model node at the source of mapping . For example: if you have a model mapped to component controller(CC) and then the CC context to the View controller, the configuration change has to be done at component controller level.

2.Programatically : wdContext.nodeA().setLeadSelection(IWDNode.NO_SELECTION);

Thanks and Regards,

Sam Mathew

Former Member
0 Kudos

Hi,

For corresponding context node ensure the following:

1. Selection cardinality is 0..1 or 0..n rather then 1..1 or 1..n

2. InitializeLeadSelection prioperty is set to false.

For mapped node, either be sure to set this properties in source or do not map selection

Regards,

VS

Former Member
0 Kudos

What is the selection cardinality of the context node used as the table's data source?