Can i call the another form's event in runtime
hi,
i am using forms 9i. when i click the o.k button i want to call the procedure of other files..
anybody help me
Regards,
S.Arulmani
ok, run the forms parallel. that means, open the forms with open_form ('B').
then you can switch from one form to another with go_form ('B')
before you go to a different form save a hint in a global-variable. e.g.
:GLOBAL.TODO_ACTION := 'RUN_BUTTON_B1'then you can write a WHEN-WINDOW-ACTIVATED in form B and code this :
DEFAULT_VALUE (NULL, 'GLOBAL.TODO_ACTION');
IF :GLOBAL.TODO_ACTION = 'RUN_BUTTON_B1' THEN
b1_event;
ELSIF ...
.. do something
ELSE
END IF;the WHEN-BUTTON-PRESSED on Button B1 starts the same procedure :
BEGIN
b1_event;
END;try it
Gerd
Similar Messages
-
How can integrate/call the Oracle Forms in ADF pages or task flow.
Hi ,
I Have requirement to integrate the ADF and EBS.
I have done the ADF pages calling in ESB.
Right now i am struck up to call the OAF froms in ADF page/taskflow.
it's high appriciate if any one provide me the any info or how to do this requriment.
Thanks,
Madhava.Hi,
Forms integration can happen using af:inlineFrame or by a redirect to a Forms web URL. In the latter case navigation should be from an unbounded task flow ensuring the return address required to resume the ADF application is provided. See: https://blogs.oracle.com/jdevotnharvest/entry/how_to_efficiently_redirect_an for how to construct the return URL
Frank -
Can you programatically detect that a form has been called by another form?
Can you programatically detect that a form has been called by another form using Open_Form?
When closing a form I want to do one thing if it was opened stand-alone and another thing if it was called using Open_Form by another form.
Thanks in advance.Maybe, Tony, also
GET_APPLICATION_PROPERTY built-in ; it can
be used to retrieve information about the calling (parent) and called
form (child).
The following example describes a way to perform a query on the child form
using a value from the parent form; if the form is a child form, it first
executes a query, otherwise the form goes into insert mode automatically.
WHEN-NEW-FORM-INSTANCE
======================
BEGIN
:GLOBAL.APP_NAME := GET_APPLICATION_PROPERTY(CALLING_FORM);
IF :GLOBAL.APP_NAME IS NOT NULL THEN
EXECUTE_QUERY;
END IF;
END;Regards -
File upload hanging when called from another form
Hi
I have created a file upload form from the documentation I found on metalink and the form works fine on its own. I have then implemented the form into a multi form application and when the file upload form is called from another form it hangs trying to get to the client drive so that it can pick up a file. I have tried using the 'call_form', 'open_form' and 'new_form' built-ins but the results were all the same. Can anybody help me?
MariaHello,
This is not the support, so there are no post more urgent than other.
Francois -
How many times can i call the start()
Hi All:
I would like to know how many time you can actually call the start(),
cuz my app is doing some really strange things,
here is a fragament of my code:
private void spawnThreads()
ListIterator it = _vWorker.listIterator();
while ( it.hasNext() ) {
ClientWorker client_worker = (ClientWorker) it.next();
client_worker.start();
ClientWorker is another Thread, and in the run() of the ClientWorker, I have
public void run() {
Runtime rt = Runtime.getRuntime();
try {
// Start the timer
Process child = rt.exec(_fileName);
// gobble any error or output streams
StreamGobbler errorGobbler = new
StreamGobbler(child.getErrorStream(), "ERROR");
StreamGobbler outputGobbler = new
StreamGobbler(child.getInputStream(), "OUTPUT");
errorGobbler.start();
outputGobbler.start();
child.waitFor();
} catch (IOException e) {
System.err.println("IOException starting process!");
} catch (InterruptedException e) {
System.err.println("Interrupted waiting for process!");
I have a couple of cmd files to execute, so This spawnThreads() will be called a couple of times,and the funny thing is , it will execute the first cmd files, and that is it, it won't execute the 2nd or the 3rd cmd files, it will start the thread, but then the run()won't actually gets invoked,,,so I am just wondering if anyone of you has encountered this problem, perhaps you could lend me some insight on this?
thanks,Yes, you can run the start() of a Thread more than once,
here is my Test App,
public static void main(String[] args) throws Exception {
Vector vec = new Vector();
for (int i=0;i<4;i++){
ClientThread ct = new ClientThread();
vec.add(ct);
ListIterator it = vec.listIterator();
while(it.hasNext()){
ClientThread ct = (ClientThread)it.next();
ct.start();
and as you have already guessed it the run() of ClientThread simply does system.out.println()
and here is the output
run started
run started
run started
run started
so..yeah..I don't really have any idea what is happening to my app and why it is not executing any cmd files after executing the very first cmd file -
How can we call the method of used controller?
Hi All,
i created two WDA Applications.( like YWDA1,YWDA2 ) . i am using the component WDA2 in WDA 1.and displaying the one view of WDA2 as popup window in WDA1 on action of one of the input element in the view of WDA1 by using the method l_window_manager->create_window_for_cmp_usage
I have a button on the view of WDA2 which has appear in the popup window...how can i call the method which has binded to that button....and where should i code that...and i need to assign selected value in the popup window to input elemetn of view WDA1
Please help me to resolve this....
Regards,
RaviYou can not directly call view's event handler from other component.
create a method in component controller of the second component and in the button click call the component controller method. ( also make the method as interface so that you can call it from other components )
Now, you can call the interfacecontroller's method
DATA: l_ref_INTERFACECONTROLLER TYPE REF TO ZIWCI__VSTX_REBATE_REQ_WD .
l_ref_INTERFACECONTROLLER = wd_This->wd_CpIfc_<comp usage name>( ).
l_ref_INTERFACECONTROLLER->Save_Rr(
STATUS = '01' " Zvstxrrstatus
save_rr is the method of second component controller -
Can I Call a 10g Form from 10 Report???
Can I Call a 10g Form from 10 Report??? I'm using Developer Suite 10g Rel.2.
Hello,
It is possible to include hyperlinks in the output generated by oracle Reports (when DESFORMAt=HTML / HTMLCSS or PDF)
http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwcontxt/props/pi_lay_hyperlink.htm
When clicking on the hyperlink , a Form can be called...
regards -
How can I customize the parameter form?
I have 2 drop-down list on the param form, I want to let the value of one changes according to the other's value.
I know it is easy in Jsp, but how to implement it in report 6i or 9i ?
Generally, can I customize the param form ? ie, add a trigger.Hello,
You have not specified if you execute your reports on the web ?
If you execute your reports on the web, you can take a look at the note :
Article-ID: <Note:185951.1>
Topic: How To Articles
Title: SAMPLE - How to create a parameter LOV based on another
parameter value? SCR1531
regards -
How can i find the installed forms version in 6i...?
Dear all,
How can i find the installed forms version in 6i, the situation is we have given a solution which will work in only forms6i latest version, before implementing the same we need to check whether the forms latest version has been installed or not
Is there any way to find out without opening the forms builder..?
Even if we un install the forms from a machine, the forms60_path variable will remain in regedit, so we cannot go based on that and aslo i dont know whether regedit will have the version details and all.
It would be greatly appreciated if any one can give a solution.
Thanks in Advance.
Thangaraj.you query the registry, the registry has the version number saved, but I cannot remember exactly where and I don't have 6i Installed on my machine.
You just open the Forms Builder and click on Help/About.
But Jan's method is the best. -
Object Referenced Error When calling the Windows Form during Runtime
Hi,
I am getting Object reference errors when running windows form during runtime. In debugging mode in MS Visual studio 2005, I am not getting this error. I'm calling the window form from menu and called the window in a thread as suggested in one of forums . I don't see anyone in the forum mentioned this problem I have. Any help would be deeply appreciated. Below are the error and code samples.
ERROR Message
Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Project1.Loadxml.Loadxml_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Edited by: Albert Tio on Feb 16, 2011 9:55 AMHere is the code.
Option Strict Off
Option Explicit On
Friend Class GetEvents
Public WithEvents SBO_Application As SAPbouiCOM.Application
Public SboGuiApi As SAPbouiCOM.SboGuiApi
Public oForm As SAPbouiCOM.Form
Public oDBDataSource As SAPbouiCOM.DBDataSource
Public oCompany As SAPbobsCOM.Company
Public RS As SAPbobsCOM.Recordset
Public oPrev_Bank As String, oPrev_AcctType As String
Public oLoadXml As Loadxml
Public Sub SetApplication()
'Dim SboGuiApi As SAPbouiCOM.SboGuiApi
Dim sConnectionString As String
SboGuiApi = New SAPbouiCOM.SboGuiApi
' by following the steps specified above, the following
' statment should be suficient for either development or run mode
sConnectionString = Environment.GetCommandLineArgs.GetValue(1)
' connect to a running SBO Application
SboGuiApi.Connect(sConnectionString)
' get an initialized application object
SBO_Application = SboGuiApi.GetApplication()
End Sub
Public Sub SetCompany()
Dim ret As Long
Dim MsgStr As String
Dim Cookie As String
Dim ConnStr As String
Try
oCompany = New SAPbobsCOM.Company
Cookie = oCompany.GetContextCookie
ConnStr = SBO_Application.Company.GetConnectionContext(Cookie)
'//before setting the SBO login context make sure the company is not connected
If oCompany.Connected = True Then
oCompany.Disconnect()
End If
ret = oCompany.SetSboLoginContext(ConnStr)
If Not ret = 0 Then
Exit Sub
End If
ret = oCompany.Connect
Catch ex As Exception
SBO_Application.MessageBox(ex.Message)
End Try
MsgStr = ""
If Not ret = 0 Then
oCompany.GetLastError(ret, MsgStr)
SBO_Application.MessageBox(MsgStr)
Else
End If
End Sub
Public Sub New()
MyBase.New()
' set SBO_Application with an initialized application object
SetApplication()
SetCompany()
AddMenuItems()
End Sub
Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
Dim myThread As New System.Threading.Thread(New System.Threading.ThreadStart(AddressOf LoadXmlMainThread))
Try
If (pVal.MenuUID = "MySubMenu") And (pVal.BeforeAction = False) Then
'SBO_Application.MessageBox("My sub menu item was clicked")
'// Create a form to be launched in response to a click on the
'// new sub menu item
myThread.SetApartmentState(System.Threading.ApartmentState.STA)
myThread.Start()
'Loadxml.ShowDialog()
End If
Catch ex As Exception
SBO_Application.MessageBox("1." & ex.Message)
End Try
'If (pVal.MenuUID = "MyGoToMenu") And (pVal.BeforeAction = False) Then
' SBO_Application.MessageBox("My GoTo Menu was clicked")
'End If
'If (pVal.MenuUID = "MySecondGoToMenu") And (pVal.BeforeAction = False) Then
' SBO_Application.MessageBox("My Second GoTo Menu was clicked")
'End If
End Sub
Private Sub LoadXmlMainThread()
'Dim lLoadxml As New Loadxml
Try
oLoadXml = New Loadxml
oLoadXml.WindowState = FormWindowState.Maximized
oLoadXml.ShowInTaskbar = True
oLoadXml.TopMost = True
oLoadXml.Activate()
Application.Run(oLoadXml)
Catch ex As Exception
SBO_Application.MessageBox("2." & ex.Message)
End Try
End Sub
Private Sub AddMenuItems()
'// Let's add a separator, a pop-up menu item and a string menu item
Dim oMenus As SAPbouiCOM.Menus
Dim oMenuItem As SAPbouiCOM.MenuItem
Dim i As Integer '// to be used as counter
Dim lAddAfter As Integer
Dim sXML As String
'// Get the menus collection from the application
oMenus = SBO_Application.Menus
'Save an XML file containing the menus...
'sXML = SBO_Application.Menus.GetAsXML
'Dim xmlD As System.Xml.XmlDocument
'xmlD = New System.Xml.XmlDocument
'xmlD.LoadXml(sXML)
'xmlD.Save("c:
mnu.xml")
Dim oCreationPackage As SAPbouiCOM.MenuCreationParams
oCreationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
oMenuItem = SBO_Application.Menus.Item("43520") 'moudles'
Dim sPath As String
sPath = Application.StartupPath
'sPath = sPath.Remove(sPath.Length - 3, 3)
If sPath.EndsWith("\") = False Then
sPath = sPath & "\"
End If
'// find the place in wich you want to add your menu item
'// in this example I chose to add my menu item under
'// SAP Business One.
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_POPUP
oCreationPackage.UniqueID = "MyMenu01"
oCreationPackage.String = "Unbridle Menu"
oCreationPackage.Enabled = True
oCreationPackage.Image = sPath & "unbridle.bmp"
oCreationPackage.Position = 15
oMenus = oMenuItem.SubMenus
Try ' If the manu already exists this code will fail
oMenus.AddEx(oCreationPackage)
'// Get the menu collection of the newly added pop-up item
oMenuItem = SBO_Application.Menus.Item("MyMenu01")
oMenus = oMenuItem.SubMenus
'// Create s sub menu
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
oCreationPackage.UniqueID = "MySubMenu"
oCreationPackage.String = "Unbridle Monitoring"
oMenus.AddEx(oCreationPackage)
Catch er As Exception ' Menu already exists
'SBO_Application.MessageBox("Menu Already Exists")
End Try
End Sub
End Class
Public Class Loadxml
'Inherits System.Windows.Forms.Form
Public sBPpath As String
Public sGLpath As String
Public sBillpath As String
Public bRun As Boolean
Private Sub Loadxml_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.TextGL.Text = System.Configuration.ConfigurationSettings.AppSettings("GLAcctDownloadPath").ToString()
Me.TextBP.Text = System.Configuration.ConfigurationSettings.AppSettings("BPAcctUPloadPath").ToString()
Me.TextBill.Text = System.Configuration.ConfigurationSettings.AppSettings("BillUPloadPath").ToString()
Me.NotifyIcon1.Visible = False
End Sub
End Class -
I have forgotten my security questions. I can't call the apple people becuase my phone line is down for a while. If you anyone could have a way to reset it becuase I really want to buy stuff.
If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then you can try going to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
If you don't have a rescue email address then see if the instructions on this user tip helps : https://discussions.apple.com/docs/DOC-4551 -
I've just imported photos that are misdated and appear out of order in my events. How can I correct the dates on these events so they appear properly?
The one iin the Photos ➙ Adjust Date and Time menu option:
checkbox below: -
Can we call the window in runtime in SAP Scripts ?
Hi
Can we call the window (without placing the window in the layout at design time) in runtime in SAP Scripts
Thank YouHello,
Calling a window at runtime is not posible.
Let me know what u want to do exactly.
Regards -
Can we call the procedure which contain commit in trigger
can we call the procedure which contain commit in trigger
Well, what i've noticed from op's past post - whenever op post - he/she posts multiple short questions here. This may be indication of some sort of assignment or any kind of online exam's ...... :?)
Regards.
Satyaki De. -
Hi all can we call an application form from a report.
Hi all,
I am working with form , my requirement is to run an application form which i should call from a report and i have to print the document for the values on the selection screen. how to pass the selection parameters to the form and how to call the for form the program?
Thanks in advance.
regards,
sreHi Jyothi,
Thanks for your reply,
my issue is not with the script, I have developed an extraction code in the apllication form user exit and i want to extract a file on to application server and
also i want to print this form online when ever user wants.
is there any function module to call this appication form and pass the required parameters? or else we have to assign this application form to any transaction code?
please suggest me in this issue.
regards,
sre.
Maybe you are looking for
-
In Grapher, can I make a graph's color after edits?
I see how to color a graph – you click the equation, than click the "Inspector", then the color box, etc. My problem is that when I edit the equation, it the corresponding line graph goes back to black. Is there a way to make the color stick to the
-
Oracle 11.1.0.6 database on OEL5.2, No unixODBC RPM
A required UNIX RPM for Oracle 11g R1 database installation is unixODBC-2.2.11. Although unixODBC-devel and unixODBC-kde RPMs are included with with the OEL5.2 that I downloaded from the Oracle site, the unixODBC RPM is not. So I downloaded the unixO
-
Calling portal page from Oracle E-suite
Hi, I want to know how to open a portal application from oracle Application forms. The user logins to Oracle apps, and select the 'portal' responsibility. Then it should open the portal application in a web browser. Thanks, Nishanth.
-
Should I use frames or what?
Here is my dilema. I'm working on a pretty big site. The site has about 8 sections each which have about 10 subsections. I basically created 8 pages total for all of the subsections but I don't want to have to create hundreds of pages for all the sub
-
Online backup getting failed with error BR0278E - Invalid Argument
Hi All, Online backup in Production system is getting failed when taken using DB13. Last week the SAP Production Server was migrated to SAN and it was up & running fine. SAP System - ECC 6 OS - AIX 5.3 Database - Oracle 10g Even