on 06-23-2008 7:20 AM
Hi
I am having a view context node structure as follows.
Root context Node
|__Parent
*****|__child 1
*****|__child 2
I have created a table view which is using above structure.
Now I have selected "Selection Mode" property of my table to "Multi", as i intend to select multiple rows in this table.
When i tried to run this application..I got following error :
com.sap.tc.webdynpro.progmodel.context.ContextException: Node(TableView.Person): selection cardinality does not allow multiple selection
What i traced from this problem is that i have set "singleton" property of my "Parent" context node to "true".
But what if i wish to change it to "false"...
I AM UNABLE TO DO THAT !!
Please help me out.
Thanks in anticipation.
Edited by: Saurabh Agarwal on Jun 23, 2008 8:20 AM
Hello Saurab,
If this node was created in Component or interface controller, and then mapped to view controller, the context will be created in view controller. But we wont be able to change context in view as the actual source is component controller or view controller. For changing such nodes which was created due to binding, it i better to change the propery of component controller or interface controller from where it isn bound. The movement you change there it will change in view controller also.
I guess this was the issue you are facing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Saurabh,
Why cant you create a new Value Node, making its cardinality to 0..n and singleton as false, and copy and paste the child node 1 and 2 in the newly created value node and use this new node in table. This way we can avoid using root node.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sourabh,
actually to make your table multi select enabled, you have to set
1) Table selectionmode property to multi
2) Context selection property to 0..n
there is nothing to do with singleton.
infact we can't change singleton property of ROOTs' direct children.
nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes....
Now i changed my Selection property of my component context...
and that change was automatically reflected to my view context...
Actually what is happening..
if mapping to component context is set in view context..
then Properties could not be changed directly from view context.
Thanks all....for your help..
my problem is solved now....
Thanks...
Hi,
Try changing Selection property to 1..n of ur node.
Regards
Surender Dahiya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Y r u not beig able to change it? Is it giving some error or is it not editable...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.