Inner Node Cardinality problem?

hi,
i am having 3 nodes in hierarchy . cardinality
CLAIM node1 1..1
CLAIMITEM node2 0...N
EXPENSETYPE node3 - comes under node 2 0...N
key
value
CLAIMID comes under node 2
AMOUNT comes under node 2
DESCRIPTION comes under node 2
node2 i have bound to table on view .right. now node expensetype node is the first column of table having dropdown list of values..that node i am filling up through supply function..
now what my prob. is when i am going to create element for CLAIMITEM in INIT method of comp. controller it doesnt initiaze NODE EXPENSETYPE....it gives me error of null object reference.so i think there is a prb. with cardinality or singlon property..
i give u the code:
method WDDOINIT .
   DATA:
    NODE_CLAIM                          TYPE REF TO IF_WD_CONTEXT_NODE,
    NODE_CLAIMITEM                   TYPE REF TO IF_WD_CONTEXT_NODE,
    ELEM_CLAIMITEM                    TYPE REF TO IF_WD_CONTEXT_ELEMENT,
    STRU_CLAIMITEM                    TYPE IF_COMPONENTCONTROLLER=>ELEMENT_CLAIMITEM .
navigate from <CONTEXT> to <CLAIM> via lead selection
  NODE_CLAIM = WD_CONTEXT->GET_CHILD_NODE( NAME = IF_COMPONENTCONTROLLER=>WDCTX_CLAIM ).
navigate from <CLAIM> to <CLAIMITEM> via lead selection
  NODE_CLAIMITEM = NODE_CLAIM->GET_CHILD_NODE( NAME = IF_COMPONENTCONTROLLER=>WDCTX_CLAIMITEM ).
  DATA:
    NODE_EXPENSETYPE                    TYPE REF TO IF_WD_CONTEXT_NODE,
    ELEM_EXPENSETYPE                    TYPE REF TO IF_WD_CONTEXT_ELEMENT,
    STRU_EXPENSETYPE     TYPE IF_COMPONENTCONTROLLER=>ELEMENT_EXPENSETYPE ,
    ITAB_EXPENSETYPE      TYPE IF_COMPONENTCONTROLLER=>ELEMENTS_EXPENSETYPE.
navigate from <CLAIMITEM> to <EXPENSETYPE> via lead selection
  NODE_EXPENSETYPE = NODE_CLAIMITEM->GET_CHILD_NODE( NAME = IF_COMPONENTCONTROLLER=>WDCTX_EXPENSETYPE ).
     DO 3 TIMES.
          CALL METHOD NODE_CLAIMITEM->CREATE_ELEMENT
           EXPORTING
             STATIC_ATTRIBUTE_VALUES =
            RECEIVING
              ELEMENT                 = ELEM_CLAIMITEM.
          CALL METHOD ELEM_CLAIMITEM->GET_STATIC_ATTRIBUTES
            IMPORTING
              STATIC_ATTRIBUTES = STRU_CLAIMITEM.
         CALL METHOD NODE_CLAIMITEM->BIND_STRUCTURE
           EXPORTING
             NEW_ITEM             = STRU_CLAIMITEM
             SET_INITIAL_ELEMENTS = ABAP_FALSE
             INDEX                = SY-INDEX .
    ENDDO.
ENDMETHOD.
it gives error when i initialize NODE_EXPENSETYPE.
Thanks,
Saurin Shah

hi chaitali,
Node CLAIM
                 Cardinality 0...1
                 Initialization Lead Selection TRUE (Checkbox Marked)
                 Singleton                           TRUE (Checkbox Marked)
Node CLAIMITEM
                 Cardinality 0...N
                 Initialization Lead Selection TRUE (Checkbox Marked)
                 Singleton                           TRUE (Checkbox Marked)
Node EXPENSETYPE
                 Cardinality 0...N
                 Initialization Lead Selection TRUE (Checkbox Marked)
                 Singleton                           FALSE (Checkbox UnMarked)
