Singleton node and non singleton practical scenario

Hi  Friends,
Iam totally confused with singleton and non singleton node implementation please explain practical implementation on singleton and nonsingle ton node . In which scenario  non single ton node is used.
Thanks in advance
Prasad

Hi,
Singleton Node:
A singleton node contains only one instace of the node at runtime. And that instace contains multiple elements at runtime.
By default if we create a node under ROOT context node, it will be allways singleton true.
Non singleton node:
A non singeton node contains more then one node instance at runtime. And each instance contains multiple elements at runtime.
It is not possible to create NonSingletonNodes directly under ROOT context node. We can create under any node which is under ROOT context node.
Note: In terms of datastorage at runtime we can say if node is table then each elment of node instance is a row of that table.
When is it requried to create non singleton nodes?
For example if you have list of SalesOrders and each and every oder is having list of items. Then we can create this node structure in two ways:
Orders (singleton true)
> Items (singleton true)
Here in this case at any point of time the there will be only one instance of Items node exist for currently selected element of Orders node. And that instance contains multiple elements nothing but items of that order.
Orders (singleton true)
> Items (singleton false)
Here in this case at any point of time all the instances of Items node exist for all the elements(not only for currently selected element) of Orders node. And those instances contains multiple elements nothing but items of those corresponding orders.
I hope it helps.
Regards,
Vijay K

