Call a form from another form using call_form,open_form,new_form
I HAVE TWO FORMS 1)KOPT_MODULE WHICH IS CALLED FORM
2)KOPT_SUB_MODULE WHICH IS CALLING FORM
IN KOPT_SUB_MODULE I HAVE ONE TRIGGER
1)WHEN BUTTON PRESSED
DECLARE
List_id ParamList;
BEGIN
List_id:= GET_PARAMETER_LIST('input_params');
IF NOT ID_NULL(List_id) THEN
DESTROY_PARAMETER_LIST(list_id);
END IF;
List_id := Create_Parameter_List('input_params');
ADD_PARAMETER(list_id, 'emp_query', TEXT_PARAMETER, :MOD_ID);
CALL_FORM('KOPT_MODULE', NO_HIDE, DO_REPLACE, NO_QUERY_ONLY, list_id);
END;
IN KOPT_MODULE I HAVE ONE TRIGGER
1)WHEN NEW FORM INSTANCE
if :parameter.cparam_cond is not null then
BEGIN
set_block_property('KOPT_MODULE',default_where,:parameter.cparam_cond);
--:SYSTEM.MESSAGE_LEVEL:='25';
execute_query;
END;
END IF;
BOTH THE FORMS ARE AT SAME LOCATION "D:\Documents and Settings\Administrator\My Documents\PROJECT WORK"
I DON'T WANT TO USE CALL_FORM('D:\Documents and Settings\Administrator\My Documents\PROJECT WORK');
BUT WHEN I USE ABOVE TRIGGER A MESSAGE FRM-40010: CANNOT FIND FORM KOPT_MODULE
PL TELL ME ELABORATELY WHAT TO DO IN KOPT_MODULE FORM WHICH IS CALLED FORM
AND IN KOPT_SUB_MODULE WHICH IS CALLING FORM.
SHALL I WRITE ANY OTHER TRIGGER OR CHANGE THE CODE?
PL HELP ME TO SOLVE PROBLEM
First of all, stop shouting. Writing everything in uppercase is regarded as shouting.
Second, you didn't mention any version number, so please tell us your forms-version.
Depending on your version, you have to set the environment variable FORMS45_PATH, FORMS60_PATH, FORMS90_PATH or FORMS_PATH either in the registry or in your env-file.
Similar Messages
-
Calling UNIX Command from another server using ODIOScommand utility
Hi,
My unix script 'runmanger' is on another server say 'St23456wer' under /u10/DV2/ofsaa/fic/xxx/bin. I want to call this 'runmanager' using ODIOSCommand. My ODI agent is installed on different server. I can ping 'St23456wer' server from ODI server. How can I call this unix script.My only experience with this is connecting to source files on a remote linux server and the two options I was presented with were 1) creating a mount to make the files 'local', or 2) set up a new agent on the remote server.
One of the gurus may have a better answer for you. -
Calling a Report from another Report.....URGENT
Hi,
I am calling a report from another report using hyperlink. I want that this new report should come in a new page.
Can any body help me where i can set this property, so that the new report will open in a new page.
Thanks in advance
Regards
KamalTry to call report from report by a button in the calling report:
1 In the Layout Model view, click in the tool palette. Note
2 Click and drag a rectangle.
3 Double-click the button object to display the Property Palette.
4 Under the Button Label node, set the Label Type property to either Text or Icon:
n If the button label is text, set the Text property to the text you want to appear on the button.
n If the button label is an icon, set the Icon Name property to the name of the file containing the icon (the file must reside in the directory specified by the UI_ICON environment variable).
5 Under the Button Behavior node, set the Type property to PL/SQL.
6 Double-click the PL/SQL Trigger property value field.
7 In the PL/SQL Editor, define the PL/SQL for the action trigger or format trigger when the button is clicked in the formatted report.
8 Set other properties as desired.
9 To activate the button, run the report, then display it in the Runtime Previewer. -
Call a Form using Webutil from the Menu loose focus on the applet
Hello,
I have the following problem:
When calling a form using webutil from the menu the focus on the applet (I mean the Forms Application window) is lost and I have to click on the window to get back the focus on the application.
Any advice ?
Env: Forms 9i / Webutil 1.06
Rgds,
PhilippeTry to use the NO_HIDE parameter in the CALL_FORM() built-in.
Call_Form( 'the_form', NO_HIDE ) ;Or maybe, in the[b] When-New-Form-Instance trigger of the called form, return the focus to the calling form
Go_Form( Get_Application_Property( CALLING_FORM ) ) ;Francois -
Calling repaint method from another class
My question in a very simple form :
how do I call repaint mathod from another class.
e.g: Let's say class "A.java" is a JFrame .
Class "B.java" is a JPanel which is added to the JFrame above.
Class "C.java" is a JDialog containing some JButtons.
How do I call the repaint method from the class "C.java".
Thank you in advance!!My question in a very simple form :
how do I call repaint mathod from another class.
e.g: Let's say class "A.java" is a JFrame .
Class "B.java" is a JPanel which is added to the JFrame above.
Class "C.java" is a JDialog containing some JButtons.
How do I call the repaint method from the class "C.java".
Thank you in advance!! -
FETCHING VALUES IN MULTI RECORD BLOCK FROM ANOTHER TABLE USING SELECT STATEMENT.
Hi,
I have one multi record block in which i want to fetch values
(more then one record) from another table using select statement
IN KEY NEXT ITEM.I am getting following error.
ORA-01422: exact fetch returns more than requested number of rows
Thanks in advance.In your case I see no reason to use non-database block and to try to populate it from a trigger with a query, instead of using the default forms functionality where you can associate the block and the fields with table, create where clause using bind variables and simply use execute_query() build-in to populate the block. The power of the forms is to use their build-in functionality to interact with the database.
Also, you can base your block on a query, not on a table and you dynamically change this query using set_block_property() build-in. You can use any dynamic queries (based on different data sources) and you simply need to control the column's data type, the number of the columns and their aliases. Something like creating inline views as a block data source.
However, you can replace the explicit cursor with implicit one like
go_block('non_db_block_name');
first_record();
FOR v_tab IN (SELECT *
FROM tab
WHERE col_name = :variable)
LOOP
:non_db_block_name.field1 := v_tab.col1;
:non_db_block_name.field2 := v_tab.col2;
next_record();
END LOOP; -
Problem regarding calling a program from another program
Hi,
I have a requirement that i need to call a program from another program and in that case the called program should be executed with a value in the selection screen coming from the first program..i.e.
a standard report to view the user Notes for annual leave is RPTARQDBVIEW. Can we create a report to display all the users under a manager as a hyperlink and run the report(RPTARQDBVIEW), with the pernr of the employee selected
Regards,
saumikSubmitting a report using ranges for select-options
* Define range for ltak-tanum
RANGES: r_tanum FOR ltak-tanum.
* Read values from database tabel into the range
* These values are later used for select-options in the report
SELECT * FROM ltak
WHERE lgnum = w_lgnum AND "Warehouse number/complex
vbeln = w_screen1000-io_vbeln. "Transfer order number
MOVE ltak-tanum TO r_tanum-low.
MOVE 'I' TO r_tanum-sign.
MOVE 'EQ' TO r_tanum-option.
APPEND r_tanum.
ENDSELECT.
* Submit report with range
SUBMIT zmm00100 WITH p_tanum IN r_tanum.
or
Submitting a report from ABAP with selection criterias
TYPES: tt_selection TYPE STANDARD TABLE OF rsparams.
DATA: l_iblnr TYPE st_iblnr,
* Define internal table and work area for select-options
l_selection TYPE rsparams,
li_selection TYPE tt_selection.
* Create selectIon table
LOOP AT gi_iblnr INTO l_iblnr.
CLEAR l_selection.
l_selection-selname = 'IM_IBLNR'. "Option name
l_selection-kind = 'S'. "S= select options P=Parameters
l_selection-sign = 'I'. "Sign
l_selection-option = 'EQ'. "Option
l_selection-low = l_iblnr-iblnr. "Value
APPEND l_selection TO li_selection.
ENDLOOP.
* Submit report
SUBMIT rm07idif WITH SELECTION-TABLE li_selection AND RETURN.
Regards,
Prabhudas -
Best way To get data from another application using NDDE lbrary
My vb.net application gets data from another application using NDDE Library. I got stocks prices (open,high,low,close,volume,change......(about 15 records for each stock)) (about 200 stocks) . I don't know if there is a problem in my code.
This is my code:
l : is the list of stocks.
This Sub connects to server and requests the data :
Public Shared Sub GetQuotes()
Try
client1 = New DdeClient(server, topic)
client1.Connect()
For i As Integer = 0 To l.Count - 1
client1.StartAdvise("QO." & l(i).t & ".TAD$last", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$open", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$high", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$low", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$pclose", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$volume", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$date", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$time", 1, True, 60000)
Next
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
and then I get the data from Client_advise sub (called each time a value changed )and fill the list. What I know is that client advise gets only one record for single stock each time is called..
Example: for stock AAPL. 1st time enters client_Advise I get open price for AAPL, 2nd time I get high price for AAPL,3rd time I get low price..... and I update the value in the List (l)
This the client_Advise Sub:
Private Shared Sub client1_Advise(ByVal sender As Object, ByVal e As NDde.Client.DdeAdviseEventArgs) Handles client1.Advise
For q As Integer = 0 To l.Count - 1
If l(q).t = w(1) Then
Dim item() As String = e.Item.Split("$")
If l(q).Open = "#" Then
l(q).Open = "0"
End If
If l(q).hi = "#" Then
l(q).hi = "0"
End If
If l(q).lo = "#" Then
l(q).lo = "0"
End If
If l(q).Close = "" Or l(q).Close = "#" Then
l(q).Close = "0"
End If
If l(q).pclose = "#" Then
l(q).pclose = "0"
End If
If item(1) = "open" Then
l(q).Open = Format(Val(e.Text), "0.00")
ElseIf item(1) = "last" Then
l(q).Close = Format(Val(e.Text), "0.00")
ElseIf item(1) = "high" Then
l(q).hi = Format(Val(e.Text), "0.00")
ElseIf item(1) = "volume" Then
l(q).Volume = Val(e.Text)
ElseIf item(1) = "low" Then
l(q).lo = Format(Val(e.Text), "0.00")
ElseIf item(1) = "pclose" Then
l(q).pclose = Format(Val(e.Text), "0.00")
If l(q).pclose <> "" And l(q).pclose <> "#" And l(q).Close <> "" And l(q).Close <> "#" Then
l(q).c = Format(l(q).Close - l(q).pclose, "0.00")
l(q).cp = Format(((l(q).Close - l(q).pclose) / l(q).pclose) * 100, "0.00")
End If
l(q).flag1 = 2
ElseIf item(1) = "date" Then
l(q).Date1 = e.Text
ElseIf item(1) = "time" Then
l(q).Time = e.Text
End If
Exit For
End If
Next
End Sub
Am I doing something wrong which inreases CPU usage to 80 or 90 % ?
Thanks in advance.Hi MikeHammadi,
According to your description, you'd like to get data from another app using NDDE library.
When using the NDDE library, the CPU usage is high. As the NDDE library is third-party library, it is not supported here. I suggest you checking if the problem is caused by the NDDE library.
If you'd like to get data from another app. I suggest you could save the data in the dataBase, and then read it in another application if necessary.
If you have any other concern regarding this issue, please feel free to let me know.
Best regards,
Youjun Tang
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Regarding calling 1 report from another
Hello Friends,
Can u plz tell me how to call one report from another report.
Regards,
Drashanahi,
Use SUBMIT program statement
SUBMIT ZFIR001
chk this.
*Code used to populate 'select-options' & execute report
DATA: seltab type table of rsparams,
seltab_wa like line of seltab.
seltab_wa-selname = 'PNPPERNR'.
seltab_wa-sign = 'I'.
seltab_wa-option = 'EQ'.
load each personnel number accessed from the structure into
parameters to be used in the report
loop at pnppernr.
seltab_wa-low = pnppernr-low.
append seltab_wa to seltab.
endloop.
SUBMIT zreport with selection-table seltab
via selection-screen.
*Code used to populate 'parameters' & execute report
SUBMIT zreport with p_param1 = 'value'
with p_param2 = 'value'.
Other additions for SUBMIT
*Submit report and return to current program afterwards
SUBMIT zreport AND RETURN.
*Submit report via its own selection screen
SUBMIT zreport VIA SELECTION-SCREEN.
*Submit report using selection screen variant
SUBMIT zreport USING SELECTION-SET 'VARIANT1'.
*Submit report but export resultant list to memory, rather than
*it being displayed on screen
SUBMIT zreport EXPORTING LIST TO MEMORY.
Once report has finished and control has returned to calling
program, use function modules LIST_FROM_MEMORY, WRITE_LIST and
DISPLAY_LIST to retrieve and display report.
\[removed by moderator\]
rEGARDS
Edited by: Jan Stallkamp on Jul 29, 2008 5:25 PM -
How to call a BSP from another BSP?
Hi All,
I've created a BSP for hiring new employees. I have a situation whereby when the user presses a button a pop window will be displayed listing all the positions in the company. The user selects the correct position, which then populates an input box on the originating page and the pop up window closes.
This pop up window is a page in another bsp which goes off and gets the positions and stores the selection in a cookie.
Now my problem is how do i call this 'get postions' bsp from my originating bsp?
I've tried using the <%@ include file="/sap/bc/bsp/sap/z_hr_org_model"%> but i get the error only page fragments can be included.
So how do i call one bsp from another??
Any help would be much appreciated,
Kind Regards,
Liz.Look at the below [link|http://****************/Tutorials/BSP/F4Help/Tutorial.htm]
The only difference in your case is, you need to call the popup from different BSP Application.
To do that, just add the full path when you call the document.open..
For example,
document.open("/sap/bc/bsp/sap/z_hr_org_model/main.do", ............)
Raja -
Communication Protocols while Calling a BPEL from another BPEL
Hi,
I was just curious to understand that what is the protocol that gets used when a BPEL WS is called from another BPEL using Partner Link ?
Is it SOAP over HTTP or some internal network call in the BPEL engine.
If someone can point to a detailed documentation for it, that would be helpful.
Thanks,
SaurabhHi Veejai24 and soa_adf,
Thanks for your replies. My question here was more to analyze if an internal call of BPEL to another BPEL takes the same amount of time as if a BPEL is called from any external application over HTTP. Or the BPEL Engine reduces this time while internal calls and optimizes the performance?
Thanks,
Saurabh -
CallerPrincipal when calling one sessionbean from another
Hi all,
I have a little problem when calling one sessionbean from another sessionbean. The problem is, that in the method, which is called, is used SessionContext's getCallerPrincipal().getName(). This works great from client, but from other sessionbeans getCallerPrincipal() retuns an "ANONYMOUS" principal. How can I set the correct principal (the principal from the first sessionbean)?
Thank you
My env: Glassfish 2.1.1, Netbeans 6.8, Eclipselink 2.0.0, Java 1.6.0.18
My code:
@Stateless
public class ABean implements ASessionRemote{
@Resource
SessionContext ctx;
@Override
public void aMethod(){
String name = ctx.getCallerPrincipal().getName(); // the name is ANONYMOUS, when the call is done from other sessionbean
@Stateless
public class BBean implements BSessionRemote{
@Resource
SessionContext ctx;
@EJB
private ASessionRemote aSessionBean;
@Override
public void bMethod(){
aSessionBean.aMethod();
}"This works great from client"
What do you mean by this, i.e what sort of client are you using (stand alone app, servlet) ?
what shows up if you printout the caller principal in the calling bean ?
are the two ejbs in the same ear ?
what security meta-information are you using in ejb-jar.xml and sun-ejb-jar.xml, if any ? -
How do you call a method from another class without extending as a parent?
How do you call a method from another class without extending it as a parent? Is this possible?
Why don't you just create an instance of the class?
Car c = new Car();
c.drive("fast");The drive method is in the car class, but as long as the method is public, you can use it anywhere.
Is that what you were asking or am I totally misunderstanding your question?
Jen -
How to call a method from another class
I have a problem were i have to call a method from another class. What is the command line that i have to use. Thanks.
Here's one I wipped up in 10 minutes... Cool!
package forums;
import javax.swing.JFrame;
import javax.swing.JTextArea;
import krc.utilz.io.Filez;
import java.io.FileNotFoundException;
class FileDisplayer extends JFrame
private static final long serialVersionUID = 0L;
FileDisplayer(String filename) {
super(filename);
this.setDefaultCloseOperation(EXIT_ON_CLOSE);
this.setSize(600, 800);
JTextArea text = new JTextArea();
try {
text.setText(Filez.read(filename));
} catch (FileNotFoundException e) {
text.setText(e.toString());
this.add(text);
public static void main(String args[]) {
final String filename = (args.length>0 ? args[0] : "C:/Java/home/src/forums/FileDisplayer.java");
try {
java.awt.EventQueue.invokeLater(
new Runnable() {
public void run() {
new FileDisplayer(filename).setVisible(true);
} catch (Exception e) {
e.printStackTrace();
Filez.read
* reads the given file into one big string
* @param String filename - the name of the file to read
* @return the contents filename
public static String read(String filename) throws FileNotFoundException {
return Filez.read(new FileReader(filename));
* Reads the contents of the given reader into one big string, and closes the reader.
* @param java.io.Reader reader - a subclass of Reader to read from.
* @return the whole contents of the given reader.
public static String read(Reader in) {
try {
StringBuffer out = new StringBuffer();
try {
char[] bfr = new char[BFRSIZE];
int n = 0;
while( (n=in.read(bfr,0,BFRSIZE)) > 0 ) {
out.append(bfr,0,n);
} finally {
if(in!=null)in.close();
return out.toString();
} catch (IOException e) {
throw new RuntimeIOException(e.getMessage(), e);
}Edited by: corlettk on Dec 16, 2007 1:01 PM - dang [code [/tags][ -
Probe in calling tabstriped screen from another screen ..
hi
could any one please help me ,,,that what is the logic for calling tabstriped screen from another screen ..
Thanks N Regards
PriyaHi,
Jonathan.
Thanks for the response ...
I did execute with call screen statement ...(CALL SCREEN 0123). ..when i excute the program its working fine ,but the same programe when I execute with the T.CODE ...its giving erorr ...
ERORR:Program " ZTEST "tried to use screen 000.
the screen doesn't exist.
HERE IS CODE.
let me know where is the mistake ..
could you please , help me ,,what i suppose to do .
let me know where is the mistake ..
REPORT ZTEST .
DATA: DATE LIKE SY-DATUM,
TIME LIKE sy-uzeit.
DATA number TYPE sy-dynnr.
CONTROLS tabstrip TYPE TABSTRIP.
tabstrip-activetab = 'TAB1'.
number = '1003'.
tabstrip-activetab = 'TAB2'.
number = '1004'.
CALL SCREEN 1000.
*& Module STATUS_1000 OUTPUT
text
MODULE STATUS_1000 OUTPUT.
CASE : SY-UCOMM.
WHEN 'ENTER'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'MOD'.
DATE = DATE.
TIME = time.
SCREEN-INPUT = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDCASE.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_1000 OUTPUT
*& Module USER_COMMAND_1000 INPUT
text
MODULE USER_COMMAND_1000 INPUT.
CASE SY-UCOMM.
WHEN 'ENTER'.
LEAVE TO SCREEN 1001.
endcase.
ENDMODULE. " USER_COMMAND_1000 INPUT
*& Module USER_COMMAND_1001 INPUT
text
MODULE USER_COMMAND_1001 INPUT.
CASE SY-UCOMM.
WHEN 'button1'.
CALL SCREEN 1002.
ENDCASE.
ENDMODULE. " USER_COMMAND_1001 INPUT
*& Module USER_COMMAND_1002 INPUT
text
MODULE USER_COMMAND_1002 INPUT.
CASE sy-ucomm.
WHEN 'TAB1'.
number = '1003'.
WHEN 'TAB2'.
number = '1004'.
ENDCASE.
ENDIF.
ENDMODULE. " USER_COMMAND_1002 INPUT
*& Module STATUS_1002 OUTPUT
text
MODULE STATUS_1002 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_1002 OUTPUT
Thanks N Regards.
Priya.
Maybe you are looking for
-
MP135 - TAXBRJ - Condição "ICW3" não contida na fórmula de cálculo de impos
Olá pessoal, bom dia! Estou realizando a implantação da MP135 na versão 4.6 TAXBRJ. E no momento que vou realizar o faturamento da a seguinte mensagem. Condição "ICW3" não contida na fórmula de cálculo de imposto Você já passaram por isso? Tem alguma
-
How to create borders for photos in custom books?
I have used a photo as a background for a page. Hence, I want the photos I placed on top of it to have a simple, thin, white border. Is there a way to do this? I am using the stock white photo layout and customizing it because I am going to print thr
-
The Bold Attribute won't stay bold ?
Hi, I've for a JTextPane in which I can type text, I press enter is takes a new line etc. I also have a JButton which I've called "SetBold", and when I press this button this code line is implemented new StyledEditorKit.BoldAction().actio
-
New Sync icon in top toolbar - what's it do?
There's a new Sync icon beside my bluetooth icon in the top tool bar. Clicking on it revelas: Never Synchronized .mac (indented/can't click) Sync Now Open .mac System Preferences... Is this only beneficial to .mac subscribers? or what will happen if
-
3g iphone can i update from 4.2.1 to 4.3
Have got a iphone 3g n im wondering how to update the ios from 4.2.1 til 4.3 can anyone help please