Oracle Forms and NSL
Novell Cool Solutions: Tip
By David Guest
Reader Rating 
|
Digg This -
Slashdot This
Posted: 3 Aug 2005 |
Here's the script for NSL and Oracle Forms, followed by some discussion notes.
Script
############# Script for ifrun60.exe ############# ## BeginSection: "Global Script Configuration" ## EndSection: "Global Script Configuration" ## BeginSection: "Login" Dialog Class "ui60MDIdocument_W32" Title "Oracle Department" EndDialog GetCommandLine ?Params set ?Prog <noset> set ?File <noset> Delay 3000 StrUpper ?Params RegSplit "(.*)IFRUN60.EXE .(.*)." ?Params ?Prog ?File Delay 1000 MessageBox ?Params MessageBox ?File if ?File eq "C:\ORACLE\Photos\Photos_Access.FMX" Set ?Platform Photo endif if ?File eq "C:\ORACLE\Test\Test60.FMX" Set ?Platform TestSetup endif SetPlat ?Platform Setprompt "Username:" Type $Username Type "\T" Setprompt "Password:" Type $Password Type "\T" Type "\N" Setprompt "Enter your Single Sign-on ID and Password." ## EndSection: "Login"
Notes
If the text box has a control ID, you should be able to read it with the following command:
ReadText #123 ?ErrorText (where 123 = your Ctrl-ID for the text box)
The other option you have is to identify the window using the Dialog statement. You can even reference the text from that specific control in the statement:
Dialog Title "ErrorBox" Class "12345" Ctrl #123 "You have generated an error" EndDialog
This will only hook this window if it contains Ctrl-ID 123, and it contains the text "You have generated an error"
If the text has no ctrl-id, NSL cannot see it. In that case, you must identify the window using class and title only.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com
