Several underlying XML databases

Hello

I worked on a form in LiveCycle Designer ES2, which is intended to perform the following operations:

1. the user types the first value (as an ID or name) in the row of a table of text fields

2. a search Script in an underlying database that can match the entered value and fill the rest of the line

But I have absolutely no idea how add databeses at livecylce and access. I want to use XML-databases (exported from Excel) and then use javascript to access - is - it possible?

The databeses would locally on the computer.

Thank you!

You can create a dataset with the code, which might be the best approach for you.  Thus, in the forms Initialize event you may have a code like;

var namesXML =

Lederarmschienen

0


0

0

0

1

1

0

0

0.1

0.1

1

15

Arm

LEDER

Plattenarme

0


0

0

0

5

5

0

0

0.5

0.5

3

200

Arm

Platte

;

var names = xfa.datasets.createNode ("dataGroup", "Root");

names.loadXML (namesXML.toXMLString ());

xfa.datasets.Nodes.Append (Names);

Here I use a literal E4X to make it easier to cut and paste.  Also note that the top element in the XML file is replaced with the name in the second parameter of the createNode method (so the easiest thing is to keep the same)

You can reference it in code, then perhaps in the case of output of the field name (TextField1 in the code below) you might have the following code to complete other fields;

var line = xfa.datasets.Root.resolveNode ("Row. ("() Name.Value ==' ' + TextField1.rawValue +" ")" ");

If (row! == null)

{

Ko.rawValue = line. Ko.Value;

Preis.rawValue = line. Preis.Value;

Slot.rawValue = line. Slot.Value;

Typ.rawValue = line. Typ.Value;

}

Personally, I prefer this approach, but since I started using E4X I should probably point out that we could also use E4X to process XML data, so it's the same thing.

var row = namesXML.Row. (Name is this.rawValue);

If (row.length ())

{

Ko.rawValue = line. Ko.toString ();

Preis.rawValue = line. Preis.toString ();

Slot.rawValue = line. Slot.toString ();

Typ.rawValue = line. Typ.toString ();

}

Here is a link to the form I used to check my code, https://acrobat.com/#d=yCY7Hi15yg7yVWFbslkXmw

It may be useful

Bruce

Tags: Adobe LiveCycle

