About global variables in forms personalization

Hi all,
I did forms personalzation based on global variables.
When when i login for the first time untill and unless i validated the global variables the following error is displaying.
Tokens in the string could not be evalated. please check the syntax.
Once i validated the global variables then it will working fine.
Did any of you have faced this problem please let me know the solution.
Thanks and Regards
Zaheer.
Edited by: zaheer on Feb 5, 2010 1:23 AM
Edited by: zaheer on Feb 5, 2010 1:24 AM

Hi again;
In addition to above please check:
Form Personalizations in Oracle E-Business Suite (Release 12) [ID 395117.1]
Information About the Oracle Applications Form Personalization Feature in 11i [ID 279034.1]
Hope it helps
Regard
Helios

Similar Messages

  • How to create a global variable in forms 6i

    How to create a global variable in forms 6i

    :GLOBAL.my_var := 15; Well, this statement is not correct! Global variables
    stores a character string of up to 255 characters in
    length. Thus, valid statement for Khurram example
    is:
    :GLOBAL.my_var := TO_CHAR(15);
    or
    :GLOBAL.my_var := '15';
    But numeric values are implicitly converted by oracle so there's nothing in fact wrong with the statement...
    :GLOBAL.my_var := 15;
    ;)

  • How declear global variable in form and use all form

    hi master,
    sir,
    how i declear global variable in form and how use this variable in all form
    i have year table and pik current year or date form table and move in global variable and use in all form
    please give ma idea
    thanking you
    Aamir

    Ok, so, what characterset was your database created with?
    Does that characterset have a representation of that character?
    -Mark

  • Referencing Global Variable in Forms DDL (Form Personalization R12)

    Team,
    I'm saving a profile option in a Global variable GLOBAL.FLINV_PROFILE_VALUE when a form opens.
    Then I am clearing the variable using Forms DDL and calling FND_PROFILE.SAVE function.
    I need to then reset the profile option with a second call to FND_PROFILE.SAVE. I'm trying to use Forms DDL, i.e.
    DECLARE
    a BOOLEAN;
    BEGIN
    a := fnd_profile.SAVE ('PER_SECURITY_PROFILE_ID'
    , '''||:global.flinv_profile_value||'''
    , ''USER''
    , ''1110''
    , NULL
    , NULL
    END;
    but I'm not finding a proper way to pass that global variable. Is there a way to reference these variables in the DDL? Should I use 'Call a procedure' and format the call differently?
    Any ideas are welcome.
    Joe

    Not sure why your using an anonymous block. Personalization rules should look like the following in a *.ldt file.
    BEGIN FND_FORM_CUSTOM_RULES "314"
    FUNCTION_NAME = "INV_INVITSNU"
    DESCRIPTION = "Disable Query-Enter Mode"
    TRIGGER_EVENT = "WHEN-NEW-BLOCK-INSTANCE"
    TRIGGER_OBJECT = "MTL_SERIAL_NUMBERS"
    SEQUENCE = "20"
    CREATED_BY = "34307"
    CREATION_DATE = "2012/04/22"
    OWNER = "USER123"
    LAST_UPDATE_DATE = "2012/04/22"
    LAST_UPDATE_LOGIN = "145888118"
    ENABLED = "Y"
    FIRE_IN_ENTER_QUERY = "N"
    FORM_NAME = "INVITSNU"
    RULE_TYPE = "A"
    BEGIN FND_FORM_CUSTOM_ACTIONS "314" "314"
    SEQUENCE = "10"
    PROPERTY_VALUE = "5"
    ARGUMENT_TYPE = "B"
    CREATED_BY = "34307"
    CREATION_DATE = "2012/04/22"
    OWNER = "USER123"
    LAST_UPDATE_DATE = "2012/04/22"
    LAST_UPDATE_LOGIN = "145888118"
    TARGET_OBJECT = "MTL_SERIAL_NUMBERS"
    ACTION_TYPE = "P"
    ENABLED = "Y"
    OBJECT_TYPE = "BLOCK"
    MESSAGE_TYPE = "S"
    BUILTIN_TYPE = "C"
    LANGUAGE = "*"
    PROPERTY_NAME = "195"
    MENU_SEPERATOR = "N"
    END FND_FORM_CUSTOM_ACTIONS
    BEGIN FND_FORM_CUSTOM_SCOPES "314" "20" ""
    LAST_UPDATE_DATE = "2012/04/22"
    OWNER = "USER123"
    CREATION_DATE = "2012/04/22"
    CREATED_BY = "34307"
    LAST_UPDATE_LOGIN = "145888118"
    END FND_FORM_CUSTOM_SCOPES
    END FND_FORM_CUSTOM_RULES

  • Global Variables Vs Form Library Package Variables Vs DB Package Variables

    I realise this question has been asked a few times with varying degrees of answers, but I am still seeking comment/advice from others.
    I am aware of following options for retaining persistent data to share between forms.
    1. Package variables in a library that you share in a session.
    This requires usage of SHARE_LIBRARY_DATA, there is risk that this not set, then does not share data.
    2. Package variables in a database package.
    Requires round trip to DB. Is this expensive for performance?
    What about risk of DB package becoming invalid and losing state?
    3. Use global variables
    Can be tricky to manage.
    4. Use parameters
    Only one way, ie called form cannot alter value that caller can see.
    Packages are closest to OO approach in using get and set modules. Allows all variables to be managed in one location. This appears best practice.
    Forms library packages appear risky if caller does not include SHARE_LIBRARY_DATA.
    DB packages have cost of round trip to DB. Does this become expensive is have to reference many times. Also topic of DB package becoming invalid and losing state?
    Forms global variables have regular disadvantages of globals, ie not sure who may modify. Need to manage carefully. Text only
    As a second related question, for value such as current user, for performance (and maintainability) is it better to obtain this from oracle user function each time, or save somewhere (in one of options above) and use that saved value each time.

    My personal opinion:
    I like the "packaged" version with getters and setters. In general, i create a client-side package in a pll which has methods to access the value by getters and setters. With that, the "implementation" is encapsulated and doesn't really matter to the rest of your system. All modules have to access the value using the getter and setter.
    Inside the procedure i use two approaches:
    1. If its for communication purposes between different forms i use globals, which are filled or extracted in the getter and setter (see this http://andreas.weiden.orcl.over-blog.de/article-28180655.html )
    2. If its for someother purpose where the value should be "session persistent" i use a database package with getters and setters, which are called from the client-side package getter and setter. If the value is quite "constant" throughout the session, i read the value once at initialization code of the client-side package and the getter just returns that "cached" value
    Hope this helps.

  • About global variables

    can any one please help me how to declaru and use global variables in oracle forms. i want to pass the details entered in one form to another form. i am unable to do this.
    please some one say how to do this.

    vivek
    you have to use following keyword to declare a Global variable with no datatype
    :GLOBAL.VARIABLENAME
    you may initialize the global variable with your text filed or some stativ value like
    :GLOBAL.VARIABLENAME := :Field

  • Newbie thread about global variables and result set

    Hello everyone this is my first post, im from colombia and now im learning about this world !! the WCC !!
    Now im doing a practice but im so noob that i cant get it so far... i wrote some of the oracle documentation.. and it was so usefull for starting.. but now im trying to do custom components builded in java + resources + services + template etcc .. all good stuff :D.
    i want to retrieve a result set coming from a custom service ... and then i want to store this result set in some kind of global variable !! why ? because i want to use this data from the result set again and again without making more call to the service !!
    ive tried to copy this resultset but i think it cant be done because i use a popUp window to display the rows from the RS.. and when i close the window .. it dies!!
    i want to use this RS for 3 custom metadata field.. but i have no idea how to do this....
    this is a part of my custom resource
    <$if fieldName like "xElaborador"$>
    <$executeService("SERVICE_ALLUSERS")$>
    <$trace(" ### executing service ###","#log")$>
    <!--i tried to copy the rs here but this is wrong i guess -->
    <$nuevoRS="usuarios_LDAP"$>
    <$endif$>
    <!-- usuarios_LDAP is the RS parameter coming from the java calss -->
    <$if rsExists("usuarios_LDAP")$>
    <$if rsFirst("usuarios_LDAP")$>
    <$loop usuarios_LDAP$>
    <$trace(" ### inside RS ###","#log")$>
    <$include each_user_LDAP$>
    <$endloop$>
    <$else$>
    <$include therearenotusers$>
    <$endif$>
    <$endif$>
    <!-- THIS CODE IS USELSS BASICALLY-->
    <$if fieldName like "xRevisor"$>
    <$if rsExists("nuevoRS")$>
    <$if rsFirst("nuevoRS")$>
    <$loop nuevoRS$>
    <$trace(" ### inside rs for revisor ###","#log")$>
    <$include each_user_LDAP$>
    <$endloop$>
    <$else$>
    <$include therearenotusers$>
    <$endif$>
    <$endif$>
    <$endif$>
    pls tell me if im too lost im all ears to learn the good practices for this tool.

    Hi ,
    One of the good resource on this topic is :
    http://jonathanhult.com/blog/2012/11/resultset-versus-dataresultset/
    Thanks,
    Srinath

  • Question about global variables in Netbeans 4.1's debugger

    so i can see the local variables, great.
    how do i display the global variables when im debugging? searched help, nothing, searched the netbeans site, nothing.
    anyone know?

    I haven't used the 4.1 version of the debugger (I can't get it to work on a single file/class) but under 3.6 you just put the cursor over them and the values is in the tooltip.

  • Is it Possible to Change SYSTEM variable using forms personalization?

    Hi,
    Is it possible to the Message_level using forms personalization? I explored it quite a bit, but was unable to find a way to do it. I need to set the message level to '10' on a specific trigger.
    Please let me know your thoughts.
    Thanks
    Konnektme

    Any Ideas Anybody?
    Thanks
    Karthik Jayaraman

  • Issue with local variable in forms personalization

    Hi All,
    I did the following things at last it is give me syntax error, please help me on this.
    Rules section:
    seq Description Level Enabled
    1 Populate Number Function y
    Conditions:
    T.E : When new item instance
    T.O : REQ_LINES.REQUISIOTN_NUMBER
    Condition::REQ_LINES.BLANKET_PO_NUM_DSP IS NOT NULL AND
    :REQ_LINES.SELECT_LINE='Y'
    Processing mode: Not in enter query mode
    Actions:
    seq: Type: Desc: Langauge: Enabled
    1: property: local variable :Y
    Object Type: Local Varibale
    Target Object: XXNUM
    property : Value
    Text: = TO_CHAR(${item.req_lines.blanket_po_num_dsp.value})
    Rules section:
    seq Description Level Enabled
    1 Default Number Function y
    Conditions:
    T.E : When block instance
    T.O : New_DOCUMENT
    Condition:
    Processing mode: Not in enter query mode
    Actions:
    seq: Type: Desc: Langauge: Enabled
    1: property: use of local variable :Y
    Object Type:ITEM
    Target Object:NEW_DOCUMENT.DOCUMENT_NUMBER
    property : Value
    *Text:  = SELECT TO_CHAR (${var.XXNUM.value}) from dual*
    The line which i bold shows me an syntax error, please check the syntax and if it is wrong please correct it.
    Thanks and Regards
    Zaheer
    Edited by: zaheer on Feb 10, 2010 11:25 PM
    Edited by: zaheer on Feb 10, 2010 11:25 PM

    Hi Zaheer,
    Try using this:
    Actions:
    seq: Type: Desc: Langauge: Enabled
    1: property: use of local variable :Y
    Object Type:ITEM
    Target Object:NEW_DOCUMENT.DOCUMENT_NUMBER
    property : Value
    Text: = ${var.XXNUM.value}
    PS: You might get a message while validating, but you can ignore that.
    Regards,
    Sujoy

  • Question about global variable scope in mxml

    Let's say I have two files, myApp.mxml and EntryClass.as, as
    attached at the end of this post.
    Why does mxmlc complain with this error message:
    quote:
    /path/to/EntryClass.as(4): col: 7 Error: Access of undefined
    property myChart.
    myChart.graphics.drawRect(100,100,100,100);
    ^
    According to devguide_flex3.pdf,
    quote:
    The IDs for all tags in an MXML component, no matter how
    deeply nested they are, generate public variables of the component
    being defined. As a result, all id properties must be unique within
    a document. This also means that if you specified an ID for a
    component instance, you can access that component from anywhere in
    the application: from functions, external class files, imported
    ActionScript files, or inline scripts.
    So how does one reference these public variables?

    "slinabery" <[email protected]> wrote in
    message
    news:gbtnji$f03$[email protected]..
    > Let's say I have two files, myApp.mxml and
    EntryClass.as, as attached at
    > the
    > end of this post.
    >
    > Why does mxmlc complain with this error message:
    >
    quote:
    /path/to/EntryClass.as(4): col: 7 Error: Access of undefined
    property
    > myChart.
    >
    > myChart.graphics.drawRect(100,100,100,100);
    > ^
    >
    >
    > According to devguide_flex3.pdf,
    >
    quote:
    The IDs for all tags in an MXML component, no matter how
    deeply nested
    > they
    > are, generate public variables of the component being
    defined. As a
    > result, all
    > id properties must be unique within a document. This
    also means that if
    > you
    > specified an ID for a component instance, you can access
    that component
    > from
    > anywhere in the application: from functions, external
    class files,
    > imported
    > ActionScript files, or inline scripts.
    >
    > So how does one reference these public variables?
    >
    > myApp.mxml:
    >
    > <?xml version="1.0"?>
    > <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    > applicationComplete="EntryClass.main()">
    > <mx:Panel>
    > <mx:VBox id="myChart" width="900" height="300" />
    > </mx:Panel>
    > </mx:Application>
    >
    > EntryClass.as:
    >
    > package {
    > public class EntryClass {
    > public static function main():void {
    > myChart.graphics.drawRect(100,100,100,100);
    > }
    > }
    > }
    http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf
    Third question.

  • How to use form personalization to lunch concurrent program

    Hi,
    Now I am using the form personalization to lunch a concurrent program with global variables.But how to post the global variables to the program parameters.
    Thanks and best regards
    Fang
    Edited by: 895910 on Dec 25, 2011 7:54 PM

    Hi,
    I have defined global variables using form personalization. But how should i launch a SRS Form to submit a request and pass the variables as parameters. What should the syntax be.
    Thanks and best regards,
    Fang

  • Forms personalization - passing a parameter to a concurrent request

    I am using forms personalization to give the user the ability to submit a concurrent request from the 'Actions' menu of the form. I would like to be able to pass a field from the form to a parameter of the concurrent request. I know how to set a global variable using forms personalization. Does anyone know how I could use this variable as the default value for the parameter in the concurrent request? (e.g. The concurrent program uses PO number as a parameter - I'd like to be able to pass the PO number from the form to the concurrent request.)

    user572941 wrote:
    I am using forms personalization to give the user the ability to submit a concurrent request from the 'Actions' menu of the form. I would like to be able to pass a field from the form to a parameter of the concurrent request. I know how to set a global variable using forms personalization. Does anyone know how I could use this variable as the default value for the parameter in the concurrent request? (e.g. The concurrent program uses PO number as a parameter - I'd like to be able to pass the PO number from the form to the concurrent request.)Please see if old threads (which discuss the same topic) help -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Forms+AND+personalization+AND+Parameter&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Question about using constant variables in Forms

    As I am still very new to Forms, please forgive my ignorance if the answer to my question is very simple. I am trying to figure out how to use constant variables within my Forms application. For example, if I want to setup return code constants for the application (mind me, these are examples):
    RC_SUCCESS CONSTANT PLS_INTEGER := 1;
    RC_FAILURE CONSTANT PLS_INTEGER := 0;
    RC_YEAR_DATA_NOT_FOUND := 50;
    Then in a module I created, if I wanted to check the return code against one of the constants I would do:
    DECLARE
    rc PLS_INTEGER;
    BEGIN
    GET_YEAR_DATA('2000', rc);
    IF rc = RC_YEAR_DATA_NOT_FOUND THEN
    -- Do some error handling
    END IF;
    END;
    I know that you can declare constants within individual procedures or packages but I can't see to find information on how to do this globally for the application. I've read about using global variables within Forms but the CHAR data type only and the fact the value can be changed doesn't really fit for this purpose. Am I missing something? Is there a config file or something for the webserver that can be used to set these up??
    Any help would be appreciated.
    Thanks

    To declare constants create a Package-Specification in a pll and deifne all your constants there, something like:
    PACKAGE PK_CONSTANTS IS
      RC_SUCCESS CONSTANT PLS_INTEGER := 1;
      RC_FAILURE CONSTANT PLS_INTEGER := 0;
      RC_YEAR_DATA_NOT_FOUND := 50;
    END;Then attach that pll to all your forms-modules, and use it like
    IF rc = PK_CONSTANTS.RC_YEAR_DATA_NOT_FOUND THEN
    END IF;A word about exceptions or errors: In my eyes its clearer (and in case of exceptions even better) to raise an exception than to hide it behind return-codes.

  • Global Variable in Oracle Forms 6i

    Hi,
    How & where to define global variable in Oracle form 6i and also let me know how to access it.
    Thanks in advance
    Regards,
    Sanket

    hi
    Global variable are forms specifice variable.
    it can store character value upto 255 for all usages.
    We can initialize it when we declare otherwise give error if we did not assign it any value.
    Oracle 10g it can take upto 4000 bytes
    GLOBAL.ur_globalvar := TO_CHAR(15);
    or
    :GLOBAL.ur_globalvar:= '15';
    or
    Remmber numeric values are implicitly converted by oracle 2 character
    :GLOBAL.ur_globalvar:= 15;
    -- which can then subsequently be accessed using...
    :GLOBAL.ur_globalvar;
    -- To destroy a global variable and release its memory, use the ERASE built-in procedure:
    Erase('GLOBAL.my_var'); Regards,
    Abdetu...

Maybe you are looking for

  • Excel report generation does not exit excel

    I am using the excel report generator to save test reports.  I can create the report using a template and write to it when needed with no problems.  After every test step I add data and save the report.  I keep excel closed by using the no change set

  • How to set number of rows in filters?

    Hi, we need to set another number of rows which is displayed in filters on bex or web template? Thanks for advice

  • Maximum character length of user id (UID)

    hello i have couple questions about sunone directory (1) what is the max length of UID i can have? (2) where can i find the development (programmer's ) guide to find such information? thank you,

  • Oracle Packages/Stored Proc and VB

    Hello, I have a new assignment that I have to start at the client site ASAP. The client wants all the Sql in Oracle Stored Procs/Packages and VB being the front end. I am used to embedding my sql statements in my VB apps and connecting through ADO's

  • Cannot read hybrid ISOs in Disk Utility

    I'm trying to burn Ubuntu 13.04 and Mint 15 to a DVD in Disk Utility but the images I've downloaded are not mountable.  Apparently this is because "Hybrid" images are all the rage now, which facilitate creating a bootable USB stick, or something.  I