Code  in WDDOINIT Method :
DATA:
    NODE_CLAIM                             TYPE REF TO IF_WD_CONTEXT_NODE,
    NODE_CLAIMITEM                      TYPE REF TO IF_WD_CONTEXT_NODE,
    ELEM_CLAIMITEM                      TYPE REF TO IF_WD_CONTEXT_ELEMENT,
    STRU_CLAIMITEM                      TYPE IF_COMPONENTCONTROLLER=>ELEMENT_CLAIMITEM .
navigate from <CONTEXT> to <CLAIM> via lead selection
  NODE_CLAIM = WD_CONTEXT->GET_CHILD_NODE( NAME = IF_COMPONENTCONTROLLER=>WDCTX_CLAIM ).
navigate from <CLAIM> to <CLAIMITEM> via lead selection
  NODE_CLAIMITEM = NODE_CLAIM->GET_CHILD_NODE( NAME = IF_COMPONENTCONTROLLER=>WDCTX_CLAIMITEM ).
  DATA:
    NODE_EXPENSETYPE                    TYPE REF TO IF_WD_CONTEXT_NODE,
    ELEM_EXPENSETYPE                    TYPE REF TO IF_WD_CONTEXT_ELEMENT,
    STRU_EXPENSETYPE                    TYPE IF_COMPONENTCONTROLLER=>ELEMENT_EXPENSETYPE ,
    ITAB_EXPENSETYPE                    TYPE IF_COMPONENTCONTROLLER=>ELEMENTS_EXPENSETYPE .
     DO 3 TIMES.
          CALL METHOD NODE_CLAIMITEM->CREATE_ELEMENT
           EXPORTING
             STATIC_ATTRIBUTE_VALUES =
            RECEIVING
              ELEMENT                 = ELEM_CLAIMITEM.
          CALL METHOD ELEM_CLAIMITEM->GET_STATIC_ATTRIBUTES
            IMPORTING
              STATIC_ATTRIBUTES = STRU_CLAIMITEM.
         CALL METHOD NODE_CLAIMITEM->BIND_STRUCTURE
           EXPORTING
             NEW_ITEM             = STRU_CLAIMITEM
             SET_INITIAL_ELEMENTS = ABAP_FALSE
             INDEX                = SY-INDEX
          RECEIVING
            ELEMENT              =
                CALL METHOD NODE_EXPENSETYPE->BIND_STRUCTURE
                  EXPORTING
                    NEW_ITEM             = STRU_EXPENSETYPE
                    SET_INITIAL_ELEMENTS = ABAP_FALSE.
navigate from <CLAIMITEM> to <EXPENSETYPE> via lead selection
  NODE_EXPENSETYPE = NODE_CLAIMITEM->GET_CHILD_NODE( NAME = IF_COMPONENTCONTROLLER=>WDCTX_EXPENSETYPE ).
CALL METHOD NODE_EXPENSETYPE->CREATE_ELEMENT
                  EXPORTING
                    STATIC_ATTRIBUTE_VALUES =
                   RECEIVING
                     ELEMENT                 =  ELEM_EXPENSETYPE.
               get all declared attributes
                 ELEM_EXPENSETYPE->GET_STATIC_ATTRIBUTES(
                   IMPORTING
                     STATIC_ATTRIBUTES = STRU_EXPENSETYPE ).
                 STRU_EXPENSETYPE-key = '01'.
                 STRU_EXPENSETYPE-value = 'Convenyance'.
                 APPEND STRU_EXPENSETYPE TO ITAB_EXPENSETYPE.
                 STRU_EXPENSETYPE-key = '02'.
                 STRU_EXPENSETYPE-value = 'Meals/Snacks'.
                 APPEND STRU_EXPENSETYPE TO ITAB_EXPENSETYPE.
                 CALL METHOD NODE_EXPENSETYPE->BIND_TABLE
                   EXPORTING
                     NEW_ITEMS            = ITAB_EXPENSETYPE
                    SET_INITIAL_ELEMENTS = ABAP_TRUE
                    INDEX                =
              clear ITAB_EXPENSETYPE. refresh ITAB_EXPENSETYPE.
      ENDDO.
