DEBUGGING D2K FORMS AT RUNTIME

HI,
IS IT POSSIBLE TO DEBUG THE D2K_FORMS IN BREAK-MODE (similar to VB!). IF IT IS POSSIBLE, THEN HOW?
THANKS IN ADVANCE!

Sudhakar,
Never mind the wrong forum... Yes, you can debug a form. Open the .fmb file in Forms Builder, make sure you have a connection to a schema that contains the tables/procedures you access in your forms and use the debug mode.
Hope this helps,
Mark.

Similar Messages

  • How to debug d2k form.

    hello ......
    please let me know how to debug a d2k form?
    thanks n regard
    yash

    You can also set breakpoints in your code you want to debug. e.g. if you want to debug a specific trigger like WHEN-BUTTON-PRESSED, then put BREAK; statement from where you want to start debugging.
    You can also set breakpoint in the debugger itself by opening specific trigger and double clicking the line of code to start debugging.
    For running in debug mode, press SHIFT+CTRL+R and then step into the code like FormsEleven explained.
    Hope it helps!

  • DEBUGGING  D2K FORMS

    HI,
    IS IT POSSIBLE TO DEBUG THE D2K_FORMS IN BREAK-MODE (similar to VB!). IF IT IS POSSIBLE, THEN HOW?
    THANKS IN ADVANCE!

    There is a debuuger built into Forms. Hit the Debug button. Youc an add breakpoints as you debug, and you can add harcoded breakpoints using BREAK; in 6i, or DEBUG.SUSPEND; in 9i

  • How can i debug a Form in 6i environment

    I want to debug a form in 6i environment. WIth trace utility can i do it?if yes pls help me in this

    Why not just use the "Run Form Debug" toolbar button or Program => Run Form => Debug? Just simply type "break;" in the trigger or Program Unit you want the Debugger to break in and step through the code to see what is happening. Running the Form in Diagnostics Mode as Draji suggests is an excellent option as well, but reading the output file can be a bit daunting and doesn't let you "See" what your code is doing. The Forms debugger is an excellent tool. It is well worth learning how to use.
    You can also turn Debug Messages on - which basically just displays an alert with the name of each trigger that executes. You can turn on the Debug Messages from: Tools => Preferences => Runtime tab => Debug Messages checkbox.
    Hope this helps.
    Craig...

  • 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 AM

    Here 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

  • Reduce the height of a rectangle in d2k forms

    Hi,
    i have one proble in d2k forms.
    how to reduce the height of a rectangle at runtime which is used in the d2k forms layout.
    give me answer immediatly because i need urgently.

    Hello,
    +...give me answer immediatly because i need urgently...+
    First of all, this is a public forum, no a contractual hotline or technical support that you pay for. Please avoid the "immediate" or "urgent" word from there.
    Secondly, there is no available instruction to handle the graphical objects atached to the canvas like lines or frames.
    Francois

  • How to debug a form module (Oracle 11G Forms) through URL

    How to debug a form module (Oracle 11G Forms) through URL.
    My server OS is Unix. So i could not able to do the Debug Forms from the Form Developer.
    It is displaying a message that "Cannot find the module". Becuase the system is trying find out the module in Unix system instead of ma local system(Windows).
    I need to debug ma module through URL.
    I can place the fmb and fmx in predefined form path in Server.
    Please help me out to solve this issue..

    This is a little unclear. If your goal is to use the Forms Builder Debugger while running your form on a Unix machine, this can be done. However, the form must first be in running order. So before trying to attach the debugger you must first be able to start it without the debugger. For example:
    http://yourServer:OHS_port_number/forms/frmservlet?form=yourFMX
    Once this is properly running you can turn on debugging. If your form won't even start, then using the Debugger isn't going to help you because it is designed to troubleshoot coding problems and not configuration problems.
    So, do this to use the Debugger:
    http://yourServer:OHS_port_number/forms/frmservlet?form=yourFMX&debug=yes
    This will display a dialog box with some information. Do not click on OK yet as you will need this information to enter into the Forms Builder. Now, open the Forms Builder and click on Debug > Attach Debug. You will be asked for the information displayed in the dialog where you attempted to start the form. Enter it here (in the Builder) then click on ok in both places. To display the Debugger (in the Builder), click on Debug > Debug Console. Then from its toolbar click on the buttons related to what you want to monitor. Including a break point in your application code is often a more helpful way to use the debugger.
    Most of this information is explained in the Forms Builder Online Help
    Forgot to mention...
    To debug runtime issues, refer to the Forms Deployment Guide here (this assumes you are using 11.1.2):
    http://docs.oracle.com/cd/E38115_01/doc.111210/e24477/appa.htm
    Edited by: Michael Ferrante (Oracle) on Feb 21, 2013 1:45 PM

  • Forms 5 Runtime crashes when using wheel mouse

    Hi,
    We get Invalid Page Faults when using a wheel mouse in Forms
    (Forms 5.0.6.8.0). When scrolling up to the first record the
    message 'At first record' occurs. Then we get a ORA-00001 error
    (!?), followed by the invalid page fault and forms runtime
    crashes. Other actions (scrolling down, scrolling up, but not to
    first record) work fine. I suppose there exist a patch to solve
    this problem, but I wasn't able to find it. Could someone please
    help me ?
    Thanks.
    Koen

    Crashing is normal Forms 5 behavior. Why should a wheel mouse
    make it better? :-)
    If you use Patch 10 (get it on metalink) for D2K Forms 5 on
    Windows (and a good mouse driver), this problem is almost gone.
    But be warned:
    Patch 10 introduces other more serious bugs (serious printing
    problems with HP printer, and such funny things as mysterious
    disappearing items items in large forms ... we stopped the
    rollout of Patch 19 half the way) , and these bugs
    will never be fixed 'cause D2K R2.1 is desupported since
    december 1999.
    So choose your fate.
    HTH Schlo
    BTW: There is a Patch 11, but it is not worth downloading.

  • PL/SQL , D2K Forms Problem

    Hi,
    I am developing a package for HR.
    I had developed procedure which take data from
    temparary ASCII file to temparary table, and from temparary table to Attendance table.(Punch card machine generates ASCII FILE)
    In this procedure i had put one validation clause for date & time, means if attendace date and time is greater than system date & time then it should reject the data.
    Due to some reson my Server's time got changed and server time was back by 6hrs.
    I have used D2k for my Application and Oracle 8i as DB.
    I am invoking above procedure from D2k form.
    Now problem is when i run this from Application it gives error for each record as systime is got changed, but if i execute this procedure directly from PL/SQL it works.
    Pls. note that i am doing this from client machine.
    Regards,
    Mrugank

    EMP IN TIME and date are the time and date respectively , for the attendance. Sorry, but how do those relate to these?
    ATNDATE and CUR_EMP.ATTIME?What I think we need is some debugging instrumentation here. For once we're pretty close to it. Could you amend the insert into upis.mesg statement so it does this
    insert into upis.mesg Values (
    Eno,AtndDate,cur_emp.Attime||'-'||
    Cur_emp.InOutInd ||'-'||Cur_emp.TrtNo||'-'|| To_char(Cur_emp.Flag) ||'/'||
    'Time Greater Than Current Time'||to_char(sysdate,'dd/mm/yyyyhh24mi' ), 0);Please change your code so that this message gets written regardless of whether the time test is failed.
    Alternatively use DBMS_OUTPUT To display AtndDate,cur_emp.Attime, to_char(sysdate,'dd/mm/yyyyhh24mi' )
    Then run your proc from Form and SQL*PLus, and post sample output from both runs.
    Cheers, APC

  • Debugging a form?

    How do you debug a form that calls another form? ie. Step through the one form, then the other is called, and you continue to debug the other in whatever startup code is firing.
    How can I turn on a TRACE during a forms session so I can see all the DML activity that is being performed by a single user for debugging purposes? Does this require external tools?
    null

    Really funny thing.
    I had some forms that, after being called from other forms with open_form(my_form, activate, session) they just couldn't return control to the form that called them and thus made the made Forms runtime succumb.
    Whn called using call_form, those worked OK.
    As for debugging the called forms, I wish I knew how to.
    Moreover, I seldom use the debugger, for it appears to me more effective to put here & there some messages that tell me how things work.
    null

  • Can you "debug" a form when running on the App. Server?

    We recently got a project to do defect fixing of a Oracle Forms 10g application.
    They have given us each developer a VM with an app. server, source code etc.
    Problem is, we cannot run the form using the Form Builder.
    They want us to always make changes to the form, deploy in the app. server and run the form using the Application Menu.
    Problem is, how can we do line-by-line debugging in a situation like this?
    Normally, we would press the "Run form debug" button to run the form in Forms developer in debug mode.
    What is the solution?
    Should we ask the owners to give us permission to run the form from Developer?
    Or, is there way to do debugging a form when running from app. server?

    user12240205 wrote:
    So Craig, why is it prompting me with a File Open dialog box when it tries to run a DB procedure?
    What does the Forms debugger supposed to do? Run it and bring back result?
    Because Forms doesn't know how to load the object so it is prompting you to open it.  However, since the Forms debugger can't read the source of the database program unit (procedure, package, function) - you can't debug it from Forms.  At least, I've never been able to do it and I've tried making Forms open a source file for a database program unit.  It basically boils down to the fact that Oracle Forms can only debug objects that are within the scope of the Forms runtime/builder and database program units are not contained within the Forms objects (eg; Forms binary, PL/SQL Library or Menu Module binary).  I recommend you "Step-Over" any call to a database program unit when you encounter them in the Forms debugger.  The database program unit will take longer than normal to run, but it will eventually finish and take you to the next line of code to be executed.
    Craig...

  • Does anyone know how to enable/disable a dropdown menu in Forms at runtime?

    Is there a way how to disable/enable dropdown menu for menus that have multiple sub levels in Oracle Forms? I am trying to use the set_menu_item_property function but this takes 'menu.item' format for the first argument. I am trying to enable/disable a menu item in the form of 'menu.item.subitem' and was not able to do it using this function. If anyone knows a different function or method, please reply. I have shown an example below.
    Setup -> Software -> Front Page
    From the above example, I can enable/disable Software using set_menu_item_property function. But, how do I enable/disable the Front Page menu in Oracle forms at runtime?
    Thanks
    Edited by: user480347 on Aug 24, 2010 3:37 PM

    Yes you are on the right track. You need to pass then complete menu name to set_menu_item_property
    Immediate_parent menu.item_name e.g
    For example you have menu like this
    Id like
    A1    A10 > A1010
    Home > Input > Form 1
    A1    A10 > A1020
    Home > Input > Form 2 To disable Form 2 you must pass menu name as
    A10.A1020Hope it helps

  • Oracle Forms 10g runtime handling during RAC node failover.

    Hi,
    Forms version 10g R2 (10.1.2.0.2)
    Oracle DB version 10g R2 RAC with 3 nodes.
    If the RAC DB node that the user is connected to goes down, the user gets FRM-40733 and ORA-03114 error messages and the client forms application gets locked down/ goes in a loop with the error messages. The user has to close the browser to get out of the loop. I understand that this is the expected behaviour, but I'm wondering whether we can trap the error ORA-03114 and fire the "key-exit" trigger to get out of the application.
    Have any one implemented a clean way to exit the Forms application when the RAC DB node goes down..?
    I'm looking for some suggestions or an elegant way to handle the above failure.
    Thank you in advance.
    Sudhakar

    Glen,
    I haven't solve this one yet.I have been playing around with the following:
    In my environment, I am still using 6i (not web) forms/reports.
    My clients are XP, NT, 2000.
    I have the forms/report runtime installed on their PCs.
    Their TNSNAMES.ORA will be pointing to PRIMARY ( PDB)
    If a SWITCHOVER or FAILOVER happens to the physical standby (SDB), I want a trigger to kick a batch file that will manipulate the TNSNAME.ORA on each clients stations.
    On the standby
    CREATE OR REPLACE TRIGGER change_tns
    AFTER DB_ROLE_CHANGE ON DATABASE
    DECLARE
    role VARCHAR2(30);
    dbname varchar2(100);
    BEGIN
    SELECT
    DATABASE_ROLE,
    DB_UNIQUE_NAME
    INTO
    role,
    dbname
    FROM
    V$DATABASE;
    IF role = 'PRIMARY' and dbname='SDB' THEN
    dbms_scheduler.create_job(
    job_name=>'move_sqlnet',
    job_type=>'executable',
    job_action=>'c:\temp\movetns.cmd',
    enabled=TRUE
    ELSE
    -- if the standby >was< PRIMARY,
    -- but the primary comes BACK on line,
    -- need to reverse the step above.
    END IF;
    END;
    As for the movetns.cmd
    something like
    rem -- attach to the workstation,
    net use m: \\station name\share name
    rem -- stdb_tnsname.ora would be pointing to STANDBY
    copy stdb_tnsname.ora m:\orant\net80\tnsname.ora
    net use m: /delete
    rem -- need to do that for all workstations..
    As you can see, there could be lots of problems with this procedure.
    Client doesn't know about the failover, starts a RE-BOOT on the pc, therefore, the new tnsnames.ora will not get to client.. what to do for that client? Do i re-run the batch ...every hour?
    tell me if you come up with an answer..
    p-

  • Problem in cut-paste data from a column in d2k forms to word file

    Hello all,
    Thanks for going through my problem. One of my clients is using a HP P-4 machine with Windows XP as OS. I have given them a D2k form for data entry having a multiple line column through a three-tier architectute on Apache web server. His problem is that he is not able to cut-paste the data entered in the multi-line column into a word file or vice-versa; whereas I am able to do the same from my machine or any other non-Xp machine. What might be the problem?
    Regards
    NJ

    This is usually caused by a security issue. Look for "Applet warning" in the browser status bar. If there is a warning you will not be able to copy and paste. It was also common when using the MS-JVM to run Forms. Try using the latest version of Jinitiator - 1.3.1.23
    This can also be caused if the browser security settings are set too high.
    In the future please be sure to provide more details. For example, Forms version, browser and its version, etc.

  • Use of mouse scroll wheel in Forms 6i runtime

    Is there any way to make the mouse scroll wheel work in Forms 6i runtime? Does it work in some areas and not in others? Ultimately, the user would like to use the scroll wheel to navigate through rows in a block instead of dragging the scrollbar. We also have data in a particular row and column that has scroll bar. I'm hearing that in some instances it works, don't know if I believe, not sure if it's workstation dependent. Client workstations are generally XP.
    cheryl

    I think (can't ckeck at the moment) that an animated gif will only run when deployed on the web (you need the JVM)
    As I said, I think this is the case but can't confirm it at the moment.
    Regards
    Grant Ronald
    forms Product Management

Maybe you are looking for

  • What I see on my screen is enlarged by about 300%. How can I get it back to normal?

    My screen display has been enlarged somehow (Maybe 300% larger than normal). Now, when I turn it on, I see the enlarged screen and only a fourth or less of what I should see on the screen, is visible. I can get it to go back to normal. I have already

  • Where is my PS CS4 Plugin folder?

    I was trying to install the complete edition for NIk Software but I was not able to locate the PLUGIN folder , where is that?  From the instruction of software installation I should locate the following: Macintosh HD: Application:  Adobe Photoshop CS

  • How to create hashed table in runtime

    hi experts how to create hashed table in runtime, please give me the coading style. please help me. regards subhasis

  • Can't update Elements to 12.1.

    My Mac system keeps crashing, and the suggestion is to update to Elements 12.1. However, when I try to do this, it tells me to close Elements Auto Analyzers and Organizer Revel Agent. I can't find these to close them. I close Elements and Elements Or

  • External DVD burner not working

    I have LITE-ON DVDRW SOHW-1633S DVD burner attached to my Mac via USB. When I turn burner on, Mac OS successfully detects it and even ask me to mount blank dvd to my desktop. Also I see burner in Disk Utility as well as in the list of available burne