Retrieve Element ID and Name

I want to get element's id and name attributes from a web page by clicking  on the element using VBA. I have a button in excel sheet and I want if a user clicks on that button, after that whenever user clicks(Right Click) on a element in a webpage, system
should return its element id(1st priority) through message box. If id is not present then it should return element name(2nd priority). If both Id and Name are not present then code will return some message stating that Id or Name not found. 
Thanks!!

Does any have any update on this? Please help..
Thanks!!
 

Similar Messages

  • Get (variable) file path and name in a text element

    How do you get the (variable) file path and name in a text element (label) in LCD? If you save the PDF and afterwards relocate it, it should update the values. Is that actually possible?

    Does anyone have any advice on this issue?
    Thanks in advance,
    Zack H.

  • Id and name attributes on xsd elements

    id, and name attributes on elements do not have a defined length, correct?
    We are shredding an xml document into storage, currently we assign 255 characters for the field that will persist the values, since the id/name fields can be longer than this is there a best practice hat is recommended for xml authors not to create ids, and names with a long string.
    I am working in a specialization of xml called XBRL,
    Neil

    Per the W3C standards, as I read them, you are correct. There is no limit on how long the attribute name (http://www.w3.org/TR/2008/REC-xml-20081126/#attdecls) can be. Follow the Name link on that page and you'll see a Name is defined as NameStartChar (NameChar)*, which is unbounded in length.
    What various tools, including Oracle implement, for max name lengths is not known to me but your 255 seems more than reasonable. The best practice in terms of node name length depends upon who created the schema and what pattern they followed.
    For example, this ISO standard
    ISO/IEC 11179-5:2005, Information technology — Metadata registries (MDR) — Part 5: Naming and identification principles. Available from
    http://standards.iso.org/ittf/PubliclyAvailableStandards/c035347_ISO_IEC_11179-5_2005(E).zip.
    is used by NIEM but neither it nor additional NIEM restrictions put a max length on node names.
    I've played around some with XBRL too and while I've seen a few long ones, I don't think they were over 50 characters so 255 would be more than enough. You could play around with all the .xsd schemas they have and look to see what the longest node name is and then set your length just over that but 255 is more than plenty in my opinion.

  • LineChart with unknown amount and name of elements

    Hi!
    I want to create a LineChart. This charts displays a changing
    number over a period of time.
    <?xml version="1.0" encoding="utf-8"?>
    <root>
    <poll>
    <id>1</id>
    <answerIDs>
    <id>a1</id>
    <id>a2</id>
    </answerIDs>
    <resultsByDate>
    <entry date="03/01/2007">
    <1><results>15</results></1>
    <2><results>18</results></2>
    </entry>
    <entry date="03/02/2007">
    <1><results>25</results></1>
    <2><results>8</results></2>
    </entry>
    <entry date="03/03/2007">
    <1><results>45</results></1>
    <2><results>38</results></2>
    </entry>
    </resultsByDate>
    </poll>
    </root>
    <mx:LineChart id="chart"
    dataProvider="{service.lastResult.root.poll.resultsByDate.entry}"
    >
    <mx:horizontalAxis>
    <mx:CategoryAxis categoryField="date" />
    </mx:horizontalAxis>
    <mx:horizontalAxisRenderer>
    <mx:AxisRenderer labelRotation="45" />
    </mx:horizontalAxisRenderer>
    <mx:series>
    <mx:LineSeries displayName="1" xField="date"
    yField="results" />
    <mx:LineSeries displayName="2" xField="date"
    yField="results" />
    </mx:series>
    </mx:LineChart>
    It only works when I don't use <results> in the XML and
    set the yField to "1" or "2".
    Later In the application I don't know the amount and name of
    the elements (1,2,44,4564, ..), so I will use AS for that:
    var ls:LineSeries = new LineSeries();
    chart.series = [ls]; // associate the array
    var answers:Array = ["1", "2"];
    for (var i:uint = 0; i < 2; i++)
    trace(i);
    ls = new LineSeries();
    ls.displayName = answers
    .toString()
    ls.xField = 'date';
    ls.yField = 'results';
    chart.series = ls;
    This code works, but only without 'results'.
    Maybe can someone help me? I sit not possible to have nested
    objects as provider for xField and yField?

    By using a temporary table instead of a permanent.SET @query =
    'SELECT * INTO #NewPivotTable
    FROM
    SELECT productId,_year,amount
    FROM Products
    )t
    PIVOT (SUM(amount) FOR _year
    IN ('+@years+')) AS pvt; SELECT * FROM #NewPivotTable '
    EXECUTE (@query)
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to retrieve the path and the name of the destination file in a link annotation

    Hi,
    In C++:
    How to retrieve the path and the name of the destination file in a link annotation and a Launch action.
    Sample of my code:
    //Determine if the annotation is a Link annotation
    if (PDAnnotGetSubtype(annot) == ASAtomFromString("Link")) {
    //Determine if the action is a Launch action
    if (PDActionGetSubtype(action) == ASAtomFromString("Launch")) {
    // What is the method ?
    Regards
    David G

    In general, get the annotation as a Cos object and examine it, in
    accordance with the PDF Reference.
    Aandi Inston

  • Retrieving OS username and Machine name

    Is it possible to retrieve the Operating System username and name of the machine using SQL?

    there are a couple of parameters you can retrieve. See the following view:
    create or replace view my_userenv (
    AUDITED_CURSORID ,
    AUTHENTICATION_DATA ,
    AUTHENTICATION_TYPE ,
    BG_JOB_ID ,
    CLIENT_IDENTIFIER ,
    CLIENT_INFO ,
    CURRENT_SCHEMA ,
    CURRENT_SCHEMAID ,
    CURRENT_SQL ,
    CURRENT_USER ,
    CURRENT_USERID ,
    DB_DOMAIN ,
    DB_NAME ,
    ENTRYID ,
    EXTERNAL_NAME ,
    FG_JOB_ID ,
    GLOBAL_CONTEXT_MEMORY ,
    HOST ,
    INSTANCE ,
    IP_ADDRESS ,
    ISDBA ,
    LANG ,
    LANGUAGE ,
    NETWORK_PROTOCOL ,
    NLS_CALENDAR ,
    NLS_CURRENCY ,
    NLS_DATE_FORMAT ,
    NLS_DATE_LANGUAGE ,
    NLS_SORT ,
    NLS_TERRITORY ,
    OS_USER ,
    PROXY_USER ,
    PROXY_USERID ,
    SESSION_USER ,
    SESSION_USERID ,
    SESSIONID ,
    TERMINAL
    ) AS SELECT
    SYS_CONTEXT ('USERENV', 'AUDITED_CURSORID') ,
    SYS_CONTEXT ('USERENV', 'AUTHENTICATION_DATA') ,
    SYS_CONTEXT ('USERENV', 'AUTHENTICATION_TYPE') ,
    SYS_CONTEXT ('USERENV', 'BG_JOB_ID') ,
    SYS_CONTEXT ('USERENV', 'CLIENT_IDENTIFIER') ,
    SYS_CONTEXT ('USERENV', 'CLIENT_INFO') ,
    SYS_CONTEXT ('USERENV', 'CURRENT_SCHEMA') ,
    SYS_CONTEXT ('USERENV', 'CURRENT_SCHEMAID') ,
    SYS_CONTEXT ('USERENV', 'CURRENT_SQL') ,
    SYS_CONTEXT ('USERENV', 'CURRENT_USER') ,
    SYS_CONTEXT ('USERENV', 'CURRENT_USERID') ,
    SYS_CONTEXT ('USERENV', 'DB_DOMAIN') ,
    SYS_CONTEXT ('USERENV', 'DB_NAME') ,
    SYS_CONTEXT ('USERENV', 'ENTRYID') ,
    SYS_CONTEXT ('USERENV', 'EXTERNAL_NAME') ,
    SYS_CONTEXT ('USERENV', 'FG_JOB_ID') ,
    SYS_CONTEXT ('USERENV', 'GLOBAL_CONTEXT_MEMORY') ,
    SYS_CONTEXT ('USERENV', 'HOST') ,
    SYS_CONTEXT ('USERENV', 'INSTANCE') ,
    SYS_CONTEXT ('USERENV', 'IP_ADDRESS') ,
    SYS_CONTEXT ('USERENV', 'ISDBA') ,
    SYS_CONTEXT ('USERENV', 'LANG') ,
    SYS_CONTEXT ('USERENV', 'LANGUAGE') ,
    SYS_CONTEXT ('USERENV', 'NETWORK_PROTOCOL') ,
    SYS_CONTEXT ('USERENV', 'NLS_CALENDAR') ,
    SYS_CONTEXT ('USERENV', 'NLS_CURRENCY') ,
    SYS_CONTEXT ('USERENV', 'NLS_DATE_FORMAT') ,
    SYS_CONTEXT ('USERENV', 'NLS_DATE_LANGUAGE') ,
    SYS_CONTEXT ('USERENV', 'NLS_SORT') ,
    SYS_CONTEXT ('USERENV', 'NLS_TERRITORY') ,
    SYS_CONTEXT ('USERENV', 'OS_USER') ,
    SYS_CONTEXT ('USERENV', 'PROXY_USER') ,
    SYS_CONTEXT ('USERENV', 'PROXY_USERID') ,
    SYS_CONTEXT ('USERENV', 'SESSION_USER') ,
    SYS_CONTEXT ('USERENV', 'SESSION_USERID') ,
    SYS_CONTEXT ('USERENV', 'SESSIONID') ,
    SYS_CONTEXT ('USERENV', 'TERMINAL')
    from dual;

  • FAQ: How do I retrieve my Adobe ID name or password? What's an Adobe ID anyway?

    Q: How do I retrieve my Adobe ID name or password? What’s an Adobe ID anyway?
    A: You can retrieve your Adobe ID by going to this page https://www.adobe.com/account/sign-in.adobedotcom.html . Your Adobe ID and password is also used to authenticate your identity and allows access to additional features and services like Elements membership and your Photoshop.com user gallery. You can also find out more about your Adobe ID.

    Try to verify your credentials using webmail.

  • Upgraded to Photoshop Elements 13 from Photoshop Elements 11 and mts videos no longer have sound. They play perfectly with sound in 11 but have no sound in 13.

    I have upgraded to Photoshop Elements 13 running as a trial from Photoshop Elements 11 and mts videos no longer have sound. They still play perfectly with sound in 11 but have no sound in 13.
    System Info on 13 is as follows:-
    Elements Organizer 13.0.0.0
    Core Version: 13.0 (20140831.m.62014)
    Language Version: 13.0 (20140831.m.62014)
    Current Catalog:
    Catalog Name: My Catalog
    Catalog Location: C:\Users\Master\Pictures\Adobe\PE13\My Catalog\
    Catalog Size: 46.2MB
    Catalog Cache Size: 657.4MB
    System:
    Operating System Name: Windows 8
    Operating System Version: 6.3
    System Architecture:
    Built-in Memory: 15.9GB
    Free Memory: 9.4GB
    Important Drivers / Plug-ins / Libraries:
    Microsoft DirectX Version: 9.0
    Apple QuickTime Version: Not installed
    Adobe Reader Version: Not installed
    Adobe Acrobat Version: Not installed
    CD and DVD drives:
    System Info on 11 is as follows:-
    Elements Organizer 11.0.0.0
    Core Version: 11.0 (20120923.r.32287)
    Language Version: 11.0 (20120923.r.32287)
    Current Catalog:
    Catalog Name: My Catalog
    Catalog Location: C:\Users\Master\Pictures\Adobe\PE11\My Catalog\
    Catalog Size: 44.8MB
    Catalog Cache Size: 550.5MB
    System:
    Operating System Name: Windows 8
    Operating System Version: 6.2
    System Architecture: Intel CPU Family:6 Model:12 Stepping:3 with MMX, SSE Integer, SSE FP
    Built-in Memory: 15.9GB
    Free Memory: 9.8GB
    Important Drivers / Plug-ins / Libraries:
    Microsoft DirectX Version: 9.0
    Apple QuickTime Version: 7.75
    Adobe Reader Version: Not installed
    Adobe Acrobat Version: Not installed
    CD and DVD drives:

    Hi John,
    Sorry for the inconvenience  caused. This issue has been fixed in Elements 13.1. Please try updating your application to free 13.1 update.
    Let me know if you are still facing this issue.
    Regards,
    Anwesha

  • Upgrading from Elements 10 to Elements 12, and new computer, how do I hook up old albums?

    Our old computer stopped working, and i've had to move our photos from the old computer to the new one. The old computer had Elements 10, and the new has Elements 12. I have the old directory structure and catalog intact from a backup, and want to point Elements 12 at the old stuff in a way that it doesn't lose the album structure that my wife had done. And I need it to be on the secondary drive (where it was in the old computer as well) since the primary hard drive is an SSD, and is too small for all of our pictures.
    Is there a way to do that? Like enter the folder name of the top of the old hierarchy somewhere in Elements 12? I'm afraid that if I just import the top level folder that the old catalog and album structure will just be ignored, and we'll end up with a big pile of unstructured pictures (like about  13,000 pictures *smile*).
    Will importing the pictures the obvious way (when you open a new installed Elements, it asks to import pictures) ignore the album structure, or will it just work within the hierarchy that's been left by Elements 10?
    The top level structure is D:\Adobe Element 10 Pictures, and under that is D:\Adobe Element 10 Pictures\My Catalog and D;\Adobe Element 10 Pictures\...\My Pictures.
    Any help with this would be really appreciated.
    Thanks.

    Okay, found my own answer, finally. Ran across a posting including this line:
    You can test that the catalog copy is ok by double clicking (or the Mac equivalent) on the file : catalog.pse10db. That should open the organizer with the catalog copy.
    which gave me the idea to find that catalog.pse10db file. Found it, double clicked on it, and the organizer came up with all of our pictures, albums, etc. and has apparently decided that this is what we want *smile*.
    So all's well that ends well.

  • Unable to retrieve the operations and entities during service introspection

    Hi,
                      I created one sample flex mobile project using flash builder 4.5, i would like to invoke the web service (wsdl file), which is developed in java and hosted in remote machine server.i want to call a one getEmployeeList method from the webservice.
                          In flash builder i used the menu Data->connect to web service , i gave the url, changed the service name and package name, after that i clicked next button,
    the service introspection dialog appears and after a few seconds, flash builder 4.5 shows the message "Unable to retrieve the operations and entities from the web service" and "There was an error during service interospection".
                       I try to open the url in the browser window i could able to see the wsdl file.so, please help me to solve this issue!
    Thanks & Regards,
    siva
    Message was edited by: siva csc

    same problem also on my xampp installation , it worked perfect with REST service in the previous flex 3 release , is it my apache conf or something related on Flash builder
    this happens when I call my function that connect to mysql do the query and returns the array object
    Err log from Flash Builder 4:
    There was an error during service introspection.
    <br /><b>Warning</b>:  require_once(Zend/Loader/Autoloader.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in <b>C:\xampp\htdocs\MYAPP\bin-debug\gateway.php</b> on line <b>23</b><br /><br /><b>Fatal error</b>:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'Zend/Loader/Autoloader.php' (include_path='.;C:\xampp\php\pear\;C:/xampp/htdocs/ZendFramework/library') in <b>C:\xampp\htdocs\MYAPP\bin-debug\gateway.php</b> on line <b>23</b><br />
    thanks in advance
    P

  • Differences between Premiere Elements 11 and Pro CS6?

    Hello,
    I would like to know the differences between Adobe Premiere Elements 11 and Adobe Premiere Pro CS6 in relation to video editing. If someone can point me to any resource on the web like a comparision chart of features, differences etc that would be perfect. I understand the Premiere Pro CS6 would have a lot of extra bell and whistles, special effects etc... but what I would like to know if there is a difference in terms of the the quality of the Final Product?
    Our needs for a video editor are very simple. We need to create simple titles and text overlay to show the name of the speaker and/or topic. A few times we the audio was not recorded on the video camcera but we do have the audio recorded for the event on a separate audio recorder in .WAV format. So we would like to sync up the video with this audio. Can this be done in Adobe Premiere Elements 11?
    And in cases where the audio was recorded with video, we would like to increase the gain/volume for the audio or clean up some hum or background noise. Can this be done in Adobe Premiere Elements 11?
    That is it, we do not need any special effects or animations etc... Please let me know if Adobe Premiere Elements 11 can help us meet our needs. If there is any other software that would be more suitable please advise.
    Thank you!
    VS

    I cannot speak for CS6.  Here are thoughts from a new APE11 user's view:
    adobe30022 wrote:
    Our needs for a video editor are very simple. We need to create simple titles and text overlay to show the name of the speaker and/or topic.
    APE11 provides simplicity and good functionality for this stated need.
    we would like to sync up the video with this audio. Can this be done in Adobe Premiere Elements 11?
    If your video and audio contain a clap, you can manually sync by sliding the audio peak along the video.  The audio wave form will be blanked out when sliding, with a frame counter showing how many whole frames you have moved the audio at each moment, so it is a "drag, stop, compare, drag another frame or two, stop, compare" process that works.  (Finer adjustment than whole frames is not possible.)  Once the sync is achieved, select both audio and video track and link them. (The stability of the sync over time will depend on the accuracy of the recorder, and can pose a problem in long recordings. )  
    increase the gain/volume for the audio or clean up some hum or background noise. Can this be done in Adobe Premiere Elements 11?
    APE11 allows adjusting the volume levels and also provides level normalization if desired, but more involved audio cleanup such as hiss and hum removal, compression, or auto gain are not available.
    Please let me know if Adobe Premiere Elements 11 can help us meet our needs. If there is any other software that would be more suitable please advise.
    You should download the APE11 trial to judge for yourself how well it will meet all your needs. 

  • Writing schema for multiple elements with same name with diff. content

    following is the XML file,
    <?xml version="1.0" encoding="utf-8"?>
    <e-abstract xmlns="http://www.citicorp.com"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="Deed.xsd">
    <deed>
    <deed_type>
    <deedtyp name="Quit Claim" value="Q" />
    <deedtyp name="sheriff's deed" value="Sheriff" />
    <deedtyp name="Warranty" value="W" />
    </deed_type>
    <deed>
    </e-abstract>
    --- end----
    in this I have 3 elements of deedtyp , how i can write them in .xsd file as these elements have same name?Please help, if u have idea about this...
    i have written .xsd up to deed_type,
    ----Deed.xsd----
    <? xml version="1.0" encoding="UTF-8" ?>
    <xs:schema xmlns:xs="http://www.citicorp/2001/XMLSchema"
    targetNamespace="http://www.citicorp.com"
    xmlns="http://www.citicorp.com"
    elementFormDefault="qualified">
    <xs:element name="deed_type" type="string" use="required"/>
    <xs:simpleType name="string">
    <xs:restriction base="xs:string">
    </xs:restriction>
    </xs:simpleType>
    </xs:schema>

    I don't know the exact and complete specification of your intended schema...
    anyway, from what I can see in your post, I assume that
    <deed>
        <deed_type>
            <name>Quit Claim</name>
            <value>Sheriff</name>
        </deed_type>
        <deed_type>
            <name>sheriff's deed</name>
            <value>Sheriff</value>
        </deed_type>
        <deed_type>
            <name>Warranty</name>
            <value>W</name>
        </deed_type>
    </deed>would be the "proper" way to go...
    which makes your "deed_type" a complexType, including a sequence of two kinds of xs:string elements : "name" and "value"

  • Can i have xml elements with same name but one is having attrbt..?

    Hi all,
    I am suppose to take input from one system into BPEL.That system is auto gererating xml file. But that file is strange. It has two xml element with
    same name but with completely different sequence. First one is having two comlexTypes while second is having 5 simple types.
    Now the difference is First element is having attribute while second is not.
    So is that file is correct.?
    thanks a lot.
    /mishit

    can you post the file? or load the file into JDeveloper and check the syntax or use XMLSpy for validation of the XML.

  • ORA-22160: element at index name does not exist

    hi
    i have a procedure which insert values from a VARRAY type in a table. My question is how can i verify the existence of nth element before inserting to avoid ORA-22160: element at index name does not exist
    Here is my code:
    CREATE OR REPLACE PACKAGE BODY CANDIDE.PE_CL IS
    PROCEDURE p_proc(Id_clt IN P_CLIENT.id_client%TYPE,
    nameClt IN P_CLIENT.nameclient%TYPE,
    --VARRAY type
    priceItem IN price_array,
    --VARRAY type
    nameItem IN item_array) IS
    BEGIN
    INSERT INTO P_CLIENT VALUES (Id_clt, nameClt);
    FORALL i IN nameItem.FIRST .. nameItem.LAST
    INSERT INTO P_ITEMS VALUES (Id_clt, nameItem(i), priceItem(i));
    END;
    end PE_CL;
    Product version: Oracle9i Enterprise Edition Release 9.2.0.1.0
    Peter

    I see the problem now. If there are more values in one varray or the other, how do you want to handle it? Below I have demonstrated, first the solution that I previous offered, that would only insert the rows where there are values from both varrays. In the second example below, I have inserted a null value in place of the missing value from the varray that has fewer values.
    scott@ORA92> CREATE TABLE p_client
      2    (id_client  NUMBER,
      3       nameclient VARCHAR2(15))
      4  /
    Table created.
    scott@ORA92> CREATE TABLE p_items
      2    (id_client  NUMBER,
      3       name_item  VARCHAR2(10),
      4       price_item NUMBER)
      5  /
    Table created.
    scott@ORA92> CREATE OR REPLACE PACKAGE PE_CL
      2  IS
      3    TYPE item_array IS ARRAY(10) OF VARCHAR2(10);
      4    TYPE price_array IS ARRAY(10) OF number;
      5    PROCEDURE p_proc
      6        (Id_clt    IN P_CLIENT.id_client%TYPE,
      7         nameClt   IN P_CLIENT.nameclient%TYPE,
      8         priceItem IN price_array,
      9         nameItem  IN item_array);
    10  end PE_CL;
    11  /
    Package created.
    scott@ORA92> show errors
    No errors.
    -- first method:
    scott@ORA92> CREATE OR REPLACE PACKAGE BODY PE_CL
      2  IS
      3    PROCEDURE p_proc
      4        (Id_clt    IN P_CLIENT.id_client%TYPE,
      5         nameClt   IN P_CLIENT.nameclient%TYPE,
      6         priceItem IN price_array,
      7         nameItem  IN item_array)
      8    IS
      9    BEGIN
    10        INSERT INTO P_CLIENT VALUES (Id_clt, nameClt);
    11  --    FORALL i IN nameItem.FIRST .. nameItem.LAST
    12  --      INSERT INTO P_ITEMS VALUES (Id_clt, nameItem(i), priceItem(i));
    13        FOR i IN nameItem.FIRST .. nameItem.LAST LOOP
    14          IF nameItem.EXISTS(i) AND priceItem.EXISTS(i) THEN
    15            INSERT INTO P_ITEMS VALUES (Id_clt, nameItem(i), priceItem(i));
    16          END IF;
    17        END LOOP;
    18    END;
    19  end PE_CL;
    20  /
    Package body created.
    scott@ORA92> show errors
    No errors.
    scott@ORA92> declare
      2    priceitem pe_cl.price_array := pe_cl.price_array(2, 5);
      3    nameitem pe_cl.item_array := pe_cl.item_array('item a', 'item b', 'item c');
      4  begin
      5    pe_cl.p_proc
      6        (id_clt    => 900,
      7         nameclt   => 'MIKE',
      8         priceitem => priceitem,
      9         nameitem  => nameitem);
    10    COMMIT;
    11  end;
    12  /
    PL/SQL procedure successfully completed.
    scott@ORA92> SELECT * FROM p_client
      2  /
    ID_CLIENT NAMECLIENT
           900 MIKE
    scott@ORA92> SELECT * FROM p_items
      2  /
    ID_CLIENT NAME_ITEM  PRICE_ITEM
           900 item a              2
           900 item b              5
    scott@ORA92> TRUNCATE TABLE p_client
      2  /
    Table truncated.
    scott@ORA92> TRUNCATE TABLE p_items
      2  /
    Table truncated.
    -- second method:
    scott@ORA92> CREATE OR REPLACE PACKAGE BODY PE_CL
      2  IS
      3    PROCEDURE p_proc
      4        (Id_clt    IN P_CLIENT.id_client%TYPE,
      5         nameClt   IN P_CLIENT.nameclient%TYPE,
      6         priceItem IN price_array,
      7         nameItem  IN item_array)
      8    IS
      9    BEGIN
    10        INSERT INTO P_CLIENT VALUES (Id_clt, nameClt);
    11  --    FORALL i IN nameItem.FIRST .. nameItem.LAST
    12  --      INSERT INTO P_ITEMS VALUES (Id_clt, nameItem(i), priceItem(i));
    13        FOR i IN nameItem.FIRST .. nameItem.LAST LOOP
    14          IF nameItem.EXISTS(i) AND priceItem.EXISTS(i) THEN
    15            INSERT INTO P_ITEMS VALUES (Id_clt, nameItem(i), priceItem(i));
    16          ELSIF nameItem.EXISTS(i) THEN
    17            INSERT INTO P_ITEMS VALUES (Id_clt, nameItem(i), null);
    18          ELSIF priceItem.EXISTS(i) THEN
    19            INSERT INTO P_ITEMS VALUES (Id_clt, null, priceItem(i));
    20          END IF;
    21        END LOOP;
    22    END;
    23  end PE_CL;
    24  /
    Package body created.
    scott@ORA92> show errors
    No errors.
    scott@ORA92> declare
      2    priceitem pe_cl.price_array := pe_cl.price_array(2, 5);
      3    nameitem pe_cl.item_array := pe_cl.item_array('item a', 'item b', 'item c');
      4  begin
      5    pe_cl.p_proc
      6        (id_clt    => 900,
      7         nameclt   => 'MIKE',
      8         priceitem => priceitem,
      9         nameitem  => nameitem);
    10    COMMIT;
    11  end;
    12  /
    PL/SQL procedure successfully completed.
    scott@ORA92> SELECT * FROM p_client
      2  /
    ID_CLIENT NAMECLIENT
           900 MIKE
    scott@ORA92> SELECT * FROM p_items
      2  /
    ID_CLIENT NAME_ITEM  PRICE_ITEM
           900 item a              2
           900 item b              5
           900 item c

  • How do I retrieve elements in a xml document ?

    I would like to know how to retrieve elements from xml document ?
    I have created a document already, but how do I proceed from there ?
    Also, how do I access the values inside, the attributes and value ?
    Thank you.

    parse the xml file in node wise using compare criteria according to programmer choice u can able to retrieve the elements which u want promptly

Maybe you are looking for

  • How do i open a source code in zip file

    Hello! i"m having problems running my codes, i'm using windows and i'm having problems running the codes. At first i thought it was my codes, so i tried a friends code in a zip file and it still gives the same error: exception of in thread "main" jav

  • Converting bytes to unsigned bytes

          int u=0;       int i=32; byte []  data1 = new byte[1024]; int[] unsignedValue=new int[1024]; while(u<100){                     unsignedValue[u] =data1[i] & 0xff;                       u++;                       i++;                    } from in

  • Difference between two date ,according to office time.

    hi, How can I get diffrence between two date. If I select from-date  20-03-2012 09:30AM and to-date 20-03-2012 06:30PM then output should be 1 day(as it is office time from 09:30 AM TO 06:30 PM). ACCORDINGLY If I select from-date  20-03-2012 09:30AM

  • SAPScript: Positioning a Window (Graphic) behind the main window

    Hello, I want to print a graphic behind the main window. But I am not able positioning a window or graphic-window behind the main window. The result is that my graphic always shows up in front of the printed text of the main window and not behind the

  • Reg upgrade of Physical Standby from 9i -10g

    hi guys,I'm planning to upgrade my database from 9i 9.2.0.7-10g 10.2.0.3...along with Physical Standby Site.... I got a link for Dataguard upgrade http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/upgrades.htm what I conluded from this l