How to identify if a data node exist?

Hi,
If a form is binded to a schema, and when the xml is supplied to the form how to identify an optional node in the xml is available or not.
for example if I have a XML input like below
<root>
     <childTable>         
          <childRow>
               <child1>
               <child2>
          </childRow>
          <childRow>
               <child1>
               <child2>
          </childRow>
     </childTable>
</root>
is it possible to identify if the childTable node is present in the xml input.
The code xfa.datasets.data.root.childTable if used fails when the childTable is not present in the input xml?
Please let me know if there is a way to identify if the input xml has  a specified node. Assuming that we know the path of the node in the xml structure.
Regards -
Ashok Deivaisgamani

Hi Ashok,
Could you please try this?
var nodeCheck = xfa.resolveNode("$record.childTable");
if(nodeCheck != null)
     app.alert("Node Exists");
else
     app.alert("Node Not Avaliable");
Thanks,
VJ

Similar Messages

  • How to identify whether the data extracted is direct, queued, unserialized

    hi,
    how to identify whether the data extraction from r/3 is direct, queued and unseralized data.
    can anyone let me know abt it
    regds
    hari

    hI,
    Direct Delta: With this update mode, the extraction data is transferred with each document posting directly into the BW delta queue. In doing so, each document posting with delta extraction is posted for exactly one LUW in the respective BW delta queues.
    This update method is recommended for the following general criteria:
    a) A maximum of 10,000 document changes (creating, changing or deleting documents) are accrued between two delta extractions for the application in question. A (considerably) larger number of LUWs in the BW delta queue can result in terminations during extraction.
    b) With a future delta initialization, you can ensure that no documents are posted from the start of the recompilation run in R/3 until all delta-init requests have been successfully posted. This applies particularly if, for example, you want to include more organizational units such as another plant or sales organization in the extraction. Stopping the posting of documents always applies to the entire client.
    Queued Delta: With this update mode, the extraction data is collected for the affected application instead of being collected in an extraction queue, and can be transferred as usual with the V3 update by means of an updating collective run into the BW delta queue. In doing so, up to 10000 delta extractions of documents for an LUW are compressed for each DataSource into the BW delta queue, depending on the application.
    new queued delta
    This update method is recommended for the following general criteria:
    a) More than 10,000 document changes (creating, changing or deleting a documents) are performed each day for the application in question.
    b) In future delta initializations, you must reduce the posting-free phase to executing the recompilation run in R/3. The document postings should be included again when the delta Init requests are posted in BW. Of course, the conditions described above for the update collective run must be taken into account.
    Non-serialized V3 Update:With this update mode, the extraction data for the application considered is written as before into the update tables with the help of a V3 update module. They are kept there as long as the data is selected through an updating collective run and are processed. However, in contrast to the current default settings (serialized V3 update), the data in the updating collective run are thereby read without regard to sequence from the update tables and are transferred to the BW delta queue.
    unserialized v3 update
    This update method is recommended for the following general criteria:
    a) Due to the design of the data targets in BW and for the particular application in question, it is irrelevant whether or not the extraction data is transferred to BW in exactly the same sequence in which the data was generated in R/3.
    take a look Roberto's weblog series
    /people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
    /people/sap.user72/blog/2004/12/23/logistic-cockpit-delta-mechanism--episode-two-v3-update-when-some-problems-can-occur
    /people/sap.user72/blog/2005/01/19/logistic-cockpit-delta-mechanism--episode-three-the-new-update-methods
    /people/sap.user72/blog/2005/04/19/logistic-cockpit-a-new-deal-overshadowed-by-the-old-fashioned-lis
    https://weblogs.sdn.sap.com/pub/wlg/126 [original link is broken] [original link is broken] [original link is broken]
    doc
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
    and oss note 505700
    Re: delta methods
    go throuth the previous thread
    Delta types
    hope it helps..

  • How to identify if the data is excel sheet is not on fixed column in SSIS package

    Hi, I am using SSIS 2008 R2 in which my excel file is the source for data. I am using the "Excel Source" transformation. For the normal data feed and all it is working fine.
    There is a requirement the data in the excel sheets are not static. For example think like, data may start from A1 Cell next it may be B1 or B2 and next time E1 or F2 like that. How to identify in which Cell the data is there to load to DB?
    Kindly tell me whatever the possibilites are there ....
    Sridhar

    Hi ,
      The mapping of SSIS packages cannot be modified at run time based on the input. Instead , you may consider to bring all the columns from excel into a staging table and figure out from where the data starts. Then load the destination table. If not
    you need to think of creating the ssis package itself dynamically using .Net code based on the excel metadata.
    Best Regards Sorna

  • How to identify whether any data source is created for a table?

    hi all,
    How to identify whether any extractions is been carried out for a particular table, view or function module(generic extraction)? from r/3.
    bcos i need to create an extraction for a table, view and function module. But  iam not sure whether any extractions is already been created for those tables, view, function modules??
    thanxs
    haritha

    Hi,
    By passing the following values as selection to table  ROOSOURCE we can find whether any data source has been created or not .
    EXMETHOD = V
    EXTRACTOR = Table name
    hope it helps..
    regards,
    raju

  • How to import and append data on existing table ?

    Hi..
    I have done export data from tmp_nv2_nrm_ain table into some file using the command as below:-
    exp username/password tables=TMP_NV2_NRM_AIN file=TMP_NV2_NRM_AIN log=test.log constraints=no
    The question is how could i import the data from file back to database without overwrite any data on the TMP_NV2_NRM_AIN table.
    And what is the query..
    This is my query... please correct me if I am wrong..
    imp username/passwrod tables=TMP_NV2_NRM_AIN file=/acec/nv2am/monitor/backup/test/AIN/MAR-2010/TMP_NV2_NRM_AIN.dmp log=/acec/nv2am/monitor/backup/test/test.log ignore=y
    Thank you,
    Baharin
    Edited by: baharin on Jul 1, 2010 7:51 PM

    Hi,
    Please go through this link,
    http://wiki.sdn.sap.com/wiki/display/ABAP/CreationofView+Cluster
    Hope it helps you,
    Regards,
    Abhijit G. Borkar

  • How to bind schema form data to existing objects?

    I imported an existing PDF as my template and it make all the text, check boxes and text fields into objects - Great!
    But now when I add a schema with my DB data field names I am unsure how to turn the existing objects on the form to the schema fields!!
    Can anyone help?

    Open the DataView where your schema is visually represented and simply drag and drop the schema item onto the object that you want to bind it to. If the bind is successful a little icon will appear in the DataView beside the node.
    If you select on object in the form and click on the Binding tab, you will see an expression representing what you are bound to. You can also use the icon there to navigate to the appropriate node in the schema.

  • How can we check the data already exists in database

    hi friends
    i am trying create one procedure to add customers in database with customer id as input parameter..but if in the database customer detail already exists than i would like to update that detail and if its not in the database than i would like to add that detail in the databse...how could i do this ...
    any help wpould be appreciate
    thanks
    rommy

    Hi,
    If your requirement is to insert in one table and if the record exists insert into other table the merge statement doesn't work
    Example (please check the column name and parameter names). I don't put commit or rollback because I don't know if you control the transaction inside this procedure or outside it.
    CREATE OR REPLACE PROCEDURE add_cust(I_CUST_ID        IN VARCHAR2,
                                         I_CUST_F_NAME    IN VARCHAR2,
                                         I_CUST_L_NAME    IN VARCHAR2,
                                         I_CUST_ADD       IN VARCHAR2,
                                         I_CUST_CITY      IN VARCHAR2,
                                         I_CUST_STATE     IN VARCHAR2,
                                         I_CUST_ZIP       IN VARCHAR2,
                                         I_CUST_DOB       IN DATE,
                                         I_CUST_          IN VARCHAR2,
                                         I_CUST_ACCT_TYPE IN VARCHAR2,
                                         I_START_BAL      IN NUMBER) IS
    BEGIN
       INSERT INTO CUSTOMERS C
          (CUST_ID,
           CUST_F_NAME,
           CUST_L_NAME,
           CUST_ADD,
           CUST_CITY,
           CUST_STATE,
           CUST_ZIP,
           CUST_DOB,
           CUST_)
       VALUES
          (I_CUST_ID,
           I_CUST_F_NAME,
           I_CUST_L_NAME,
           I_CUST_ADD,
           I_CUST_CITY,
           I_CUST_STATE,
           I_CUST_ZIP,
           I_CUST_DOB,
           I_CUST_);
    EXCEPTION
       WHEN DUP_VAL_ON_INDEX THEN
          INSERT INTO CUSTOMER_ACCT
             (CUST_ID,
              CUST_ACCT_NO,
              cust_acct_type)
          VALUES
             (I_CUST_ID,
              CUST_ACCT_SEQ.NEXTVAL, -- CUST_ACCT_SEQ is a sequence, isn't?
              I_CUST_ACCT_TYPE);
    END add_cust;Regards,

  • How to loop through a Data Node

    Hello,
    I have an Interactive Adobe form in WebDynpro Java project. 
    My data View tab includes the following structure:
    Bapi_test
    ValueHelpData
    CodeNumber
    CodeDescription
    Can someone please tell how I can loop through the “ValueHelpData” node, and get values for “CodeNumber” and “CodeDescription”
    The ValueHelpData node has the cardinality of  0..n. and has approximately 100 elements.
    Thanks. Your help is much appreciated.
    Rob.

    Hi Robby,
    You could try the following :
    int n = wdContext.nodeValueHelpData().size();
    for(int i = 0; i < n; i++)
       wdContext.nodeValueHelpData().moveTo(i);
       IPrivateMyDataView.IValueHelpDataElement ele = wdContext.currentValueHelpDataElement();
       String codenum = ele.getCodeNumber();
       String codedesc = ele.getCodeDescription();
       // Any other processing logic..//
    Hope this helps.

  • How to determine in an XML node exists in Coldfusion

    If I have XML that looks something like this:
    <manifest>
        <state ID="20" name="State 2">
            <person>john.black</person>
        </state>
        <state ID="30" name="State 2">
            <person>bill.doe</person>
            <group>Group2</group>
        </state>
    </manifest>
    Where <group> may or may not exist under <state>, how do I determine if <group> exists when I'm parsing this XML? 
    This is the code I'm working with currently:
    <cfset szXMLFile = "Manifest.xml">
    <cfset XMLDoc = xmlParse(szXMLFile)>
    <cfset StateNodes = xmlSearch(XMLDoc,'/manifest/state')>
    <cfoutput>
    <cfloop from="1" to="#ArrayLen(StateNodes)#" index="i">
        <cfset StateXML = xmlparse(StateNodes[i])>
        <cfloop index="p" from="1" to="#ArrayLen(StateXML.state.person)#">
            <cfoutput>Person: #StateXML.state.person[p].xmltext#</cfoutput><br />
        </cfloop>
        <cfloop index="g" from="1" to="#ArrayLen(StateXML.state.group)#">
            <cfoutput>Person: #StateXML.state.group[g].xmltext#</cfoutput><br />
        </cfloop>
    </cfloop>
    </cfoutput>
    I suppose I could just put <try><catch> blocks around where I'm referencing <group> and if it doesn't exist, I'll just handle it that way - but that seems like such a hack.  Is there a 'real' way to determine if the node actually exists? 
    Thanks! 

    <cfif structKeyExists(StateXML.state, "group")>
        <cfloop index="g" from="1" to="#ArrayLen(StateXML.state.group)#">
            <cfoutput>Person: #StateXML.state.group[g].xmltext#</cfoutput><br />
        </cfloop>
    </cfif>

  • How to identify the maximum data loads done for a particular day?

    Hi all,
    There is huge volume of data been loaded on a last monday, and then data was deleted from the cubes on the same day. And hence i needs to see which are all the cubes which was loaded wtih lot of records for a particular day,
    i happened to look at rsmo, i am unable to see the ods nor the cube data loads,
    were do i seet it?
    Thanks

    See if the table RSSELDONE helps. This will give you the recent data load details. Based on those loads , you can search the targets.
    And also check table TBTCO  which will give the latest job details. You will have to analyze the same jobs to know what loads were done . Give a selection for date.

  • How to identify background download data

    My mac system (10.6.8) is downloading a big file through akamai (a60-254-131-56.deploy.akamaitechnologies.com) despite not having anything on the console (no browser, etc is doing any work)
    I know it is probably a download from a big name, like adobe, or even apple.
    But how can I tell what it is I'm downloading?
    Thanks Jason

    For future reference, get yourself a free copy of FSEventer, that will show you in real time graphic display what files are being written to and where they are.
    http://www.fernlightning.com/doku.php?id=software:fseventer:start

  • How to start with Master data management

    Hi All,
    I want to start with Master Data Management. Can any one provide me proper material to get the knowledge on Master Data Management Integration. And What is the relationship between XI.and for starting MDM what all settings i have to do???
    Its really urget plz help me out.
    Thanks,
    Seema Khandelwal
    Message was edited by:
            Seema khandelwal

    Hi ..
    look at this documents
    /people/andreas.seifried/blog/2007/08/30/how-to-use-the-test-environment-of-the-mdm-enrichment-controller
    /people/harrison.holland5/blog/2006/11/27/mdm-syndication
    /people/harrison.holland5/blog/2007/01/22/testing-and-monitoring-an-interface-between-mdm-xi
    see this Wiki to find all the documentation on MDM:
    https://wiki.sdn.sap.com/wiki/display/HOME/MasterDataManagement
    Here, for the components you need to install:
    https://wiki.sdn.sap.com/wiki/display/HOME/MasterDataManagement+Components
    Others smart links are here:
    - sdn e-learning.
    https://www.sdn.sap.com/irj/sdn/mdm-elearning
    http://service.sap.com/installMDM for a
    you can use expression editor to do that:
    have a look at this guide on how dates can be calculated there
    with your field it can be very similar:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b025fab3-b3e9-2910-d999-a27b7a075a16
    for more details about expression editor:
    Calculation Fields chapter
    https://websmp108.sap-ag.de/~sapidb/011000358700006291622006E
    MDM 5.5 SP05 - ABAP API
    https://websmp101.sap-ag.de/~sapidb/011000358700000271902007E
    MDM 5.5 SP05 - ABAP API How To Guides (ZIP File)
    https://websmp101.sap-ag.de/~sapidb/011000358700000271912007E
    How to Identify Identical Master Data Records Using SAP MDM 5.5 ABAP APIs
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e060251e-b58d-2910-02a2-c9a1d60d9116

  • How many type of data element exist

    How many type of data element exist.
    Saurabh

    Hi,
    Data Element Types
    Introduction
    The following tables identify and describe the valid data element types that may be specified for the -type option. The first table covers some general data element types. The remaining tables cover data element types specific to each diagram type identified in the Diagram Types table above.
    General Data Element Types
    The following table covers some general data element types.
    Data Element Type  Description 
    Actor  Actors on CCDs and DFDs 
    Class  Classes on CDs, CCDs, and STDs 
    Event  Events on SDs and STDs 
    External  Actors on CCDs and DFDs 
    Flow  Control Flows, Data Flows, Result Flows, and Update Flows 
    Interface  Communication Messages, Control Flows, Data Flows, Event Messages, Result Flows, and Update Flows 
    Message  Communication Messages and Event Messages 
    AD Data Element Types
    The following table identifies and describes the data element types for the Activity Diagram (AD).
    Data Element Type  Description 
    ADAction  Actions on ADs 
    ADEvent  Events on ADs 
    ADState  States on ADs 
    ActionState  Action States 
    ObjectInState  Objects In States 
    CD Data Element Types
    The following table identifies and describes the data element types for the Class Diagram (CD).
    Data Element Type  Description 
    ActualType  Actual Types 
    AssocClass  Association Classes 
    CDAggregation  Aggregations on CDs 
    CDAssociation  Associations on CDs 
    CDClass  Classes on CDs 
    CDComposition  Compositions on CDs 
    CDContainer  Containers on CDs 
    CDGeneralization  Generalizations on CDs 
    CDInterface  Interfaces on CDs 
    Package  Packages 
    Propagation  Propagations 
    TemplateClass  Template Classes 
    CCD Data Element Types
    The following table identifies and describes the data element types for the Class Communication Diagram (CCD).
    Data Element Type  Description 
    CCDActor  Actors on CCDs 
    CCDClass  Classes on CCDs 
    CCDContainer  Containers on CCDs 
    ComMessage  Communication Messages 
    Subject  Subjects 
    COD Data Element Types
    The following table identifies and describes the data element types for the Collaboration Diagram (COD).
    Data Element Type  Description 
    CODActiveObject  Active Objects on CODs 
    CODActor  Actors on CODs 
    CODMessage  MEssages on CODs 
    MultiObject  MultiObjects 
    NaryLink  N-ary Links 
    RoleEnd  RoleEnds 
    RoleStart  RoleStarts 
    CPD Data Element Types
    The following table identifies and describes the data element types for the Component Diagram (CPD).
    Data Element Type  Description 
    CPDComponent  Components on CPDs 
    CPDInterface  Interfaces on CPDs 
    DFD Data Element Types
    The following table identifies and describes the data element types for the Data Flow Diagram (DFD).
    Data Element Type  Description 
    ControlFlow  Control Flows 
    DataFlow  Data Flows 
    DataProcess  Data Processes 
    DataStore  Data Stores 
    DFDActor  Actors on DFDs 
    ResultFlow  Result Flows 
    UpdateFlow  Update Flows 
    DPD Data Element Types
    The following table identifies and describes the data element types for the DeploymentDiagram (DPD).
    Data Element Type  Description 
    ActiveObject  ActiveObjects 
    Connection  Connections 
    DPDActiveObject  Active Objects on DPDs 
    DPDComponent  Components on DPDs 
    DPDObject  Objects on DPDs 
    Node  Nodes 
    NodeInstance  Node Instances 
    MGD Data Element Types
    The following table identifies and describes the data element types for the Message Generalization Diagram (MGD).
    Data Element Type  Description 
    MessageDef  Message Definitions 
    SD Data Element Types
    The following table identifies and describes the data element types for the Sequence Diagram (SD).
    Data Element Type  Description 
    Object  Objects 
    SDInitiator  Initiators on SDs 
    SDMessage  Messages on SDs 
    SDObject  Objects on SDs 
    STD Data Element Types
    The following table identifies and describes the data element types for the State Transition Diagram (STD).
    Data Element Type  Description 
    CDClass  Classes on CDs associated with the STD 
    EventMessage  Event Messages 
    STDAction  Actions on STDs 
    STDClass  Classes on STDs 
    STDEvent  Events on STDs 
    STDState  States on STDs 
    UCD Data Element Types
    The following table identifies and describes the data element types for the Use Case Diagram (UCD)
    Data Element Type  Description 
    DirectedComm  Directed Communication Association 
    UCDActor  Actors on UCDs 
    UndirectedComm  Undirected Communication Association 
    UseCase  Use Cases 
    Reward If Helpful
    Regards Madhu

  • How many types of Queues exists and how to identify them.

    Hello
    can anyone say How many types of Queues exists and how to identify them.
    What does R3R* and CSA* stands for.
    Regards,
    divya

    Hi Divya,
        The queues R3* and CSA* that you have specified are qRFC queues. qRFC queues are data queues which transport data to and fro different systems.
    There are also the tRFC queues which are triggered whenever you make RFC calls to connect to another system.
    Queues with prefix R3AD* - for delta download from R3->CRM
    Queues with prefix R3AU* - for data upload from CRM->R3
    Queues with prefix R3AR* - used to transfer data during request load from R3->CRM
    Queues with prefix R3AI* - for initial load from R3->CRM
    Queues with prefix CSA* - these are validation object specific queues used for processing/persisting data in CRM tables in a serialized manner. E.g. CSABUPA* for business partner,CSA_ORDER* for sales order etc.
    You can administer and monitor the queues in trax. SMQR,SMQS.
    Hope this helps you! Pls. do not forget to reward me some points.
    Regards,
    Sudipta.

  • How data in transferred to data nodes from Azure Blob?

    I started a HDInsight cluster which was using a Azure blob storage. After looking at the jobs counters I noticed that there are some 'local' and 'rack-local' mappers for the job. I wonder to know what this local mappers mean? as far as I understood the architecture
    of HDInsight, the data nodes and blob storage are located in two different clusters and data is transferred to data nodes over a high-speed network. So how come there exist 'local mappers'? how about 'rack local mapper'? Are the data first copy to local disk
    of the data nodes and then get passed to the data nodes to get processed?

    Hi,
    When HDInsight is performing its task, it is streaming data from the storage node to the compute node.  But many of the map, sort, shuffle,and reduce tasks that Hadoop is performing is being done on the local disk residing with the compute nodes themselves. 
    The map, reduce, and sort tasks typically will be performed on compute nodes with minimal network load while the shuffle tasks will use some network to move the data from the mappers nodes to less reduce nodes.  The final step of storing the dat back
    to the storage is typically a much smaller dataset (e.g. a query dataset or report).  In the end, the network is being more heavily utilized during the initial and final streaming phases while most of the other tasks are being performed intra-nodally
    (i.e. minimal network utilization).
    Regards.
    Debarchan Sarkar - MSFT ( This posting is provided AS IS with no warranties, and confers no rights.)

Maybe you are looking for