Similar Messages

  • Singleton and non singleton in webdynpro java

    Hi All,
    where we use singleton and non singleton in webdynpro application.please send me with any example (scenario).
    Regards
    Anand

    Hello Anand,
    I think that your question is for u201CWeb Dynpro Javau201D forum..
    Please use the correct forum for your question.
    In general:: http://wiki.sdn.sap.com/wiki/display/WDJava/SingletonandNon-Singleton+Nodes
    There is example at : http://wiki.sdn.sap.com/wiki/display/WDJava/DynamicUIGeneration
    u201CWelcome to Web Dynpro Java! u201C  Wiki : http://wiki.sdn.sap.com/wiki/display/WDJava/WelcometoWebDynproJava%21
    Thank you and best regards, Natalia Khlopina

  • When a context node use non-singleton, how to invoke the supply funtion eve

    when a context node use non-singleton, how to invoke the supply funtion everytime the lead selection is changed ?

    Hi wei,
    <b>Non-singleton nodes:</b>
    Web Dynpro allows you to define non-singleton nodes. Each non-singleton node has one node instance for each node element of the parent collection at runtime. The advantage is that each instance can be accessed directly. When using non-singleton nodes, the nodes are only created when the node values are retrieved. This can save resources that otherwise would slow down the performance of the application.
    <b>Supply function:</b>
    The Web Dynpro tools also automatically enhance the corresponding controller class with a supply function including the user coding area contained in it
    Supply functions are implemented as methods of type
    <b>public void supplyChildNodeElements(SomeChildNode node,
                                        SomeParentNodeElement)</b>
    in a Web Dynpro controller (view controller or custom controller). Supply functions and context nodes have a 1..1 relationship, that is, supply functions are specific for individual context nodes. Under certain conditions, supply functions are called by pages in the Web Dynpro runtime environment.
    Hope this helps u,
    Regards,
    Nagarajan.

  • Recursive node and Non Recursive node

    Hi,
    What is the difference between Recursive node and Non Recursive node ?
    Thanks,
    Teja

    Hi Teja
    Recursive node
    If you wish to represent a recursive data structure within the context, a recursive node is the correct node to use. The simplest example of recursive data within a hierarchical structure is a file system. A dictionary can contain either files or subdirectories. This definition is then repeated for each subdirectory level down the hierarchy.
    Within the context, a recursive node is a special node that has only two properties: name and repeatedNode. As with any context node, a recursive node must itself name, but the repeatedNode property is where the recursion is defined. This property holds a reference to some parent node and indicates that, at runtime, the location of the recursive node will be occupied by a node of the type indicated in the repeatedNode property.
    You should think of a recursive node as a design time placeholder used to indicate a node will be created at this location at runtime, and will be of the type named in the repeatedNode property.
    The node name identified by repeatedNode must lie on the direct path back to the context root node.
    When a recursive node is created at runtime it always created as a non-singleton node. This is a hard-coded feature and cannot be changed.
    Non recursive node is opposite to recursive node
    Regards
    Ruturaj

  • Administration Node and non-default certificate

    Hello,
    We are running our administration server on one host, and we have multiple other hosts configured as administration nodes. We used our company CA to generate a server certificate for our administration server, and that appears to be working fine. We tried to do the same thing on our administration nodes, and something curious is happening.
    I used certutil -R to generate a CSR and private key. I then took the generated CSR, obtained a signed certificate from our company CA, then used certutil -A -t u,u,u to install it (and certutil -A -t CT,, to install the CA cert itself). Running certutil -L, I see that in addition to the default Admin-CA-Cert and Admin-Server-Cert our company CA cert and the newly signed cert show up. So far, so good.
    Next, I modified the server.xml to specify the server-cert-nickname as that assigned to my new cert.
    To put these changes into effect, I stop and start the admin server, but upon doing so, I see this message:
    warning: LCM0006: Lifecycle module [AdminLifecycleModule] threw ServerLifecycleException [com.sun.web.admin.exceptions.AdminException: ADMIN3668: Cannot start an unregistered node. Register with an administration server. ]
    OK, so I run wadm register-node to re-register the admin node (presumably it needs to tell the admin server about our new certificate) and then start the admin server again, and it starts. Problem is, the act of running wadm register-node has reset the server-cert-nickname back to the default (Admin-Server-Cert) and even more bizarre, has deleted both our local CA and my new certificate from the certificate & key database.
    How do I - or is it even possible to - run my admin nodes with certs signed by our company CA?
    Thanks,
    Bill

    Hi,
    Can u explain the problem elaborately
    Thanks,
    Raj_indts
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support"

  • Context Mapping for Non-Singleton Node

    Hi ,
    I have following context structure
    Node_A
    |     attr 1
    |________ Node_B
                                  attr2
                                  attr3
    Node_B is the child of Node_A.  NOde_B has attributes attr2 and attr3.
    Node_B is a Non SIngleton Node.
    Node_B is mapped to Node_View of the View Controller.
    Node_A had 2 elements. Initially Element 1 is the Lead selection Element for Node A. I get the reference for Node_B using the Lead Selection Path
    NodeA_element1 = Node_A->GET_ELEMENT( ). 
    Node_B = NodeA_element1->GET_CHILD_NODE( 'NODE_B' ).
    Node_B is filled with elements, lets say attr2 = 'Dallas', attr3 = 'Detroit'
    Node_View shows the values Dallas and Detrait since its mapped to Node_B
    Now the Lead selection of Node_A changes to 2.
    I again gett he reference for NOde_B usign the Lead Selection Path (index 2)
    NodeA_element2 = Node_A->GET_ELEMENT( ). 
    Node_B = NodeA_element2->GET_CHILD_NODE( 'NODE_B' ).
    Node_B is now filled with, lets say attr2 = 'Mexico', attr3 = 'Canada'
    Since element 2 is Lead selection for Node A, now, and NodeB is mapped to Node_View, I expect the contents of Node_View to be attr2 = 'Mexico', attr3 = 'Canada' since this is along the Lead Selection of Node_A
    But it stays attr2 = 'Dallas', attr3 = 'Detroit'
    So in a nut shell,  the Context Mapping of the Non Singleton Node  DOES NOT map the Lead selection Path when its parent  , changes in Lead Selection.
    Is this a BUG ?
    Thanks

    Hi Anand,
    There is no bug. See when you are saying
    "Node_B is now filled with, lets say attr2 = 'Mexico', attr3 = 'Canada' "
    I am just not sure how you have filled the data in node B. Because the way u populate node data that way only you can get the data. The way you want to get data you must populate data in this way:
    1. Get Node A instance let say in lv_node_A.
    2. Get Node A element instance (lead selection) in your case lets say in lv_elem_A.
    3. Now get node B instance by lv_elem_A->get_child_node( 'B' ) lets say in lv_node_B.
    4. Create element of lv_node_B and bind it to the node B and also populate the value of attributes.
    Repeat the steps as per your requirement. Also Singleton and Non singleton has nothing to do with this it is all about how the instances will be manged in the memory.
    Look at this sample code and will help you while populating data in nested nodes:
        DATA lo_nd_a TYPE REF TO if_wd_context_node.
        DATA lo_el_a TYPE REF TO if_wd_context_element.
        DATA lo_nd_b TYPE REF TO if_wd_context_node.
        DATA lo_el_b TYPE REF TO if_wd_context_element.
        DATA ls_a TYPE wd_this->element_a.
        DATA lv_test LIKE ls_a-test.
        data lv_btest type string.
      navigate from <CONTEXT> to <A> via lead selection
        lo_nd_a = wd_context->get_child_node( name = wd_this->wdctx_a ).
      @TODO handle not set lead selection
        IF lo_nd_a IS INITIAL.
        ENDIF.
        data count type c.
        data count_i type i value 1.
        do 2 times.
          lo_el_a = lo_nd_a->create_element( ).
          lo_el_a->set_attribute(
          EXPORTING
            name =  `TEST`
            value = count_i ).
          lo_nd_a->bind_element( new_item = lo_el_a
                                 SET_INITIAL_ELEMENTS = abap_false ).
          lo_nd_b = lo_el_a->get_child_node( 'B' ).
          lo_el_b = lo_nd_b->create_element( ).
          move count_i to count.
          concatenate count 'in node b' into lv_btest.
          lo_el_b->set_attribute(
          EXPORTING
            name =  `BTEST`
            value = lv_btest ).
          lo_nd_b->bind_element( new_item = lo_el_b
                                 SET_INITIAL_ELEMENTS = abap_false ).
        count_i = count_i + 1.
        enddo.
    This code will set value 1 and 2 in node A's test attribute. and on change of lead selection between 1 and 2 it will show value of attribute BTEST in node B as 1 in node B and 2 in node B...
    Regards,
    Neha

  • How to instantitate a non-singleton node

    I need to instantitate the non-singleton node which has the following properties
    Collection cardinallity of 0..n
    and
    Selection Cardinallity of 0..1
    But when I try to get this node using wdContext.nodeA().nodeB()
    where
    nodeA is singleton
    nodeB is non-singleton whose properties are given below
    I always get nodeB as null . it seems nodes are initialized only if set to singleton
    I need non-singleton node for using the TableRowGrouping element
    If any one can please help that will be great

    Hi Gaurav,
    You have not mentioned nodeA  properties.If it's cardinality is 1..x then no need to initialize A otherwise you must initialize A first then initialize nodeB.
    Try like this:
    //If  cardinality of A is not 1...1
    IPrivateTrstView.IAElement ele = wdContext.createAElement();
    //Set if there are any attributes
    ele.setXXX();
    wdContext.nodeA().addElement(ele);
    IPrivateTrstView.IBElement ele = wdContext.createBElement();
      ele.setXXX();
    wdContext.nodeB().addElement(ele);
    The singleton property refers the relationship between the node and its parent but not between the node its child as for as I know.
    Regards,
    Siva

  • Setting Node Attributes for a non singleton node

    HI,
    I want to know what is the correct way to set attributes for a non singleton node dynamically.
    I have node A which contains the non singleton node B.
    At runtime I want to change the attributes of node B dynamically. What is the correct way for this?
    When I try wdContext.nodeB().getNodeInfo I get a NullPointerException.
    For example this code works: wdContext.nodeA().getAElementAt(0).nodeB().getNodeInfo(). Here I get the node info.
    But when I set attributes for the second line, are there valid for all Elements in Node B?
    What is the correct way to set the attribut infos for non singleton Node B?
    Best regards,
    Peter

    Hi Peter
    The main rule here - do not touch node instances at all. Deal only with node metadata:
    IWDNodeInfo nodeBInfo = wdContext.getNodeInfo().getChild("node A").getChild("node B");
    nodeBInfo.getAttribute("xAttr");
    nodeBInfo.addAttribute(...);
    BR, Siarhei
    Edited by: Siarhei Pisarenka on Jan 13, 2010 12:55 PM

  • Can we call singleton node as a child node?

    Hi all, after reading the links i am not that much clear what i ahve understand is that non singleton node means parentnode? and singleton node means child node? but i want to know if i create two nodes emp and dept and emp node i will make as a singleton and dept will be normal then how the relationship

    malcolmmc wrote:
    BigDaddyLoveHandles wrote:
    Rather than building a better mouse trap, why not ditch the singleton? It's a bad design choice.The alternative tends to be having some global configuration block which gets propagated to just about every object on the system. You can hide it behind stuff like JNDI contexts etc. but these aren't really more "pure OOP" than singletons.Yah pays yer money and takes yer chances. I like the Spring approach. No JNDI there, and while I didn't bring up OOPurity, it seems purer to me. It's easy to get rid of a Singleton and replace it with either an implementing object or a test mock. Sw33t.

  • Difference between Snapshot scenario and non cumulative scenario

    Hi,
    Can any one please tell me the difference between snapshot scenario and non cumulative scenario in
    inventory management.
    Also please give example. I read the pdf " how to handle inventroy management scenarios", but can any one please give some easy to understand examples.
    full points guaranteed-

    hi,
    In Non-cummulative method your stock movements are stored in the cube (inflow and outflow of NC KF) and the Total stock is calculated during query execution. Hence if there are lot of movements in the stock for the period you want to report on, query will take long time to execute.
    In case of Snap shot scenario Stock movements are not loaded to cube. you use ODS to load the status of the stock and then from ODS you can load to Cube once in a month. So only summarized data will be availabe in Cube. Reporting will be fast.
    Check the below threads
    Inventory Management - SnapShot model
    snapshot scenario?
    SNAP SHOT Scenario in IM

  • Need some practical Scenarios to test Compliance Calibrator, FF and AE

    Hi Experts,
    I have installed Compliance Calibrator 5.2 / Access Enforcer and Firefighter on a test System. However i am looking for some practical scenarios / Examples to test the functionlity of these installations. If any of you is currently working on these technologies i appreciate if you c an provide 2 3 scenarios to test my installation and functionality .
    Thanks in advance.
    Your help is much apprecaited..
    SK

    Hi SK,
    Testing the functionality of CC
    1. I would recommend to create some test roles where in you plug in some conflicting tcodes
        which can pose a sure SoD Risk, lets say Create Vendor Invoice(FB01) and Make an
        Automatic Payment(F110).
    2. Now run the Risk Analysis by choosing the Default SAP GRC ruleset library and do a  
        Role level Analysis.Then Assign the Test Roles to Test Users and then do a User Level Analysis.
    3. You may have create some Custom Rule sets with appropriate naming of Conflicting functions
        like Creation of Purchase Order (P001), Approve Purchase Order(P002)
        in different Application Areas like Purchase 2 Pay(P2P), Order 2 Cash (O2D) and try to do
        the same as above two steps.
    4. Test the functionality of Risk Remediation by removing the conflicting tcodes and do the
        Risk Analysis.Your previous Risk Roles must not appear
    5. Test the functionality of Risk Mitigation by placing a mitigation Control on the Conflicting tcodes
       and do the Risk Analysis.Your previous Risk Roles must not appear if you have properly
        configured your CC
    Testing the functionality of FF
    1. I would say create a few Firefighter IDs in different functional areas like FI, SD, MM, and then
       create some test users for Firefighter Owners, Controllers and Firefighters who can use
       the functionality of FF.
    2. Create some FF roles which have exceptional access in those functional areas
        encompassing transaction codes and authorization objects that are not used in normal incidents.
    3. Assign each of the FF roles to the respective FF IDs and then to the test Firefighters.
    4. Pull the log reports in FF and see if it gives exact details of the FF usage.
    5. You may have take some assistance of the Functional team members to do the testing.
    Testing the functionality of AE
    1. Create a workflow scenario of hiring a new user.
    2. Create the request under a test requestor. Assign the request to some test approver
    3. Also Assign some roles and test the functionality.
    Hope this helps for a good start
    Regards,
    Kiran Kandepalli.

  • Thermocouple Node Part Numbers - Difference between programmable and non-programmable nodes?

    Hello!
    We just received our starter kit and nodes.  When looking at the part number on the back of the programmable thermocouple node (with the starter kit), it is listed as "197085D-01L".  There is no number that matches the Part Number listed on the website, such as 780998-02.  The non-programmable thermocouple nodes also have this same "197085D-01L" part number on the back.  Is there another way to determine which of these nodes have LabVIEW capability?
    Thanks!
    Garrett
    Solved!
    Go to Solution.

    Hello,
    There is a $300 difference in the list price for the programmable and non-programmable nodes which is the ballpark figure for the license. I have included the links below for the product pages below, but our Sales team would be able to assist you with the actual price. Purchasing and sales contact information are also listed on the product pages as well. 
    NI WSN-3212 4 Ch, 24-Bit, Programmable Thermocouple Input Node
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/207089
    NI WSN-3212 4 Ch, 24-Bit, Thermocouple Input Node (Non-programmable)
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/206922
    Best,
    National Instruments
    Applications Engineer

  • Unicode and Non-Unicode Instances in one Transport Landscape

    We have a 4.7 landscape that includes a shared global development system supporting two regional landscapes.  The shared global development system is used for all ABAP/Workbench activity and for global customization used by both regional production systems.  The two regional landscapes include primarily three instances - Regional Configuration, Quality Assurance, and Production.  The transport landscape includes all systems with transport routes for global and regional.
    A conversion to unicode is also being planned for the global development and one regional landscape.  It is possible that we will not convert the other regional landscape due to pending discussions on consolidation.  This means one of the regional landscapes will be receiving global transports from a unicode-based system.  
    All information I've located implies no actual technical constraints.  Make sure you have the right R3trans versions, don't use non-Latin_1 languages, etc.  Basic caveats for a heterogenous environment ....
    Is anyone currently supporting a complete, productive landscape that includes unicode and non-unicode systems?   If so, any issues or problems encountered with transports across the systems?  (insignificant or significant)
    Information on actual experiences will be greatly appreciated ....
    Many thanks in advance.

    Hi Laura,
    Although i do not have the live / practical experience, but this is what i can share.
    I have been working on a Non-Unicode to Unicode conversion project. While we were in the discussion phase there was one such possibility of a scenario that part of the landscapes would remain non-unicode. So based on the research i did by reading and directly interacting with some excellent SPA consultants, i came to know there are absolutely no issues in transporting ABAP programs from a Unicode system to non-unicode system. In a Unicode system the ABAP code has already been checked and rectified for higher syntax checks and these are downward compatible with the ABAP code on lower ABAP versions and non-unicode systems. Hence i beleive there should not be any issues, however as i mentioned this is not from practical experience.
    Thanks.
    Chetan

  • Static variable and non-static

    I have a quick question. The following syntax compiles.
    private String t = key;
    private static String key = "key";
    But this doesn't compile.
    private String t = key;
    private String key = "key";
    Can anybody explain how it is treated in java compiler?
    Thanks.

    jverd wrote:
    doremifasollatido wrote:
    I understand that completely. I didn't say that the OP's version with static didn't work. I was just giving an alternative to show that you don't need static, if you change the order that the instance variables are declared.My problem with the underlined is that, while technically true, I can see where a newbie would take it as "oh, so that's how I can get rid of static," and focus only on how to satisfy the compiler, rather than on learning a) when it's appropriate to make something static or not from a design perspective, and b) what the implications of that decision are, for both static and non.
    I have just a wee bit of a prejudice against the "what do I type to make the error messages go away" approach. :-)That sounds good to me. We're currently trying to fix an issue caused by the fact that one class has most of its variables as static, when they should really be instance variables. There should only be one active instance of this class at a time, but the values of the static variables stick around when you call "new ThisClass()". So, old data interferes with new data, and various errors happen. The class has many static methods to access the static variables, but it should have been more of a Singleton--an actual object with non-static variables. The active instance of the Singleton would need to be replaced at logout/login (as opposed to shutdown completely and restart the JVM), but then at least when the new instance were created, then all of the variables would be initialized to empty--the old instance would disappear. The solution at the moment (solution by others--I don't agree) is to clear each static Vector and then set the reference to null (setting to null would be enough to drop the old data, but certain people don't get that...). This is fragile because many variables were missed in this "cleanup" process, and it will be easy to forget to "cleanup" new variables in the future. This class has been misdesigned for years (much longer than I've been here). The calls to static methods permeate the application, so it isn't easy to fix it quickly. There are several of these misdesigned classes in our application--a mix of static and non-static, when nothing or almost nothing should be static.

  • SSO for SAP and Non-SAP applications without Enterprise Portal

    Dear all,
    Is it possible to implement SSO for both SAP and non-SAP applications without involvement of EP at all?
    I have gone through this link.
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/e5/4344b6d24a05408ca4faa94554e851/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/e5/4344b6d24a05408ca4faa94554e851/frameset.htm</a>
    But I still i am not able to get the precise answer on how to enable SSO for both  SAP and non-SAP applications without EP.
    We have decided not to implement EP in first phase of SAP implementation. But we need to enable SSO for other SAP and Non-SAP applications.
    A detailed description on how to deal this kind of scenarios will be helpful.
    Thanks.

    A client of our's uses <b>SAP Enterprise Portal</b>, and is using the SAP SSO, which is implemented with tickets, and requires the use of SAPSECULIB.  My company provides an application for this client, and our application in hosted in our data center for the client, as a Software as a Service application, obviously across the internet.  Our client, which owns a SAP license, has asked that we support the SAP SSO as a non-SAP SSO application.  The client user's SSO ticket will be created from SAP EP, and then passed across the internet to our application, and we are to use that SSO ticket as an authentication ticket to our application.  I beleive I know how to do this work technically, having reviewed the SAP document named: "Dynamic Library for Verifying SSO Tickets in Third-Party Software"   Specification   Version 2.00  December 2005.
    My question is, does my company have the right to use the SAPSECULIB?  Where is the official download and <b>license</b> download, that indicates we can download this library, and use it to support a SAP customer?  We do not own a SAP license.  Thank you for your help.  I have searched many places in SAP support.<b></b>

