Skip to Content
avatar image
Former Member

Unable to change singleton property of context parent node.

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Jun 23, 2008 at 06:26 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 23, 2008 at 06:36 AM

    Hi,

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

    Regards

    Surender Dahiya.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

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

  • avatar image
    Former Member
    Jun 23, 2008 at 06:42 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

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

  • avatar image
    Former Member
    Jun 23, 2008 at 06:58 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

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

  • avatar image
    Former Member
    Jun 23, 2008 at 07:18 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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

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