Problem with the help of oraext: query-database in the transformation (XSLT 2.0)

Hello!
I m facing a problem with the help of oraext: query-database.

In my transformation im try the following (Simplified):
<xsl:template match="*">
  <xsl:variable sqlQuery="select ....."/>
  <xsl:variable name="storeSec" select="oraext:query-database($sqlQuery,true(),true(),'jdbc/xref')/>               
    <xsl:choose>
     <xsl:when test="string-length($storeSec/ROWSET/ROW[1]/STORE_PART_SECTION) > 0">
          <xsl:value-of select="$storeSec/ROWSET/ROW[1]/STORE_PART_SECTION"/>
     </xsl:when>
       <xsl:otherwise>
            <xsl:value-of select"some other val"/>
       </xsl:otherwise>
    </xsl:choose>
</xsl:template>
{code}

This always results in +some+ +other+ +val+ !!
I´v checked the output from oraext:query-database by using getcontentAsString and if I instead test putting the expected output from oraext:queryDatabase in my variable it gives me A100 which is what i expected.

{code}
<xsl:template match="*">
  <xsl:variable sqlQuery=select ....."/>
  <xsl:variable name="storeSec">
    <ROWSET>
     <ROW num="1">
       <STORE_PART_SECTION>A100</STORE_PART_SECTION>
     </ROW>
     <ROW num="2">
       <STORE_PART_SECTION>XXm</STORE_PART_SECTION>
     </ROW>
    </ROWSET>
  </xsl:variable>               
    <xsl:choose>
     <xsl:when test="string-length($storeSec/ROWSET/ROW[1]/STORE_PART_SECTION) > 0">
          <xsl:value-of select="$storeSec/ROWSET/ROW[1]/STORE_PART_SECTION"/>
     </xsl:when>
       <xsl:otherwise>
            <xsl:value-of select"some other val"/>
       </xsl:otherwise>
    </xsl:choose>
</xsl:template>
How to get the correct value when you use oraext:query - database?

How should you exit? Several item ID with each having a value of the result set?
If Yes, then you can try following:

 
                    
                        
                    
                         
                              
                         
                    
                        

Tags: Fusion Middleware

