Assign a value to a global variable - form personalization

Hi All,
We have a requirement in which we want to display a message depending upon the out parameter of the procedure in form personalization.
We are using 'Builtin' with the buitin type 'Execute a Procedure'.
And the argument passed is :
*='declare
l_request_id Number;
l_out_come VARCHAR2(10);
begin
apps.xx_sr_email_pkg1.xx_sr_email_p1
('''||${GLOBAL.XX_CUST_ACCOUNT_ID.VALUE}||''',
'''||${GLOBAL.XX_INCIDENT_ID.VALUE}||''',
'''||${GLOBAL.XX_EMAIL_TYPE.VALUE}||''',l_request_id);
:GLOBAL.XX_REQUEST_ID := l_request_id;
end'*
But its not assigning the value of l_request_id to the gloabal variable XX_REQUEST_ID.
Can you please help?
Thanks

I don't have a solution but a work around.
What if you create a function that accepts the same in parameters and returns the message.
And then you create an action of the type message and in the message you call the function such as
= select xx_sr_email_pkg1.sr_email_f1 .... from dual
Sandeep Gandhi

Similar Messages

  • How to assign NULL value to an ITEM in Forms Personalization?

    Hi,
    how to assign NULL value to an ITEM in Forms Personalization?
    please suggest me.
    Thanks

    I don't know what your form personalization does and maybe I misunderstand you ...
    Try
    :item_name := null;

  • Can I Access the Value of a Global Variable in a Trigger

    I'm using a Global variable in a Package which i use in the BIU Trigger to populate a column. After assigning the value for that global variable, I run an INSERT in the same package. But I find only the default value of the Global variable populated in the column. Can I use a Global Variable in a Trigger? Is there any way to put in a common value across all the tables in an application for all DMLs of a particular session?

    Helios,
    I'm already having the same setup mentioned in the thread. And I'm doing exactly whats given there. But the issue seems to be something different. I'm assigning the value to the Global Variable in the Package through Apex. Here's the Package Code:
    CREATE OR REPLACE PACKAGE Schema1.SPMS_SECURITY_PKG
    AS
    X_app_user_id NUMBER DEFAULT -1;
    FUNCTION USER_ID RETURN NUMBER;
    END SPMS_SECURITY_PKG;
    CREATE OR REPLACE PACKAGE BODY Schema1.spms_security_pkg
    AS
    FUNCTION user_id
    RETURN NUMBER
    IS
    BEGIN
    -- RAISE_APPLICATION_ERROR(-20001,'USER ID'||'*'||X_app_user_id);
    RETURN NVL (x_app_user_id, -1);
    -- RETURN NVL (sys_context('USERENV', 'CURRENT_USER'), -1);
    EXCEPTION
    WHEN OTHERS
    THEN
    RETURN -1;
    END;
    And Here is the Trigger Code:
    CREATE OR REPLACE TRIGGER Schema1."USER_DETAILS_TRIGGER"
    BEFORE INSERT OR UPDATE
    ON PMS_SICAL.SPMS_USER_DETAILS REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    BEGIN
    IF INSERTING
    THEN
    :NEW.created_by := spms_security_pkg.user_id;
    :NEW.created_date := SYSDATE;
    :NEW.START_DATE := SYSDATE;
    ELSIF UPDATING
    THEN
    :NEW.updated_by := SPMS_SECURITY_PKG.X_app_user_id;--spms_security_pkg.user_id;
    :NEW.updated_date := SYSDATE;
    END IF;
    END;
    But I always get -1 in the both in the table after the DMLs.

  • Assigning a value to a substitute variable

    Hi, I would like to know if it is possible to assign a value to a substitute variable.
    This is what I'm doing:
    - Prompting user for input
    ACCEPT uom CHAR PROMPT 'Enter number of UOM system you would like: ' DEF '0'
    (displayed list of options are numbers 0-5)
    - Based on input, open corresponding file
    (start i:\utc\all\oracle\uom\uom_column_heading_&&uom..sql)
    Problem:
    - Default selection is 0, meaning use the CURRENT UOM system (a number, 1-5)
    - That being said, &&uom must be assigned a 1-5 value in order to open the file that corresponds to the CURRENT UOM system
    Let me know if any additional information is needed.
    Thanks!

    I apologize for the format. I tried to make it more legible, but was not able to. FYI: It appears to be easier to read in "Edit" view.
    Thanks, I tried the &&uom := your_function(); suggestion, but I am getting an error. It looks like the "value" of &&uom is being read in the assignment statement, not the variable name.
    I have copied the piece of the code, for your reference.
    ACCEPT uom CHAR PROMPT 'Enter number of UOM system you would like: ' DEF '0'
    DECLARE
    v_uom_sys_selection NUMBER;
    v_curr_uom_sys VARCHAR2 (50);
    v_uom_num NUMBER;
    BEGIN
    v_uom_sys_selection := to_number(&uom);
    v_curr_uom_sys := EG.GET_CURRENT_UOM();
    v_uom_num := eg.get_user_selected_uomnum(v_curr_uom_sys);
    &&uom := to_char(v_uom_num);
    dbms_output.put_line('v_uom_num = ' || v_uom_num);
    dbms_output.put_line('&&uom = ' || &&uom);
    END;
    --prompt "&&uom"
    start i:\utc\all\oracle\uom\uom_column_heading_&&uom..sql
    Below are the results I get when commenting out the &&uom := to_char(v_uom_num); line. NOTE: the "value" of &&uom = 0.
    v_uom_num = 1
    0 = 0
    If I leave that line in, I get the following error:
    PLS-00103: Encountered the symbol "0" when expecting one of the following:
    begin case declare end exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge pipe
    The symbol "<an identifier> was inserted before "0" to continue.
    Message was edited by:
    user449676

  • Assigning a value to a global binding

    I'm using a Global binding for a header field called ReportClassification. It ensures that if the user changes the value of the field, all the fields will be kept in sync.
    How do I pre-assign a value to the global so that the fields wil be pre-populated? I thought about having an initialize event that does the following :
    global.ReportClassification="UNCLASSIFIED";
    Doesn't seem to do anything.

    Yep. I'm still using Javascript. Maybe I need to understand how the Master Page fields are referenced from Pages. Essentially I can change the value of a master field from the master page field's initialize method. When I try to change it from the page (eg. in the pages initialize method or when the OK button is pressed on the dialog and the commit method is called) it doesn't update. There is no error but it just doesn't change.
    I've tried alerting the element from the commit method and I can get the element's value. I just can't set it. Is there some security issue doing on there. You can't change a master field value from a page.
    eg. In the commit method or in the initialize method of the page.
    app.alert("element="+ReportForm.pageSet.Page1.Header.ReportClassification);
    - returns [object XFAObject]
    app.alert("element.rawValue="+ReportForm.pageSet.Page1.Header.ReportClassification.rawValu e);
    - returns UNCLASSIFIED
    ReportForm.pageSet.Page1.Header.ReportClassification.rawValue="SOMETHING ELSE";
    - no change in the value

  • I want to assign the value of a Javascript variable to JSP Variable

    I want to assign the value of a Javascript variable to JSP Variable .. for example :
    <%
    Bla Bla Bla
    %>
    <script>
    var JavaScriptVariable="hello"
    </script>
    <%
    String JSPVariable=// The Value of JavaScriptVariable ;
    %>
    How can i do that ??
    Thanks

    >I want to assign the value of a Javascript variable to JSP Variable
    cannot be done.Friend try to understand concepts properly Javascript is always excuted by the browser @clientside where as JSPCode is executed Websever(ServletContainer) @serverside.Through you are combining JSP Code blocks(Tags,Expressions,scriptlets...) & javascript under a single page webserver can only identify what is their under JSP Code blocks.
    Hope this could be an appropriate answer for your question.
    However,you can as well submit a request by encoding your URL with request parameters and the submit to the page and then collect it using request.getParameter(name).
    But under a single context state it is not possible
    REGARDS,
    RaHuL

  • IF command does not work on the value of a global variable

    Dear all!
    I created a global variable &CurQ, assigned it to my application and my current database and assigned a value "Q3" to it. Then I created a simple business rule: Forecast (IF (&CurQ==Q1) Forecast=Actual; ELSE Forecast=Plan; ENDIF;). "Forecast", "Actual" and "Plan" are Scenario dimension members. After validating and running this command I found that Forecast member always picks the values of "Actual" member although it should pick the values of "Forecast" (given that &CurQ has the value of "Q3"). I tweaked around with my IF command and found that it always picks just the first statement after the condition regardless of whether the condition is true or false. So I am stuck and can't guess where the problem hides. I will be very grateful for any hint!

    Hi,
    Try using your variable in your fix and using the @ISMBR function as your condiation.
    e.g.
    FIX(&CurQ)
    Forecast (
    IF @ISMBR(Q1) Forecast=Actual;
    ELSE Forecast=Plan;
    ENDIF;)
    ENDFIX
    Regards,
    -John

  • Can F4IF_INT_TABLE_VALUE_REQUEST FM return a value in a global variable?

    Hi everybody,
    I need to use F4IF_INT_TABLE_VALUE_REQUEST FM because I have to let users select an specific option before choosing another value. The point is that I need to save in a program global variable what the user selects, and decide something with it in the program.
    Is it possible that F4IF_INT_TABLE_VALUE_REQUEST FM returns the value in a sinple variable or it has to be paramter?
    I look in a lot of previous threads but I didn't find anything, and I don't know if it's possible.
    Thanks and kind regards,
    MMP.

    Hi,
    Sure you can. All you need to do is to store what the function returns in your global variable. It don't need to be returned back to screen field.
    DATA: BEGIN OF VALUES OCCURS 0,
             CARRID TYPE SPFLI-CARRID,
             CONNID TYPE SPFLI-CONNID,
           END OF VALUES.
    DATA: VALUES_TAB TYPE TABLE OF VALUES,
              G_VALUE TYPE SPFLI-CONNID.  "global variable to store what is returned
    "in PAI first populate your table
      SELECT  CARRID CONNID
        FROM  SPFLI
        INTO  CORRESPONDING FIELDS OF TABLE VALUES_TAB
        UP TO 10 ROWS.
    "then call the function but don't return the value to screen field
    "If you specify the import parameters DYNPPROG, DYNPNR, and DYNPROFIELD, the useru2019s selection is
    "returned to the corresponding field on the screen. If you specify the table parameter RETURN_TAB, the
    "selection is returned into the table instead.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                RETFIELD         = 'CONNID'
                VALUE_ORG        = 'S'
           TABLES
                VALUE_TAB        = VALUES_TAB
                RETURN_TAB      = RETURN_TAB.
    "now simply read first row of return tab and store the value returned there in some global var
    READ RETURN_TAB INDEX 1.
    MOVE RETURN_TAB-FIELDVAL TO G_VALUE.
    Regards
    Marcin

  • How to assign bean value to a local variable in JSP using struts.

    Hi everybody!
    I've a problem that puzzled me on how to assign a bean value to a local variable like String in JSP using struts.
    we can have someting like this to display the value
    <bean:write name="detailService" property="status" />or
    <bean:define id="theStatus" name="detailService" property="status"/>
         This is country: <%=theStatus%>but an error occured when I tried like this:
    String currentStatus = "<bean:define id="theStatus" name="detailService" property="status"/>";
    or
    String currentStatus = "<bean:write name="detailService" property="status" />";Is there a way to do this?.....
    Any help pretty much appreciated

    Java != JSP.
    The <bean:define> and <bean:write> tags are custom tags meant to appear in the HTML section of a JSP file, as opposed to the scriptlet section. They actually get turned into java code as part of the translation process.
    The <bean:write> tag naturally just writes out what you tell it to.
    The <bean:define> tag defines a local variable, and gives it a value.
    this should do it.
    <bean:define id="theStatus" name="detailService" property="status" type="java.lang.String"/>
    <%
      String currentStatus = theStatus;
    %>With the advent of JSTL, you shouldn't really need to use scriptlet code anymore. Personally I am for 0% scriptlet code in any jsp I write.

  • How to get value for a global variable from an exel file?

    Hallo all,
    I am a beginner in LabVIEW and I have  a problem in reading datas from an exel file . I would like to import a group of data with timestamps from exel file to a global variable. for ex. speed, acceleration and position of 4 different sensors to each of its global variable.
    It will be very nice if anyone can give me some ideas.
    Thanking you in advance

    ...continued here

  • How to get the value of the global variable of test stand in labview User interface?

    Hi.
     Can anyone Please share examples and tell me to how access the test stand global variable using labview user interface.
    Solved!
    Go to Solution.

    I'm not surprised that what you are doing doesn't work.  The Start Execution UI Message is triggered when the user clicks a button to start an execution.  Realize that most executions go through a process model.  So you could be looking at the sequence context of the process model and not your client sequence file.
    I recommend reading that link I posted above.  UI Messages are your best bet but you cannot just piggy back on an existing UI Message like this.  They may not be getting sent at the time you need them to be.  The only way to ensure you get what you want is to trigger one yourself at the right time.
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How to assign a value to the page variable to enable partial page rendering

    This is part of my code:
    <bc4j:rootAppModuleScope name="App1"
    rendered="on@ctrl:page">
    Now, I want to change the value of "on@ctrl:page" to "true" after user click a button so that part of the page will be displayed. But how do I assign the value to "on@ctrl:page". I tried to put the followings in my even handler:
    <bc4j:setPageProperty name="on" value="true">
    <bc4j:parameter name="on" />
    </bc4j:setPageProperty>
    But it doesn't work. Could someone pls tell me how I should do it.
    Thanks a lot!
    Ling

    You should do is:
    in your event handle codes,you add the list:
    public static EventResult eventname(
    BajaContext context,
    Page page,
    PageEvent event) throws Throwable
    EventResult result = new EventResult(page);
    result.setProperty("on","true");//or "false"
    return result;
    then,
    change
    rendered="on@ctrl:page" -> data:rendered="on@ctrl:eventResult"
    also ,you should see the 5th part of 'UIX Developer's Help'

  • How to declare variable Forms Personalization

    Hi
    I want to use a variable in a form to assign it to a procedure which I am calling in the form itself?
    How can i define such a variable
    I wanted to use global variable but i read somewhere global variable can only be used when passing parameters between several forms
    so is there any other way?

    Hi,
    Is your procedure a database procedure or attached as a library to the Form? If its in the database, you cannot use a global variable - however, if its attached to the form itself, yes, you can define a global variable and refer it in the procedure. (Its preferable to initialize such a variable in the WHEN-NEW-FORM-INSTANCE trigger to avoid any issues arising out of transactional problems).
    Rgds,
    Rakesh.

  • Parameter Values passed in WEBHTML or Forms Personalization Parameters

    Hi All,
    I'm calling my OA JSP from a core Form via a menu item enabled via Forms Personalization.
    The JSP was tested in Jdeveloper called from another jsp that passed it a Project Number and Task Number that it retrieved and displayed.
    I would like to pass the same parameters from the Core Form that it is enabled on.
    I have set up the parameters on the Parameters section of the personalization using in the format
    'projectNumber=':block.item||'&taskNumber='||block_item
    When I press the verify button the JSP run successfully, however when I rerun the
    form the JSP does not return the data.
    Does the form function definition webhtml need the parameters defining as well and
    if so what would the format be!
    Thanks in advance
    Cheers
    Guy

    Does the form function definition webhtml need the
    parameters defining as well and
    if so what would the format be!No it doesn't. You can pass in the values from the Form Fields using the below statement in the parameters window.
    'param='||${item.<block>.<item>.value}
    Please note that you need to close your form (that you've personalized) and re-open for personalization to reflect.
    HTH.

  • Assign j_user value to a java variable in umLogonPage.jsp

    Hi All
    I need to do some post processing immediately after login and require the user id for the same. So how do we acess the value in the user id field and assign it to a java variable in the umLogonPage.jsp..??
    Java specific forums claim that this is not possible directly and can be only done on submit function or through hidden fields in the form. Any ideas with regard to the form that is present in umLogonPage.jsp..??
    Thanks
    Deepak

    Hi,
    we use this for saving the login time of the user. There are few therads about creating a custom login module (for example: [Custom Login Module - how to go on |http://forums.sdn.sap.com/thread.jspa?threadID=357616]).
    We have created a login module which extends AbstractLoginModule, in login() method :
    public boolean login() throws LoginException  {
    Object option = g_sharedState.get("javax.security.auth.login.name");
    if (option != null && !option.equals(""))  {
      String l_userID = (String)option;
      IUserAccount l_account = UMFactory.getUserAccountFactory().getUserAccountByLogonId(l_userID);
      IUserAccount mutableAccount = accountFactory.getMutableUserAccount(account.getUniqueID());     
      l_mutAccount.setLastSuccessfulLogonDate(new Date());
      l_mutAccount.commit();
    about login modules and login stacks start here: [http://help.sap.com/saphelp_nw04/helpdata/en/8c/f03541c6afd92be10000000a1550b0/frameset.htm|http://help.sap.com/saphelp_nw04/helpdata/en/8c/f03541c6afd92be10000000a1550b0/frameset.htm]
    Hope this helps,
    Romano

Maybe you are looking for

  • Function "DDIF_NAMETAB_GET"

    Hi, I am reading a database table's attributed using DDIF_NAMETAB_GET function. My code is: DATA: IO_TABLE_NAME TYPE tabname,   it_dfies TYPE TABLE OF dfies,   is_dfies TYPE dfies. DATA: is_x030l  TYPE x030l. *IO_TABLE_NAME is getting from user CALL

  • JDev specifying SQLJ translator command line options

    Hi, I have come across the problem of SQLJ connections caching up to 5 sql commands and so leaving any related cursors open. This is happening mainly for statments where I have executed a SELECT ... INTO ... Any sqlj with iterators, I have closed the

  • Automating Business Rules

    I am trying to use the CmdLnLauncher utility in a .bat file to run business rules with run-time prompts. The problem is I cannot get the launcher to run when the variable I am trying to pass in through the run-time prompt has a space or "-" character

  • Common Settings Failed during EPM11 Config

    I am relieved but a bit perturbed by this issue. I spent 1 full day trying to install EPM 11 in a VM for a demo. Never had a problem after having done dozens of installations. I used a set of install files I downloaded months ago which have always ru

  • Alert Completion by email notification

    Hello Experts, I would like to complete alerts by just sending an email notification. Please share your thoughts if anyone has already done this before. Warm regards, shri