Similar Questions

  • Problem in creating several attributes XML with the same name of the attribute

    I am trying without success trying to create several attributes XML with the same name, as shown here in a Microsoft example configuration file:



      
         
         
         
      

    I'm calling the NewDocument GetRootElement functions and then "newelement" (appSetting), "newelement" (add)

    Then I call AddAttribute with add, key & Key0, then with add, value & 0.  This seems to work fine but when I try to add the second pair of key & Key1 and value attributes & 1 for item "Add" replaces ""and I find myself with"" only.

    I do something wrong or CVI is not able to create an XML of this type?

    Thank you

    Here's how you do it. I show not to keep things simple error checking.

    #include

    public static void CreateAddElement (mother of CVIXMLElement, const char * key, const char * value)
    {
    Add the CVIXMLElement;
    CVIXMLNewElement (parent, -1, 'Add', &add);)
    CVIXMLAddAttribute (add, "touch", key);
    CVIXMLAddAttribute (add, "value", value);
    CVIXMLDiscardElement (add);
    }

    void main (void)
    {
    CVIXMLElement root, and appSetting;
    Doc CVIXMLDocument.
     
    CVIXMLNewDocument ("configuration", &doc);)
    CVIXMLGetRootElement(doc, &root);)
    CVIXMLNewElement (root,-1, "appSetting", and appSetting);
    CreateAddElement (appSetting, "Key0", "0");
    CreateAddElement (appSetting, "Key1", "1");
    CreateAddElement (appSetting, "Key2", "2");
    CVIXMLDiscardElement (appSetting);
    CVIXMLDiscardElement (root);
    CVIXMLSaveDocument (doc, 1, "c:\\temp\\temp.xml");
    CVIXMLDiscardDocument (doc);
    }

  • Is Oracle XML DB, a native xml database?

    Hello!

    DB XML provides the native XMLTYPE data type, and it can provide the traditional storage for xml. It is therefore a database compatible xml or a native?


    See you soon

    It is a compatible XML relational data base (storage or XMLType) but also has a native XML database features as binary XML (binary XMLType XML storage)

  • Find the technology under ORACLE_HOME database components

    How to find out what are the components of technology installed under ORACLE_HOME database?

    DB 11.2.0.2

    Hello

    DBA_REGISTRY query to get the names of components-

    Select identifiant_composant, ComputerName, version of DBA_REGISTRY;

    HTH...
    Sumit.

  • XML database error

    Create an employee of the table having (dept_id: number, employee_spec: XMLType).
    The employee_spec is a diagram with
    emp id, name, email, acc_no, Gestionnairecourrierelectronique attributes, to Joning.
    Insert 10 tuples in the employee table. Fire the following queries on the XML database.

    (a) retrieve the names of employees.
    (b) recover the acc_no from employees.
    (c) retrieve the names, the acc_no, enamel of employees.
    (d) update the record 3rd in the table and displays the name of an employee.
    (e) delete 4 th record from the table.

    SQL > connect hr/tiger@bom4;
    Connected.

    SQL > create table employees
    () 2
    3 dept_id number (8).
    employee_spec 4 sys.xmltype
    (5);

    Table created.


    SQL >
    SQL > INSERT INTO employee VALUES
    () 2
    of 3 100.
    4 xmltype)
    5 ' < employees >
    6 < emp id = "1" >
    7 < name > buxant gole < / name >
    8 < email > [email protected] < / email >
    9 < > 111 acc_no < / acc_no >
    10 < dateOfJoining > 1994 - 11 - 16 < / dateOfJoining >
    11 < / emp >
    12 < / employees > '))
    13;
    XmlType)
    *
    ERROR on line 4:
    ORA-00904: invalid column name


    SQL > INSERT INTO employee VALUES
    () 2
    of 3 100.
    4 sys. XMLTYPE ("< employees >
    5 < = '1' emp id >
    6 < name > buxant gole < / name >
    7 < email > [email protected] < / email >
    8 < > 111 acc_no < / acc_no >
    9 < dateOfJoining > 1994 - 11 - 16 < / dateOfJoining >
    10 < / emp >
    11 < / employees > '))
    12;
    sys. XMLTYPE ("< employees >
    *
    ERROR on line 4:
    ORA-22876: this user-defined type is not allowed or it cannot be used in this
    framework

    Yep, works fine on 10.2...

    SQL> ed
    Wrote file afiedt.buf
    
      1  create table employee
      2  (
      3  dept_id number(8),
      4  employee_spec xmltype
      5* )
    SQL> /
    
    Table created.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  INSERT INTO employee VALUES
      2  (
      3  100,
      4  xmltype(
      5  '
      6  
      7  abhijeet gole
      8  [email protected]
      9  111
     10  1994-11-16
     11  
     12* '))
    SQL> /
    
    1 row created.
    
    SQL>
    

    What version of SQL * more you use? Ensure that it is up-to-date with the version of database.

  • diagram of several under a user...

    Mr President

    Maybe her look kinda weird that I am about to ask here.

    (1) oracle 11 g/9i supports multiple schemas?

    (2) if not why? I mean:
    As it is seen that other DB for example. DB2 supports multiple schemas but why not oracle? wat is the philosophy behind this? Is - to avoid security reasons, that can happen for the use of scheme of several under the same user?

    Thanks in advance

    Well, yes there is a CREATE SCHEMA command, but it is a bit of a curiosity. I don't think that anyone ever actually used it.

  • Components XML database is in a State not VALID, all seeking dba_registry.

    How to make the component XML valid

    Do you have you recently performed an upgrade?
    Upgrade succeeded? No errors?

    Please reffer to metalink note 243554.1 - how to uninstall and reinstall XML Database (XDB).
    If you are using XDB, then you will need to reinstall it.

  • How to retrieve several key/XML attributes

    Hi community, we get this doc XML, we want to extract the Alias. As the Alias is defined as several key/attribute pairs. How can we do this? The sql below works but when how we flatten alias so the button under the column name and the value is value line?

    with xmltst as (select
    --/SWs/SW[1]/Aliases/Alias[4]
    xmltype (
    '<?xml version="1.0" encoding="UTF-8"?>
    <SWs version="1.0" xsi:schemaLocation="http://xmlns.kazuneric.com/it/eng/v1 /kazuneric/v1/AssDataInternal-1_0.xsd"
    xmlns="http://xmlns.kazuneric.com/v1" xmlns:ext="http://xmlns.kazuneric.com/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <Aliases>
            <Alias Key="ProxyVersion">5.5.7075.0</Alias>
            <Alias Key="SiliconUnitsGenerationComments">9 units missing out of 959</Alias>
            <Alias Key="ReconWaferScribedID">82541239.0106C3</Alias>
            <Alias Key="ReconLotID">000PM50601P.0M0</Alias>
            <Alias Key="PnP_ProcessSegment">RECON</Alias>
            <Alias Key="PnP_EquipmentID">3DPNP6-D</Alias>
            <Alias Key="PnP_ProcessModule">RECON</Alias>
            <Alias Key="PnP_OperationName">RECON_PNP</Alias>
            <Alias Key="PnP_OperationNumber">052</Alias>
            <Alias Key="PnP_Operator">10010512</Alias>
            <Alias Key="PnP_ReconCarrierID">1020349</Alias>
            <Alias Key="PnP_ReconTapeBatchID">tape batch example</Alias>
            <Alias Key="PnP_StartTimestamp">2015-02-08T11:07:43+08:00</Alias>
            <Alias Key="PnP_EndTimestamp">2015-02-08T11:07:43+08:00</Alias>
          </Aliases>  
    <SW s_ID="T6B890.00-01" t_ID="T6B890.00">
          <Ds>
    <De sX="59" sY="-57" rX="7" rY="22" m_ID="L" eTime_s="2014-12-12T02:22:11+08:00" eTime_e="2014-12-12T02:22:42+08:00" mst="0.631"/>
    <De sX="70" sY="-57" rX="7" rY="23" m_ID="L" eTime_s="2014-12-12T02:22:12+08:00" eTime_e="2014-12-12T02:22:33+08:00" mst="0.217"/>
    <De sX="69" sY="-57" rX="47" rY="1" m_ID="R" eTime_s="2014-12-12T02:22:16+08:00" eTime_e="2014-12-12T02:22:56+08:00" mst="0.974"/>
    </Ds>
    </SW>
    <SW s_ID="T6B890.00-02" t_ID="T6B890.00">
    <Ds>
    <De sX="56" sY="-1" rX="72" rY="19" m_ID="R" eTime_s="2014-12-12T02:36:01+08:00" eTime_e="2014-12-12T02:36:29+08:00" mst="0.541"/>
    <De sX="57" sY="-1" rX="39" rY="42" m_ID="L" eTime_s="2014-12-12T02:22:12+08:00" eTime_e="2014-12-12T02:23:01+08:00" mst="0.426"/>
    <De sX="58" sY="-1" rX="72" rY="20" m_ID="R" eTime_s="2014-12-12T02:36:07+08:00" eTime_e="2014-12-12T02:36:18+08:00" mst="0.716"/>
    </Ds>
    </SW>
    </SWs>') xmldata
    from dual
    )
    SELECT
    x1.s_id, x1.t_id,x2.*
    FROM xmltst t,
    XMLTABLE (
              xmlnamespaces(
                            default 'http://xmlns.kazuneric.com/v1'
                           ),
    '/SWs/SW'
    PASSING t.xmldata
    COLUMNS s_ID varchar2(30) PATH '@s_ID',
    t_ID varchar2(30) PATH '@t_ID',
    ds xmltype PATH 'Ds'
    ) x1
    ,XMLTABLE (
              xmlnamespaces(
                            default 'http://xmlns.kazuneric.com/v1'
                           ),
    'Ds/De'
    PASSING x1.ds
    COLUMNS sX number PATH '@sX',
    sY number PATH '@sY',
    rX number PATH '@rX',
    rY number PATH '@rY',
    eTime_s varchar2(30) PATH '@eTime_s',
    eTime_e varchar2(30) PATH '@eTime_e',
    mst number PATH '@mst'
    ) x2
    

    Just to add more columns to X 3:

    with xmltst in (select

    -/ SWs/SW [1] / alias/Alias [4]

    XmlType)

    '

    http://xmlns.kazuneric.com/it/Eng/v1 /kazuneric/v1/AssDataInternal-1_0.xsd.

    "xmlns ="http://xmlns.kazuneric.com/v1"xmlns:ext ="http://xmlns.kazuneric.com/v1"xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance">".

         

            5.5.7075.0

            9 missing units on 959

            82541239.0106C3

            000PM50601P.0M0

            RECON

            3DPNP6-D

            RECON

            RECON_PNP

            052

            10010512

            1020349

            example of batch of tape

            2015 02-08 T 11: 07:43 + 08:00

            2015 02-08 T 11: 07:43 + 08:00

            

         

    XMLDATA ')

    of the double

    )

    SELECT

    x 1 .s_id, x1.t_id,

    x 3. ProxyVersion,

    X3.comments,

    X2.*

    OF xmltst t.

    XMLTABLE)

    XmlNamespaces)

    default 'http://xmlns.kazuneric.com/v1'.

    ),

    "/ SWs/SW.

    PASSAGE t.xmldata

    COLUMNS s_ID varchar2 (30) path "@s_ID",.

    t_ID varchar2 (30) path "@t_ID",.

    DS xmltype PATH "/ SW/Ds.

    ) x 1

    XMLTABLE)

    XmlNamespaces)

    default 'http://xmlns.kazuneric.com/v1'.

    ),

    "Ds/en.

    PASSAGE x1.ds

    SX number PATH "@sX"COLUMNS,

    sY number PATH "@sY",

    rX number PATH "@rX",

    rY number PATH "@rY",

    eTime_s varchar2 (30) path "@eTime_s",.

    eTime_e varchar2 (30) path "@eTime_e",.

    STD number PATH "@mst"

    ) x 2,

    XMLTABLE)

    XmlNamespaces)

    default 'http://xmlns.kazuneric.com/v1'.

    ),

    "/ SWs/alias.

    PASSAGE t.xmldata

    COLUMNS

    ["Varchar2 (15) PATH of the ProxyVersion ' Alias[@Key="ProxyVersion "]',

    Comments Varchar2 (20) PATH "Alias[@Key="SiliconUnitsGenerationComments"]"

    ) x 3

    /

    S_ID T_ID PROXYVERSION COMMENTS SX SY RX RY ETIME_S ETIME_E STD
    ------------ --------- --------------- -------------------- --- --- --- --- ------------------------- ------------------------- -----
    T6B890.00 - 01 T6B890.00 5.5.7075.0 9 units Miss-59 57 7 22 2014-12 - T 12, 02: 22:11 + 08:00 12-2014-T 12, 02: 22:42 + 08:00.631
    T6B890.00 - 01 T6B890.00 5.5.7075.0 9 units Miss 70 57 7 2014 23-12 - T 12, 02: 22:12 + 08:00 12-2014-T 12, 02: 22:33 + 08:00.217
    T6B890.00 - 01 T6B890.00 5.5.7075.0 9 units Miss 69 57 47 1 2014-12 - T 12, 02: 22:16 + 08:00 12-2014-T 12, 02: 22:56 + 08:00.974
    T6B890.00 - 02 T6B890.00 5.5.7075.0 9 units Miss 56-1 72 19 2014-12 - T 12, 02: 36:01 + 08:00 12-2014-T 12, 02: 36:29 + 08:00.541
    T6B890.00 - 02 T6B890.00 5.5.7075.0 9 units miss at 57-1 39 42 2014-12 - T 12, 02: 22:12 + 08:00 12-2014-T 12, 02: 23:01 + 08:00.426
    T6B890.00 - 02 T6B890.00 5.5.7075.0 9 units miss at 58-1 72 20 2014-12 - T 12, 02: 36:07 + 08:00 12-2014-T 12, 02: 36:18 + 08:00.716

    6 selected lines.

    SQL >

    SY.

  • Retrieve data from oracle to XML database

    Hello

    I run a select statement on the oracle database table. It returns me the result as a table. However, I need the result as xml.
    for example
    So overall the output of a select statement, Select First_Name, Last_Name from table1 is

    First name last name
    ----------------------------------------------
    John Lewis
    David Jones

    then I need in format xml as below

    * < row >. *
    * < John first name > < / name >. *
    * < Lewis Last_Name > < / Last_Name > *.
    * < / row > *.
    * < row >. *
    * < David name > < / name >. *
    * < Jones Last_Name > < / Last_Name > *.
    * < / row > *.

    or

    * < row name = "John" Last_Name = "Lewis" / > * "
    * < row name = "David" Last_Name = 'Jones' / > * "


    In SQL Server, we use for xml auto. How can I get the xml output in oracle? Help, please.

    Thank you

    Refer to the documentation

    http://docs.Oracle.com/CD/B19306_01/AppDev.102/b14259/xdb13gen.htm

  • Why help exit Eclipse produces several eclipse_whtdata.xml files?

    I have a project in Robohelp 9 (created with RoboHelp HTML 9.0.2).

    I choose to export as an Eclipse help (it's almost the same as webhelp).

    Our Chief technician integrates my output using Eclipse files exported in the Eclipse IDE help

    as a separate book. The user can expand our parent book in several books and shows the topics.

    The topics in this project are about 300.

    Our question:

    How we can put in place our project files or book in Robohelp which will generate a single Eclipse whtdata file which will include all table of contents entries.

    Our problem:

    The project generates several (currently 6) eclipse_whtdata files.

    It generates a file toc.xml with a child < section > element that points to a file of whtdata eclipse as follows: < toc link = "eclipse_whtdata1.xml" >

    The eclipse_whtdata1.xml has labels of table of contents and links to topics.

    In the eclipse_whtdata1.xml file, there are 5 cases of labels of table of contents and links that point to other files eclipse_whtdata.

    So we get 6 eclipse_whtdata.xml files, numbered from 1 to 6. Links folder number 1 to the files numbered from 2 to 6.

    I tried to identify a model, and I see no difference in the way books are set up in the Robohelp project and no difference in the way the subjects are related to books, etc. I even deleted a few books and recreated them.

    The Robohelp project has a parent book, with a related subject.

    This topic contains links to all the first level child books and some autonomous subjects.

    Each book of the child has a topic with links to all his books child or the children.

    No errors are displayed in the output on the generation.

    Thanks for any help or pointers, you can provide.

    Cynthia

    Hi Cynthia

    When you look in RoboHelp at the single Source Layouts pod, think of it in the same way you would think of a box to recipes in your kitchen. Inside of the box recipes are often the recipe cards that contain the settings for each dish, you can create. If each of the elements inside the carrycot single Source Layouts is equivalent to using a recipe card. The map contains all the parameters that govern the way in which this specific output is created.

    As you work your way through the different areas of settings, one is usually labeled Navigation. And in this area is a labeled frame Speed of Optimize For.

    The setting here determines whether the navigation elements are spllit into small pieces or left in a larger file. Try making sure that the option here is set for the Local or Intranet computer.

    Just give it a try and see if it helps... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7, 8 or 9 in the day!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • How can I make effective * Dynamics * xml database queries?

    How can I make queries efficient dynamic xml based?

    Oracle database 11 GR 1 version material, I tried it on 11 GR 2 as well.

    I have a requirement where I went from 10 search gui settings. All parameters are optional, and the user is allowed to enter all the details in the fields in any combination they like. At least one parameter will be filled more every 10.

    I have millions of records in the table and have created a xmlIndex on the xmlType column.

    I dynamically build the necessary xQuery of the arguments and use bind variables, so there is only a hard analysis for each "type" of the request.

    But when I try this I get an error:

    ORA-32512: external 'xquery variable' type is unknown


    So, how to create a query based dynamic xml?

    I think that it is possible that I can create variable bind in sql * more and run a SELECT statement, modify the content of the variable and re - run the query and it performs as I expect, but I can't replicate this functionality within pl/sql.

    I tried to do it using the dbms_sql package I shall not know the number of bind to the run-time variables. When I try this, I get the error message:

    ORA-32512: external 'xquery variable' type is unknown

    If this isn't the right way, how to create dynamic xml queries (when running) founded, using bind variables within the database?

    I created a minimal example to demonstrate:
    CREATE TABLE xmlTest
    (
            id      NUMBER(10,0) PRIMARY KEY,
            theXml  xmlType
    )
    /
    
    DECLARE
            l_sql VARCHAR2(100) := q'<SELECT id FROM xmlTest WHERE xmlExists ('/a[b=$b]' PASSING theXml, :b as "b")>';
            l_b   VARCHAR2(10)  := '1';
    
            l_curId INTEGER;
    BEGIN
            l_curId := dbms_sql.open_cursor;
    
            dbms_sql.parse (c             => l_curId,
                            statement     => l_sql,
                            language_flag => dbms_sql.native);
    
            dbms_sql.bind_variable (c     => l_curId,
                                    name  => 'b',
                                    value => l_b);
    END;
    /
    When I run the present, I get:
    DECLARE
    *
    ERROR at line 1:
    ORA-32512: type 'xquery external variable' is unknown
    ORA-06512: at "SYS.DBMS_SQL", line 1053
    ORA-06512: at line 9
    Line 9 is the declaration of dbms_sql.parse.

    Thank you very much
    Gary.

    Published by: GPN & amp; GT; on February 18, 2011 10:57

    Hello

    Try with an explicit cast of the binding variable:

    SQL> CREATE TABLE xmlTest
      2  (
      3    id      NUMBER(10,0) PRIMARY KEY,
      4    theXml  xmlType
      5  )
      6  /
    
    Table created
    
    SQL> insert into xmltest values(1, xmltype('1'));
    
    1 row inserted
    
    SQL> insert into xmltest values(2, xmltype('2'));
    
    1 row inserted
    
    SQL> set serveroutput on
    SQL>
    SQL> DECLARE
      2
      3    l_sql   VARCHAR2(200) :=
      4    q'