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
Similar Messages
-
Global Variables passing from standard form for use on custom form
Hi,
I'm trying to grab a value from a standard form, and pass it to a new custom form, which I am opening automatically from the standard form via personalizations. Is anyone aware of a way to send a value from one form to another? I was going to try using a global variable, which it looks like you can set through personalization. I tried doing it by passing the value as a form parameter, which works if I hard code a value, but it doesn't work if I refer to a value from the standard form.in your E-Business-environment may exist some special codings, which you have to think of, when passing parameters through the application.
Copy the question to your EBS-Forum. They know ways using personalization and passing parameters -
Forms Personalization:Global variable Error
Hi,
Two Forms one is AR transactions and 2nd is AR TO AP,
navigating from ACTIONS menu in Transactions window to call AR TO AP form
Have defined Global Variable for Transaction Number in AR R12, AS,
Object Type - Global variable
Target object - MAIN_TRX_VALUE
Property name - Value
Value - :TGW_HEADER.TRX_NUMBER_MIR
And want to use this global variable in another calling form AR TO AP but not getting value of generated transaction Number in my form field TRANSACTION_NUMBER which is defined as in personalization
Object Type - ITEM
Target object - BLK_CTRL.Transaction_number
Property name - Value
Value - :GLOBAL.MAIN_TRX_VALUE.
Any Syntax error?have done all trial n error menthod.
Using followin syntax in form 10g WHEN NEW FORM INSTANCE,
:Blk_Ctrl.Transaction_Number := :global.MAIN_TRX_VALUE ;
Any other way to fetch TRX_NUMBER_MIR value?
On Priority.THANKS.hi
u did not mention error and u r forms version?
sarah -
Forms personalization and global variable
Hi,
I'm trying to call a procedure in forms personalization and using a defined global variable. The data in the global variable is number. In the procedure, some of the parameter has a number datatype and I'm converting the global variable using to_number eg (to_number(:global.XX_LINE_NUM). This fails with error message ora-01403 no data found. I've tried putting the above into a variable with datatype number in the declare statement, and it errors as well.
Does anyone knows the syntax to convert the global variable to number datatype in personalization.
ThanksAsk in this forum : OA Framework
-
Hello
I made a Global Variable XX_DATE in Transaction Form Personalization with a value =:TACC_ACC_ASSGN.GL_POSTED_DATE.
I'm planning to get the value from XX_DATE to one of the fields in Receipts thru Receipt Personalization.
But a got the following error when I validate the value in Actions
FRM-40815: Variable GLOBAL.XX_DATE does not exist.
The String =:GLOBAL.XX_DATE could not be evaluated because of an errorAny help on this please?
I just wanted to transfer data (GL_POSTED_DATE) from Transactions to Receipts using Global Variable.
Any other ideas?
Thanks a lot
emgeeeIn WHEN_NEW_FORM_INSTANCE set the property INITIAL_VALUE for the global variable.
-
Is there a way to list all global variables in a multi-form app without actually knowing the names of the variables? We have some FMX files without source code, and I would like to create a form that would just list these globals. Possible or not? Or put another way, is there a way to grab these globals from the memory area?
The only idea that comes to my mind : start the debugger from Forms Builder with your starting module, and when reaching a breakpoint (which has to be set before) you can see in the middle of the debugger a window (the navigator pane) a navigator tree. Click on Global Variables and you can see all Globals and their values which do exist the time your program reaches the breakpoint.
Hope this may help you
Kai -
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 AMHi 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 -
Forms Personalization : Global Variable in Procedure parameter
Hi All,
I have created the global variable XX_INSERT which holds the constant value "INSERT".
I am trying to pass this global variable in execute procedure built in as below,
='begin
XX_GLOBAL_PACKAGE.call_proc
(''' || ${item.global.xx_insert.value} || ''' );
end'
But, i'm getting the the following error, Tokens in the string could not be evaluated. Please check the syntax.
If anybody have any ideas, plz share it.
ThanksTry
${global.xx_insert.value}
Instead of
${item.global.xx_insert.value}
Hope this helps,
Sandeep Gandhi -
How to pass global variables to call stored procedure in form personalizati
Hi,
We want to call a custom store procedure with 2 paramterts, I am storing values into 2 global variables.
We want call the custom store procedure with global variable values in form personalizations.
We tried like
='declare
begin
SUR_TEST_ORDER_LINE_UPD.update_order_line (:global.xx_line_id, :global.ship_set_id);
end'
Could you please suggest.
Advance Thanks
SubbuHi,
Doc number (MOS Doc 743490.) is avaiable in metalink or ?Yes.
Note: 743490.1 - Customization in Oracle Applications
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=743490.1
Regards,
Hussein -
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;
;) -
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,
Sankethi
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... -
Can i pass parameter or global variable in view from 6i form
hi master
sir can i pass parameter or global variable in view from 6i form
i use view for some diff column calculation within the date then i use
where date between data1 and date2
in view but view not create
please give me idea how i pass external value in view
thank
aamirHi Antony!
I feel it may not produce the right results if you
dont include the where clause and using only group by
in view.You felt? Please clear, logical thoughts put here, not feelings.
(It may very well have all the Debit, Credit
for all the Accid where as the user wants only for
r some date range)Data range is determinated in Form by user, so if view should give final data set then you must back
on Ranjana first question: How to pass parameter or global variable to view from 6i form?
And also as Ranjit pointed out, If you have only
accid, sum(debit), sum(credit) in View, wheres this
enddate ??Of course, column entdate (or enddate?) must be included in view...
Cheers! -
Use global variable in reports which is declared in forms
Hi All,
I have declared and used a global variable in Forms and after that I'm running a report and I want to use the same variable in reports.
How can I use that.
Regards
Praveen Kr. AroraHi Rizwan,
Thanks for prompt reply.
Can you explain in more detail with example.
Though I'm calling report from menu item and I have created report file with three parameters.
In menu item I have created a parameter list with same three parameters but whenever I tried to run then it gives Invalid ID error for all three parameters.
Regards
Praveen Kr. Arora -
Global variable declaration in form routines
Hi All,
i am new of the smartforms, i have a small problem in smartforms.
i need to display the one text based on the condtions, already i have putted the condtions in the condition tab for the text, i need to compare the one more condtion, the condtion is TB_INFORMATION IS NOT INITIAL.
the code was devaloped in the formroutines , i need to implement the one condtion in the form routines,
the condition is if TB_INFORMATION IS NOT INITIAL is not initial
va_information = x.
endif.
already i declared the variable in the global defination ,but i am getting the error.
where can i declare the global variable in form routines.
Please help me,
Thanks & Regards
charandeclare in global data and it will be visible and available in form routines too.
-
Global variable to capture username with Form 6i
Hi everyone,
I have a menu created with Forms 6i and the shortcut that I use to call the menu has in its target the following: C:\orant\BIN\ifrun60.EXE userid=username/password MYFORM.FMX
When I remove the username and password from the shortcut target it asks me for the username and password so when I typed, I am allowed to go into the application, but I want to be able to store the username on a global variable and put the value on a item when the user chooses the program that he or her wants to use, so they don't go to see other users information.
Can anyone please help me to do this step by step?
Thanks in advance!!user626836 wrote:
Hi everyone,
I have a menu created with Forms 6i and the shortcut that I use to call the menu has in its target the following: C:\orant\BIN\ifrun60.EXE userid=username/password MYFORM.FMX
When I remove the username and password from the shortcut target it asks me for the username and password so when I typed, I am allowed to go into the application, but I want to be able to store the username on a global variable and put the value on a item when the user chooses the program that he or her wants to use, so they don't go to see other users information.
Can anyone please help me to do this step by step?You can developed a form named Login_form
Create On-Logon trigger at form level and provide the connection string like
declare
uname varchar2(10);
pass varchar2(10);
begin
uname := 'user_name';
pass :='password';
logon(uname, pass||'@orcl');
end;now call only this form at your target... like C:\orant\BIN\ifrun60.EXE login_form
Hope this will help
If someone's response is helpful or correct, please mark it accordingly.
Maybe you are looking for
-
I need to modify the header of a tableview and I've tried this: .table-view { -fx-background-color: rgb(70,70,70); -fx-text-fill: white; -fx-border-style: solid; -fx-border-color: transparent; /* -fx-border-insets: 0 1 1 0, 0 0 0 0
-
The product version and database version are not compatible
The following simple program gets an exception {The product version and database version are not compatible} its very hard to proceed from here. Does anybody know what cause this? Best Regards Jan Isacsson using System.Collections.ObjectModel; usin
-
Best Way to Drop Large Clob Column?
I have a very large partitioned table that contains XML documents stored in a clob column. Aside from the clob column there are several varchar and numeric columns in the table that are related to each document. We have decided to move the XML out of
-
Ok, I could not figure out how to create a second User Account for my original Apple ID. Is it not possible to have a 2nd, or multiple, User Accounts, per Apple ID? So, In order to ask for help in correcting the post I created with my original Apple
-
Hi,, I am new to this world of OBIEE but, i am very eager to learn OBIEE. Can anybody please provide me documentation for Cache & how administrator can provide security for cache in OBIEE. Thanks in advance