Thanks,
Saurin Shah

Similar Messages

  • Drop down cardinality problem

    Hi,
         I have 2 views 'BUSINESS' and 'PROPERTY' ...Both the views contains one node each with cardinality 0:n, and both view contains drop down by key Ui element... coding i have done in 'wddoinit' method. the drop down coding is working fine for view 'property', but for view 'BUSINESS', its giving assert condition violated.....
    plz help me to resolve this problem.... i need drop down for cardinality 0:n... is it possible..

    Hi ,
         Am using different nodes in both the views....The nodes cardinality is 0:n.... My coding is,it is written in wddoinit.
    DATA:
        NODE_BUSINESS                       TYPE REF TO IF_WD_CONTEXT_NODE,
        ELEM_BUSINESS                       TYPE REF TO IF_WD_CONTEXT_ELEMENT,
        STRU_BUSINESS                       TYPE IF_MOD_BUSINESS=>ELEMENT_BUSINESS ,
        ITEM_CITYID                         LIKE STRU_BUSINESS-CITYID.
    navigate from <CONTEXT> to <BUSINESS> via lead selection
      NODE_BUSINESS = WD_CONTEXT->GET_CHILD_NODE( NAME = `BUSINESS` ).
        DATA LCO TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
        CALL METHOD NODE_BUSINESS->GET_NODE_INFO
          RECEIVING
            NODE_INFO = LCO.
          DATA L1 TYPE TABLE OF WDR_CONTEXT_ATTR_VALUE.
          DATA W1 TYPE WDR_CONTEXT_ATTR_VALUE.
      DATA L2 TYPE STANDARD TABLE OF ZPRM_TBL_CITY.
      DATA W2 TYPE ZPRM_TBL_CITY.
      SELECT * FROM ZPRM_TBL_CITY INTO TABLE L2.
        SORT L2 BY CITYID.
        DELETE ADJACENT DUPLICATES FROM L2 COMPARING CITYID.
        LOOP AT L2 INTO W2.
          W1-TEXT = W2-CITY_NAM.
          W1-VALUE = W2-CITYID.
          APPEND W1 TO L1.
          ENDLOOP.
        CALL METHOD LCO->SET_ATTRIBUTE_VALUE_SET
      EXPORTING
        NAME      = 'CITYID'
        VALUE_SET =  L1.

  • IMac (March 2009) - Invalid Node Structure problem

    Hi All
    I was using my iMac as normal yesterday, when suddenly the system ground to a halt (something I never seen since using OS X). As I had work to do, after about an hour, I restarted, expecting it to be an app misbehaving or something straight forward, but on restart the same thing happened almost straight away.
    So, I restarted again, only for the iMac to get stuck on the blue screen which follows the grey 'cog' screen. After looking through these discussions, and some other Mac forums, I booted from the installer disk, tried to run Disk Utility, which found issues and couldn't repair the disk.
    I then tried Safe-User mode and fsck, which reported the aforementioned Invalid Node Structure problem. After checking a few more forums, I thought I would try to Erase the disk and reinstall Mac OS. I restored from my Time Machine backup, and finally got it to start, but the system moved at a snail's pace, and wouldn't open any apps or files.
    I've tried again with fsck, and also fsck_hfs -r /dev/disk0s2 but all I get is the same error message:
    disk0s2: I/O error.
    Invalid Node Structure
    (4, 38403)
    ** Volume check failed.
    /dev/rdisk0s2 (hfs) EXITED WITH SIGNAL 8
    So, does anyone know if there is anything I can do to save the iMac? Or does it need a new HD? It is my primary work computer, so I really need to get it back, and after buying it in the UK, am now in France for 6 weeks, so it's difficult for me to take it to an Apple specialist.
    Any help would be greatly appreciated, thanks in advance,
    Daniel

    As the last user stated, Disk Warrior maybe able to correct it, however if you search the net, you will see there are more than one user with this problem. I had the same problem, however, my machine is out of warranty, It started like you are saying, I RAN disk warrior which corrected the problem long enough to boot the system. In a matter of 10 minutes or so, the system started pausing (apps hung, but in a matter of seconds recovered). I was checking the disk with fsck_hfs and fsck while booted from a USB drive with a maintenance install of 10.5.6. After running fsck the 5th time with different options suggested from the internet, I rebooted with my disk warrior DVD only to find the drive NOT mounted, Drive utility see's it (even can attempt to run disk repair, but it locks up the system when trying this). Disk Warrior doesn't even see the disk to run a directory repair, although in the "check s.m.a.r.t status it sees it as a sata device, and SAYS ITS NORMAL).
    Since my iMac was out of warranty, I followed the online instructions to replace the hard drive (not too difficult) and everything is fine now.
    The old drive still wont mount, but another utility I bought (data rescue II) has been able to quick scan it and access all the data, even though it wont clear a fsck fsck_hfs or disk warrior, anyways, get it back while you can, IT IS THE hard drive itself, and lots of other iMac users online with the same issue (can you say WHY is my iMac SOOO HOT on the apple in the back (right where the drive is and not sufficient cooling in my opinion, but hey, some people might want to lay their computers face down and fry eggs on the it or something... ))
    -SD

  • Do I use same oracle account on 2 cluster nodes cause problem?

    Do I use same oracle account on 2 cluster nodes cause problem?
    If I use same oracle account on 2 cluster nodes running 2 database, when failover happens, 2 database will be running on one node, does 2 oracle account make SHM ... memory conflict?
    or do I have to use oracle01 account on node1, oracle02 account on node2? Can not use same name account?
    Thanks.

    I'm not 100% certain I understood the question, so I'll rephrase them and answer them.
    Q. If I have the same Oracle account on each cluster node, e.g. uid=100 (oracle) gid=100 (oinstall), groups dba=200, can I run two databases, one on each cluster node without problems?
    A. Yes. Having multiple DBs on one node is not a problem and doesn't cause shared memory problems. Obviously each database needs a different database name and thus different SID.
    Q. Can I have two different Oracle accounts on each cluster node e.g. uid=100 (oraclea) gid=100 (oinstall), groups dba=200 and e.g. uid=300 (oracleb) gid=100 (oinstall), groups dba=200, and run two databases, one for each Oracle user?
    A. Yes. The different Oracle user names would need to be associated with different Oracle installations, i.e. Oracle HOMEs. So you might have /oracle/oracle/product/10.2.0/db_1 (oraclea) and /oracle/oracle/product/11.0.1.0/db_1 (oracleb). The ORACLE_HOME is then used to determine the Oracle user name by checking the user of the Oracle binary in the ${ORACLE_HOME}/bin directory.
    Tim
    ---

  • Code to split biztalk xml inner node message in to many

    Hi,
    I want to split inner node message into many. Actually my xml message look like bellow
    <MSg>
    <Header>
    <InterfaceName></InterfaceName>
    </Header>
    <Detail>
    <detail1>1</detail1>
    <detail2>2</detail2>
    <detail3>3</detail3>
    <detail4>4</detail4>
    </Detail>
    </MSg>
    Above message need to be splitted to bellow
    <MSg>
    <Header>
    <InterfaceName></InterfaceName>
    </Header>
    <Detail>
    <detail1>1</detail1>
    <detail2>2</detail2>
    </Detail>
    </MSg>
    <MSg>
    <Header>
    <InterfaceName></InterfaceName>
    </Header>
    <Detail>
    <detail3>3</detail3>
    <detail4>4</detail4>
    </Detail>
    </MSg>
    <MSg>
    Can anyone help me to give the disassemble code to do it 

    Hi,
    You can write your own Custom Disassemble Pipeline Component
    which will break a message into batch of multiple messages. Batch size can be configured at pipeline design time by Implement members of IPersistPropertyBag interface.
    The Scenario provided in the below link is exactly the same as your requirement. You just need to do few tweaks to the
    code.
    http://blogs.msdn.com/b/brajens/archive/2006/12/03/how-to-develop-biztalk-custom-pipeline-components-part2.aspx
    Rachit
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Can i see the inner nodes in main window(smart forms)

    I am creating 2 nodes (let us say text nodes) in main window or secondary window whatever it is.
    Now what I want is to see those 2 node on form painter. At present I am unable to see those. Is there any way to see the inner nodes in windows.

    Hi,
    you cannot see them in form painter, it is not possible .but you can include what ever you want by switch off the form painter and add the nodes.
    Regards
    vijay

  • Cardinality Problem?

    Hi all,
    I am using Model nodes for getting data and sending data back to BAPI. But if i perform search, i get results and once i come back and perform another search its showing previous results. I am invalidating Context and eventhen it shows previous results. i read in a book i need to create an element. As it is a model node i can't create. Can any one solove my problem. ?
    In Controller:
    wdDoInit()
    __Arch__Arm_Project_Search_Input search = new __Arch__Arm_Project_Search_Input();
         wdContext.node__Arch__Arm_Project_Search_Input().bind(search);     
    DoSearch()
    try
                 wdContext.current__Arch__Arm_Project_Search_InputElement().modelObject().execute();
                 wdContext.nodeOutput().invalidate();
            }catch(Exception ex)
                 wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(ex.toString());
                 ex.printStackTrace();
    in View:
    wdContext.node__Arch__Arm_Project_Search_InputElement().invalidate();
    I can not understand where i am doing mistake!
    Can any one tell me is there any issue cardinality causes Context clearing problem? if yes give some suggistions.
    Thanks
    Ravi Golla

    Hi,
    In CustomController
    wdDoInit()
    __Arch__Arm_Project_Search_Input search = new __Arch__Arm_Project_Search_Input();
         wdContext.node__Arch__Arm_Project_Search_Input().bind(search);
    public void DoSearch( )
        //@@begin DoSearch()
         try
                 wdContext.current__Arch__Arm_Project_Search_InputElement().modelObject().execute();
                 wdContext.nodeOutput().invalidate();
            }catch(Exception ex)
                 wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(ex.toString());
                 ex.printStackTrace();
        //@@end
    In View
    wdDoInit()
    wdThis.wdGetArchCompController().DoSearch();
    Please send me code as soon as possible. Do you undestand my problem?
    My problem is getting previous results when i am running search second time.
    Thanks and Regards
    Ravi Golla

  • JTree multiple nodes selection problem !

    I can not make my JTree to be in multiple node selection mode.
    I have custom tree model and tree node class, the tree model class
    implements javax.swing.tree.TreeModel, and the tree node is an ordinary
    Java object.
    In this setting, my JTree is always in single selection mode.
    I have tried set the selection model after the JTree has initialized, and
    it didn't work.
    What I missed in TreeModel implementation ? Or should my tree node class
    also implements javax.swing.tree.TreeNode ?
    Don't tell me just call
    xxtree.getSelectionModel().setSelectionMode(javax.swing.tree.TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
    It didn't work.

    Just in case anyone wants to know, I did find the magic number of files, and what the problem is. I talked with tech suppot at Adobe, and they know the problem exists, but won't fix it. I did put in a request in the "Request a Feature" form. Read on:
    The magic number is 40 Canon 1Ds Mark III Raw files, and clicking on three or more keywords. The key to not having the numbers of keywords counted incorrectly in the filter pane is to click on the keywords as fast as you can before it starts to write to the metadata. If you click on each keyword one at a time, and wait about a second or more between selecting the keywords, then the counts in the filter panel for the number of keywords is not correct in relation to the number of files that you have chosen to apply keywords to. The cure for this is to click as many keywords as possible as fast as you can before the software starts incorporating the keywords into the metadata.
    I would suggest to Adobe, that a nice feature would be that one could click on as many keywords as one would want, to as many files one would want, and then have a button or icon that would enable one to then apply all the keywords at once, instead of applying them as you click them as it is now. I also would love it if Adobe fixed it now instead of waiting to fix it in the version of CS5. Someone on Adobe's support line told me that Adobe would rather wait to put this into the CS5 version than fix it now. I don't think that is right, but heck, I am only one guy who depends on this software to provide images keyworded to my clients in a timely manner. I would never run my business like this Adobe. If there is a problem, and there is, please fix it now, or give me some of my money back since your product has a design flaw that is having a negative impact in my ability to to my job and run my business.
    Thanks!
    Daniel Root
    Portland, OR

  • Content node name problem during creation on portal 9.2 cm filesystem repo

    Hi all,
    We are developing a portal site using weblogic portal server 9.2.
    We are using the portal built-in content management system of the portal admin app. And We use the filesystem repository (with library service disabled) to store our content data by following the setup on documentatation.
    We use the create_db.cmd script to create the cms tables in a oracle database. The input contents' binary files and metadata are successfully stored in the filesystem directory and database correspondingly.
    However, we encountered some bugs/unexpected behaviour on creating/uploading binary data when using the content creation form.
    The problem is that when we try to create a content with one (required and primary) binary property, the node name of the new content does not always follow the name input by the user. The content node name will changed according to the uploaded file or the binary property name defined in content type, which are unexpected behaviour. In fact, we expect the node name stay as the same (with extension padded) of what user input on creating it and the property's filename should use this name.
    When we use the WYSIWYG editor to create the document of the binary property, after saving the document, the filename of this binary property automatically changed to the content type's property name, after clicking save button on the content, the node name of the content changed to the content type's property name too!
    When we upload file for this binary property, the property 's filename changed to the uploaded file's filename, and changing the node name of that content too!
    We would like to know what would cause this kind of misbehaviour/bug,
    could it be caused by misconfiguration on server? the filesystem repository? the database scheme?
    Any helps or suggestions on it would be greatly appreciated.
    Best Regards,
    Keaton

    Thanks for the reply jalpesh, you answered the filename on file upload method.
    But what about the filename changes due to create document (WYSIWYG editor) method. The content filename changed to the property-name.ext about saving the content, which is quite a strange behaviour. As the user will not be able to add the same type of content on current directory cause the content filename follow the property-name.ext and cause same filename conflicts when saving.
    We are using the weblogic portal server 9.2 MP 2 with oracle database (bea type 4 connection driver).
    Any advices or suggestions?
    Regards,
    Keaton

  • RAC node startup problem

    Hi,
    Hi We have a 2 node RAC setup. Its been working fine. But After an improper machine shutdown,Second node in the RAC is not starting up. Primary node is coming up fine.
    In the alertlog of the second node...it gives the message
    "lmon registered with NM - instance id 2 (internal mem no 1)"
    After the above message it is not progressing.
    In the LMON trace file following entries lines are written.
    *** SESSION ID:(3.1) 2006-10-17 16:51:25.966
    GES IPC: Receivers 3 Senders 3
    GES IPC: Buffers Receive 1000 Send (i:1430 b:1430) Reserve 1000
    GES IPC: Msg Size Regular 396 Batch 2048
    Batch msg size = 2048
    Batching factor: enqueue replay 48, ack 53
    Batching factor: cache replay 34 size per lock 56
    kjxggin: receive buffer size = 32768
    kjxgmin: SKGXN ver (2 1 Oracle 9i Reference CM)
    *** 2006-10-17 16:51:29.512
    kjxgmrcfg: Reconfiguration started, reason 1
    kjxgmcs: Setting state to 0 0.
    *** 2006-10-17 16:51:29.527
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjfcpiora: publish my weight 19490
    *** 2006-10-17 16:56:38.362
    kjxgfipccb: msg 0x0xbc063dc, mbo 0x0xbc063d8, type 24, ack 0, ref 0, stat 3
    kjxgfipccb: Send timed out, stat 3 inst 0, type 24, tkt (0,0)
    Submitting asynchronized dump request [2]
    gsdctl is running fine.
    oracm has also come up without any problems.
    cluster_database=true in both the instances.
    Can any body please let me know what can be the problem.
    Thanks in advance.
    Regards,
    Aditya.

    If you have access to metalink - 276434.1 is the document id you need to follow.
    syntax to change vip is:
    srvctl modify nodeapps -n <NODENAME> -A <NEW_VIP_IP_OR_NAME>/<SUBNET_IP>/<INTERFACE_NAME>

  • Formula node parenthesis problems

    Hi Y'all,
       I'm going cross-eyed trying to figure out what is wrong with the equation that I'm trying to use in a formula node. I've attached both the VI (version LabVIEW 2009) and the error msg. Unfortunately there are a couple more of these, but maybe if I get the problem with this one pointed out to me ...
    Thanks!
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion
    Solved!
    Go to Solution.
    Attachments:
    Calculate Discharge coeff.vi ‏7 KB

    Ha ha ha, thank goodness for Mac's. When I went back and replaced all the "-" with "-" it fixed the problem. The problem was that I had copied/pasted from a pdf document, and what was displayed in the formula node wasn't what it was seeing! So much for WYSIWYG!
    What a PAIN! It didn't say "What the heck is this weird character", told me that I alternately was missing a right hand parenthesis, or a semi-colon.
    Thanks,
    Message Edited by LV_Pro on 10-21-2009 12:39 PM
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Formula Node or problem

    Hi,
    I'm having a problem using the formula node.
    The output variable is always 1, but I notice that if the code was:
    if(N != 1)
    L = 1;
    else
    L = 0;
    The program work ok.
    Thanks,
    Sílvia
    Attachments:
    1.png ‏5 KB
    1.png ‏5 KB

    Your screen shot shows if(N!=1||N!=2).  That is if N is not equal to 1 OR N is not equal to 2.  Well, since N can never be equal to 1 and 2 at the same time, of course the statemenet always evaluates to True.
    If N=0  True OR True = True
    If N=1  False OR True = True
    If N=2  True OR False = True
    If N=3  True OR True = True

  • Dynamic node Creation Problem

    Hi all,
    I am trying to create a node through Java code bellow is the code
    IWDNodeInfo graph = wdContext.nodeGraph().getNodeInfo();
    for(int i=0;i<10;i++)
         int nodeNumber = i+4;
         IWDNodeInfo seriseNode = graph.addChild("Serise"+nodeNumber,null,true,false,false,false,false,false,null,null,null);
         seriseNode.addAttribute("S"+nodeNumber+"_size","com.sap.dictionary.double");
         seriseNode.addAttribute("S"+nodeNumber+"_xVal","com.sap.dictionary.double");
         seriseNode.addAttribute("S"+nodeNumber+"_yVal","com.sap.dictionary.double");
         //seriseNode.addAttribute("S"+nodeNumber+"_tooltip","com.sap.dictionary.string");
         IWDNode node = wdContext.nodeGraph().getChildNode("Serise"+nodeNumber,IWDNode.NO_SELECTION);
         IWDNodeElement nodeElem = node.createElement();
         nodeElem.setAttributeValue("S"+nodeNumber+"_xVal",new Double(0));
         nodeElem.setAttributeValue("S"+nodeNumber+"_yVal",new Double(0));
         nodeElem.setAttributeValue("S"+nodeNumber+"_size",new Double(0));
         node.addElement(nodeElem);
    IWDNode node = wdContext.nodeGraph().getChildNode("Serise4",IWDNode.NO_SELECTION);
    node.getCurrentElement().getAttributeAsText("S4_size");
    now it is giving me null pointer exception at last line any idea why it coming.
    Thanks

    Hi,
    This problem is solved but now there is another problem,
    I am creating a Node and attributes at runtime and want to bind to a business graphics UI element bellow is the code for that
    IWDPoint se_point = (IWDPoint) view.createElement(IWDPoint.class,"Series"+seriseNumber+"_Point");
    se.setPoint(se_point);
    se.getPoint().bindValueSource("Graph.Serise"+seriseNumber);
    se.setLabel(supp.getSupplier_Name());
    IWDNumericValue numXVal = (IWDNumericValue) view.createElement(IWDNumericValue.class,"S_"+seriseNumber+"numXVal");
    numXVal.bindValue("Graph.Series"+seriseNumber+".S"+seriseNumber+"_xVal");
    numXVal.setType(WDValueTypeEnumeration.X);
    numXVal.setValue(supp.getXcord());
    and it gives bellow error for last line in the code
    com.sap.tc.webdynpro.progmodel.context.ContextException: Node(GraphView.Graph): no child node 'Series1' at index -1
    Can any one help in this
    Thanks

  • Node id problem

    Hi this is my problem.i have a jtree which a user adds nodes to and from.now, when a duplicate is added to the tree, i assign a unique index to the end of the defaultmutabletreenode, for example, if i have "book" and i input another entry called"book" the new book becomes book[1] anothre book entry would be added as book[2] etc...
    Now, each time the user adds an entry to the jtree, i try to create a similar entry to be outputted to an xml file. i can create the root ok, and i can creare an element ok too, doc.createElement("book");, happy days. But, lets now imagine that i have already outputted an entry to the xml file that looks like <book /> and a new entry also called "book" is ready to be outputted. This new book entry will look like "book[1]" before it is written to the xml file, where the [1] is a unique identifier for this node. what i now do is, try to create an element like so:
    doc.createElementNS("book[1]", "book"); with "book[1]" as the unique identifier, yet this throws an exception saying that there are illegal characters present. Fair enough, but i really need to know how to use the above method properly.i will need to have a unique identifier for duplicates, so i can distinguish between them when i want to retrieve a node uniquely to append a child onto it or add a value to it.i will not be able to do this if there are duplicates.can some1 please help me as to how, i can uniquely keep track of each node that i output to an xml file.
    please help!

    What you're doing is trying to generate:<book>
      <book:book xmlns:book="book[1]"/>
    </book>Which isn't legal, as the namespace must be a URI, and 'book[1]' isn't a legal URI.
    You could legally use a urn or an http url or something as the namespace to mean 'this thing called book is in fact of a completely unrelated type to the other things called book in this list', in which case your XML will be:<book>
      <book:book xmlns:book="http://my.doman.com/book1"/>
    </book>But it would be very wierd to use the namespace URI mearly to provide uniqueness, and any other XML tools won't be expecting that sort of use, whereas some will work out the box with @xml:id, and many will work with @id using a DTD or schema.
    <book>
      <book id='z1'/>
    </book>Pete

  • About Default Framework Desktop Inner Page refresh Problem

    In the Default Framework's Destktop Inner Page's Detail Navigation , When I click a link , It's refresh whole Desktop Innerpage page.
    Now I not require refresh whole Desktop innerpage . I'm only require it's refresh content page.
    How solve this problem?
    Thanks.

    Hi Yanjun,
    The behavior of a lot of features depends of the framework. Please check first the framework comparison document:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3050a9ef-2848-2a10-1e93-bcc432c00c84
    Also check isolation method of IViews, mainly URL isolation method (it may help you):
    http://help.sap.com/saphelp_nw70/helpdata/en/97/0be13dc2fd605ae10000000a11405a/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/b5/8d977463334342be192228d2824fe1/content.htm
    Reward points if itu2019s helpful.

Maybe you are looking for