Similar Questions

  • Is it possible to use the AND condition in oraext:query-database()

    Hello world.

    I think the answer to my question is no because it seems straight forward if it was possible, but I failed to do so.

    I tried:

    oraext:query - database (concat ('select create_ts the menu where order_num = ', substring($ticket,10,15)', and where table_num =', substring ($ticket, 20, 5)), false (), false (),'jdbc:oracle:thin:sysdba / oracle1 @localhost: 21/SOAINFRA ')

    Anyone confirm that with the help of State cannot be used oraext:query-database()?

    Thank you.

    I just saw my error. I have two WHERE clauses.

  • Problem with the input query mode. FRM 41009, 40301

    Hi all

    I have a problem with the mode of input query. What can I say, I'm in the mode of input query, and I click on a button. I get the error THAT FRM-41009 displayed.

    Now, I've wanted handled. So I created a trigger of error in order to handle the error.

    IF ERR_CODE = 41009 THEN
    NULL;
    END IF;

    A problem is that when you use the null value, it will not terminate the mode of input query, and then I get frm-40301 error.

    Second, it's that I can't use exit_form in a trigger of the error.

    I am aware that I can press F4 to exit this mode, but I don't want to do whenever I'm sure I'll get the user complaints.

    Another solution would be to put the following code in the trigger when key pressed for each button in the form:

    If: system.mode = "ENTER-QUERY" then
    exit_form;
    end if;

    But I don't want to reproduce this code in my form.

    Please can you give me an idea how to handle this correctly?

    Thank you
    Michael

    PS: Version of the form = > ORACLE FORMS 10g (Forms [32 bit] Version 10.1.2.3.0)

    I have a problem with the mode of input query. What can I say, I'm in the mode of input query, and I click on a button. I get the error THAT FRM-41009 displayed.

    What is the code in the trigger of your button When-Button-Pressed (WBP)? Maybe you should check to see if the form is in the Mode query in your WBP rather than try and remove the error? In other words, eliminate error - do not delete it. :)

    If you want instead to remove the error, there is a technique to built-ins call restricted to a trigger that does not allow them. Do this by the use of a millisecond zero Timer. For example:

    /* Sample On-Error Trigger */
    DECLARE
      n_err_cd   NUMBER := ERROR_CODE;
      t_on_error TIMER;
      ZERO  NUMBER := 0;
    BEGIN
      IF ( n_err_cd = 41009 ) THEN
        /* Create Timer to execute Exit_Form() */
        /* to Cancel Query-Mode. */
        t_timer := Create_Timer('ON_ERROR', ZERO, NO_REPEAT);
      ELSE
        /* Handle all other errors here... */
      END IF;
    END;
    
    /* Sample When-Timer-Expired Trigger */
    DECLARE
      v_Timer  VARCHAR2(30);
    BEGIN
      v_timer := Get_Application_Property(TIMER_NAME);
    
      IF ( v_timer = 'ON_ERROR' ) THEN
        /* Notice, the timer name is case sensative! */
        Exit_Form;
      END IF;
    END; 
    

    I am aware that I can press F4 to exit this mode, but I don't want to do whenever I'm sure I'll get the user complaints.

    Well, it's just standard features of Oracle Forms. If you switch the Mode request form - you must run a query or cancel the query Mode! This is how it works. Your users need to understand that and accept it - just as they accept the functional also for other programs. ;) Another option would be to add a "Cancel request" button to your form and make it so it is enabled only when the form is placed in Query Mode. Just a thought...

    I personally prefer to prevent the occurrence of an error rather than remove the error. :)
    I hope this helps.
    Craig...

  • strange problem with the database link

    Hello world

    I have a strange problem with the link of database in Oracle 11 g Express Edition;
    There are two computers: computer-server and the client computer. Tnsnames.ora are the same on both computers IE.

    CT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof) (PORT = 1521))
    )
    (CONNECT_DATA = (SERVICE_NAME = XE)
    )
    )

    I created the database link:

    Create database link zdalny
    Connect to < user_id > identified by < password >
    using "CT".

    Customer cannot connect with server when I do not use above the command. But when I change 'use' for using "krzysztof:1521" or by using "krzysztof" or "server IP:1521" - everything is ok.

    Why I ask. Because in all the materials that I read about Oracle command with the help of "CT" should work correct. But there is no. Do you know why?

    Thanks in advance and apologize me for my English.

    Rgds
    Krzysztof

    Here's the tnsnames of your server, but to connect to the oracle server db (any client or to another instance of db oracle), you must install oracle client.
    However, in your condition, you want to connect the DB1 Oracle OracleDB2 using a link db, I'm right? In this case you should always set the entry in the tnsnames.ora
    To verify that you can connect to Oracle DB2 from DB1 Oracle, you can use tnsping in the command line.
    In your case

    c:\tnsping CT
    

    Krzysztof Szymaniak wrote: CT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    )
    )

    Check your tnsnames entry in the machine, you are trying to connect to. And check if the tnsping is successful.
    Sometimes the error message says not everything, which means that you need to troubleshoot yourself and learn from the experience.
    Always in the opposite case, refer to the documentation.

    See you soon.

    Published by: Spongebob December 14, 2011 09:30

  • I have a mac book pro 2009 model, now when I try to load it, there is no green light on the adapter and the laptop does not charge. Not sure if there is a problem with the card or the battery or the laptop. Kindly help

    I have a Mac book pro 2009 model, when I try to load it it not there no green light on the adapter and he is in charge. Not sure if there is a problem with the adapter or the battery or the laptop. Kindly help... Thank you

    Have you tried:

    Portable Apple computers: Troubleshooting MagSafe adapters - Apple Support

    This is the Office Mac Pro forum. I asked that your post be moved to the MacBook Pro laptop forum.

  • lately and I don't know why I see a pop up of a problem with the script. can some1 help me?

    There is a pop up of a problem with the script. He asked end and contuniue the script. I didn't have this problem before. Please help me this is getting really annoying. He asks a lot

    I changed a theme and almost never have a problem again...

  • my iPhone 6s has problems with the GPS when I use some applications, it does not work well and give especially the bad road. Can someone help me?

    my iPhone 6s has problems with the GPS when I use some applications, it does not work well and give especially the bad road. Can someone help me?

    My iphone 6 has started having the same problem. Its literally the GPS. Saying that it does not find me at all. Ive seen say location for more than an hour in the suburbs of chicago. It started to happen to me after I downloaded the latest update for the iphone. I hope they react and let you know what is happening because I'm dying to know as well.

  • Problem with the installation of the assembly please help

    I get this messege and he says that the problem is "Microsoft.VC90.CRT, version ="9.0.21022.8", publicKeyToken ="1fc8b3b9a1e18e3b"processorArchitecture ="x 86", type ="win32

    Please help me with this problem because I can not install programs or updates

    Hi killerinthesand,

    What version of Windows are you using?
    Please check this thread on the forum for Games for Windows.  It is a similar problem with the same error as yours.  Try the steps you propose to see one of them will help to solve your problem.  This is most likely a problem to produce a Games for Windows client.  Have you installed this recently too?

    http://forums.gamesforwindows.com/t/566.aspx

    Let us know the results, Kevin
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Hi.I download Microsoft Security Essentials and installation becomes a problem with the code: 0 x 80070643. If you can help me...

    Hi.I download Microsoft Security Essentials and installation becomes a problem with the code: 0 x 80070643. If you can help me...

    Support Microsoft Security Essentials forums
    http://social.answers.Microsoft.com/forums/en-us/category/MSE

    Can I install Microsoft Security Essentials [or any other anti-virus/anti-spyware application] to clean my already infected computer?
    http://social.answers.Microsoft.com/forums/en-us/msescan/thread/87058857-D181-4019-a723-efd9a49d9275

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Issue of 'no networks detected. Problems with the AR5BWB222 driver for WiFi adapter. Help, please!

    Hi all

    I need your help!

    then a few days ago my wifi started playing on my acer Windows 8 V5-552 and I have decided to update the driver for the card. I did this by unistalling and re-istalling the driver for the Atheros AR5BWB222 map I downloaded from this site acer very (it turns out it's the same version), now I have no WiFi connection at all (I am currently using ethernet cable but I need to be mobile around the House!). Troubleshooting does not help and said "there could be a problem with the driver for the WiFi card" and when I click fix problem there is no NOTHING (why did even give the option?). Did a system restore and that didn't work because of my antivirus and there still nothing when I turned antivirus off the coast. Then I read a lot of forum preveous questions on this driver and no solutions helped, maybe because everything is last year.

    I really want to avoide a factory reset as I have some programs here that will be very difficult to acquire again.

    If you're still here after my speech, I am greatfull and also want your knowledge and advice about this superior! Please help me!

    What antivirus program you are wrong with turning off? I know that some may be stubborn. If the AV program refuses to turn off this feature with a selective startup in MSCONFIG, then you can try to uninstall it completely in the PANEL. Then try to restore to the previous new date

    Jack E/NJ

  • Strange problems with the database

    Hello

    I just got my Fuze and am very happy with it; However, I am having a very strange problem with the database. I have a 16 GB sdhc card that I use with the "rocket" and there are about 4 songs on the card that will not play and have no information charge tag. Their tags appear in the tag browser (not the in the track information screen) as just an empty rectangle. Under the track information screen, sizes are listed as ~ 4000 mb. The songs will not play and I can not jump in front of one of these songs once they were loaded.

    At first, I suspected some kind of corruption of tag, so I set out that night to track down the problem. I removed the 16 GB card and reset the player. Then, I loaded one of the corrupt in the internal memory of the player. The track has been scanned and played correctly. Then, I removed the track of the internal memory and it loaded on another SDHC card. Yet once, everything worked correctly, so I knew that the card I was using was a kind of system files or physical problem. I returned the original 16 GB sdhc card in the reader and checked that the file was still unplayable, and then I plugged the "rocket" to my computer. I transferred the unplayable file on my computer and compared (with md5sum) to the original file, thinking that if there was the file system or physical corruption the copy of the map would be damaged. However, the files were equivalent.

    To make things even more interesting, I also have problems with the registration of the kind. I have some files tagged Genres such as 'Classic' and 'Rock '. In the list of the genre, I see this:

    C

    CL

    CLA

    CLAS

    Class

    Classic

    Classic

    Classica

    Classic

    Rock

    So, there is corruption on the kind of 'Classic' but not the kind of "Rock". Each of the substrings of 'Classic' contains only a few titles, with most of the other titles listed where they should be. I checked that the tracks are labeled correctly and in exactly the same way as the other tracks that do not have this problem.

    I am at a total loss about what to do, and I'd really appreciate any advice or suggestions. I use the current firmware, 2.03.31a and the songs in question are in Ogg Vorbis format.

    MM

    Thanks for your replies.

    I managed to find what may be the problem. Tracks that received corrupt tags had the names of total path with more than 256 characters. It seems that the driver internal fat32 the rocket uses vomits all over the place when the path name is too long. Before the "rocket", I got an iPod running rockbox tags with the same directory structure that I have on the "rocket", so I don't think that this restriction on the length of the path name is a limitation or requirement of the fat32 file system. Reduce the path corrected the problem with the files being unreadable.

    However, the problem with foires genres the rest. Looking at the files show that corruption, they all have a little information in tags. Most of the information is contained in the hashes I have files that identify them via musicbrainz. The limit on the total number of characters in the tags of the track includes the "rocket" label is not read or use?

    MM

  • Problems with the help of web camera, it shows it programs and on the desktop. But when I double click on it. It will go to the program do not know what to do. Help, please. Thank you.

    Having problems with the help of web camera program does not work when I click it. don't know what to do. Please help thanks.

    Hello

    Right click on the shortcut tab icon - properties - look on the target line to see where and what type of program
    is supposed to work.

    You will probably need to reload the drivers of the device and any camera control software.

    Login as an administrator.

    Double-click Control Panel / Device Manager - Imaging - writing down of the brand and model of camera.
    on this subject and on the tab of the driver is version. Now, click on update drivers (who are unable to do anything as MS
    is far behind the pilots of certification). RIGHT click on the camera - UNINSTALL - REBOOT - it
    will update the driver stack.

    Now, go to the system manufacturer's website and download the latest driver for the camera and the other related camera
    software (if not more recent get the same).

    Download - SAVE - go to them and RIGHT CLICK - RUN AS ADMIN - reboot after each driver.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    Then let windows updates on however prevent loading of drivers who are often older than the
    those that you have installed. If updates suggests a pilot and then HIDE it and watch manually to see if their
    really is a more recent version (at the time system manufacturer and the sites of the manufacturer of the device).

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • I just wanted to know at all, if you encounter a problem with the update of creative cloud as if I was (error 1001), I discovered that my Webroot AntiVirus has been the origin of the problem. I turned it off and it updated correctly. Hope that helps some

    I just wanted to know at all, if you encounter a problem with the update of creative cloud as if I was (error 1001), I discovered that my Webroot AntiVirus has been the origin of the problem. I turned it off and it updated correctly. Hope that helps some people I've seen so angry about it here by searching for the answer myself.

    Thanks for sharing this, yes turning Firewall works.

    Concerning

    Stéphane

  • Seeking help with a problem with the LR I use LR CC on a laptop, when you try to export a picture to an external hard drive, I am now without apparent reason to get the following message, "could not create a JPEG sponsor limit you 92 k Bytes.Plea.

    Seeking help with a problem with the LR


    I use LR CC on a laptop, when you try to export a picture to an external hard drive, I am now without apparent reason to get the following message.

    "Could not create a respondent JPEG limit you 92 k Bytes.Please increase the size limit files
    . (1).

    .....

    I tried to increase the size of the file several times,

    I left LR

    I restarted the computer.


    Any help or advice for this problem will be greatly appreciated


    Thanks in advance


    @stu

    Not because of the number of pixels, in this photo and the chosen level of quality there is no possible way to create a JPG file to the size of file you requested. You must change your export settings.

    Show us a copy of the export dialog box, so we can see clearly the part file setting and the size of the Image.

    Also indicate the number of this image (width and height) pixels after cropping (as appropriate) and prior to export.

  • Problem with the simple query.

    Hi all

    I am facing problem with the query below

    Select A.COL1, A.COL2

    B.COL1, B.COL2

    FROM TABLE1 A

    TABLE 1 B

    WHERE A.header = '123'

    AND B.header = '123'

    AND nvl (A.COL6, 'ABC') = 'ABC '.

    AND NVL (B.COL6, 'DEF') = 'DEF '.

    Basically, my requiremenyt is: I have only one table, TABLE1 here, which has a line two lines (for the same header) as "ABC" and another is "DEF". Table 1 has two columns (col1, col2) that should be displayed for both lines.

    When the header has two records in table1 top query works. and but if I do not have a record for any header example there are a record for "abc" in col6 only. so my query above does not work because there is no record for 'DEF' in col6. But I want to again request to fecth the output (for b.col1 and b.col2 should have null values)

    could you pls suggest me how to get the 4 columns.

    Thanks in advance

    Kind regards

    UVA.

    Try to place the status of outer join on column: analytical_criterion_code as

    and nvl (AUDIT.analytical_criterion_code, 'AUDIT2') = 'verification2. '

    .

    .

    and nvl (TRANS.analytical_criterion_code, 'TRANS2') = 'TRANS2.

    In the sub query based on the opinions that you have given in post # 1, although there is no value "DEF * ' for col6 due to the condition of outer join on b.col6 (+) line is extracted with b.col [1,2,3] as NULL values. Try to remove the (+) sign b.col6 and test.

    with t as)

    Select 111 col1, col2 'aaa', 'ABC' col6 123 header of all the double union

    Select 222 'bbb', 'DEF' col6, 123 double header

    )

    q as (select 123 double header)

    Select A.COL1, A.COL2, A.COL6

    B.COL1, B.COL2, b.COL6

    q.header

    T a

    t b

    q

    where a.col6 (+) = 'ABC '.

    and b.col6 (+) = "DEF."

    and q.header = a.header (+)

    and q.header = b.header (+)

Maybe you are looking for