A form calls another form
In VB 2 call a form (say it's Form2), we just type Form2.show
How can I do the similiar thing in Java? I wish 2 make a splash screen n display 4 about 3 seconds n later it unload itself n calls another form.
In VB 2 call a form (say it's Form2), we just type
Form2.show
How can I do the similiar thing in Java? I wish 2 make
a splash screen n display 4 about 3 seconds n later it
unload itself n calls another form.Create a class that extends JWindow, do your splash things in this class and when you want to call another form or frame:- frameclass.setVisible(true), and use dispose() method on JWindow class to make it disappear.
Similar Messages
-
Form exits when calling another form
I have a form that passes parameters to another form. When creating new records and then calling the other form, it works fine. However, when coming from a post query and then passes parameters to a new form, the form exits upon calling of the other form. What causes this? Thanks for your help. I am using Forms Developer 6.0
Edited by: user6656248 on Apr 14, 2009 8:30 PMMy form is intermittent, when creating new records, sometimes the other form is called and parameters are passed but sometimes nothing happens and there are no errors. But from post query, calling another form and passing parameters exits the calling form and the called form does not show up. This form calls another form and passes some parameters without problems but when I tried to call another one, those scenarios happen. I am confused because the codes on both my When-Button-Pressed trigger are 100% similar. I dont know why this happens on this one and NEVER on the other. I hope you understand my query. Thanks a lot for responding. Please help.
Here is my code:
DECLARE
form_id FormModule;
pl_id paramlist;
pl_name varchar2(1000);
it_id Item;
BEGIN
pl_name := 'temp';
pl_id := get_parameter_list(pl_name);
IF NOT ID_NULL(pl_id) THEN
destroy_parameter_list(pl_id);
END IF;
pl_id := create_parameter_list(pl_name);
add_parameter(pl_id,'L_OUT_DATE',TEXT_PARAMETER,TO_CHAR(:DAILY_OUTS.OUT_DATE,'DD-MON-RRRR HH24:MI:SS'));
add_parameter(pl_id,'L_DATE_IN',TEXT_PARAMETER,TO_CHAR(:DAILY_OUTS.DATE_IN,'DD-MON-RRRR HH24:MI:SS'));
add_parameter(pl_id,'L_SUBSTATION_CODE',TEXT_PARAMETER,:DAILY_OUTS.SUBSTATION_CODE);
add_parameter(pl_id,'L_BREAKER_CODE',TEXT_PARAMETER,:DAILY_OUTS.BREAKER_CODE);
add_parameter(pl_id,'L_CIRCUIT_CODE',TEXT_PARAMETER,:DAILY_OUTS.CIRCUIT_CODE);
add_parameter(pl_id,'L_REMARKS',TEXT_PARAMETER,:DAILY_OUTS.REMARKS);
add_parameter(pl_id,'L_FREQUENCY',TEXT_PARAMETER,:DAILY_OUTS.FREQUENCY);
add_parameter(pl_id,'L_OUTAGE_CODE',TEXT_PARAMETER,:DAILY_OUTS.OUTAGE_CODE);
add_parameter(pl_id,'L_OUTAGE_SUBCODE',TEXT_PARAMETER,:DAILY_OUTS.OUTAGE_SUBCODE);
add_parameter(pl_id,'L_WEEK_NO',TEXT_PARAMETER,:DAILY_OUTS.WEEK_NO);
add_parameter(pl_id,'L_RADIO_GRP',TEXT_PARAMETER,:DAILY_OUTS.NEW_OUTAGE_GRP);
add_parameter(pl_id,'L_RELAYS_ACT',TEXT_PARAMETER,:DAILY_OUTS.RELAYS_ACT);
add_parameter(pl_id,'L_TRIP_CAUSED_BY',TEXT_PARAMETER,:DAILY_OUTS.TRIP_CAUSED_BY);
add_parameterr(pl_id,'L_SCODE_TRIP_CAUSED_BY',TEXT_PARAMETER,:DAILY_OUTS.SC_CAUSED_BY);
add_parameter(pl_id,'L_ACTION_TAKEN',TEXT_PARAMETER,:DAILY_OUTS.MEASURE);
:GLOBAL.BC := 1;
IF :daily_outs.out_date > sysdate +1 then
MESSAGE('DATE/TIME-OUT IS GREATER THAN SYSTEM DATE. PLEASE CHECK AND ENTER NEW
DATE/TIME-OUT VALUE.', acknowledge);
MESSAGE('DATE/TIME-OUT IS GREATER THAN SYSTEM DATE. PLEASE CHECK AND ENTER NEW
DATE/TIME-OUT VALUE.', acknowledge);
RAISE Form_Trigger_Failure;
END IF;
IF :daily_outs.date_in IS NOT NULL AND :daily_outs.out_date IS NOT NULL THEN
IF (:daily_outs.date_in - :daily_outs.out_date) <= 0 then
MESSAGE('DATE/TIME-IN IS LESS THAN OR EQUAL TO DATE/TIME-OUT. PLEASE ENTER NEW
DATE/TIME-IN VALUE.', acknowledge);
RAISE Form_Trigger_Failure;
END IF;
END IF;
OPEN_FORM('FRMSPM_DAILY_BRKRS_PARAM', ACTIVATE, NO_SESSION, SHARE_LIBRARY_DATA, pl_id);
END; -
Error while calling a form from another form's menu item
I created a main form and menu module for this form.
I am calling another form from main form menu item.
i moved both the forms and menu and compiled them.
But, when i run this form i am getting an error saying
FRM 92100: Your connection to the server was interrupted
This may be the result of a network error, or a failure on the server.
You will need to establish your session.
I set the seperateframe = true
networkentries = 30
But still getting the same error.
Is there any parameter that i am missing.
I will greatly appreciate if anybody can direct me to the solution.
Thank you.
Navya.Hi guest,
the data definition is:
DATA: XVBKD LIKE VBKDVB OCCURS 0 WITH HEADER LINE.
the assignment:
XVBKD-PRSDT = likp-erdat.
Thanks,
Hagit -
What are the 3 ways to call a form from another form?
What are the 3 ways to call a form from another form?
What is the command to call a report from within a form?
How do you attach a menu to a form?Hi,
1. Should be new_form, call_form and open_form
2. The command is run_product
3. There is a property 'Menu Module' in form, just change it to your menu file name
Regards,
George
Can anyone help me with the following questions...
What are the 3 ways to call a form from another form?
What is the command to call a report from within a form?
How do you attach a menu to a form?
Thanks for your time..
Madhu -
How to call another form ,if option is entered in a text item object ???
hi ,
I am created an application ,where in i press a button which call another form having a menu .
I select any one of the option from the menu ....i enter a number in the text item object of this form ....depending upon what option i have typed .....i would like to call another form ...
My questions are
1) Which trigger of this text item should be enabled,and what code to i write in this trigger ?
2) Since this form is not having any database insert,delete ,update or query (select)
it should directly go to the new form,whose option i provide in the text item .
Sunnyhey bro, i am assuming that ur text item contains the form name, any relevant trigger can be used for user action, like key-enter, post-change or key-next-item.
to run a form u can use functions call_form or open_form with proper paramters.
if u want to forward the entered text in the item, use global variable for the session.
it doesnt matter if the form contains database items or blocks, all u have to do is run the form.
e.g,
declare
VAR VARCHAR2-------;
begin
/* u can use the variable to concatinate or modify too, also can use global variable
var:=:urblock.uritem;
/* use ur own relevant parameters */
open_form(VAR,ACTIVATE,NO_SESSION);
exception
when---------
end; -
hi guys
can anyone please tell what what the best way is to call another form, pass a parameter to it e.g patient id and execute query on the form based the id passed. basically display all related data as you open that form
thanksCheck the on line help for CALL_FORM....its got an example.
REgards
Grant ROnald
Forms Product Management -
Calling another form from current form
Hello everyone,
After entering information into a form, I want to call another form then I want to return to the previous form without loosing the information I entered into it....
Whats the pl/sql code to do this...how do i do it?
Thank u...
Edited by: user10746194 on Jan 16, 2010 9:30 AMYou should put this code at the place where you want to appear the called form. that is the child/first form.
if you want to call the form on button click, place the code in when-button-pressed trigger of the respective button in the first form.
Edited by: Dora on Jan 17, 2010 10:54 AM -
Call Another Form using Forms Personalization
Hi All,
I have created a Custom form using TEMPLATE.fmb and created functions in Apps and assigned to Responsibility etc and it all works OK.
Now, I need to call this Custom form from another seeded(PO form) Via Tools -> Menu.
using Forms personalization I can get the Menu Entry and Actions to execute the Form successfully from the PO Form.
BUT, I need it to automatically query records in my CUSTOM form based on my current PO_HEADER_ID value on my PO Form.
How can I do it ?
Do I need to modify my Block and add some parameters and then pass a value via Personalization ?
Please help !
Thanks
ShankarDuplicate thread (please post only once).
calling Custom Form from Another Form
calling Custom Form from Another Form
Thanks,
Hussein -
Calling another form when current form is in query mode
I have a form that is in query mode. When I select a menu option that calls another form through new_form, I get the error 'FRM-41009: Function key not allowed. Press Ctrl+F1 for list of valid keys.'
I would like trap this error, cancel the query and invoke the new form. I have tried to do this by code similar to this:
if :system.mode = 'enter-query' then
exit_form ;
end if ;
new_form('someform') ;
(since exit_form in query mode is supposed to cancel the query).
But in this case, the trigger ends with the execution of the 'exit_form' statement.
Any help would be greatly appreciated.
Thanks and regards,
Rajesh Jayaprakash
[email protected]I think the following will work:
When you call the EXIT_FORM builtin, Forms cancels out of Query Mode but also stops the current PL/SQ execution - which is annoying.
I believe, though, that the WHEN-WINDOW-ACTIVATED trigger will fire on your Form. Therefore, you can:
1) Set a Global Variable or PL/SQL packaged variable just before you call the EXIT_FORM builtin then
2) Test the value of the Global Variable in the WHEN-WINDOW-ACTIVATED trigger and perform the CALL_FORM there.
3) Even better, put the CALL_FORM and associated parameters into a Program Unit on the Form - then you can call it from either the original trigger or the WWA trigger as necessary.
If this does not work, you could resort to:
1) Set a Global Variable just before you call the EXIT_FORM builtin
2) Initiate a TIMER
3) Call the EXIT_FORM builtin
4) In a WHEN-TIMER-EXPIRED trigger, check the value of the Global variable. If it's set, Call the Form you want to call
5) Again, put the actual CALL_FORM in a Program Unit so it can easily be called with the correct parameters from wherever you need to call it.
It's annoying that you need to go to these lengths to perform what seems to be such an easy task!
If anyone knows any better ways of achieving this, please add another reply! -
HOW TO CALL A FORM FROM ANOTHER FORM
HOW TO CALL A FORM FROM ANOTHER FORM [local machine]
Balraj wrote:
HOW TO CALL A FORM FROM ANOTHER FORM [local machine]The way you asked question is this bit of request or order?
Secondly, you used capital latters which are being treated as Shouting Language. So, always try to switch off the Capslock of your keyboard.
Thirdly, you are very lazy to serach on forum or google for your problem instead of waiting someone to anwer your question.
Your should seriously have a look at FAQ.
http://wikis.sun.com/display/Forums/Forums+FAQ
Also here.
http://www.catb.org/~esr/faqs/smart-questions.html
Please read documentation for the initial questions.
-Ammad -
Call a portal form from another form
I have a portal form which needs to call another form using a link and passing parameters ..
both of forms are built on tables with a forigen key..
How can i pass parameters from form1 to form2 ?
Best RegardsHi,
Here is a sample which calls another form with the values of flightno and ticket no.
declare
flightno number;
ticketno varchar2(30);
tdate date;
persons number;
blk varchar2(10) := 'DEFAULT';
begin
flightno := p_session.get_value_as_varchar2(
p_block_name => blk,
p_attribute_name => 'A_FLIGHT_NO');
ticketno := p_session.get_value_as_varchar2(
p_block_name => blk,
p_attribute_name => 'A_TICKET_NO');
tdate := p_session.get_value_as_date(
p_block_name => blk,
p_attribute_name => 'A_TRAVEL_DATE');
persons := p_session.get_value_as_number(
p_block_name => blk,
p_attribute_name => 'A_NOF_PERSONS');
call('SJDEMO30.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1384225689&p_arg_names=_sessionid &p_arg_values=&p_arg_names=flightno&p_arg_values='||flightno||'&p_arg_names=ticketno&p_arg_values='||ticketno);
end;
Hope this helps.
Thanks,
Sharmila -
Calling another form in query only mode
Dear all,
Please clarify me which parameters to use while calling another form in query only mode in
fnd_function.execute.
Regards,
KiranHi,
According to standard doc:
When you define a form function in the Form Functions window or call an existing form function using FND_FUNCTION.EXECUTE or
APP_NAVIGATE.EXECUTE, you can add the string:
QUERY_ONLY=YES
to the string in the Parameters field or in the arguments string (using the other_params argument). This argument causes the form to be
called in query–only mode. The FND_FUNCTION.EXECUTE procedure (which is also used by the Oracle Application Object Library
Navigator) sets the QUERY_ONLY flag that sets all database blocks to non–insertable, non–updatable, and non–deletable.
Hope it helps. -
Form6i can't call another form on network mapping drive ?
when on web,form6i can't call another form on network mapping drive on ias8 web server,but form 6.0 vs oas 4.0.7(or 4.0.8 )can,why?
OS : windows nt 4.0 sp5Malay,
In your application servers' oracle_home\forms90 there is a file named "formsweb.cfg" configure that file with all parameters and application path also.
workingDirectory=C:\frms
Regards
Mayank sharma -
How can we get data from One Form to Another Form
Hi All,
I have 2Forms.I'm calling one form from another form buy using next form button.
If i press itis opening 2nd form,Simultaneously i have to get the data to the 2nd form.Can any one help me in this.
Any triggers has to be fire tell me the solution
Regards
Sivayou may have better success over here
Forms -
Show one form from another form by button pressed
I am a new learner. I am using developer but facing a problem when I used a button to show an another form.
my button is 'Order' in the form cust_info and I want to show ORDERS form by pressing 'Order' button and my pl/sql against this 'Order' button is:
BEGIN
OPEN_FORM('ORDERS', no_hide, no_replace, query_only);
END;
Showing Error: Can't read form ORDERS
pls give me a solution.Hi, Ashraf:
You can learn a lot about Forms in online help, which you access by choosing Help > Online Help from the Forms Builder menu. There is an Oracle University class on basic Forms, called Oracle Forms Developer 10g: Build Internet Applications. There are also some excellent books on Oracle Forms. The Forms page on OTN is very helpful as well (http://otn.oracle.com/products/forms).
When you create a record group, you can specify a query statement for it, so that's where you enter the SELECT statement.
So if you create a record group named, for example, MY_GROUP, and if your combo list item is named DEPT_ID, then in the trigger where you want to populate the combo list (probably a When-New-Form-Instance) you would use the code:
DECLARE
GROUP_ID RECORDGROUP;
QUERY_OK NUMBER;
BEGIN
GROUP_ID := FIND_GROUP('MY_GROUP');
QUERY_OK := POPULATE_GROUP(GROUP_ID);
CLEAR_LIST('DEPT_ID');
POPULATE_LIST('DEPT_ID', GROUP_ID);
END;
I hope this helps. As Manu said, please read about Forums etiquette. It's important to just put one problem in each posting so that people who are looking for help on a particular topic can easily find it, and so that those who have expertise in a particular topic will read your post and be more likely to help you.
Regards,
Pam
Maybe you are looking for
-
How do I create a new ssh SMF service?
Hello. I looked all over before posting this...I just completed four Solaris 10 builds using OPSWARE. All four builds are on V120's. I had two Solaris 10 with older hardware release 3/05 I belive, those were fine, but the two with release 1/06 did no
-
Opening a PDF document closes me out of the program I am in
Whenever I open a pdf document in my emails or on a website, it closes me out of the program I was using such as my aol account, if I'm filling out a job application, etc... any suggestions? I'm running Windows XP 2002
-
I purchased music but receive repeated download errors (-5000). I've checked and updated all "permissions" but still cannot download the music for which I've already been charged! Help please!
-
I can't get past white screen when starting up, any ideas?
I Can't get past white screen when starting up, any ideas
-
Hi, I have a report on Ireport. I'm trying to compile, fill and run my report while my application is running but I get some errors. This is my code: //code JasperDesign jDesign = JasperManager.loadXmlDesign(fileName); JasperReport jReport = JasperMa