Array of Ftree.Node type

Hi,
I'm using forms6i.
I want to create an array of nodes.
Like i have seen, using varray, to create array of varchar like
TYPE name IS VARRAY(4) OF VARCHAR2(10);
I want something like this
TYPE prev_node IS VARRAY(4) OF FTREE.NODE;
But when i'm using this, i'm getting Exception
Unsupported type in a VARRAY or TABLE type: FTREE.NODE.
Is there a way to create an array of nodes???
Help Please

Thank You BaiG
My requirement is , say i have a resultset(REF Cursor) with 3 columns say t1,t2 and t3
t1 should be added as root_node , and the return value for the add_tree_node() for t1 is to be stored in a variable(here i want to use array).
and t2 should be added as a child of t1.
node1 := Ftree.Add_Tree_Node(htree,
                                   Ftree.ROOT_NODE,
                                   Ftree.PARENT_OFFSET,
                                   Ftree.LAST_CHILD,
                                   Ftree.EXPANDED_NODE,
                                   getnodes.t1,
                                   NULL,
                                   getnodes.t1);
node2 := Ftree.Add_Tree_Node(htree,
                                   node1,                --  here im using previously added node
                                   Ftree.PARENT_OFFSET,
                                   Ftree.LAST_CHILD,
                                   Ftree.EXPANDED_NODE,
                                   getnodes.t2,
                                   NULL,
                                   getnodes.t2);This node1, node2 etc i want to store in an array.
Or since node1,node2 etc will be numbers, is it ok if i use varray of number??
Thanks

