Cursor inside the DBMS_XMLGen.newContext SetRowTag?

Hello

I have the following code
v_ctx := DBMS_XMLGen.newContext('select ' || chr(39) || 'F5' || chr(39) || ' as "sender",
                                        payloadid as "messageId",
                                        ordernumber as "orderNumber", 
                                        recordtype as "recordType", 
                                        billtoid as "billToId", 
                                        shiptoid as "shipToId", 
                                        shipperid as "shipperId", 
                                        shipfromid as "shipFromId", 
                                        currency as "currency", 
                                        siteid as "siteId", 
                                        carrierid as "carrierId", 
                                        forwarderid as "forwarderId",
                                        flexcharacterattr7 as "flexCharacterAttr7",
                         hazardousindicator as "hazardousIndicator",
                                        motcode as "motCode",
                                        enduserid as "endUserId",
                                        orderdate as "orderDate",
                                        paymentterm as "paymentTerm",
                                        routedexportindicator as "routedExportIndicator", 
                                        cursor(select linenumber as "lineNumber"
                                                 from f5_ec_order_ln_out b
                                                where b.ordernumber = a.ordernumber) "lineRequest"  
                                   from f5_ec_order_hdr_out a
                                  where payloadid = 15');

DBMS_XMLGen.setRowsetTag(v_ctx, 'orderRequest');
DBMS_XMLGen.setRowTag(v_ctx, 'headerRequest');
It's return of lines with a tag line
<lineRequest>
<lineRequest_ROW>
<lineNumber>1078</lineNumber>
</lineRequest_ROW>
<lineRequest_ROW>
<lineNumber>1079</lineNumber>
Y at - it some sort of command as

DBMS_XMLGen.setRowTag (v_ctx, 'headerRequest');

is there a slider inside this declaration as routines such as

DBMS_XMLGen.setRowsetTag (v_ctx, 'orderRequest');
DBMS_XMLGen.setRowTag (v_ctx, 'headerRequest');

for the cursor within the party or I have to use a replacement on my XML just after?

Thanks in advance!

You can use xmlagg places the internal cursor:

SQL> declare
  2   v_ctx dbms_xmlgen.ctxHandle;
  3   x varchar2(2000);
  4  begin
  5    v_ctx := DBMS_XMLGen.newContext('select dname ,
  6                                            (select xmlagg(xmlelement("lineNumber",ename))
  7                                                   from emp b
  8                                                  where b.deptno = a.deptno) "lineRequest"
  9                                     from dept a');
 10
 11    DBMS_XMLGen.setRowsetTag(v_ctx, 'orderRequest');
 12    DBMS_XMLGen.setRowTag(v_ctx, 'headerRequest');
 13    x := dbms_xmlgen.getxml(v_ctx);
 14    dbms_output.put_line(x);
 15  end;
 16  /


 

ACCOUNTING
  

CLARKKINGMILLER  
 
 

RESEARCH
  

SMITHJONESSCOTTADAMSFORD

 
 
  SALES



ALLENWARDMARTINBLAKETURNERJAMES  
 
 

OPERATIONS
 


PL/SQL procedure successfully completed.

Max
http://oracleitalia.WordPress.com

Tags: Database

Similar Questions

  • There is a transparent circle at the bottom of my screen with my cursor inside and my touchscreen is unresponsive especially.

    There is a transparent circle at the bottom of my screen with the cursor of the mouse inside and my touch screen has become mainly unresposive.

    With respect to the cursor, I followed instructions stating that "USB input device" under "Human Interface Devices" in Device Manager should be disabled, I found. This seems to have resolved this issue, but I can leave this option off or something will not work?

    Regarding my touch screen becomes mostly unresponsive, sometimes I can scroll in my Firefox browser and very very occasionally I can touch the screen to access something but not normally.

    My laptop is a Sony VAIO

    Product name: SVT1312B4E

    ModelSVT131A11M

    Any help would be appreciated.


  • My text box is frozen and has a dotted around her line, how can I get the cursor inside?

    My text box is frozen and has a dotted around her line, how can I get the cursor inside? I work in Indesign CS3, I wrote a page of A4 format with a unique and with a large amount of text inside text box. In the end, I brought a JPEG in the page. Now they have a thin line dotted around them and appear "frozen." I have not seen the dotted line instead of the line before usual text box.

    Points: The text box is not locked, the layer is not locked. Nothing on the page goes live with command + A to select.

    It happened between the Time Machine backups so that I can not restore.

    All I need are the captured keystrokes.

    What can happen when you put the JPEG, I myself can I have moved that file folder, a larger file, on the desktop, then placed the JPEG.

    Re-opening Indesign didn't work; restart did not work.

    Solutions appreciated.

    The dotted lines mean that your items are on a master page and not a document page.

  • Why Microsoft did remove the ability for Windows Vista to install on herself from one location other than being inside the BONE you want to fix it?

    No Option to install repair - SAD

    Hello

    Why Microsoft removed the ability for Windows Vista to install on herself from one location other than being inside the BONE you want to repair.

    I recently had a problem where Vista Business 64-bit would only boot to a black screen with a mobile cursor - KSOD.   Who, in searching the Web I found is a fairly common problem with Vista.  I discovered that my only option was about to reinstall Vista CLEAN and all the other programs I had installed under it.  I can't believe that Microsoft released the 'repair installation option"similar to that of Windows XP, where you can hit the"R"key during installation and we left with nothing but the"System Restore"options and"Startup Repair ".  Neither of which has helped in my situation.  Since then, this was a dual system boot with XP Pro, then any restore point has been removed from the partition to Vista anytime, I started another recognized problem, by Microsoft, which Microsoft has made no significant effort to fix, in addition to recommending that you hide the partion Vista in XP - a whole of XP.  That beats a little the entire purpose of dual boot.

    As I tried to start in safe mode, it left me at the same point as a normal boot - black screen with a cursor.  I tried ctrl + alt + delete and nothing. Two Windows RE options did not help me.  This left me no option but to the completely reinstall Vista.   Why Microsoft did remove the ability for Windows Vista to install on herself from one location other than being inside the BONE you want to repair.. Please don't tell me that it is because Vista uses an image file instead of an installation as XP system.   I see no other reason for not allowing the upgrade of outside BONE in addition to Microsofts greed and paranoia that he can transform the operating system easier to install illegally.  I hope that some third party has actually changed the Vista installation routine to allow you to install Vista on itself, because as it is, it's really hard for me to even recommend Vista as the operating system or install any where else, if not the only recourse after loading OS, is to reinstall completely.

    Adobe, Autodesk, and almost all other software publishers... allow you to perform a "REPAIR" of their software installation, if something prevents you to load after installation.  Even MS Office has a routine repair.  Ms has an internal version of the Setup routine which allows outside the OS upgrade option that you want to "Upgrade" / repair? ".  If not, why?

    -Todd w.

    "Why Microsoft removed the ability for Windows Vista to install on herself from one location other than being inside the BONE you want to repair."

    «.. . After using XP's repair function, the operating system itself would become less stable and frankly not in a good state of repair. »

    As Todd, is the answer.

    "This response does not hold water as on one of my computers I've been running Windows XP for about four years now, after a repair install.

    Then, you were lucky.  Try to replace the system files on a computer that does not start even at a desk or safe mode usually will get a return to office, but will probably repeat the same problem in a few weeks.  Tech professional would only use this function to retrieve the data before a complete reinstallation.

    "I thought that this area was a place to really get answers instead of the ole same"answers of bs that are on all the other forums."

    It is a place that will try to help you fix your computer if you have problems.  It has technicians in computing, no decision-makers, developers or executives.  We will try to answer technical questions about problems you might have with Windows Vista.

    If you want to have input on the future of Microsoft operating systems, then help you beta-test and provide feedback to the developers.  Windows 7 and IE 8 are currently in beta.

    Another possible place you could make suggestions which could see the developers would be:

    https://connect.Microsoft.com/default.aspx

    Brent
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Oracle 11g: engage inside the outer loop or loop

    Hello

    Could someone pls help in this regard.

    My PLSQL program retrieves approximately 400 000 thousand records in cursor loop and cl, it takes more than 4 hours to complete IT.

    I commit every transactions inside the cursor loop... This can affect the runtime performance?


    Also, pls suggest, can we use commit 400 000 transactions once it will be faster? (or) the performance of baskets longer than the current situation.


    My goal is to make the fastest program and expect to reduce the timing of execution of 4 hours to 1 hour...


    Appreciate your help...


    Program design: advice:

    a. Select 400 000 thousand documents in the cursor.

    b. inside cursor for loop to two new sql instructions written to get values and store it in the local variable (this value is used in the call to insert data), two sql statements are handled with no_data_found and too_may_rows logic implicit sql statements to intercept the errors of the company

    c insert statement.

    validation of d. inside the loop (batch mode: nowait)

    management at the level of the procedure using raise_application_error exception e...

    Do not use the PL/SQL for data processing. SQL is a powerful language. Get the best out of him.

    Here is an example of using INSERT ALL. This is untested code and may contain syntax and semantic errors.

    insert all
      into medicomread.aatable_permit_people
      (
            permitnum
          , lic_num
          , lic_type
          , bus_name
          , addr1
          , addr2
          , addr3
          , city
          , state
          , zip
          , ph1
          , ph2
          , fax
          , bus_lic
          , lic_original_issue_date
          , expiration_date
      )
      values
      (
            appt_ref_no
          , lic_num
          ,'Business License'
          , company_name
          , postal_address
          , null
          , null
          , null
          , emirate
          , po_box
          , telephone
          , null
          , fax
          , license_no
          , issue_date
          , expiry_date
      )
      log errors into err$_aatable_permit_people ('INSERT1: HEALTH CARD SPONSOR DETAILS') reject limit unlimited
      into medicomread.aatable_permit_people
      (
            permitnum
          , tt_contact_type
          , name
          , b1_contact_nbr
      )
      values
      (
            appt_ref_no
          , 'Applicant'
          , cname
          , userseqno
      )
      log errors into err$_aatable_permit_people ('INSERT2: HEALTH CARD BUSINESS USER DETAILS') reject limit unlimited
      into medicomread.aatable_permit_people
      (
            permitnum
          , tt_contact_type
          , B1_Contact_Nbr
          , Name
          , gender
      )
      values
      (
            appt_ref_no
          , 'Individual Health'
          , userseqno
          , patient_name
          , ***
      )
      log errors into err$_aatable_permit_people ('INSERT3: HEALTH CARD APPLICANT USER DETAILS') reject limit unlimited
    with t1
    as
    (
     select mr.appt_ref_no
          , mr.sponsor_name
          , substr(mr.PATIENT_NAME,1,79) PATIENT_NAME
          , mr.***
       from medicomdata.mc_register mr
          , medicomdata.mc_process_type_register mptr
          , medicomdata.um_users uu
          , medicomdata.um_companies uc
      where mr.patient_id     = mptr.patient_id
        and mr.pro_id         = uu.user_id
        and mr.facility_id    = mptr.facility_id
        and mr.process_type   ='OH'
        and mr.regn_status    = 5
        and mr.sponsor_name   = uc.company_name
        and uu.type_id        = 3
        and (add_months( mptr.issued_date, 12 )-1) > sysdate
    ),
    t2 as
    (
     select decode(ucr.license_category_id,'DED','DED'||uuc.license_no,uuc.license_no) lic_num
          , uuc.company_name
          , ucr.postal_address
          , ucr.emirate
          , ucr.po_box
          , ucr.telephone
          , ucr.fax
          , uuc.LICENSE_NO
          , ucr.issue_date
          , ucr.expiry_date
       from medicomdata.um_companies uuc,medicomdata.company_registration ucr
      where uuc.license_no=ucr.business_license_number
        and uuc.inactive=0
        and upper(ucr.request_status)=upper('true')
    ),
    t3 as
    (
     select uu.company_name
          , cname
       from (
             select uu.first_name ||' '|| uu.last_name cname
                  , row_number() over(partition by uu.company_name order by decode(usr.service, 'HCDC', 0, 1)) rno
               from medicomdata.um_users uu
                  , medicomdata.user_service_request usr
              where uu.user_id      = usr.user_id
                and usr.service     = 'HCDC'
                and uu.type_id      = 2
                and uu.inactive     = 0
             )
      where rno = 1
    )
    select t1.appt_ref_no
         , t1.patient_name
         , t1.***
         , t2.lic_num
         ,'Business License'
         , t2.company_name
         , t2.postal_address
         , null
         , null
         , null
         , t2.emirate
         , t2.po_box
         , t2.telephone
         , null
         , t2.fax
         , t2.license_no
         , t2.issue_date
         , t2.expiry_date
         , t3.cname
         , companyuserseq.nextval userseqno
      from t1
      join t2
        on t1.sponsor_name = t2.company_name
      join t3
        on t1.sopnsor_name = t3.company_name;
    
  • Can't paint, "with brush" inside the selection after a STROKE.

    on an empty layer "layer 1", I've created an oval using selection tool elliptical that go to edit stroke. I caress with a black brush of 2 pixels. If I go back to the layer and ctrl-click, PS puts Mobile dotted around him that designate this option is selected. However, if I take a brush and try to paint inside I can't on the layer, "in or out of the selection", unless I have clear. Goes against everything I've learned so far on selections. Any help is appreciated.

    Try and get used to the use of many layers.  For example, the layers panel below shows that the top layer contains a Red Cross, but it is visible that where it overlaps the black circle because the layers are "clipped" together.

    To do this, place the cursor on the line between the layers and hold down the ALT (Opt) and click.  You will see the icon displayed below (I made larger than life for clarity) and the top layer will become indented with the tiny arrow facing downwards.

    You can also "clip" adjustment layers so that they affect only the layer that they are cut.  It is such a fundamental tool, there is an icon at the bottom of the Panel property of the adjustment layer (highlighted in red below.

    There are many ways of doing things with Photoshop.  For example, the same effect with the Red Cross and the black circle with the help of a layer mask.  CTRL click on the layer with this selection and black circle to load the selection in place, add an adjustment layer to the layer of the Red Cross.

    Perhaps the only thing more fundamental to the use of Photoshop that what precedes, control selections, but do not all learn in one day.

  • FX-shape inside the button

    Hi, I'm trying 2 simple button (add, remove) style. The result that I have now is the following: http://snag.gy/wrv1i.jpg, it's pretty good but I would like to create a shape inside this button for the draw + and -. Now I use the value of the button text to show that. My problem is that if I use fx-shape inside the key, I lose the entire background, rounded edge ecc ecc. This is my css:

    .table-button-add {
         -fx-cursor: hand;
         -fx-background-radius: 0.0 5.0 5.0 0.0 ;
         -fx-background-color: #2381E9;   
         -fx-font-weight: bold;        
         
         -fx-padding:0.0 0.0 0.0 0.0;
         -fx-font-size: 19.0px;
         -fx-text-fill: #FFFFFF;
         -fx-pref-height: 30.0px;     
         -fx-pref-width: 30.0px;    
    }
    
    .table-button-del {
         -fx-cursor: hand;
         -fx-background-radius: 0.0 5.0 5.0 0.0;
         -fx-background-color: red;   
         -fx-font-weight: bold;   
         
         -fx-padding:0.0 0.0 0.0 0.0;
         -fx-font-size: 19.0px;
         -fx-text-fill: #FFFFFF;
         -fx-pref-height: 30.0px;     
         -fx-pref-width: 30.0px;
    }
    

    Do you have any ideas on how I can add a shape inside the key in preserving its actual form?

    Thank you

    Define a graph on the button (for example a pane with a minimum width/height set on it) and apply a shape to the image.

  • Place an image inside the Accordion Panel

    Hello

    I would like to do something comparable to what has been done here - accordion (Widget Panel) by the team of Adobe Muse

    but I just can't seam to be able to place the image inside the accordion, I can change color, gradient, change the size of text etc, but how to get a picture on the inside?

    Is what I tried to create a status button then place my SVG graphics and panel inside the button accordion and it seams to be ok, but if you place the cursor on the SVG and click on it, nothing happens almost he avoid pressing the graph and simply press the bar of the accordion in order to develop ,

    Thanks again,

    For the content area, you can drag and drop and image and with the area of the label, you can use image fill.

    Thank you

    Sanjit

  • Cannot click inside the shape

    Hi again! I'm having a problem with something I'm experimenting with that. I'm looking to add a form and button on my site, but when you add within a specific div, I can't click inside the form field.

    Test the Site below:

    Rental management company

    rmcexample.jpg

    The highlighted area is the part I'm talking about. My theory is that I can't click inside this area, because it is connected to the pro javascript slider and nothing inside the div tag is treated as a picture or sortings. Is there a way I can get around this? Any help is appreciated, thanks in advance!

    IMO, this slider has no positive effect for your page.   I use cursors for titles and images, but not for long details on several properties.  I just think it's the wrong approach for this kind of content.

    The form works if you put the cursor inside a separate far container?

    Nancy O.

  • procedure inside the if condition

    Hello
    Can we declare a cursor inside an if condition.

    As
    if(vcount=5) then

    Open vcur for
    Select * from aggregation;

    end if;
    end;
    Note: the cursor is of type ref cursor
    Like this???
    I am using oracle 11g

    Works fine for me...

    SQL> var x refcursor;
    SQL> begin
      2    if 1=2 then
      3      open :x for 'select * from emp';
      4    else
      5      open :x for 'select * from dept';
      6    end if;
      7  end;
      8  /
    
    PL/SQL procedure successfully completed.
    
    SQL> print x;
    
        DEPTNO DNAME          LOC
    ---------- -------------- -------------
            10 ACCOUNTING     NEW YORK
            20 RESEARCH       DALLAS
            30 SALES          CHICAGO
            40 OPERATIONS     BOSTON
            50 IT SUPPORT     LONDON
    

    (Note: I used a variable to sqlplus connection to my ref cursor, but the principle is the same PL/SQL code using a PL/SQL ref cursor variable)

  • Import the shape of the cursor in the form of Oracle

    Hello

    Oracle 10g.

    Suppose I did the new shape of the cursor of the mouse as the hand, by default, busy... etc.

    How can I import this form inside my application as any other form of standard mouse?

    Kind regards

    Published by: kingadmin on February 20, 2012 10:44

    There are a few built-in forms options. See the online help. Watch SET_APPLICATION_PROPERTY - are specifically looking for 'slider Style property.

    If you want to use custom images, you will need to do something like this:

    http://Forms.PJC.Bean.over-blog.com/article-4153696.html

  • Captivate: Keep the cursor in the text entry box

    I would limit the cursor on the input text in a slide area, regardless of where the user can click.

    I am doing a project of training for an application interface text, and I simulate the application entry field by placing a unique text on the slide entry box.  Although the cursor starts in this field when the slide is displayed, if the user can use the mouse to click anywhere but the text entry box, the cursor disappears and the user can enter data until he or she clicks on the text with the mouse input box.  This problem occurs in both the preview and the. Output of the EXE.

    I tried to activate and deactivate the 'click' option under select key... in the parameters text box properties.  I also tried setting the action on the lost update to allow for the text control, or make her display a legend that says "click in the area of selection."  Apparently, remove the cursor of the box isn't enough to trigger the event "has lost the Focus.

    While this isn't a complete show-stopper, it is an irritation that I'd rather not have my users deal with.

    I am using Captivate 4 v4.0.1 build 1658.

    Thanks for any help you can give...

    Hello

    I was able to do the following.

    Insert a box click programmed object to go to the last slide when you click it.

    Insert a text entry box and configure it so that it does not keep the text.

    Insert a blank slide just before the slide with the TEB, then once it is longs.1 seconds. You should also give the same origin as the slide with the TEB. Otherwise, you will see a 'flash', as the previous slide is visited.

    The way this works is that the user clicks anywhere but the BER and transport action click on box to the previous slide. But this slide is really super short. .1 second if it is visited and the read head again enters the slide with the TEB.

    One thing to be aware of, is that if you plan to view the Captivate 'as a whole', which means that you have no idea what browser is used to view it, you must consider the insertion of a button object on the first slide that requires the user to click on it. This way is is moved to the Flash sitting inside the browser object.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • Cursor inside a loop FOR?

    Hello

    We will declare or define a cursor inside a loop FOR?

    -Vijay

    Yes, it is possible that the definition take place inside the part of the plsql block code, the syntax looks like:

    for rec in (/*here you define cursor with select query*/) loop
      ...
    end loop;
    

    I think that if you do not use a variable/slider several times, it is advisable to set the cursor with the loop for. If you want to use the cursor over a school then it should be defined in more global place.

  • Declare the cursor within the begin/end block

    Hi all
    Can we declare a cursor inside a begin/end block. If we can, please let me know how. I want to declare a cursor where it will return value based on the settings of the user. User will enter in as username(for example), we have to recover the ID, the user name and we must move to cursor. To do this, we wrote a query to fetch id in a variable in the other block of start/end and we pass this variable in the cursor. Is this possible.



    Thank you and best regards,
    Mahesh

    In general, yes you can, you simply nest another block of execution inside of your...

    begin
      declare
        cursor x is select dummy from dual;
      begin
        ...
      end;
    end;
    /
    
  • Why new tabs do not place the cursor in the url as before?

    yesterday, I click New tab and the tab page comes up with the emphasis placed in the URL bar Highlighter and all I have to do is enter the address I want to search or go to
    Today, the focus ends up with the cursor at the end of the address in the URL bar... NOT GOOD!

    Hello, you can try to reproduce this behavior when you start firefox in safe mode, once? If not, perhaps an addon intrudes here...

    Troubleshoot extensions, themes, and issues of hardware acceleration to resolve common problems of Firefox

Maybe you are looking for

  • Does not save on Mybook after waking up

    My Macbook Pro recognizes my WD my book for Mac external hard drive when booting, and I can make manual backups.  However, after the computer wakes from sleep mode the backup fails and I should use WD Unlocker in the Finder menu to unlock the drive a

  • Satellite L650-11F - how to access HARD drive recovery?

    Hello! I have a Toshiba Satellite L650-11F. The other day I had a huge massive Goner virus (lol) and the computer is turned off. Whenever I tried to turn it on, it started to load Windows, and then restart. I tried to start Windows in safe mode but t

  • Skype error 'instruction privilege. "

    Hello I have a problem with my Skype. As soon as I turn it on, it crashed (work stoppage). I uninstalled and reinstalled, but it still does not work. Now, I get the message "the privileged instruction" as the reason why it has stopped working. What i

  • My Satellite L850-A921 closed and could not start

    I have my laptop closed and did not start again even with problems different shoots:-You press the power button for more than 15 seconds, but no response-A out the battery and the power supply lead for 20 minutes and then plug in the power again, no

  • Windows install lost or deleted or does not

    How to load an or reinstall a.  I work with XP