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

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

Similar Messages

  • Settin singleton property false for child node but entire column populated

    hai all,
           I have set the singleton property of child node as false but still in my wdmodifyview when i load a value help with values from backend based on the user selection in 1st column of table the entire column gets populated.
    coding used by me:
    public static void wdDoModifyView(IPrivateSalesdet wdThis, IPrivateSalesdet.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
       try
       String partfn=wdContext.currentTablepartnersElement().getPartnerfn();
         if(partfn.equals("ShiptoParty"))
    IWDAttributeInfo partattributeInfo=wdContext.nodeTablepartners().nodeTablepartnerssubnode().getNodeInfo().getAttribute(IPrivateSalesdet.ITablepartnerssubnodeElement.PARTNERS);
    ISimpleTypeModifiable part  = partattributeInfo.getModifiableSimpleType();
          //     Set field label and populate valueset
      part.setFieldLabel("key");
    IModifiableSimpleValueSet partvalueSet =  part.getSVServices().getModifiableSimpleValueSet();     
      for (int i = 0; i < wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().size();i++)
    partvalueSet.put(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().getLt_Kna1ElementAt(i).getKunnr(),wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().getLt_Kna1ElementAt(i).getName1());
    I need to populate only the table cell wch is next to the cell in wch user has made a selection  and not the entire column.plz help me in this issue.

    First, you should not place this code in wdDoModifyView().
    Second, I assume you want to have a value help only on a specific table cell, not for all cells in the same column, is that correct?
    This cannot be done by modification of the DDIC type because the type is used for all cells of a column. This has nothing to do with singleton vs. non-singleton.
    What exactly is your use case?
    Armin

  • What is the significance of Singleton Property?

    Hello guys!!!
    Can some one elobarate the significance of Singleton Property?
    Also, please suggest me a scenario, where we use Singleton Property.

    HI,
    click on ur node and on the singleton proprty click F1. u will get the full detail.
    The property "Singleton" specifies the number of instances that can exist in a dependent context node (that does not belong directly to the root node).
    If the property "Singleton" is set, exactly one instance of the node exists. Its content changes when the lead selection of the parent node changes.
    If the property "Singleton" is not set, one instance per parent instance exists. The content of the instances does not change when the lead selection of the parent changes.

  • What is the role of  singleton property in clustered environment.

    Hi
    Could anyone suggest links or tutorials explaining the singleton property and its importance in clustered environment(both active-active and active-passive).
    Please anyone explain this .
    I've googled and couldn't understand the explanations which I've gone through.
    Appreciate your help.
    Regards,
    Dev...

    HI,
    click on ur node and on the singleton proprty click F1. u will get the full detail.
    The property "Singleton" specifies the number of instances that can exist in a dependent context node (that does not belong directly to the root node).
    If the property "Singleton" is set, exactly one instance of the node exists. Its content changes when the lead selection of the parent node changes.
    If the property "Singleton" is not set, one instance per parent instance exists. The content of the instances does not change when the lead selection of the parent changes.

  • Differnece between Cardinality and Singleton for a Context Node

    Dear SDN Community,
      Can you please tell me what is the difference between the Cardinality and Singleton properties for a context node.
    Thanks!
    Surya

    Hi Surya
    Lead selection
    Leadselection is the property which is used to get the index of the selected row of the table
    "OnLeadSelect" is the method used to fire an action when a row is selected
    The Method wdContext.<node>().getLeadSelection() can be used to
    find out the index of the selected element.
    Cardinality
    Any node or attribute that has the context root node as its immediate parent, is known as an independent node or attribute.
    Any node or attribute that has some other node as its immediate parent, is known as a dependent node or attribute.
    All context nodes are collections.
    A node collection is composed of elements, where an element is an aggregation of the node’s immediate children (attributes and/or other nodes).
    The cardinality property controls the number of elements a node collection may hold at runtime.
    Every context node has a property called Cardinality. This property is composed of two values that
    taken together, describe the maximum and minimum number of elements the node collection may hold
    at runtime.
    Cardinality Minimum: 0 or 1
    Cardinality Maximum: 1 or n
    Therefore, there are four possible cardinality values (specified as <Min>..<Max>)
    0..1 Zero or one elements permitted
    0..n Zero or more elements permitted
    1..1 One and only one element permitted
    1..n One or more elements permitted
    Singleton
    All independent nodes are forced to be singletons. This is because the context root node has one and only one element.
    Singleton is boolean
    TRUE : One instance will be created for all te nodes
    FALSE : Every Element in the parent node collection,there will be a distinct instance of the child node.
    Why Singleton
    -Efficiency
    -Less Memory
    -Lazy Data Access(Creates instance only when needed,till then it will remain unprocessed)
    Supply functions
    Supply functions are the mechanism to repopulate child nodes when the lead selection in the parent node
    changes. When a singleton child node is declared, you must also write an accompanying supply function.
    The Web Dynpro Framework will then automatically call your supply function when the lead selection
    in the parent node changes.
    Regards
    Chaitanya.A

  • Hi! regarding the singleton property in webdynpro abap

    Hi experts ,
    Could anyone explain me in detail the property of singleton and wht r the conditions tht we should use wht will represents..
    plz explain me in detail......rather than sending links plz do explain me in detail....
    Regards,
    Sana...

    Cardinality : number of possible elements within the node.
    Singleton property means whether or not all instances of this node get created at runtime or not.
    Singleton property is mostly used to save memory & increase performance. we would go for singleton nodes in cases where UI needs only display from one-instance of data from my node.....
    What happens when you set singleton property to YES for a node??  Assume you have context structure like
    Context
         Vehicle( parent node )
           ( attribute veh-ID primary key for all types of vehicles, dealer, area )
              twowheeler( subnode of vehicle with cardinality-0..n singleton-NO)
                        ( attributes veh-ID, regno, model, color)
              fourwheeler( subnode of vehicle with cardinality-0..n singleton-YES)
                       ( attributes veh-ID, regno, model, color)
    At design time you fill the data within this context. Now you have 100 entries under the subnode  twowheeler & 90 entries under the subnode fourwheeler . You create UI elements to display the node twowheeler details in a View . At runtime when user selects the veh-ID and identifies that a twowheeler data needs to be fetched/displayed all the 100 entries for the twowheeler node get created in the background although you are displaying only the ONE corresponding to the veh-ID.
    if Veh-ID selected coresponded to fourwheeler( singleton property -yes) only ONE row of the data from the fourwheeler entries would have been fetched and ONLY Once instance of the fourwheeler would be created by background process!!
    thus saving memory & processing time.
    Scenarios singleton-YES
    If i were required to display details of only ONE vehicle based on the entered Veh-ID , i will make twowheeler & fourwheeler nodes singleton-YES.
    Scenario singleton-NO
    if i were required to show all the vehicles that belong to one particular Area.

  • What is singleton property in Webdynpro

    Hi,
    What is singleton property in Webdynpro?
    please explian along with diagram
    Regards,
    Sid.

    hi,
    Singleton Nodes
    •     It is very important to remember the difference in runtime behaviour between a singleton node and a non-singleton node. When a node is declared to be singleton, there will only ever be only one instance of that node-irrespective of the number of elements found in the parent node’s element collection. This is not the case for the non-singleton node. In this case, there will be as many instances of the non-singleton child nodes as there are elements in the parent node’s element collection.
    •     The significant point here is that when the lead selection in the parent element collection changes, the contents of the singleton child node become invalid. Consequently, the next time data is required from the singleton child node, the entire element collection must be rebuild in order that it match the data in the newly selected parent element.
    •     The task of rebuilding singleton child node must be performed by a dedicated supply function.
    [http://help.sap.com/saphelp_nw70/helpdata/EN/81/95384162316532e10000000a1550b0/frameset.htm]
    regards,
    pinki

  • Can we change the property of each element of an array using property node or by other methods?

    Hello all,
    Can we change the property of the elements of an array. For example:
    I have an array of combo-boxes. Can i have such a scenario that different combo-boxes of the array will have different items to select an item.
    I am able to set the different "values" in different combo-boxes bu using "to be more specific class" property node.
    But i could not set the different item list in different combo-boxes.
    Please give me the solution.

    Thanks a million dave!!!!!
    I have learnt a very new and innovative thing...
    I just wanna ask you one more question in the above context.
    Can i have listbox or combo-box in a table just like in an excel sheet where we can have listbox by using "data validation" property for different cells having different list.Can i have this in labview. Because for this i have to super-impose the combo-boxes on the table and treat them separately.
    We have to take those combo-box values and put in table and then store it.I have attached one VI to show the scenario.
    And this is the alternative solution of the array problem which u have already given. So please suggest me between the two or any alternative solution.
    Thanks,
    Ankit Madaan
    Attachments:
    Recording _Table.vi ‏19 KB

  • Dim. SCD2 issue, when parent value change. The child loses parent history.

    oracle DB: 10.2
    owb: 10.2.0.4
    Create a SCD2 type dimension with six levels in it. Alle levels have the same columns, see below (change the nr for the level)
    L1_KPL_PK
    L1_DATA_TILL
    L1_SLEUTEL
    L1_DESC
    L1_DATA_FROM
    L1
    When running the mapping, the hierachie is perfectly inserted into the table. When changing the
    value of the L1 parent in te source and running the mapping again the following
    is happend:
    He closed the parent record with the old value and insert a till date.
    He update alle child record with the new value
    He inserts a new record with the new value of the parent.
    What i should expect wat would happen was:
    He closed the parent record with the old value and insert a till date.
    He close alle child records with the old value and insert a till date.
    He inserts new records for all child with the new value of the parent.
    He inserts a new record with the new value of the parent.
    I searched on the net for this issue and i found oracle fixed it in a patch 10.2.04 The bug is know under nr 6004133
    "Child looses parent reference when SCD2 attribute change in parant.
    Installed the patch(7005587) and renewed my dimension, table, and mapping in the repository. Ran the mapping, but the result is not what i expexted as
    descriped above.
    Help needed to fix this issue. So alle histoy is beeing saved.

    Hi
    There was a change in OWB 10.2.0.3 (I think it was this patch) to support this scenario.
    If you go to the SCD settings panel for your dimension, each level also has the parent level's identifying column (this is the new bit) and you can set the Record History property for the parent identifier in order that a change in this will trigger history in the level (so the hierarchy can be versioned). So if you set this and synchronize the dimension operator in your map and redeploy the map, you should be in shape.
    So for example if you had L1, L2, L3 with attributes ID, NAME, ATT, EFF_DATE and EXP_DATE then the SCD panel would have;
    *L1
    ID
    NAME
    EFF_DATE eff date
    EXP_DATE exp date
    ATT trigger history
    *L2
    ID
    NAME
    EFF_DATE eff date
    EXP_DATE exp date
    ATT trigger history
    L1_ID trigger history
    *L3
    ID
    NAME
    EFF_DATE eff date
    EXP_DATE exp date
    ATT trigger history
    L2_ID trigger history
    Let me know if its unclear.
    Cheers
    David

  • Restrict Local Administrators from change Network property

    In my office Environment we are using Development machines on which every developer has Local Administrator rights on there system. We are using 2 Internet lines in which one line is fast speed and another one is slow one, due to slow internet speed on
    second line some peoples manually change the Gateway IP and switch from slow to Fast one, to stop this we need to restrict those users from changing IP on windows 7. Only domain Administrator can able to change that Setting. we are using Window Server 2008
    R2 as ADDS. is there any way to stop this using domain group Policy? or Local security policy?

    Hi Siddheshrsawant,
    Sorry, we can’t restrict local administrators from changing network property via Group Policy, and this is by design.
    For confirmation, the following thread also focused on the similar issue and can be referred to for information.
    Unable to lock down Network Connections settings with Group Policy
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/32045ab3-0496-4f5e-b2c2-71ba0f2ed073/unable-to-lock-down-network-connections-settings-with-group-policy?forum=winserverGP
    Best regards,
    Frank Shen

  • Unable to use right click on Context in a view..........

    Hi,
      I'm unable to use right click for creating nodes and attridbutes in a 'Context' of a view. Where as I can right click on 'RootUIElementContainer' and create elements. Can anybody have the idea to resolve this.
    Thanks.
    Nag.

    Thanks for the reply. I'm unable to get right click on context in change mode. I have been working without any problems for a quite few applications. But now I find that right click doesnot work on context.

  • Muse Craziness and Error: Cannot read property 'parent node' of undefined

    I have finished my site and exported as HTML, when you open the index file you see a quick preview of the site then the page goes white.
    If I preview the site in a browser from Muse menu selection, I get this error and the content in my light boxes is all moved and some items not showing. Even pulled my footer items into the light box.
    Note that all of this only happens when previewed or exported as HTML. Everything works as it should in the design mode. When I hit the preview tab, the browser fill shows then Muse is not responsive for 15-25 min.
    I have no "added" Java Scripts, only used the available widgets within muse, I do have widgets nested inside of widgets which I believe may be the problem?
    Error Im getting from the browsers (all of them)
    "MuseJSAssert: Error calling selector function:TypeError: Cannot read property 'parent node' of undefined"
    I have began building my site in DW as this is becoming the usuall trip with Muse, as in every tiny change creates a ton of problems after export. The initial release was great and after the first update things just seem to be going downhill with every new update.

    Hi JKurtBrown,
    You seem to have some invalid HTML in a few of your custom HTML fields that is causing issues with the rest of the page. In many of the places where you have tables, you seem to have copy/pasted from a different source, but you are missing closing </div> tags for some of your code. Cleaning these up and closing these divs should allow your page to work without issue. If you need help narrowing down where the issues are, you can use the W3C Validator and it should be able to tell you where your issues are. The ones that say "No Closing Tag" are the ones you'll want to go through and fix first, as often times those can cause a lot of other issues.
    Hope that helps,
    Andrew

  • How can I change element property.

    Hi experts,
    I have two tables and while I set the first table's property is visible , second table's property is invisible.When the screen is loaded, I want to make the first table visible and second table invisible. When I click any row in the table, I want to open q new table below first table.How can I do?How can I change the property of the table? Can anyone share with me the sample code for this.

    Hi Mehmet,
    Create 3 context attributes with type WDUI_VISIBILITY
    and in the Layout bind these with the Corresponding TABLE Controls
    VISIBLE property.
    and set these in WDDOINIT()
    wd_context->set_attribute( name = 'FIRST_TABLE_VISIBLE' value = if_wdl_core=>visibility_visible ).
    and table SELECT event.
    wd_context->set_attribute( name = 'FIRST_TABLE_VISIBLE' value = if_wdl_core=>visibility_visible ).
    Regards
    Abhimanyu L

  • Unable to change the data in PSA

    Hello All,
    I have a delta failure because of invalid characters in one of the field and now i wanted to change the PSA. I have deleted the request from all data targets and started changing the error record, it is not showing all columns from PSA hence i am unable to change the data in required field.
    Could you please let me know how will i see all columns from PSA. Thanks
    Regards,Ashok

    Hi Ashok,
    To increase/decrease the number of columns that are displayed on the menu from the Settings option select Change display variants
    Also if you want to see say all the failed records you can sort the order of the data using the Status column

  • Unable to change the data source of SAP system

    Dear all,
    We have install SAP netweaver EHP1 standalone java on oracle 10.2.0.5 on windows 2008 R2.
    while installation i have given the central SLD system as solman,
    By mistake i have deleted the system from SMSY.. now when i createed the system manually i am unable to change the data resource as SLD due to this i can start my SMD configuration
    Request please let me know how to resolve this issue.
    Thanks
    Paresh

    Hi Paresh,
    You can proceed with deleting your SAP system from SMSY (along with connected technical content such as AS Java definition) and the run the LANDSCAPE FETCH through transaction SMSY_SETUP to have the correct definition of your SAP system in SMSY.
    Following this, you could use the addon Landscape Verification (a new thing I learnt today!!!)  to check the correctness of transaction SMSY. The following link details the Landscape verification 1.0 for SolMan:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e093b3ce-c034-2d10-01bc-b51f1691d3da?quicklink=index&overridelayout=true
    Hope this helps sort out your issue.

Maybe you are looking for

  • How to install oracle on windows 2 nodes cluster

    Hi, As a beginner, I need to how to install (i.e. steps ) Oracle 11g R1 on windows 2003 SP2 enterprise, having 2 nodes (active -passive) clusters on it? Thanks,

  • Email in iCloud

    Is it possible to recieve my sky email in icloud but still file it in outlook

  • Mini display port dead?

    My mini display port seems to have stopped seeing external displays. This is a problem, as I need to use projectors for presentations. Neither the mini-dvi nor the mini-vga adapters are detected. Is there some tool or program I can download to see if

  • Spry Vert Menu: Weird top item display in DW design view

    Whenever I insert a vertical menu, the top Item always dispalys in Design View right justified (see attached image).  Really distracting. Displays fine once published.  Just bugging me?

  • Mac OS X Lion 10.7.5 802.1X drop issue

    Hi, i have the following problem, when I'm at my college with 802.1X Wi-Fi connection, my connections seems to be dropping every now and then (1 min, 2 min) it's so anoying, it keeps asking me to enter my credentials every time, connections doesn't d