Similar Messages

  • Converting object wrapper type array into equivalent primary type array

    Hi All!
    My question is how to convert object wrapper type array into equivalent prime type array, e.g. Integer[] -> int[] or Float[] -> float[] etc.
    Is sound like a trivial task however the problem is that I do not know the type I work with. To understand what I mean, please read the following code -
    //Method signature
    Object createArray( Class clazz, String value ) throws Exception;
    //and usage should be as follows:
    Object arr = createArray( Integer.class, "2%%3%%4" );
    //"arr" will be passed as a parameter of a method again via reflection
    public void compute( Object... args ) {
        a = (int[])args[0];
    //or
    Object arr = createArray( Double.class, "2%%3%%4" );
    public void compute( Object... args ) {
        b = (double[])args[0];
    //and the method implementation -
    Object createArray( Class clazz, String value ) throws Exception {
         String[] split = value.split( "%%" );
         //create array, e.g. Integer[] or Double[] etc.
         Object[] o = (Object[])Array.newInstance( clazz, split.length );
         //fill the array with parsed values, on parse error exception will be thrown
         for (int i = 0; i < split.length; i++) {
              Method meth = clazz.getMethod( "valueOf", new Class[]{ String.class });
              o[i] = meth.invoke( null, new Object[]{ split[i] });
         //here convert Object[] to Object of type int[] or double[] etc...
         /* and return that object*/
         //NB!!! I want to avoid the following code:
         if( o instanceof Integer[] ) {
              int[] ar = new int[o.length];
              for (int i = 0; i < o.length; i++) {
                   ar[i] = (Integer)o;
              return ar;
         } else if( o instanceof Double[] ) {
         //...repeat "else if" for all primary types... :(
         return null;
    Unfortunately I was unable to find any useful method in Java API (I work with 1.5).
    Did I make myself clear? :)
    Thanks in advance,
    Pavel Grigorenko

    I think I've found the answer myself ;-)
    Never thought I could use something like int.class or double.class,
    so the next statement holds int[] q = (int[])Array.newInstance( int.class, 2 );
    and the easy solution is the following -
    Object primeArray = Array.newInstance( token.getPrimeClass(), split.length );
    for (int j = 0; j < split.length; j++) {
         Method meth = clazz.getMethod( "valueOf", new Class[]{ String.class });
         Object val = meth.invoke( null, new Object[]{ split[j] });
         Array.set( primeArray, j, val );
    }where "token.getPrimeClass()" return appropriate Class, i.e. int.class, float.class etc.

  • How to handle unknown root node type when parsing?

    Hello all, hoping someone knows how to accomplish this...
    I'm trying to use XMLBeans to parse RIXML 2.0 documents. This schema allows for
    multiple root node types, so I don't know when I'm trying to parse a file if the
    root node is a Research node or a Product node, for example. If I try to invoke
    parse and there is a type mismatch I get the following error:
    com.bea.xml.XmlException: D:\RIXML\V2TestDoc.xml:0: error: The document is not
    a Research@http://www.rixml.org/2002/6/RIXML: document element local name mismatch
    expected Researchgot Product
         at com.bea.xbean.store.Root.verifyDocumentType(Root.java:472)
         at com.bea.xbean.store.Root.autoTypedDocument(Root.java:394)
         at com.bea.xbean.store.Root.loadXml(Root.java:763)
         at com.bea.xbean.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:286)
         at com.bea.xbean.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:224)
         at org.rixml.x2002.x6.rixml.ResearchDocument$Factory.parse(Unknown Source)
         at Test.main(Test.java:21)
    Exception in thread "main"
    So how do I generically handle parsing when I don't know what type of root node
    I'm going to get?
    Thanks,
    Joe

    Hello Joe -- You might try parsing the document as XmlObject (which your
    schema-generated types extend). Then you could use an XmlCursor to discover
    what the root element's local name is. Something like the following code
    might be a way to do it. You could also simply re-parse the document after
    discovering its root element name, but that would probably be more
    expensive.
    XmlObject xml = XmlObject.Factory.parse(mydoc.xml);
    XmlCursor cursor = xml.newCursor();
    cursor.toFirstContentToken();
    if (cursor.getName().getLocalPart().equals("Research"))
    // cast the XmlObject to your ResearchDocument type and use it.
    else if (cursor.getName().getLocalPart().equals("Product"))
    // cast the XmlObject to your ProductDocument type and use it.
    cursor.dispose();
    Steve
    "Joe Celentano" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hello all, hoping someone knows how to accomplish this...
    I'm trying to use XMLBeans to parse RIXML 2.0 documents. This schemaallows for
    multiple root node types, so I don't know when I'm trying to parse a fileif the
    root node is a Research node or a Product node, for example. If I try toinvoke
    parse and there is a type mismatch I get the following error:
    com.bea.xml.XmlException: D:\RIXML\V2TestDoc.xml:0: error: The document isnot
    a Research@http://www.rixml.org/2002/6/RIXML: document element local name
    mismatch
    expected Researchgot Product
    at com.bea.xbean.store.Root.verifyDocumentType(Root.java:472)
    at com.bea.xbean.store.Root.autoTypedDocument(Root.java:394)
    at com.bea.xbean.store.Root.loadXml(Root.java:763)
    atcom.bea.xbean.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:28
    6)
    atcom.bea.xbean.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:22
    4)
    at org.rixml.x2002.x6.rixml.ResearchDocument$Factory.parse(Unknown Source)
    at Test.main(Test.java:21)
    Exception in thread "main"
    So how do I generically handle parsing when I don't know what type of rootnode
    I'm going to get?
    Thanks,
    Joe

  • How to create an new array from dynamically discovered type

        public static Object toAdjustedArray(Object source, Object addition,
                                             int colindex, int adjust) {
            int newsize = 0;
            Class componentType = null;
            if (source.getClass().isArray()) {
                Object[] arrayIn= (Object[])source;
                componentType = arrayIn[0].getClass();
                newsize = arrayIn.length + adjust;
            else {
                System.out.println("error in ArrayUtil");
            Object[] newarray = new Object[newsize];
            copyAdjustArray(source, newarray, addition, colindex, adjust);
            return newarray;
        }This methods take an array as an input an append new value(s) to it.
    I can get the component type of the array (i.e. the class of the array's member). But how can I create a new array of this component type (i.e doing something like componentType[] newarray = new componentType[newsize])?
    CU Jerome

    I fanally found a walkaround trick for my problem.
    Their is no way to create an array of a certain type (dynamically dsicovered) in CLDC. But what you can do is to use the instanceof method to determine the type of your array and in a big if statement create the right array.
    Here is the final code:
        public static Object toAdjustedArray(Object source, Object addition,
                                             int colindex, int adjust) {
            int newsize = 0;
            if (source.getClass().isArray()){
                Object[] arrayIn= (Object[])source;
                newsize = arrayIn.length + adjust;
            Object arrayElement = null;
            if (addition.getClass().isArray()){
                Object[] temp = (Object[])addition;
                arrayElement = temp[0];
            else{
                arrayElement = addition;
            Object newarray = null;
            if (arrayElement == null){
                newarray = new Object[newsize];
            if (arrayElement instanceof org.hsqldb.Index){
                newarray = new org.hsqldb.Index[newsize];
            else {
                newarray = new Object[newsize];
            copyAdjustArray(source, newarray, addition, colindex, adjust);
            return newarray;
        }

  • *The operation cannot be carried out with this node type*

    Hi Friends,
    My requirement is :
    PO in IS retail system--(IDOC ORDERS)--Sales Order processing-->Sales order in AFS system
    where AFS is apparel footwear solution used in retail industries.
    Now I have created PO in IS-retail system , and IDOC is successfully generated .
    After this I am checking this IDOC in AFS system thru  tcode BD87 for processing but getting error mesage in next screen when I am executing BD87 after putting the IDOC number.
    The operation cannot be carried out with this node type
    Message no. B1891
    Diagnosis
    Node types such as logical system, inbound and outbound IDocs or filter nodes are used only for the structure and for information. They cannot
    be used for processing and display functions.
    Any pointers .
    Regards
    Ashu

    a

  • Urgent!!!!Interactive Form Error :Invalid Node Type dataGroup

    Hi All,
    I have created an interactive form with webdynpro java and when i run the application the form is running perfectly but i am getting the inforamtion error as
    Invalid Node Type:dataGroup
    The fault Occured on line 28.
    I think it is an adobe reader error message.
    Thank you,
    Regards,
    Mustafa.

    Hi Mutsafa,
    Check this out, same issue and was solved:
    Re: Adobe Reader Message
    Hope this helps!
    Regards,
    Preetha Rethinam

  • How can I define a new Search Node type?

    Hi experts!
    I'm trying to modify PPOME transaction, but I can't create a new Search Node type. Can anybody give me the necessary steps I have to do? Other question, Is it possible to create a new Search Node for a Organizational unit? Or this only could be possible for new objects types?
    Thanks a lot,
    Regards,
    Rebeca

    Hi Rebeca,
    You need to create a Search node only if you create a new object type (e.g. ZP).
    For org unit, you don't need to create one (unless you wanna change search details)
    Otherwise, you can use existing search nodes for standard object types.
    What you can do is, you can add a search node to an existing scenario in order to make it visible in the object manager part (left-hand side of the screen).
    To create a new search node :
    Goto SPRO Personnel management - Organizational Management - Hierarchy Framework - Object manager - define your own search node -
    > Define search node : Add new entries here.
    To add a search node to a scenario (e.g. to make a new search node visible on the left-hand side of PPOME)
    Goto SPRO Personnel management - Organizational Management - Hierarchy Framework - Object manager - define your own search node -
    > Scenario Definition (Object manager) : Select the scenario (for PPOME it is OME000), double click the "Search nodes" and create new entries to add the search node here. Then double click the "Search tool", copy the lines of a similar search node and change search node field to the new one.
    Best regards,
    Dilek

  • How do I fix "Invalid node type: selectionbox" error?

    Ok I've got my document all made and nice and pretty, I use it to enter information and use the selection box to make visible the fields I need for each card. Then I save it and try to open it and get the following error popup message.
    Invalid node type: selectionbox
    Invalid node type: selectionbox
    Invalid node type: selectionbox
    Invalid node type: selectionbox
    Invalid node type: selectionbox
    Invalid node type: selectionbox
    Invalid node type: selectionbox
    Message limit exceeded. Remaining 10 errors not reported.
    So I click ok on the error box. It opens the file with adobe reader like it's supposed to and then immediately I get the "Adobe reader has stopped working, windows can check online for a solution to the problem" and I get the two choices that both involve closing the program.
    I got this once before and after about a half hour of fiddling with the original livecycle file it stopped doing it. I have no idea what I did to make it start or stop doing it and I'm not sure I even did do anything to cause it.
    Has anyone else come across this problem? Does anyone know what I need to do to fix it?
    I've included the file I'm having issues with.
    Thanks,
    Aaron

    Hi Aaron,
    I cant replicate your problem. What I did notice though, is when I make a selection on almost every selection box,  I get the following error:
    'cardtwo.TextField1 has no properties'. The error is coming from the following piece of code in the change event: 'cardtwo.TextField1.caption.text.value = (this.rawValue);'
    I dont see a TextField1 in the cardtwo subform so I suspect that this field has been renamed and / or moved since that bit of code was added. Perhaps that would be a good place to start and could very possibly be the cause of your problem.
    Dallas

  • SOM expression - resolved to an incompatible node type of 'dataValue'

    Hi experts,
    i am working on wd abap interactive forms, i have taken a table on pdf and provided binding.. like data node is with data[*] and rest of the fields are maped preperly.
    by default on initialization i fill some data this popup message is not coming..
    if there is no data this message appears, when i fill some data manually and try to fetch i am not getting the records.
    please let me know how to get rid of this message.
    The SOM expression '$record.Z_TY_SFLIGHT_LIGHTS' for the dataRef specified
    on field 'Table1', resolved to an incompatible node type of 'dataValue'.
    Thanks,
    Mahesh.Gattu

    If i maintain the cardinality of the table node 1..n it is not giving me the SOM popup.
    instead of 0..n.
    Thanks,
    Mahesh.Gattu

  • Assignment of node type in DRP

    Hi,
           I f I define a Plant in R/3 and didnot define a node type in R/3 SPRO>DRP> Assign node types.
    But when I Cifed the material to APO, it is transferred automatically as 1001.
    1. How does the system know that it is a Location type 1001? or is it the default?
    2. Are there any other settings that help the system decide the location type?
    I noticed the R/3 SPRO> Enterprise Structure>Definition>Logistics - General>Define Location.
    Thanks.

    a plant is usually defaulted as 1001
    unless you change the associated entry in the customizing table in the basic settings of DRP customizing
    (customizing step Node Type Assignment --> Maintain Plant )
    you can assign the following nodes here  and they get mapped to the location types when they are CIFed into APO
    A     Store
    B     Distribution center
    CD     Customer warehouse
    DC     Distribution center
    EW     Central warehouse
    PL     Production plant
    TS     Stock transfer point

  • How I pass a cluster with array of various data type (double, I32, string)

    I have to pass from a VI to a Microsoft Visual C++ DLL, a cluster with some arrays of various data type. The problem is with Double array, that during Visual C debug is incorrect:the dimension is correct passed, but not array data. In the DLL I have inserted the C code genereted by LabVIEW. I tried to pass a cluster of only one array of double, and the results is the same. Then, I tried to pass a cluster with scalar number and the result is correct in only one case. If the double data is the first in the cluster, the result is correct; if the first is another data type, such as integer or boolean, the double data is incorrect during the debug of the DLL.
    This is the code of my DLL:
    // LabViewP
    aram.cpp : Defines the entry point for the DLL application.
    #include "stdafx.h"
    #include "LabViewParam.h"
    #include "extcode.h"
    BOOL APIENTRY DllMain( HANDLE hModule,
    DWORD ul_reason_for_call,
    LPVOID lpReserved
    switch (ul_reason_for_call)
    case DLL_PROCESS_ATTACH:
    case DLL_THREAD_ATTACH:
    case DLL_THREAD_DETACH:
    case DLL_PROCESS_DETACH:
    break;
    return TRUE;
    typedef struct {
    long dimSize;
    double elt[1];
    } TD2;
    typedef TD2 **TD2Hdl;
    typedef struct {
    TD2Hdl elt1;
    } TD1;
    // This is an example of an exported variable
    LABVIEWPARAM_API int nLabViewParamPass=0;
    // This is an example of an exported function.
    LABVIEWPARAM_API int LabViewParamPass(TD1 *pparam)
    double parametro;
    int i;
    for (i=0;i<(**(*pparam).elt1).dimSize;i++)
    parametro=(**(*pparam).elt1).elt[i];
    return 42;
    // This is the constructor of a class that has been exp
    orted.
    // see LabViewParam.h for the class definition
    CLabViewParam::CLabViewParam()
    return;
    I use LabVIEW 7.0 and Windows XP.
    Sorry for my english.
    Thanks to every one for your suggestions.
    Filippo

    > I have to pass from a VI to a Microsoft Visual C++ DLL, a cluster with
    > some arrays of various data type. The problem is with Double array,
    > that during Visual C debug is incorrect:the dimension is correct
    > passed, but not array data. In the DLL I have inserted the C code
    > genereted by LabVIEW. I tried to pass a cluster of only one array of
    > double, and the results is the same. Then, I tried to pass a cluster
    > with scalar number and the result is correct in only one case. If the
    > double data is the first in the cluster, the result is correct; if the
    > first is another data type, such as integer or boolean, the double
    > data is incorrect during the debug of the DLL.
    It is hard tell for sure, but you might have alignment problems. The
    key symptom
    is that you can pass a cluster of big and small fine, but
    small big doesn't pass correctly. You might also test this by seeing
    what the size of your struct is. For Boolean and Double, sizeof()
    should return nine bytes no matter what order the array is in. If you
    are getting different sizes, you have two options. You can either order
    them such that the sizes work, or you can build the EXE or a wrapper DLL
    so that the alignment matches LV's native alignment.
    Greg McKaskle

  • How to create the query with multiple node types

    Hi,
    I am having an issue in creating a query to search multiple node types.
    The requirement is to query documents/pages of the type dam:Asset and cq:Page present under a path.
    I tried the following code snippet with no luck .
    path=/content
    1_type=cq:Page
    2_type=dam:Asset
    property=jcr:content/metadata/@cq:tags
    property.1_value=<tag Name>
    I was able to write a query with single type. However i could not find any documents/ materials with multipe types as shown above.
    Thanks in advance.
    Regards
    Sudhi

    I don't think multiple type is possible. Instead use super type like nt:base that will cover both page and asset.
    Yogesh
    www.wemblog.com

  • Maintain values for node type supply chain

    Hi,
    Where can I update node type supply chain field of a plant? (t001w-nodetype)
    Regards.

    Alberto,
    That's a good question.  I have always assumed that this was part of the old DRP tool, and would be populated when you created your DRP network.  Unfortunately, I have never seen DRP actually used, so I can't say for sure.  Maybe some of the other readers will have an idea...
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/cb/7f88cb43b711d189410000e829fbbd/frameset.htm
    Rgds,
    DB49

  • String array into formula node

    Hello,
    I am taking data from SQL, I am getting multiple rows of data for many different devices. I would like to wire the data into a formula node so I can sepearate and sort via script. However, I am getting an error for "Polymorphic terminal cannot accept this data type". Is there a work around? Can I not wire in a string array to a formula node.
    /r
    Travo

    There are lots of basic string VIs that you can use to parse the string and separate out the individual fields. I would recommend "programming" your application using script nodes. Use the native language. LabVIEW is a fully functional and capable programming language.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Shift Register while Indexing Arrays in Formula Node

    Hello, 
    I am having trouble using the formula node while indexing my two arrays.  I keep getting "NaN" for my output array. I believe the problem lies within my shift register.  My guess is that for the first calculation there is not a PreviousAngle so that is why it is giving me "NaN."  For the first index I would like the value of the PreviousAngle to be 0. I am new to LabView and unsure what to do.
    Thanks!
    Christian Seymour
    Solved!
    Go to Solution.
    Attachments:
    Complementary Filter.vi ‏21 KB

    The shift register should contain 0 by default since you are using a double [if uninitalized, the shfit register takes the default value of the data type.  In this case, the default Double is 0], but you should explicitly initalize the shift register to a default value in most cases.
    To do so, right click on the "previous angle" shift register and select "Create constant".  This will create a Double value of 0 to fill in the register for the first calculation.
    If you need a number other than 0 to start, you can just change this constant.
    **Note:  This is a good habit to have.  Shift registers retain value as long as the VI is in memory.  So if you run this more than once, it will have the value from the last execution automatically!  This is usually unintended behavior for new LabVIEW users -- however you can sometimes take advantage of this feature in some applications and make it intended behavior
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    If someone helped you out, please select their post as the solution and/or give them Kudos!

Maybe you are looking for

  • Screen not clearing once after MIRO POSTING

    Hi Expert We done Enhancement in Miro, This enhancement working but once posted the document, screen will clear but in this process after posting the doc everthing as it is, screen is not clear. Please give me a solution Thanks Mani.S Edited by: sman

  • Found a bug, Safari log out sites with Private Browsing

    When I click Private Browsing, every site I visit with Safari is logged out. When I turn off Private Browsing, I'm automatically logged in. This was not the behavior in Snow Leopard or earlier (I don't believe). This was driving me crazy...it's a rea

  • Mask slowly migrates across screen for no apparent reason

    I am putting together scrolling credits but I don't want the text to start and end at the top/bottom edges of the screen.  Instead I am trying to place a mask in the center of the screen so that the text enters and exits the scroll from within the sc

  • Reverting to Original does not delete the backup copy

    Hi, I am new to Mac. I have late last year's Macbook Pro that came with iPhoto '09. When I mark certain photos to revert them to original, I am expecting that it would delete the modified copy from the Modified folder in the iPhoto library. In many c

  • Photoshop c3 not seeing scanner in Import

    Following an OS X 10.8.2 upgrade on my iMac, my Canon Pixma 495 scanner won't work with CS3 Photoshop.  It no longer shows up under File/Import.  Hopefully a minor tweak in Permissions can fix this, but I've seen nothing about it so far. Preview and