How to get Database functions into xquery/XSLT in OSB 12c

Hello All,
How to make use of  functions orcl:sequence-next-val and orcl:query-database in xslt/xquery in OSB 12c.
I need to do the below logic in xslt/xquery and used it in replace activity . But in OSB 12c I don't see these function. Request to provide me the solution to do it in OSB.
XSLT in SOA
<xsl:when test="/ns0:CreateEvent/ns0:Header/header:SourceName != &quot;&quot;">
            <ns1:googleEventSourceId>
              <xsl:value-of select="orcl:query-database(concat(&quot;select google_event_source_id from enterprise.google_event_source where google_event_source=&quot;,&quot;'&quot;,/ns0:CreateEvent/ns0:Header/header:SourceName,&quot;'&quot;),false(),false(),&quot;jdbc/PRDatasource&quot;)"/>
            </ns1:googleEventSourceId>
          </xsl:when>
<ns1:googleMapEventId>
          <xsl:value-of select="orcl:sequence-next-val(&quot;enterprise.google_map_event_seq&quot;,&quot;jdbc/PRDatasource&quot;)"/>
        </ns1:googleMapEventId>
please see below code is just part of my transformation.
Regards,
TJ.

bump

Similar Messages

  • How to get the function name/ID  of the current page

    HI,
    I searched the forum and google, but it is not clear on how to get the function name of the current page.
    I have 4 functions in my self service A ,B,C,D (seeded page links ) they all have to go to a page called hhhPG. Based on which function user is clicks I have to show the data in hhhPG.
    so my question is how to get the function name ? I mean I need to know if user click on link A , B, C or D link and came to this page.
    I found below in one forum and also there is getfunctionID in pageContext , but I do not know what to pass to getfunctionid("???") to get value.
    FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
    Or is there a better way of know where user is coming from ? like geturl....
    Please help, I need this ASAP.
    Thank you.

    Use below to find out how the user came into the page
    FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
    boolean isFunc1 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME1"));
    boolean isFunc2 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME2"));
    boolean isFunc3 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME3"));
    boolean isFunc4 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME4"));
    So one of them will be true based on the function the user came in.
    Write your logic based on these flags.
    Regards,
    Peddi.

  • How to get quicktime movie  into FCP X?

    how to get quicktime movie  into FCP X?

    What exactly are you trying to do that using the import files function won't accomplish?
    Russ

  • I have purchased Adobe XI Pro and created a form for entering bowling scores to submit to newspaper for my high school team.  I can not figure out how to get pdf's into my documents folder on my iPad so that I can access the files in bowling alleys where

    I have purchased Adobe XI Pro and created a form for entering bowling scores to submit to newspaper for my high school team.  I can not figure out how to get pdf's into my documents folder on my iPad so that I can access the files in bowling alleys where I do not have a Wi-Fi connections.  I need to be able access files without going to acrobat.com.  Help!!!@

    Post the PDF files to a web site. The browse to them in Safari on the iPad.  When you Open the files specify the Open to occur in Adobe Reader.  Then you can have/Save them in your Documents folder on the iPad.   An iPad has limited access to files otherwise.

  • I update my IPhone4 to IOS6 from IOS4.3.3. My all songs are missing in the Iphone4. How to get those songs into my Iphone from ITunes. Even after sync also not coming to IPhone.

    I update my IPhone4 to IOS6 from IOS4.3.3. My all songs are missing in the Iphone4. How to get those songs into my Iphone from ITunes. Even after sync also not coming to IPhone.

    The iphone is not  storage/backup device.
    The sync is one way - computer to iphone.
    The only exception is itunes purchases.  File>Devices>Transfer Purchases
    You should copy everything from your old computer, or your backup copy of your old computer, to your new one.

  • New document alert: How to get PDF documents into Adobe Reader for iOS

    Opening PDF Files in Reader for iOS (iPhone and iPad) has been very helpful to many users of Adobe Reader for iOS.  However, Apple has drastically changed the user interface in iOS 7, which made the original document obsolete. 
    According to Apple Developer Support's App Store Distribution page, 89% of devices connected to the App Store are using iOS 7 during a 7‑day period ending June 29, 2014.
    Because of the exceptionally high iOS 7 adoption rate, Adobe Reader for iOS version 11.3 now supports iOS 7 only.
    Here are the new How-To documents for iOS 7.
    How to get PDF documents into Adobe Reader for iOS (iPad on iOS 7 version)
    How to get PDF documents into Adobe Reader for iOS (iPhone on iOS 7 version)
    (It had to be split into two separate documents because each contains way too many screenshots.)
    Hope these documents are as helpful as the original one.
    Please let us know if you have any feedback or suggestions on the topics for other help documents/tutorials.

    Dennis (or any Adobe rep),
    Any updates to the OP's question? I'm with a large government agency, and we're moving away from GoodReader for reasons I can't go into here, and the ability to add user-defined bookmarks within the app is a mandatory feature for the document reader we select. I have the latest version of Adobe Reader (11.6.1) installed on my government iPad, and the ability to add user-defined bookmarks still seems to be missing. Does Adobe have any plans to add this feature, or is it already present and I'm simply overlooking it?
    Thanks,
    Cam

  • How to get the function name in controller class

    Hi experts ,
    I am new to the OAF framework.
    i have created the two functions and bot he the function have the same controller class .i want to capture the function name or function id in the controller class.
    can you please let me know how to get the function id or function name in the controller class.

    Hi apurba,
    Thanks for the quick reply.
    i am trying to get the function name from the FunctionSecurity class,
    However in FunctionSecurity class there is no such method defined as getFunctionName();
    my requirement is ,i have two functions functionA and functionB defined.
    both the function has the same controller class.in controller class ,i need to get the function name ,based on the function name
    i will redirect the page to respective page.
    looking forward for you response.
    appreciate your help
    Thanks,
    KT

  • How to convert database table into xml file

    Hi.
    How to convert database table into XML file in Oracle HTML DB.
    Please let me know.
    Thanks.

    This not really a specific APEX question... but I search the database forum and found this thread which I think will help
    Exporting Oracle table to XML
    If it does not I suggest looking at the database forum or have a look at this document on using the XML toolkit
    http://download-east.oracle.com/docs/html/B12146_01/c_xml.htm
    Hope this helps
    Chris

  • How to get database connection in applet

    Hi,
    I am trying to prepare database connection in applet. After preparing connection with database it'll read same values from table.
    At the time of development it works fine. I have used esclipse IDE for coding and testing.
    But when I try to call that applet from browser. It is giving ClassNotFound exception.
    Does anybody know How to get database connection in applet ?
    Please help me if anybody know solution for this.
    Thanks,
    Rajesh

    As per my knowledge is conserned
    1 u can get the database connection in a jsp page and u send the result set as param to the applet and u can use retrieved values as if they were of the same applet if u r interested i can send the db connetion coding for jsp my id [email protected]

  • HELP!! How to get iTunes songs into Rezzila

    Im trying to get a song from iTunes into Rezilla. I've tried looking for a program that will convert it into SND, but without money, i'm outta luck. So i've resorted to getting the song out of my iTunes library by using HEXADECIMALs! Since I've never used hexadecimals, I have no past skill or even how to use it. I was wondering if it was even possible and or if it is even possible. But if it is Please email me or leave a comment on how to get this song into REZZILA.
    Thanks,
    Rob

    Rezilla, unless there's another program by the same name, is an editor for the resource and data forks of a file, and as such can have no use with an iTunes track (none I know of, anyway). It certainly cannot convert an audio track to some other audio format. Nor can you convert a track from one format to another by going into the track file with a hex editor; it just not possible.
    I'm not aware of a free converter than can output SND files unless ffmpeg can.

  • How to call business service from xquery transformation in OSB ??

    Hi All,
    How to call business service from xquery transformation in OSB ??
    I need to assign the response variable of Business Service to a target element in XQuery Transformation Mapper file.
    It's urgent.
    Regards,
    Jyoti Nayak

    Transformation is to mapping the source and target of 2 different schemas.
    In your case you should have a XQuery transformation between, your Business Service output schema and the target schema.
    Thanks,
    Vijay

  • How to get the list of deployed projects in OSB through commond line

    How to get the list of deployed projects in OSB through commond line; as we are able to get in weblogic.

    You can go with standard JMX API using WLST
    http://www.oracle.com/technology/sample_code/products/osb/index.html
    http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e15033/index.html
    or you can try a little bit tricky way like
    ls $DOMAIN_HOME/osb/config/core/ | grep -v ^_:-)

  • Including customized xquery functions in XQuery/XSLT expression Editor-OSB

    Hi,
    I have written a customized xquery function. I want this to be included in the List of Xquery Functions which is displayed by Oracle Service Bus in the XQuery/XSLT
    Expression Editor. OSB displays the built in xquery functions in the XSLT/Xquey Expression Editor. Is there any way to add the customised xquery to this list, so that it can be dragged and dropped later?
    Thanks,
    Balaji.

    I doubt if that is exposed out side of Oracle Engineering (Not public/documented). Please raise a support ticket for enhancement. If PM should concur you might get the steps that need to be performed for this feature.
    Thanks
    Manoj
    Edited by: Manoj Neelapu on Jun 8, 2010 8:37 AM

  • How to get jpg photo into photoshop as jpg wt LR changes

    I can not determine how to get jpg photos from Lightroom into Photoshop CS3 without using the export function. With a raw photo I can simply press "clrl e" and the raw photo is converted into a tif or psd file and sent to photoshop. That is very convenient when you have worked on the photo and wish to make additional adjustments in CS3. When I do the same process with a jpg file, it converts the file from jpg into a tif at a much larger file size then necessary. Is there a way to get a jpg file which I have worked on within Lightroom into CS3 without using the export function? Thanks, Arthur

    Lee Jay, I think you are wrong this time (only)!
    Arthur, to solve your problem you have to do two things:
    1. In LR open preferences and activate to automatically write changes to XMP. This ensures that your JPG pictures are updated with the LR settings in the XMP container within the jpg file.
    2.in PSCS3 open preferences. In the file handling section you will find the option to 'prefer Adobe Camera Raw for JPEG files'. If this option is activated also jpg files are processed with ACR.
    You asked for a way to get a jpg file into CS3 without using export. Now you have that. After you made your adjustments in LR just open the jpg in CS3 and you will see the photo with all changes you have made. I tested this with LR and CS3 beta myself it it works perfectly.

  • How to get this function working

    Dear buddies,
    I created a function which should check if a certain code exists in a certain table.
    Not sure how to get it done
    create or replace function check_code(crs_code in varchar) return integer is
      Result integer;
    begin
      if crs_code in (select cod_code from crs_code) then
        result := 1;
      else  
        result := 0;
      end if;
      return(Result);
    end check_code;error: Compilation errors for FUNCTION CONV.CHECK_CODE
    Error: PLS-00405: subquery not allowed in this context
    Line: 6
    Text: if crs_code in (select cod_code from crs_code) then
    Error: PL/SQL: Statement ignored
    Line: 6
    Text: if crs_code in (select cod_code from crs_code) then

    My guess is that
    create or replace function check_code(p_crs_code in varchar) return integer is
      l_Result integer;
    begin
      SELECT COUNT(*)
        INTO l_result
        FROM dual
       WHERE EXISTS (
          SELECT 1
            FROM crs_code
          WHERE cod_code = p_crs_code
      return( l_Result);
    end check_code;should work but you've provided no table structure, no sample data, and no desired output so it's a bit unclear. Note that it is a really bad idea to have parameter names that match table names. My assumption is that CRS_CODE is both a table and a parameter name in your original function. Otherwise, I'm not sure what your SELECT statement is attempting to do.
    Justin

Maybe you are looking for