Passing the values for the tokens in oaf

Hello,
I have an application message with the text as "Employee &ENAME belong to the organization &ORGANIZATION".
In framework, i have assigned this application message to a messagestyledtext and i want to pass the &ENAME and &ORGANIZATION values at runtime. Can anyone please guide me on this? I did as follows but didn't figure out how to assign this token to an application message.
MessageToken[] msgtoken = {new MessageToken("EMPLOYEENAME",s_employeename),new MessageToken("ORGANIZATIONNAME",s_organizationname) }
Thanks
PK

PK,
A simple example to explain you more on this. Let say we want to pass two parameter to Token.
String employeeName = (String)vo.getCurrentRow().getAttribute("EmployeeName");
Number **employeeNumber** = (Number)vo.getCurrentRow().getAttribute("EmployeeId");
String employeeNum = String.valueOf( employeeNumber.intValue());
MessageToken[] tokens = { new MessageToken("EMP_NAME",  *employeeName* ),                 //1
new MessageToken("EMP_NUMBER", employeeNum ) }; //2
//And finally we pass there token value to below exception.
OAException confirmMessage = new OAException("AK", "FWK_TBX_T_EMP_CREATE_CONFIRM", tokens, OAException.CONFIRMATION, null);
Thanks
-Anil

Similar Messages

  • Any way to pass Multiple Values for a single Label in the Parameter?

    I have a Report that Contains 2 Parameters, @Customer & @Area. When trying to set up the Available Values for @Area, I'm having issues using multiple values for one Label, i.e. = "4006" Or "4610"
    One of the Filters in the Report is an Operation number, which is the [OPERATION] field, which is setup as a filter on the Tablix referencing the @Area parameter. 
    PROBLEM: I cannot retrieve any data when trying to use the ‘Or’ Operator here. If I simply put “4006” or “4610” I retrieve data, but when trying to combine it returns no data.
    Example, I need to allow a user to select ‘Chassis Incoming’, which would include data from Operations 4006 & 4610.
    QUESTION:
    Any way to pass Multiple Values for a single Label in the Parameter?
    I realize the typical solution may be to use ‘Multi-Value’ selection, but in this case we want the User to select the Area and the multiple values for Filtering will be automatically determined for them. Otherwise, they are subject to not getting
    it correct.
    I have tried several different ways, such as =”4006” Or “4610”, =(“4006”, “4610”), = In(“4006”, “4610”), etc….
    Note: We are using Report Builder 3.0

    Based on my experience, there's no way to 'intercept' the query that gets passed back to SQL Server, so a Split wouldn't work.
    Try creating either a function or stored procedure using the code below (compliments to
    http://www.dotnetspider.com/resources/4680-Parse-comma-separated-string-SQL.aspx) to parse the string: 
    CREATE FUNCTION dbo.Parse(@Array VARCHAR(1000), @Separator VARCHAR(10))
    RETURNS @ResultTable TABLE (ParseValue VARCHAR(100))AS
    BEGIN
    DECLARE @SeparatorPosition INT
    DECLARE @ArrayValue VARCHAR(1000)
    SET @Array = @Array + @Separator
    WHILE PATINDEX('%' + @Separator + '%' , @Array) <> 0
    BEGIN
    SELECT @SeparatorPosition = PATINDEX('%' + @Separator + '%', @Array)
    SELECT @ArrayValue = LEFT(@Array, @SeparatorPosition - 1)
    INSERT @ResultTable VALUES (CAST(@ArrayValue AS VARCHAR))
    SELECT @Array = STUFF(@Array, 1, @SeparatorPosition, '')
    END
    RETURN
    END
    Once created you can do things like this:
    SELECT * FROM Parse('John,Bill,David,Thomas', ',')
    SELECT * FROM (SELECT 'John' AS TestName union select 'David' AS TestName) AS Main
    WHERE TestName IN (SELECT ParseValue FROM dbo.Parse('John,Bill,David,Thomas', ','))
    This is what your SQL query would probably look like:
    SELECT OperationID, OperationName FROM dbo.Operations
    WHERE AreaID IN (SELECT ParseValue FROM dbo.Parse(@Area, ','))
    You may need to fiddle around with the Separator depending on whether SQL Server inserts a space between the comma and next value.

  • Passing multiple values for a single field in URL to call sap Transaction

    Hi All,
    I need to pass multiple values for a single field to SAP transaction .
    means if i have say a field "Date" which can contain more than one value, <b>but its not a range which has two fields</b> . How is it possible.
    Let me know pls.
    Regards,
    Sirisha.R.S.

    Hi Satyajit,
    I need to call a transaction with multiple values which gives me the report based on those values.
    So I need to pass multiple values for a single parameter.
    I hope u got it.
    Regards,
    Sirisha.R.S.

  • How to passing multiple values for a parameter of discoverer(url parameters

    Hi All,
    I am trying to pass multiple values for a parameter of disco report. I am trying to include my url for discoverer viewer report. the values has the following
    'jeff,mark'
    'sfophiee,angela'
    Thanks and Regards
    Venkat

    Hello Venkat,
    I know there are some problems with 10.1.2.0.2, maybe if you haven't done yet you can try with 10.1.2.2, assuming this version should be working for multiple parameter values :
    OracleAS Discoverer 10.1.2.2 is installed with the following patch :
    Patch 4960210 PLACEHOLDER BUG FOR AS/DS 10G R2 PATCH SET 2 10.1.2.2
    So, once installed you can try adding your parameter as param_<parameter_name>='sfophiee,angela'
    Hope this helps, otherwise feel free to log a Service Request to Support.
    Best Regards,
    Gianluca

  • 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

  • R/3- PI- webservice. Pass userid/password for Username Token from R/3

    Hello,
    We (SAP R/3) need to call Webservices from third party for which we are using SAP-PI system as the Middleware.
    The Password and ID for USERNAME TOKEN to be passed in the SOAP Header request needs to be sent through RFC in SAP R/3.
    The requirement is that SAP-PI should use this ID/password and prepare the USername Token in the SOAP Request header for the Webservice Call.
    Note: PI has AXIS framework installed on it.
    Can you please suggest as to what should be done? Request you to please provide the Custom Code / Detailed configuration etc. that is required to be done at the PI end.
    Note: I have searched the Forum but couldn't find anything a detailed information.
    Thanks & Regards,
    Abhishek Jolly

    XSLT-Mapping looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="/">
       <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:wsh="http://something/wsh">
         <soapenv:Header>
           <wsh:Context>
           <SessionId>
             <xsl:value-of select="/*[local-name()
    =MySoapFunction]/Parameters/Parameters
    [Scope[text()='XI'] and Name[text()='SessionID']]/Value"/>
          </SessionId>
         </wsh:Context>
        </soapenv:Header>
        <soapenv:Body>
         <wsh:MySoapFunction>
          <xsl:if test="count(./*[local-name()=MySoapFunction]/Parameters/Parameters)>1">
           <Parameters>
             <xsl:for-each select="./*[local-name()=MySoapFunction]/Parameters/Parameters">
               <xsl:if test="Scope!='XI'">
                 <Parameters>
                   <Scope><xsl:value-of select="Scope"/></Scope>
                   <Name><xsl:value-of select="Name"/></Name>
                   <Value><xsl:value-of select="Value"/></Value>
                  </Parameters>
                 </xsl:if>
               </xsl:for-each>
              </Parameters>
             </xsl:if>
           </wsh:MySoapFunction>
          </soapenv:Body>
    </soapenv:Envelope>
    I save XSLT to file.
    Input message that creates in XI and live only in BPM:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MySoapFunction xmlns:ns0="http://something/wsh">
        <Parameters>
            <Parameters>
                <Scope>XI</Scope>
                <Name>SessionID</Name>
                <Value>0123456789</Value>
                </Parameters>
            <Parameters>
                <Scope>otherScope</Scope>
                <Name>someParam</Name>
                <Value>someValue</Value>
             </Parameters>
        </Parameters>
    </ns0:MySoapFunction>
    In BPM's SendStep this message is used.
    2) Create ZIP archive with this XSLT file (one archive can contains many XSLT programs). And Import ZIP it into XI. You can see this in Imported Archive and list of filenames of Archived Program in XI.

  • Passing a value for date parameter from Oracle Forms to BIP

    Hi
    I have created a report with the following SQL query:
    select
    d_tables.d_seq,
    to_date(d_tables.d_created) creation_date,
    d_tables.d_created_by created_by,
    d_tables.d_pk,
    d_tables.table_name,
    d_tables.comments
    from
    d_tables, d_applications
    where
    d_tables.d_ppk = d_applications.d_pk
    and to_date(d_tables.d_created) >= nvl(:P_CRE_DATE_FROM, to_date(d_tables.d_created))
    and to_date(d_tables.d_created) <= nvl(:P_CRE_DATE_TO, to_date(d_tables.d_created))
    The parameters P_CRE_DATE_FROM and P_CRE_DATE_TO have been set up as date in BI Publisher with format dd-MMM-yyyy
    The report works fine when launched in BI Publisher.
    I want to call this report from Oracle Forms and I'm trying to pass the values for both the parameters. However, the report does not generate output based on values passed.
    Does it have to do with datatype? Does anyone know a solution for this?
    Kind regards,
    Aparna

    Thanks for your suggestion. I am already referring to the whitepaper and have integrated Forms with BI Publisher. The parameter passing is working fine for a varchar2 type of parameter. However, for a date type, there seems to be some problem.

  • Safara 5.1.5 pass old value for a hidden field with new values

    Hi
    I have the JSP pages which used to be working in Safra 5.1.3. There is a hidden field: mac, submitted to and from this JSP page.
    Page A submits "mac" with value1, backend a java action received this value and change it to value2 after some calculation, value2 is set to page B. I can see the hidden field "mac" contains value2 in page B. But when I submit page B, the value being transmitted is still value1.
    I tested to change this field to a visible text field rather a hidden one. The value being passed will be the correct one: value2.
    Other browsers except Safari 5.1.5 do not have such strange behavior. 
    Is there any solution for this problem apart from changing my form filed names?
    Thanks.

    you can only list what was stored.
    changes in values for a characteristic can be monitored in CL20N via menu Environment > Change documents
    change history for classification is only stored if you activated this.
    maybe it is not set active in your system, then see SAP Note 943559 - FAQ: Frequently asked questions about the classifctn. system

  • SSRS How to pass a value for Hidden parameter ?

    Hello,
    I have a SSRS report deployed on the Report server. This report is having an "Hidden" parameter.
    Could someone please guide me, how to pass the value to this internal parameter in each of the following case - 
    1. Report is accessed through a Desktop application/Web application in Report Viewer.
    2. Report is accessed through the Url.
    3. Report is accessed through the Report Manager.
    Any quick help on this is highly appreciated.
    Thanks!
    -Vinay Pugalia
    If a post answers your question, please click "Mark As Answer" on that post or
    "Vote as Helpful".
    Web : Inkey Solutions
    Blog : My Blog
    Email : Vinay Pugalia

    Hi Vinay Pugalia,
    Internal Parameters in SSRS are parameters that are not configurable by the end-user at run-time and values cannot be passed to this type of parameter (when present in the child report) in case of a drill-through report implementation. This
    type of parameter is read-only and not accessible in parent report.
    This varies from a Hidden Parameter, which the user is not prompted to provide, but can still be configured through the URL to the report server.
    So no matter you access the report through report manager, URL or Report Viewer. The passing value to the internal parameter will not work.
    As you have mentioned that I will also suggest you use the hidden parameter instead.
    More details information in this blog for your reference:
    SSRS – Understanding Report Parameter Visibility
    How to pass value to  hide parameter is the same as that of the visible parameter, similar thread for your reference:
    Passing the value in action property of a text box
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • Values for email tokens

    Dear Experts,
    maybe it is a simple question however i am having difficulties finding the answer.
    when i use tokens in emails, as for example %TECH_SUPPORT_EMAIL%, where is the value for these coming from? If I want to maintain it where do I look?
    Thanks in advance.
    venelin

    Hi Venelin,
    If you want to use the tokens in email then you have to set it in the script.
    You can refer  to below example.
    For a mail message like "User %RECIPIENT_FIRST_NAME%" have accessed the %DOCUMENT_ID% with the Supplier %VENDOR_NAME%"
    To set the above token like RECIPIENT_FIRST_NAME, DOCUMENT_ID, VENDOR_NAME  use below script.
    Properties props= new Properties();
    recepientname= doc.getDocumentOwnerUserReference().getDisplayName();
    documentId= doc.getDocumentId();
    supplierName= doc.getVendorRef().getDisplayName();
    documentDescription=doc.getDocumentDescription();
    props.put(new String("TOKEN1"), "Currency changed to ADP");
    props.put(new String("RECIPIENT_FIRST_NAME"), recepientname);
    props.put(new String("DOCUMENT_ID"), documentId);
    props.put(new String("VENDOR_NAME"), supplierName);
    Let me know if this helps.
    Thanks,
    Raj.

  • Pass parameter values for stored procedure in URL, possible?

    Hi, everyone, Our system is Apex4.0.2 in Linux CentOS 5 on Oracle 11GR2, here is the procedure:
    create or replace  procedure  test_public(Cust_id integer)
    is
    begin
    owa_util.mime_header( 'text/xml', FALSE );
    owa_util.mime_header( 'application/octet', FALSE );
    -- Close the HTTP Header
    owa_util.http_header_close;
    htp.p(DBMS_XMLGEN.getXML('SELECT * FROM demo_orders where customer_id='|| cust_ID));
    end;
    +/+
    the call to the stored procedure is SUCCESSFUL when Test_public has no parameters, like:
    http://myserver/apex/myschema.test_public (OK)
    the question is : I want to pass 3 parameters into my stored procedure(on production procedure), just don't know How?
    Any suggestions are greatly appreciated

    Thanks, Vee, definitely working, I do appreciate your help.
    I have to use Stored Procedure in Apex: my goal is to setup RESTful web service for IOS and Andriod alike, but APEX RESTful only supports SQL Report ( the RESTFUL check Box goes away with PL/SQL returning Query report, much to my surprise), I need expose some data and the same time I need insert/update some data when the client consumes our data, a PL/SQL based Report will do, but as I found out only simple SQL report has RESTful service, a Before REGION Process will do too, but web service connection WON'T fire that process (normal page display will fire the process) so I'm out of option.... Man I wish APEX REST is not so so basic....

  • Saving and passing SelectOneChoice Values for af: table population

    Hey yall.
    *First things first... I am using the EJB as opposed to ADF BC so any examples involving VO's would not help me at this point and that's pretty much all I have been able to find online when searching for help.  I am using JDev version 10.1.3.1.
    Im having some trouble trying to figure out how to program my command button to return a table using the values acquired from a set of 3 dynamic LOV's. In detail, this is what I'm trying to do but can't get it to work no matter what I do:
    1. I have a page where the user must select an option from each drop down list (there are 3 in all). The 2nd list depends on the 1st and the 3rd list depends on the 1st and 2nd. That part is working fine.
    2. Once all selections are made, the user must then click on execute (my command button on page) to then be taken to another page with a table populated using the values selected in the previous page. The table was created using a method from the data control palette that contains the named queries needed to return results in the table.
    3. My problem is figuring out how to wire the execute button to do the tasks mention in #2 above.
    Any suggestions? Ideas? Help?
    Greatly appreciative... Thanks.

    Hi,
    you can do this from the UI using createWithParams
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/13-create-with-params-169140.pdf
    Or by overriding the doDML on the parent EO so you can use an association to update the child records. And of course you could use view links similar. However, the update is recognized on the entity level. And finally, another option - if the tables are not loaded together in an application, is to use a database trigger
    Frank

  • PASSING EMPTY VALUES TO THE REPORT

    Hello,
    I am having an issue with generating reports published on Crystal XI Server.
    When I do not pass any value for a parameter and try generating the report, an error is occurred which says "REPORT LINKING ERROR - There was an error in launching the viewer: empty String".
    Crystal Version 9 reports are fine even if I do not pass any value to a parameter.
    Can anyone help me out in resolving this issue?
    Thanks,
    BK.

    You may refer to the article:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/WebItrick-drillamongmultiplereports
    And you will find out the way to transfer the all value.

  • Passing  null values to the attributes of a CAF operation

    Hi,
    In CAF I am trying to fetch data through Web Service. For this I need to pass null value for the attributes of the operation.If I set the value to null it gives me missing parameter as the error.
    Can anyone tell me how to pass null values to the attributes of a CAF operation?

    Hi Xavier,
    Declare the two variables of type if_wd_contex_node for e.g. lv_node and if_wd_context_element for e.g. lv_element. Now in the first one lets say lv_node get the refrence of dynamically created node like:
    lv_node = wd_context->get_child_node('<node name>').
    Then get the refrence of element like:
    lv_element = lv_node->get_element( ). (You can also pass index as parameter check the method API)
    then just set the value of attribute you want like:
    lv_element->set_attribute( exporting name = '<attribute name>' value = '<your value>').
    Regards,
    Neha

  • Logical DB - passing values for parameters

    Hi experts,
    i writing program basing on logical DB. How can i pass default values for parameters, which are defined in a selection screen for this logical DB?
    Thanks
    Juzio

    in my program PNP is used. identify the selection screen fields. and then use it in initialization event,
    report ztest.
    tables: pernr.
    initialization.
    PNPPERNR-LOW = '12455'.
    PNPPERNR-sign = 'I'.
    PNPPERNR-option = 'EQ'.
    append PNPPERNR.
    PNPBEGDA = SY-DATUM.

Maybe you are looking for

  • I want to buy a iPad2 to go along with my mac desktop and iPhone, do I have to purchase the same apps. to put on my iPad

    i want to buy a iPad2 to go along with my mac desktop and iPhone, do I have to repurchase the same apps. to put on my iPad?

  • Link to part database?

    Hello, I recently attempted to replace a cracked display on a laptop (15-j170us) and in doing so damaged a pin in the display ZIF connector. I'm attempting to find the system board part number for my exact model and the service manual lists 5 possibl

  • FCP 5 Won't open at all

    My FCP 5 won't open and i don't know how to remove the quicktime components. "/Library/QuickTime/"? Can anyone help please. CW

  • How to completely remove McAfee

    How can I completely remove an old non-functional McAfee virus protection app from my MacBook Pro?  It seems that a ghost of it still appears at the top of the screen on the upper menu bar. I'm thinking that there may be other (hidden) components tha

  • JCo Connection / RFC in Pricing Userexit

    Hi Experts, Need your help: I have a requirement to make a RFC call in IPC Pricing Userexit.  First I made a simple test java class to make RFC call and run it locally without any problem. then I copy the same code to the Userexit, but it failed on t