Pass Dynamic value to a field in xslt

Hi,
I have 5 different bpel processes & 5-10 xslts. I need to pass a hardcoded value(user) to one of the field in xslt which will be common for all xslt files. Now i want not to do hardcoding in every xsl. Rather, i want to make change at a place which will be effective for all others. what's the best approach to achieve this.
Thanks,
Vinit

Hi Vinit
I hope the following will solve your problem
1) create variable of type 'parameters'.
Ex:
xmlns:ns4="http://schemas.oracle.com/service/bpel/common"
<variable name="XSLTParam" element="ns4:parameters"/>
2)
<assign name="Assign9">
<copy>
<from><com:parameters xmlns:com="http://schemas.oracle.com/service/bpel/common">
<com:item>
<com:name>USER</com:name>
<com:value/>
</com:item>
</com:parameters></from>
<to variable="XSLTParam"/>
</copy>
<copy>
<from variable="your_user"
query="xpath+query of user"/>
<to variable="XSLTParam"
query="/ns4:parameters/ns4:item[ns4:name='USER']/ns4:value"/>
</copy>
</assign>
3) pass these values to xsl
EX:
<assign name="Assign1">
<copy>
<from expression="ora:processXSLT('xsl/Transformation_1.xsl',bpws:getVariableData('Receive1_execute_InputVariable','part1'),bpws:getVariableData('XSLTParam'))"/>
<to variable="Invoke1_Produce_Message_InputVariable"
part="body"/>
</copy>
</assign>
4) in xsl file
define parameter
EX:
<xsl:param name="USER"/>
<xsl:variable name="User_value">
<xsl:value-of select="$USER"/>
</xsl:variable>
<inp1:user>
<xsl:value-of select="$User_value"/>
</inp1:user>
Regards
Vamsi..

