Forms degugger command line params/runform variable

Good afternoon all, i hope you are doing fine.
I am looking for a way to 'read' the flag and/or variable that will tell me if the form beeing run, is beeing run in debug mode.
Just like you see when running degugger, in the command line parametres node/runform ...DEGUG = YES...I am looking for a way to get this reading without running debug...Is there a built_in like...
tool_env.getvar ('USER', l_var_char)...that exist to find out if the form beeing run, is beeing run in debug mode.
Thank you for your time and effort,
Michel turcot

You have a global variable, or a package variable that you hardcode, for example:
:GLOBAL.DEBUGGING := 'FALSE';
You set this off, but default. When you want to debug, you have to remember to set it to something else, like TRUE.
Then, in whichever trigger you want, you can reference it:
if :GLOBAL.DEBUGGING = 'TRUE' then
-- do debugging stuff.
end if;
It's a bit tedious, because you have to remember to change the code when you want to debug or not.
Regards,
Robin Zimmermann
Forms Product Management

Similar Messages

  • Use frmweb.exe to start a form from command line

    Following the following doc "start any Oracle Forms component from the command line"
    http://www.oracle.com/webapps/online-help/forms/10g/state/content/navId.3/navSetId._/vtTopicFile.f1_help%7Cbldr_dev_opts%7Cstart_fb_comps_cmd~html/
    I tried the following two command line
    D:\DevSuiteHome\BIN>frmweb module=c:\files\orders userid=scott/tiger@r12
    D:\DevSuiteHome\BIN>frmbld module=c:\files\orders userid=scott/tiger@r12
    The frmbld successfully brought up the forms builder and open the orders forms.
    But the frmweb did not bring up anything. I wonder if there are other parameters I need to provide rather than just module and userid......
    I looked into the html of the form applet, and wondering if passing all the parameters would be sufficient enough for the frmweb to start
    <PARAM NAME="serverArgs"
    VALUE="escapeParams=true module=c:\files\orders.fmx userid= sso_userid=%20 sso_formsid=%25OID_FORMSID%25 sso_subDN= sso_usrDN= debug=no host= port= buffer_records=no debug_messages=no array=YES obr=YES query_only=no quiet=yes render=no record= tracegroup= log= term=">
    So I did this from command line, but still nothing.....
    D:\DevSuiteHome\BIN>frmweb.exe escapeParams=true module=c:\files\orders.fmx userid=scott/tiger@r12 sso_userid=%20 sso_formsid=%25OID_FORMSID%25 so_subDN= sso_usrDN= debug=no host= port= buffer_records=no debug_messages=no array=YES obr=YES query_only=no quiet=yes render=no record= tracegroup= log= term=

    That is a bug in the documentation. You can only start Forms from a URL starting from 9.0.2.

  • Write-EventLog from a command line using a variable for -Message

    My apologies for the possibly confusing title of this post, so let me explain...
    My ultimate goal is to capture log information during the execution of a batch script and write it to the Application log.  Simple, you might think?  I couldn't figure it out in batch so gave up and moved on to try using PowerShell via
    the @powershell command.
    I started with the following test, which worked like a charm:
    @PowerShell -NoProfile -command "Write-EventLog -LogName Application -Source MyApp -EntryType Information -EventID 99 -Message "Test1" -ComputerName MyServer"
    Great I thought, now how to capture multiple "events" as my batch script executes so that I can write them all in one go to the Application log using a single @powershell command.  Capturing multiple lines of text in an environment variable
    was a struggle and I wasn't even sure if I could then use the environment variable in the PowerShell command, so I tried writing the events to a text file with the intend of reading that text file using Get-Content, and then writing it to the event log.
    So test #2 went like this:
    @PowerShell -NoProfile -command "$OutText = 'Some text';Write-EventLog -LogName Application -Source MyApp -EntryType Information -EventID 99 -Message $OutText -ComputerName MyServer"
    This worked, and "Some text" was successfully written to the event log entry, so the last step was to read my entries from the text file and write them instead:
    For reference, the text file looked like this:
    Test Entry 1
    Test Entry 2
    Test Entry 3 
    @PowerShell -NoProfile -command "$OutText = Get-Content .\TestLog.txt;Write-EventLog -LogName Application -Source MyApp -EntryType Information -EventID 99 -Message $OutText -ComputerName MyServer"
    Unfortunately I failed at the last hurdle as PowerShell didn't seem to like, I am guessing, the CRLFs in the text file?
    Write-EventLog : Cannot convert 'System.Object[]' to the type 'System.String'
    required by parameter 'Message'. Specified method is not supported.
    At line:1 char:211
    + ... yServer -Message $OutText
    +                    ~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Write-EventLog], Parameter
       BindingException
        + FullyQualifiedErrorId : CannotConvertArgument,Microsoft.PowerShell.Comma
       nds.WriteEventLogCommand
    Any suggestions on how to solve my dilemma, either by solving the last step, or maybe by taking a different approach?
    Many thanks, in advance,
    Andy

    Here is how we write to the event log from a batch file.  It is easy and more flexible than howyou are doing this:
    eventcreate /?
    eventcreate /L application /SO MyApp /ID 99 /D %messagetext% /S MyServer
    Adding one big block of text to the event log is not how the EL can work.  The message size is limited.
    The Event Log should not be used as a general tracing log on a regular basis.  It should be used to log errors that are critical and to log critical small pieces of information.
    Why use batch if you have access to PowerShell. It is far less flexible and muc harder to manage.
    ¯\_(ツ)_/¯

  • How to run command line tool in my program???

    Hi,all,I've got some tools that are usually,or take JDK for example,if we are not using an IDE,we need to open the command prompt,and then use the javac command to compile the source files and the "java "command to run the program,and both of them accept some command line params.The problem is that how could i integrate the tools in my own program,like JBuilder or some other IDE,you configure the params and compile and run in the IDE which don't need to open a command line prompt.Hope i have got my question clear:)
    Best regards..

    jesperdj ,thanks:)
    actually,i am using eclipse to run my ant tasks programmatically,but I got trouble with the AntRunner class.it seems that i should config a proper classloader for it,but i just don't know how.please lend a hand:)thanks
    robin

  • Command line parameters and resuming

    Hi,
    I am researching for a client who wishes to have several students (K-12) using Adobe Captivate course on the same computer. Another constraint is that a course is run from DVD (1+ GB in size) so it's published as standalone application (.exe for Windows, .app for Mac). Quick questions:
    Can a course have an action to parse command line parameters? I haven't found that.
    Explanation: this would be used to simply parse a name and e-mail address (if possible) and last module passed to a course player. Resuming could be disabled (there is an answer how to do that in the forum) or overridden but the learner should be transferred to a slide to resume based on the calling parameter (and not the default resuming - there will be several users so each must resume from the last passed module slide).
    Can a progress of the current learner using the course be saved to a database (no LMS, e-mail, Acrobat.com etc)?
    Explanation: this is needed for the current learner and for each one separately. I guess I already have a solution in mind (custom application, having small internal web server like Mongoose, with a script that replaces internalServerReporting.php and saves the data to a internal database, SQLite). But for this to work spawning a course with command line parameters and course itself reading these parameters would need to work.
    If there is a (better) solution for the above, please reply. The goal is have minimal changes on the course e.g. if there are command line parameters, then parse them and do something (mark modules passed, open appropriate next slide). If parameters are not given/recognized, do nothing (so the course would still work on computers used by one learner only, including resuming etc).
    My opinion is that this should also be one-way as much as possible. E.g. additional application handles user name, e-mail and current progress and spawns Captivate course. The published course itself should not depend on the application like reading progress from a text file (though an URL call could return current progress from an application for the same user name). So ideally only changes to use internal server publishing to save current progress and adding a logic to check parameters at start would be applied to a course.
    Waiting for your smart answers.
    Matt

    DVDs, when finalized, are read-only... so unless you are considering to do an Install of the course from the DVD to the machine, you're not going to be able to write to a database.  A USB stick may be more suitable in this situation.
    Command line params are not possible with EXEs unless you create your own EXE wrapper.  If you're going to go through that trouble, you'd be better off creating an Adobe Air application that can run your local web content without security restrictions and use SQLite or some other backend to store the data.
    Can the progress be saved?  It depends what you mean by progress.  If you just want to allow the student to resume from the slide where they left off... you can do that with a bit of JavaScript.  However, if you want to ensure that any previous questions answered on a quiz were also resumed and intact from the previous session... not possible without an LMS.
    Why not run a Moodle installation via a USB stick and you can have a full featured LMS with a database and ability to resume a previous session?
    http://docs.moodle.org/19/en/Installation_guide_-_Moodle_for_Windows_on_a_USB_Memory_Stick
    Just some things to consider...

  • BSM / audit_syslog ... how to get command line parameters in syslog?

    Hi All!
    I have been experimenting with Sun Basic Security Module (BSM) and was trying to send audit data via syslog to a central logging server like so:
    # cat /etc/security/audit_startup
    /usr/sbin/auditconfig -setpolicy +argv,arge
    # cat /etc/security/audit_control
    plugin: name=audit_syslog.so;p_flags=lo,ex,fr,fc,fd,fw,fmThis does produce the desired log output on the central logging server, except that the log lines do not contain command line parameters / environment variables:
    2008-10-14T15:04:26-06:00 csadm4/csadm4 audit: [ID 702911 audit.notice] execve(2) ok session 1576737601 by rem_adm as root:root in csadm4 from csadm1-16.shell.ca obj /usr/bin/lessAs this makes it pretty useless for keeping proper audit records (there is a difference between
    rm ~/file and
    rm /file that I would like to see) I was wondering if there is a way to customize what is actually produced by audit_syslog.so?
    Thanks in advance,
    Rudolf

    No, your plugin doesn't get any access to the command line.  Look for other methods of IAC (COM, DDE, shared memory, shared file, etc.)

  • Command lines in text module is not working in adobe forms

    Hi,
    I have a problem, I have a text module with variables and I placed it in Adobe form its working fine, my problem is I added a command line /: NEW PAGE in the text module, it couldn't trigger a new page at that place.Can anyone help me out in this regard.
    Regards,
    Manohar.

    Hi Manohar,
    Adobe wont support text modules with commands.
    Explain your requirement.
    pavan meda

  • Passing command line JVM params into the code

    I am using a set of APIs that basically make a simple JDBC connection to an Oracle database and extract data out of it. However, the way the API has been written it requires the user to specify the Oracle driver parameter on the commad line...So to run the program you do:
    java -Djdbc.drivers=oracle.jdbc.driver.OracleDriver Test
    Is there any way I could read the -Djdbc.drivers=oracle.jdbc.driver.OracleDriver param into the code without having to include it in the command line? I am planning on making a call to the API via a servlet and not run it from a command line.
    Thank you

    There are two ways:
    1. The simplest one being to hard code the values in some variable in your code. But obviously, this is not the recomended solution since u can change the DB and so the Drivers change.
    2. Use Resource Bundle. Resource Bundle allows u to Pick Data from the Properties File(Any Text File with Name=value Pair named as <filename>.properties. Place your
    jdbc.drivers=oracle.jdbc.driver.OracleDriver
    in this File and then Use the Followint Code
    ResourceBundle resBun = ResourceBundle.getBundle("myapp");
    // Above Code will luk into the CLasspath for a file viz myapp.properties
    // so make sure this Directory where this file exists is within the Classpath.
    if(resBun != null)
    System.out.println("Checking Property: " + resBun.getValue("jdbc.drivers"));
    Hope this Helps.,
    Cheers,
    Manja

  • Using a variable for a whole command line

    Hi,
    Is it possible to put that commandline:
    Execute-MSI -Action Install -Path "$Var_SourceFiles\$($Itemvar_Setup_Parameter[0])" -transform $Itemvar_Setup_Parameter[1] `
    -Parameters $Itemvar_Setup_Parameter[2]`
    -LogName "$var_PackageLongName"
    in a single variable and then just run the variable instead of writing the whole command line?
    Thanks,

    You can put in a script file and call the script.
    .\myscript.ps1
    You canput it in a variable like this:
    $sb=[scriptblock]::Create('Execute-MSI -Action Install -Path $Var_SourceFiles\$Itemvar_Setup_Parameter[0] -transform $Itemvar_Setup_Parameter[1] -Parameters $Itemvar_Setup_Parameter[2] -LogName $var_PackageLongName')
    $sb.Invoke()
    You cannot pu tit in a variable and run it except.
    Your command also leaves a lot to be desired in a PowerShell session.
    ¯\_(ツ)_/¯

  • How to run form in the background from command line

    please can anybody tell me to
    how to run form in the background from command line
    vishal

    Ummm....Oracle Forms is a foreground runtime kind of thing. What you want is a database procedure (or an OS utility - it depends on what sort of processing you want to do in the background).
    Cheers, APC

  • How to compile forms and reports in linux command line ?

    Hi,
    I'm working on a migration from forms 6i to 11g R2. The development/migration is being made on a Windows 7 64 bits, however, those forms and reports will run on a Linux RHEL 5. Thus, I have to compile them inside that linux box.
    How can I do it? Is there a tool to compile the forms and reports in command line withn a linux box?
    Thanks a lot.

    Thanks for the answer, Carlos.
    I run the command but this error message is displayed "FRM-91500: Unable to start/complete the build".
    Edited by: _blackjack on Dec 18, 2012 5:18 AM                                                                                                                                                                                                                                                                                                                                                                           

  • Command to compile a form in Unix command line

    What is the command to compile a report in Unix command line for Oracle Developer Suite 10g Form version 9.0.4.0.19? Thanks.

    I am not quite sure but as I remember it is something like:
    rgen10*.exe something on oracle_home/bin directory
    Hope this helps
    Ghulam

  • How to specify xml file to populate form fields in the PDF file via command line?

    Hi,
    I would like to specify xml data file to populate my pdf file using command line.
    The form was Reader extended.
    I've tried the following syntax :
    Acrobat.exe /A "zoom=100" "C:\example.pdf"#xml="C:\example.xml" but got an acrobat error: "the file name, directory name or volume label syntax is incorrect".
    Where am I wrong?
    Thanks!

    >If I understand correctly you propose something like this
    Something like, yes.
    >
    >Acrobat.exe /A "zoom=100" "xml=C:\example.xml" ....
    Certainly, neither will work. /A is followed by a single quoted
    string. There must be some separator, but I don't know what it needs
    to be (as I was alluding to in my first reply).
    To see if there is any hope, just try without the zoom= completely. In
    any case you can set the zoom in the document properties.
    Aandi Inston

  • Variable does not work for sqlplus (command line)

    Here is an select:
    variable x number;
    variable y number;
    variable a number;
    define x = 2000;
    define y = 2*1000;
    define a = &x+&y;
    select ener from adding where ener = &a;
    When I execute it under SQL*Plus Worksheet (client installed on my PC) then I get output:
    ENER
    4000
    1 row selected
    When I execute this same under command line sqlplus (under unix shell) then I get output
    old 1: select ener from adding where ener = &a
    new 1: select ener from adding where ener = 2000+2*1000
    no rows selected
    What is worng ?

    Nothing.
    Sqlplus is correct and sql worksheet is buggy.
    Define works with strings only. You cannot use it to calculate an expression.
    Apparently sql worksheet did calculate the expression, and sqlplus didn't, submitting it as a string.
    This is the expected behavior.
    This behavior can likely vary by version, so thank you for not providing version info.
    Will anything awful happen when you do, or is this just the lazyness epidemia in this forum?
    Sybrand Bakker
    Senior Oracle DBA
    Experts: those who did read documentation.

  • Issue with variables and white space in powershell script that calls a command line command

    Guys,
    I have a question regarding this script. Each time I run it, it creates the share, but with a space after it. Also I need help figuring out how to put in the variable for the folder path.
    Below is the code
    $Users=Import-Csv C:\users2.csv
    foreach($User in $Users){
         $User.SNCORP
         $User.HPB
         $User
         cmd /c "net share "$User.SNCORP"=D:\Users\"$User.HPB" /grant:Everyone,FULL"
    The csv file looks like this
    HPB,SNCORP
    ccarter,carterch$
    This is my output in powershell
    PS C:\> .\shareflip.ps1
    carterch$
    ccarter
    HPB                                                         SNCORP
    ccarter                                                     carterch$
    The syntax of this command is:
    NET SHARE
    sharename
              sharename=drive:path [/GRANT:user,[READ | CHANGE | FULL]]
                                   [/USERS:number | /UNLIMITED]
                                   [/REMARK:"text"]
                                   [/CACHE:Manual | Documents| Programs | BranchCache | None]
              sharename [/USERS:number | /UNLIMITED]
                        [/REMARK:"text"]
                        [/CACHE:Manual | Documents | Programs | BranchCache | None]
              {sharename | devicename | drive:path} /DELETE
              sharename \\computername /DELETE
    Any help is greatly appreciated. 
    Christopher

    There is no need to use cmd /c. You should be able to use:
    net share "$($User.SNCORP)=D:\Users\$($User.HPB)" "/grant:Everyone,Full"
    Use showargs.exe (from the article) at the beginning of this line to see the command line PowerShell is actually running (very useful for troubleshooting).
    -- Bill Stewart [Bill_Stewart]

Maybe you are looking for

  • Every time I open an app it reverts back to the icon screen

    Every time I open an app it reverts back to the icon screen after a minute or so, sometimes almost immediately. Any ideas about what is going on? I have both wifi and 3G so I don't think it is an Internet problem. Thanks!

  • Cannot save FrameMaker 7 book as PDF, when opened using FrameMaker 8

    I have a template created using FM 7. I have converted those templates into FM8 and then created a book. When I try to save the book as PDF, it gives the following error (in .txt format): ==============================================================

  • Mail automatically opening.

    I don't like my mail being automatically displayed on my computer. I leave my computer on, rarely shut it down and don;t require a password. Other family members can use it at will. Although I don't have any secrets, I would rather mail is displayed

  • XI for new data conversion?

    Hello experts, You recommendations please on data conversion with XI versus using the LSMW tool? We are working on a new implementation, planning to use XI for the interfaces anyway. Now the idea is to use XI for all dataconversion from the legacy sy

  • Adam Tow's utility to set dates in Aperture

    Adam Tow is expecting to release a utility shortly that will set Aperture database image dates. So scans can finally have correct dates, and it will be possible to correct image dates. http://www.tow.com/2006/10/13/timature/ has the announcement. I p