cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to change singleton property of context parent node.

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Yes exactly Shabbir...

Thankyou so much....

Hope to see you further in this forum....

Please do keep chking my posts as they wud contain lot of questions...

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Shabir.

I am currently using this Value node. In above structure which i hav shown in my first msg...Parent node is actually a value node itself.

And now i am not able to edit its properties....

nikhil_bose
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Nikhil...

Actually the problem is that i am unable to change this context "selection" property to 0..n or any thing else....

nikhil_bose
Active Contributor
0 Kudos

seems strange.

for singleton there is no dropdown. But for selection it should be there. Try creating another node and check that could be changed or what.

Former Member
0 Kudos

Hi Nikhil

I created another value note in my view context...

This time with no mapping to component context....

And all field were editable....!!

I think there is some problem with my mapping...!!

nikhil_bose
Active Contributor
0 Kudos

change selection property of Person node component controller context

Former Member
0 Kudos

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...

Former Member
0 Kudos

Thanks Nikhil...

Hope to see you further in this forum...

This Web dynpro is relatively new to me...and there is not much help available elsewhere other than this place...:)

cheers...!!

Former Member
0 Kudos

Hi,

Try changing Selection property to 1..n of ur node.

Regards

Surender Dahiya.

Former Member
0 Kudos

cardinality and selection properties ....

BOTH are not editable...

there is no drop down in front of them...

Ok i will restart my Studio...

and then will revert back...!!

Former Member
0 Kudos

These are still un editable...

I think there has to be a dependent property which needs to get set first correctly somewhere....only after that wud these properties will become editable......

Please help me in figuring out....!!

Former Member
0 Kudos

Y r u not beig able to change it? Is it giving some error or is it not editable...

Former Member
0 Kudos

it is not editable...!!

there is no drop down coming in that field from which i could change it...!!

Is it aditable ?? !!

becoz if it is then i will restart studio....!!

Former Member
0 Kudos

Yeah it is editable, u shud be able to see adropdown there once u click on it