Similar Messages

  • How to pass dynamic values to JDBC Database adapter in PureSQL operation?

    I want to fetch the records from the table via JDBC database adapter with the criteria but I should not hardcode the values inside my query. I am using Execute by PureSQL operation. Values might change in future and it is the reason I should not hardcode the values and instead I should pass it dynamically.
    This is my query:
    SELECT FROM Table0 t0, Table1 t1 WHERE t0.Field1= 'ABC' AND t0.Field2= 'DEF' AND t0.Field3 = 'CBA' AND t1.FLAG IS NULL AND t1.Field1 = t0.Field4*
    The values 'ABC', 'DEF', 'CBA', 'NULL' are not fixed and it can be changed. Hence, I need to pass the values for these fields dynamically. What must be passed in the query and where to pass the User Defined Values during the run time.
    Please can anyone suggest how to resolve this. I am using SOA 11g.
    Thanks in advance.

    Hi,
    Ensure that you use the Adapter Configuration Wizard to do the query modification suggested by Arik. This will allow the schema for the DB Adapter getting created automatically. Also revisit this schema to assure that the data types of the bind parameters (parameters with #) have been correctly populated in the schema.
    You can get some help from this too although this doesn't fully match your use-case.
    Regards,
    Neeraj Sehgal

  • How do i pass a value to Output field in a standerd screen...?

    Hi all..
    I have a developed a BDC program for User upload,  I'm facing problem to pass a value to Output field..
    Its Displaying Status Message as ZSHIPTO is not a Input field,
    looking forward to hear from you all,
    thanks in anticaipation,
    full points will be awarded for usefull answer..
    regards,
    Sekhar.

    just check in transaction whethere that field is an input field or not ( imean to say that field is in the display mode (gray field) or it is in change mode(input is accept).
    also check for that particular field in the coding .
    Thanks

  • I am trying to pass the value of a field from the seeded page /oracle/apps/

    I am trying to pass the value of a field from the seeded page /oracle/apps/asn/opportunity/webui/OpptyDetPG. The value I want is in the VO oracle.apps.asn.opportunity.server.OpportunityDetailsVO and the field PartyName.
    I have created a button on the page whose destination URL is
    OA.jsp?OAFunc=XX_CS_SR_QUERY&CustName={#PartyName}
    It opens the correct page, but in the URL it shows this
    http://aa.com:8005/OA_HTML/OA.jsp?OAFunc=XX_CS_SR_QUERY&CustName=&_ti=1897289736&oapc=177&oas=x5E2TIfP1Y0FykBt1ek4ug..
    You can see that &CustName is not getting the proper value. Do I need to do something different?

    You cannot call the form with OA.jsp . This is applicable only for OAF based pages registered as a function.
    For calling a Form, use the below example:
    You have to change the application responsibility key and form function name .
    "form:PN:PN:STANDARD:XXPNTLEASE:QUERY_LEASE_ID={@QueryLeaseNumber}"
    Regards,
    Sudhakar Mani
    http://www.oraclearea51.com

  • Pass dynamic values to search-query in wlp-syndication-config for RSS

    Hi All,
    I want to pass dynamic values to the <search-query> element for the <syndication-feed> node in the wlp-syndication-config.xml file for implementing RSS feeds.
    Here's a sample
    <syndication-feed>
              <name>RSSFeed</name>
              <search-query>cm_objectClassInstance=='Node' &amp;&amp; date == 'x'_</search-query>
              <search-type>pubmeta</search-type>
         </syndication-feed>
    I tried passing the parameter in the url but the feed doesn't read it. The only option i have is to manually put the value to get the content from the repository, which sucks...because the values can change any time. is there any way that I can avoid it
    Any help on this would be appreciated.
    Thanks,
    K

    James:
    Passing filters to an IR within the URL is described here
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/app_comp.htm#sthref989
    Varad

  • How to Pass Dynamic values to XML in flex

    Hi,
    i just want to pass dynamic values. it must be stored in XML
    List or XML .for Ex: In my App i want to pass
    Edu_Institute,From_date,To_Date,Qualification fileds to
    Education table. I have used Webservices to connect with the
    Backend.
    At that time of processing, i want to pass 2 or more sets of
    Dynamic Values of Edu_Instiute,From_Date,To_Date....... to my
    webservice .
    i fetch the Edu_Institute value from text1.text From_Date
    from Datefield1.text etc... when i click the Add Button it must be
    stored in XMLnode[0],XMLnode[1]......& i will pass this nodes
    to my table
    How to do that??
    Can anyone please find out the solution for me??
    Thanks
    Regards,
    Thenmalar v

    Are you asking how to build XML in Actionscript?
    If so, the "literal" syntax is easy:
    var xmlData:XML = <root><text
    myAttr={test1.text}</root>
    You can also work directly with the XML class methods.
    Tracy

  • Pass in values for form fields

    Is it possible to pass in values for form
    fields like an ticket id or something?

    Sorry, we currently do not support that.
    Randy

  • How to pass dynamic values in standard text......

    Hello,
    I have no idea that how to create the standard text with transaction SO10,and how to pass the dynamic values to that standard text.Will you guide me with step-by-step procedure.
    Thanking you in advance,
    Regards,
    Asmitha.

    Hi,
        Goto SO10 Tcode
    Give :- Text Name:- any Name
               Text Id :- ST
                Language:- required language
    Now the Text which you want to print along with the Dynamic variable,
    Ex:-  Sales order number is &VBAK-VBELN&
    Save and Activate
    above is i have given it VBAK-VBELN, you can give field name which hold dynamic value.
    Now call the above created Standard text in your Form and check it.
    Regards
    Bala Krishna

  • Passing dynamic values in WebElements

    Hi
    I have created a report with webelement using WESelect. For drop down values we are creating a sting of values with allelements.Is there a way i can get the values from a database column or dynamic values.
    For example a Week WESelect is created with values as follows:
    string allelements:= ("week","wk01|wk02","wk01|wk02",{?week},"")
    instead of this values can we get values from database column like {week.weeknumber} ?
    How can this be solved.
    Thanks & Regards
    Mahesh

    hello Mahesh,
    in the tips and tricks section of the webelements user guide there is the following information...
    Can webElements be used with live data?
    Yes. Controls such as select menus that require that data be rolled up or
    amalgamated before the control is created are populated by running a
    Report Header subreport that rolls the data up. The data is then passed
    to the main report via a shared variable which is used in the control.
    Please see the DCP reports in the webElements .zip package for ideas on
    how to do this.
    Controls such as check boxes or radio buttons can be populated by
    placing the formula containing the control in the Details section or the
    Group Header / Footer section where the control is needed. Ensure that
    the controls do not span more than one page. See the Requirements
    section of the User Guide for more information.
    i hope this helps,
    jamie

  • Is it possible to pass dynamic values to custom tag?

    Hi there, I'm trying to build a calendar custom tag so I can drop the calendar into an existing webpage easily.
    I have got the calendar displaying on the page but the problem I have is when I try to create 'previous' and 'next' links. Is it possible to pass parameters to a custom tag that have dynamic values?
    In PHP it would looks something like:
    <a href="bla.php?page=$pagenumber">next page</a>When I create the calendar object I set it to the current date so when I try to increase or decrease the month (next/prev month) it doesn't work because the code is run again and hence setting the current date again.
    Any ideas?
    Cheers in advance
    Message was edited by:
    MajorMahem

    for eg
    <a href=" Display.jsp?id='+<%=customerId%>">Result Page</a>
    Please try this,
    i didn't work out, any how apply this sample to your code

  • Pass Multiple values of single field to ITS url

    Hi ,
    I have one transaction code(YW37P),
    I that have one field(Order No) in the selection screen, which has capable to accept multiple values (i.e multiple single values) and excute the t code.
    Now my question is how to pass this multiple values of one single field to the ITS url and by pass the selection screen.
    I have gone through the blogs which explains about how to pass only one single value of single field to ITS url and by pass the selection screen
    please provide some solution for this
    Regards
    Srinivas

    Hello Srinivas,
    How do you enter multiple order numbers in the field usually?  Is there a space or comma separating the numbers?  If so you will probably need to encode the space or comma, ie if a comma %2C.  The easiest way to figure it out is to use a tool like HTTPwatch and capture the POST data to see the value that is normally sent by the transaction. 
    Edgar

  • Pass the value for dictionary field that doen't have parameter ID

    Respected Members,
    I have a requirement that i have to call the tcode Va11(inquiry creation) from my program and pass the values for the customer po number and customer po date available in the inquiry creation screen.
    Since whatever require for the first screen of VA11 i can pass the values with using SET parameter ID becoz all the things have the parameter ID .
    Document type ,sales org, dist channel and division are having the parameters ID.
    Now exactly where to put the values for the next screen in the field customer po number and customer po date doesn't have the parameter ID.
    Fields are BSTKD and BSTDK .
    Now  how to pass the values from my module pool program.
    Please give me some solution.
    Suppose i m creating a parameter ID from the program then also it won't get attach to this fields.
    Please give me yours solution as soon as possible.
    Thanks

    hi Manish..
    It the Fields are not assigned with PARAMETER ID then We cannot pass the data using SAP Memory (Set Parameter ID).
    So the Only way u can pass the Data is using
    Enhancements (if they are provided)
    or
    BDC technique.
    Reward if Helpful.

  • Passing Dynamic Values to a Stored Procedure

    I have a stored procedure to create a Table. How to I pass a
    value to the procedure to name the Table. This SP works except the
    name of the table is @newcomm not the value I am trying to pass in.
    What is the proper syntax to make this happen.
    CREATE PROCEDURE [dbo].[sp_newcommenttbl]
    @newcomm varchar (50)
    AS
    BEGIN
    CREATE TABLE [dbo].[@newcomm] (
    [configid] [int] IDENTITY (1, 1) NOT NULL ,
    [email] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS
    NULL ,
    [adminemail] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [erroremail] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [toCommentFormEmail] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dsn] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS
    NULL ,
    [gmdsn] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS
    NULL ,
    [dbusername] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbpassword] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [acfcpath] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [acfcpath2] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [acfcpath3] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [urlactivate] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [urlresetpassword] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [initialized] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename1] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename2] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename3] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename4] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename5] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename6] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename7] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename8] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename9] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename10] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [pageheader] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL
    ) ON [PRIMARY]
    END
    GO
    <cfstoredproc procedure="sp_newcommenttbl"
    datasource="xxxxx" returncode="no">
    <cfprocparam type="in" maxlength="50"
    cfsqltype="cf_sql_varchar" value="pighg3">
    </cfstoredproc>

    When I create the procedure I don't get an error. I get an
    error when I call it.
    [Macromedia][SQLServer JDBC Driver][SQLServer]Incorrect
    syntax near the keyword 'ON'.
    ColdFusion cannot determine the line of the template that
    caused this error. This is often caused by an error in the
    exception handling subsystem.
    Here is the call.
    <cfstoredproc procedure="sp_newcommenttbl"
    datasource="pisecurity" returncode="no">
    <cfprocparam type="in" maxlength="50"
    cfsqltype="cf_sql_varchar" value="pighg3" variable="newcomm">
    </cfstoredproc>
    Here is the syntax for the SP.
    CREATE PROCEDURE [dbo].[sp_newcommenttbl]
    @newcomm varchar (50)
    AS
    BEGIN
    EXEC('CREATE TABLE [dbo].['+@newcomm+'] (
    [configid] [int] IDENTITY (1, 1) NOT NULL ,
    [email] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS
    NULL ,
    [adminemail] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [erroremail] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [toCommentFormEmail] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dsn] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS
    NULL ,
    [gmdsn] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS
    NULL ,
    [dbusername] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbpassword] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [acfcpath] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [acfcpath2] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [acfcpath3] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [urlactivate] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [urlresetpassword] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [initialized] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename1] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename2] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename3] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename4] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename5] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename6] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename7] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename8] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename9] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [dbtablename10] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL ,
    [pageheader] [varchar] (50) COLLATE
    SQL_Latin1_General_CP1_CI_AS NULL
    ON [PRIMARY]')
    END
    GO

  • EmailNotification- passing dynamic value to From address

    hi,
    on configuring email activity,
    we are passing the from address dynamically.
    From address is taked from the payload.
    but when the email is triggered, the email comes from the address which we have configured in the UMS in the server side..
    why does this happens.. ??

    i am referring to From Account name only..
    configured the From account name in the server UMS (for eg: [email protected])
    but, i need this to be passed dynamically from the payload..
    in the Email assign activity, From account name is mapped to the payload From address..
    but its not taking that address from the payload..
    the account name configured n the server is taken as default..
    what should be done for dis?

  • Assign a dynamic value to a field in HTTP receiver header without IR part

    hi experts,
        I am doing a scenario in which i am to add a header  field in http receiver, whose value will vary for each transaction. and the value will be same as sender file name.
    But this all I am to do without doing Repository part.(i.e. No message interface and no mapping)
    Is it possible?  If yes help me out.
    "Useful effort will be appreciated"....
    Thanks

    Hi Jaideep,
       Hpoe the below link will help you.
    Dynamic Configuration of Some Communication Channel Parameters using Message Mapping
    Regards,
    Leela

Maybe you are looking for

  • SAPGUI on Macs under Bootcamp

    Hi, There are quite a few messages on this forum telling me that SAPGUI for java will not run on the MacBook Pro yet. Can anybody tell me if the Windows SAPGUI will run on a MacBook Pro running Bootcamp? Cheers,

  • Purchased iTunes songs scroll by on nano but never play

    Hello - hoping someone can help. I'm up-to-date with iTunes 7.1.1 and QuickTime 7.1.5. Two weeks ago I purchased 11 songs at the same setting on an iTunes gift card. 4 of those songs (by the same artist) will not play on my iPod. They play fine withi

  • My ipod mini jump when writing

    please help me . my ipod mini not working correctly... when writing move or jump sreen! show by video in youtube : http://youtu.be/iTxbN-p9Kzg

  • Lost CC trial after windows 8.1 update.

    after a windows update loads of files and programmes simply disappeared from the laptop,including my trial of CC. when we tried to reinstall it, a message appeared saying everything was up to date so no joy downloading the programme again. however al

  • Interpretation of Explain Plan

    Hi All, I am trying to optimize my query. Can anybody tell me where can I get documentation for How to interpret the output Generated by Explain Plan. TIA Dharmesh Patel