Pass Global Variables to another forms(urgent)
Hi,
Can someone tell me what is the best way to pass a global variable from one form to another forms. I havn't trouble with that.
Please advise.
Thank you very much
Tim
null
You can use a parameter.
Helena
null
Similar Messages
-
Passing global variable values from databse to forms
I am using forms 6i and database is oracle 9i.
I am trying to run a form stand alone ( by pressing CTRL-R) without putting it in the application.
since when this form is placed in the application menu it works fine as it has been passed global variables values from the database .
now i am trying to run the form without menu and thus i want to pass the values of global variables .please let me know where should i pass these values in form .is it be WHEN-NEW-FORM-Instance trigger or in Pre-form trigger.
i know what are the global variable values passing into the form from database.
i can hard code any values to check if the form runs well or not.If you intend to do this sort of testing regularly you might want to consider creating a seperate form with a control block which allows entry of the name of the form you want to run, the names of the globals and their values, and do a CALL_FORM.
-
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 -
Running Business Rules with global Variables in Composite Forms
Hi,
I am having trouble running Business Rules, that include Global Variables, in composite forms.
I have two forms in the composite form, both have entity in Page dimension set to 'local'. one includes entities at level 3 and the other has entities at level 0. I need to pass this level 0 entity to the business rule, from the form.
When i try to run the rule, it gives me the following error:
"This rule cannot be launched because it has hidden rtp variables without default values "
I get this error even when i set the default value for the global variable.
This rule runs perfectly when run from the individual form (which is part of the composite form).
Please help.
Thanks.Known Issue: 9900514
The Use Members on Data Form and Hide Prompt options for business rules attached to composite data forms apply only for runtime prompt values from the globally shared pages and POVs of a composite data form. In other words, this will only use members that are shared across all component data forms. If users want a business rule to take context from a single component data form, they should attach the business rule to that component data form and include the business rules for that component data form at the composite data form level (<Business rules for componentX>).
Please let me know if this is not what we are talking about.
Thank you,
Todd Rebner -
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... -
How do you pass a variable from one form to another
Sorry, I am new at this.
I have an ID on one form and I want to pass it to another form and then populate a text field on the second form. How is this accomplished.There are various ways to accomplish this depending on your applications' needs.
Read up on the manual, especially on session state management http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/concept.htm#CIHCFHBD
This will get you familiar with the basics of url syntax and and session state after which you will have no problem implementing what your asking -
Passing Global Variable in Sql Object
Hi
How can i pass my global variable into SQL object? I tried to pass it but then I tried to update the schema it giving me the error at varble
Please advise meThe Update schema is used only to get the structure for the Output.
Once you have a valid structure and the SQL Parses without any variables use the syntax for applying variables as in any Script within DI.
$GV_MyVar enclosed within square brackets will be replaced by Value of the variable.
$GV_MyVar enclosed within curly brackets will be replaced by Value of the variable enclosed in single quotes.
When the job runs, the variables will be replaced with values OR values with quotes. It is at this time, the SQL send to the database is validated for syntax.
Therefore, you will not know the validity of your SQL with Global Variables until you run the job.
Hope this helps!
Thanks & Regards
Tiji
Edited by: Tiji Mathew on May 8, 2009 3:40 PM
The actual syntax was being posted as a link. edited to make the text descriptive. -
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.
-
How to declare global variables using another global variable in ODI
I am declaring a gloabal variable using another global variable.
say for example:
I have a global variable empid.
I am decalaring another global variable empname in refreshing tab of global variables and the select statment is
select empname from emp where empno = #GLOBAL.empid -------if i write like this i am getting error as invalid character.
select empname from emp where empno = '#GLOBAL.empid'-------if i write like this i am getting error as invalid number.
I have kept the datatype as numeric and action as non persistent
Please help
Thank you in advance.Hi,
You cant test/refresh empname standalone.
You need to create a new package drag and drop both variables and make them as refresh variable and execute that package and test.
Flow,
empid----> empname
Thanks,
Guru -
Can i use global variable in web forms
guys can any one tell me if i can use global variables when i am
deplying the forms on the web,.....
thank you
vas
nullGlobal variables work in their perfection even when you deploy
your forms on the WEB.
null -
How to print global variable in smart form table cell
hi,
i have smartform and i insert table in it, i also have set global variable, i want to show variable in table cell.
regards
shahid raisHi Shahid Rais
You can use this global variable that has been declared in anywhere as you like.
For displaying global variable in table lines, You can first set the column and row of the table by using the table tab in table node . Then, u can decide either the variable u want to used will be placed on header, main, or footer. After that, right click on one of the table part, and choose create table line. After choosing the correct line type as already been declared in the table painter, just simply right click on the table cell, and then create text node.
You can now enter your variable by using "insert field".
And don't forget the & & signs before and after your variable name.
Regards,
William Prawira -
How use global variable in other form
hi master
sir i define global variable abc in form1
sir can i use use this global variable abc in form2
form2 i call from from 1
please give me ideathank's for your reply
sir i use this method
i form1
:global.fatherstatus :=0;
form2
:global.fatherstatus :=:accountcode0;
thanking you -
How to pass a variable from one form to another in Form 6i
I have a user-password screen in one form. And every module has separate form. I need to pass user-name and user-level to all the form.
I am using Form 6i and Oracle 8.
Thanx in advance
VikasDECLARE
PL_ID PARAMLIST;
BEGIN
pl_id := GET_PARAMETER_LIST(:your parameter name);
IF ID_NULL(PL_ID) THEN
PL_ID := CREATE_PARAMETER_LIST(:your parameter name);
ELSE
DESTROY_PARAMETER_LIST(PL_ID);
PL_ID := CREATE_PARAMETER_LIST(:your parameter name);
END IF;
ADD_PARAMETER(PL_ID,your variable,TEXT_PARAMETER,:PARAMETER.your parameter name);
call_form ('Your Fmx Here',HIDE,NO_REPLACE,NO_QUERY_ONLY,PL_ID);
END;
hope this will help...
regrds
Kris -
HI,
WHEN-Button-pressed on first from
:global.a_sale_order_no := :sale_order.sale_order_no;
open_FORM('C:\test_report\final_to_be_added_to_main\DELEVERY_MASTER_new');ANd the open_form DELEVERY_MASTER_new
WHEN-NEW-FROM-INSTANCE(code) is
Set_Window_Property('DELIVERY_DETAIL', WINDOW_STATE, Maximize);
SELECT s.cust_id,s.SALE_ORDER_NO,s.PARTY_NAME,s.SEASON_YEAR, s.DEL_DATE,c.CURRENCY,S.delivery_address,S.SHOWROOM_ADDRESS,
S.INVOICE_ADDRESS,s.SHIP,s.PAYMENT_TERM,s.CONTACT_PERSON||chr(10)||s.CONTACT_NO,s.vat_no INTO :delivery_master.cust_id,
:delivery_master.sale_order_no,:delivery_master.CUSTOMER_NAME,:delivery_master.SEASON,:delivery_master.DEL_PERIOD,
:delivery_master.CURRENCY,:delivery_master.DELIVERY_ADDRESS,:delivery_master.CUSTOMER_ADDRESS,
:delivery_master.ACCOUNTS_ADDRESS,:delivery_master.SHIPPER,:delivery_master.PAYMENT_TERMS,
:delivery_master.CONTACT_INFORMATION,:delivery_master.vat_no
FROM sale_order s,customer_master c
WHERE c.CUST_ID=s.cust_id and SALE_ORDER_NO = :global.a_sale_order_no ;I want when i press the button on first form then if sale_order_no already in delevery_master_new then message already in delevery_master_new
Please Guide
Thanks And Regards
Vikas SinghalVikas,
Change the WHEN-BUTTON-PRESSED trigger in first form with this one. And giving file path in the OPEN_FORM built-in is not advisable.
DECLARE
CURSOR Cur_SOrder IS SELECT COUNT(*) FROM DELIVERY_MASTER WHERE SALE_ORDER_NO = :SALE_ORDER.SALE_ORDER_NO;
Num_Temp NUMBER := NULL;
BEGIN
OPEN Cur_SOrder;
FETCH Cur_SOrder INTO Num_Temp;
CLOSE Cur_SOrder;
IF NVL(Num_Temp, 0) > 0 THEN
MESSAGE('Already in Delivery Master');
RAISE FORM_TRIGGER_FAILURE;
END IF;
:GLOBAL.a_sale_order_no := :SALE_ORDER.SALE_ORDER_NO;
OPEN_FORM('DELEVERY_MASTER_new');
END;Regards,
Manu.
If my response or the response of another was helpful, please mark it accordingly -
I am currently using Station Globals for sharing values among the main sequence and subsequence files. But I constantly need to add the variables on the many computers we own.
I tried using the File Globals in the main sequence file, but the variables are not displayed in or passed to the subsequence file. It works just like a local variable.
I also tried selecting the option "propagnate to subsequence" for the local variable in the main sequence, but still didn't get passed to the subsequence.
Thanks!
ph2ph2 wrote:
I am currently using Station Globals for sharing values among the main sequence and subsequence files. But I constantly need to add the variables on the many computers we own.
I tried using the File Globals in the main sequence file, but the variables are not displayed in or passed to the subsequence file. It works just like a local variable.
I also tried selecting the option "propagnate to subsequence" for the local variable in the main sequence, but still didn't get passed to the subsequence.
Thanks!
ph2
I'd recommend you consider using sequence parameters rather than globals. If you use globals, and you someday want to switch to a multi-socket test system, you might have to make signficant changes to your code because you likely would not want all of the threads using the same globals. If you use parameters instead, then every thread already would automatically have its own copy of the variables. Also parameters do not have the problem you are asking about here.
-Doug
Maybe you are looking for
-
Itunes doesn't see library on external hard drive
I've been using itunes on my laptop (dell inspiron 2200) with an external hard drive to store my music files. About a week ago, suddenly, itunes won't "see" the music there. Both my music and my playlists are blank. I can "see" the external hard driv
-
Workflow change to get cost responsible person
Need help from workflow experts. One standard workflow 14000089 (One-Step Approval of Purchase Orders) is used to approve the PO. It is going to Head of purchasing org all the time for approval. The requirement is to change the workflow so that it wi
-
System Requirement for SAP Crystal Server in Linux Suse 11
have trouble installing CRS 2011 in linux suse 11, need help to share best system requirements to install it. the condition is that this server will be use for mirroring database that support oracle 10g.
-
HI, I'm getting the message "Too many activations" when trying to install Dreamweaver CS3. It's a volume license key so you can't deactivate it from the other computer. I've uninstalled from the other computer and it still says "Too many activations"
-
I have the ios 5.1.1 restore app downloaded, does any one know how I can install it onto my iPod 4th Gen. please so as to get rid of this ios 6 which, like most people are finding it, rubbish. Thanks.