Maybe you are looking for

  • Unable to Reboot After Latest Apple Updates (SA-2011-06-23-1 and Security Update 2011-004)

    Hi All, After applying today's updates (06/23/2011) in APPLE-SA-2011-06-23-1 Mac OS X v10.6.8 and Security Update 2011-004, my MacBook will no longer boot. Prior to updating, the MacBook workked perfectly (except for the occasional error entry in the

  • Missing app after download

    Hi Just synced in itunes and lost pocket universe / kindal that I had downloaded on my iPhone. Kindle is ok, its a freebie, but id rather not have to pay for pocket universe again if possible Can I stop apps installed on my iphone from being deleted

  • Alerts via email

    Hi Experts. Our client is running SBO 2007A SP00 PL47. They are using Approvals for Purchase Orders. Those users who should be approving the Purchase Orders are not typically logged in to SBO and only log in to authorise the Purchase Orders. In order

  • Scheduled process flow fails, run directly works ok

    I've got a hard time with a process flow tthat needs to be scheduled. When I start the process flow with wb_rt_api_exec it rus ok, when I schedule the job calling wb_rt_api_exec in the Oracle Job scheduler it fails the moment it starts. The error mes

  • HR Master Data Use for other SAP Modules?

    Which part of SAP HR Master Data can be used by various SAP modules including PP, SD, MM, PS, FI, etc? Expecting expert input!