1 / 32

RFGen Screen Mapping

RFGen Screen Mapping. RFGen Screen Mapping enables applications to interact with host applications running on Unix, AS400, IBM mainframe, DOS or any other legacy, character based system.

aloha
Télécharger la présentation

RFGen Screen Mapping

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. RFGen Screen Mapping RFGen Screen Mapping enables applications to interact with host applications running on Unix, AS400, IBM mainframe, DOS or any other legacy, character based system. Supporting the standard vt220, tn5250 or tn3270 emulation protocols, RFGen provides multiple levels of integration capability to speed-up and simplify Screen Mapping development efforts.

  2. Making The Connection In Programmers Assistant, click on ‘Configure’. Select ‘Add New Screen Mapping Connection. The ‘Configure Screen Mapping Connection’ dialog box appears… This is where you specify the host connection information, enter the downtime schedule for this host, and choose settings for the other system defaults…

  3. Displaying the Environment To bring up the emulation window, simply “double-click” on the Host icon in the RFGen status bar, and the selected session window will appear. Double Click - Screen Mapping Session Window appears

  4. Using the Environment RFGen uses a standard “point-and-click” interface to allows users to interact with the host session as well as the built-in Screen Mapping features… Session – This allows the user to control various elements of the session. Hot Keys – This allows the user to send IBM specific keys to the host system. Macros – This allows access to the RFGen Screen Mapping system.

  5. The Pop-Up Window RFGen also includes pop-up window to simplify the macro recording process. From this window, users can quickly insert timing and other commands into the script they are recording. To access this pop-up, just right-click on the screen.

  6. Three Levels of Integration RFGen provides three levels of integration capability for the user. They are as follows… Basic Also known as “Traditional Screen Mapping”, the user has complete control over the host session. All interaction is written and maintained by the user. Simplified This method takes a “System” approach to Screen Mapping by providing built-in capabilities to navigate host menus and update host screens. Embedded This method builds upon Simplified Screen Mapping by embedding fields directly into RFGen forms.

  7. Basic Screen Mapping “Basic” Screen Mapping is a low-level approach to interacting with the host system. It consists of a series of HLLAPI like commands that are used to send data to and to get data from the host system. In RFGen, these low-level commands are based entirely on VBA coding. Example: If Not SMWaitForText("Enter your user id:", 2, 1, -1) Then SMSendKey KeyEnter If Not SMWaitForText("Enter your user id:", 2, 1, -1) Then Exit Function End If ' SMSendText "dsg" SMSendKey KeyEnter SMWaitForCursor(41, 24, 2) SMSendText “dms" SMSendKey KeyEnter ' LogOnToMainMenu = SMWaitForScreen("Base", 5)

  8. VBA Language Extensions • To support the “Basic” Screen Mapping model, RFGen provides a number of VBA Language extensions. • Users Benefit from these extensions in the following ways… • Optimized for Specific Tasks • Coding and Operational Efficiency • Fully Documented with Examples • Guaranteed Backwards Compatibility

  9. Connection Availability Before attempting to send a series of commands to a Screen Mapping connection, it might be prudent to determine if the host is available. RFGen provides the following command to test the state of the connection to a host system… ConnAvailable This command returns ‘True’ if the host connection is available. Example: If Not ConnAvailable(“CICS”) Then vRsp = RFMsgBox(“Host is off-line, proceed with batch?”, vbYesNo) . . End If

  10. Session Startup and Shutdown RFGen Screen Mapping is designed to simplify the entire process of interacting with Legacy Host systems. Accordingly, RFGen allows users to specify initial startup and shutdown macros to login and logout of the host system properly. While these macros are called automatically at session startup and shutdown, users can execute these macros whenever they require… SMLogOn This command executes a macro that will log the session onto the specified main menu. SMLogOff This command executes a macro that will log the user out so the session can be terminated properly.

  11. Multiple Host Support RFGen Screen Mapping allows users to connect to multiple host systems. At system startup, RFGen will select the first defined host system to be the default host. All Screen Mapping commands will then be directed to that host. For multiple-host requirements, users can use the following command to redirect the Screen Mapping commands… SMSetSession This command specifies which host system the following Screen Mapping commands will be executed against. Example: SMSetSession(“CICS”) SMCallMacro “UpdCompl”, True, sPart, sSerial, sShift, sOper, vQty SMSetSession(“AS400”) SMCallMacro “SFMove”, True, sPart, sOper, vQty

  12. Transaction Bracketing Transaction Bracketing is used with Pooled Screen Mapping Connections. It allows users to do the following… • Retrieve a specific connection to the host system. • Execute a series of commands against a specific session. • Return the connection to the pool when they’re finished. Note: Transaction Bracketing is performed automatically when you use the RFGen Macro commands.

  13. Transaction Bracketing Transaction Bracketing consists of two commands… SMBeginTrans Retrieves a handle to a host session from the Server pool. Optionally, users can request a specific screen to improve application performance. SMCommitTrans Returns a handle to the Server pool. Example: If SMBeginTrans(“InvReceipts”) Then SMSendText “100620” SMSendKey KeyEnter . . SMCommitTrans() End If

  14. Host Screen Navigation RFGen Host Screen Navigation is used to simplify the process of moving between different host applications. RFGen Host Screen Navigation allows users to do the following… • Easily move from screen to screen in the host system. • Recover from failed navigation or system input errors. • Significantly reduce the complexity of Screen Mapping.

  15. Host Screen Navigation Host Screen Navigation consists of the following commands… SMCurScreen Matches the current application screen on the host against the screens defined inside RFGen and returns the name of the screen. SMIsScreen Determines if the current application screen on the host session is the requested screen. SMGoToScreen Executes the required commands to move from the current host screen to the requested host screen. Example: If SMGoToScreen(“InvReceipts”) Then SMSendText “100620” SMSendKey KeyEnter . . End If

  16. Host Screen Navigation RFGen introduces the concept of a base screen or “main menu”. The base screen is used as a point-of-reference when moving between different host applications. The methodology is as follows… • A “main menu” is linked to a specific RFGen host session. • Application Screens are then linked to this “main menu”. • Screen requests that are linked to this “main menu” will be automatically routed to this session.

  17. Host Screen Navigation While the “main menu” or base screen is usually defined during system configuration, RFGen allows users to change the base screen for any session using the following command… SMSetBase Specifies the “main menu” to use as the base screen for a specific host session. When this command is executed, RFGen will log out of the prior session (SMLogOut) and log into the new “main menu” (SMLogIn). Example: SMSetBase(“MenuInquiries”) . .

  18. Transaction Macros RFGen uses a concept called Transaction Mapping to interact with Legacy Host systems. Transaction Mapping works as follows… • The user identifies all important data fields and screen regions. • The user enters a sample transaction which is recorded and converted into a series of VBA commands. • The user can then call the macro, passing it the variable data fields and have the transaction update on the host system. • Optionally, the user can “paint” a RFGen form and have it execute directly against the macro once all input fields have been accessed. Any returning data will then be displayed in the appropriate linked fields. Note: Unlike “Screen Scraping” solutions, RFGen transactions can be used while the host is off-line. These transactions can also comprise multiple host systems or even access ODBC databases.

  19. Transaction Macros Transaction Macros are accessed via the following commands… SMCallMacro This executes a transaction macro and reports its success or failure. Data can be both input to the host session and data coming back from the host session. Optionally, the transaction can be queued for later processing if the host is unavailable. SMQueueMacro This command works exactly like SMCallMacro except that the transaction is immediately queued and returning data is discarded. Example: Dim bSuccess As Boolean ‘ bSuccess = SMCallMacro(“UpdCompl”, True, sPart, sSerial, sShift, sOper, vQty)

  20. Getting Data from the Host RFGen provides users with a number of command to retrieve data from the host screen. The commands are as follows… SMGetCursorThis command is used to determine where the cursor is currently located in the host session. SMGetTextThis command is used to retrieve text from the host session. SMFindTextThis function is used to “find” text on the host session. Example: If SMFindText(“Enter User Id:”, 1, -1) Then SMSendText “DataMAX” SMSendKey KeyEnter End If SMGetText(1, 1, 10, sScreenName)

  21. Sending Data to the Host RFGen provides users with a number of command to retrieve data from the host screen. The commands are as follows… SMSetCursorThis command is used to set the cursor to a specific location in the host session. SMSendText/AltThis command is used to send text to the host session.The “Alt” version allows you to specify the coordinates where the text will be written. SMSendKey/AltThis command is used to send a keystroke to the host session.The “Alt” version allows you to specify the coordinates where the keystroke will be entered. Example: SMSendTextAlt “DataMAX”, 5, 10 SMSendKey KeyEnter

  22. Sending Data to the Host When updating a host session, data collection errors can occur if the data is either too long for the field, or too short to overwrite the previous value. To eliminate this problem, RFGen provides users with the following command… SMPadInputThis command is used to assure that data being sent to a host session is the same length as the input field. This is accomplished by appending spaces to the end of the data and truncating it at the specified length. Example: Dim sUser As String sUser = “DataMAX” SMPadInput sUser, 8 SMSendTextAlt sUser, 5, 10 SMSendKey KeyEnter

  23. Timing Commands With many hosts, it is important to use timing commands to assure that the host session has processed the last command prior to RFGen issuing the next one. The following commands are used to control the application flow… SMWaitForCursorThis command waits until the cursor has reached the desired location or a timeout period has elapsed. SMWaitForTextThis command waits until the specified text has appeared or a timeout period has elapsed. SMWaitForScreenThis command waits until the specified screen is loaded or a timeout period has elapsed. SMWaitForHostThis command waits until the host session has sent a packet that unlocks the keyboard or a timeout period has elapsed. Example: If Not SMWaitForText(“Enter User Id:, 5, 1, -1) Then …

  24. Timing Commands While it is not recommended, RFGen also supports the following command to delay program execution… SMSetDelayThis command causes a specified time delay in program execution after each update command is sent to the host. Example: SMSetDelay 1000

  25. Simplified Screen Mapping Simplified Screen Mapping uses a “Systems” approach to interacting with the host system. It relies upon the concept of a “main menu”, “application screens” and “transactions”. Using these concepts, the effort required to move from one host screen to another and process a transaction can be reduced to a single VBA command.

  26. The Main Menu The “main menu” is designed to be a base screen from which all host navigation is derived from. When the system first connects to the host, RFGen will process a login script to move the session to the targeted “main menu”. All “main menus” contain three basic functions… • Session Login Script • Session Logout Script • Session Abort Script

  27. Main Menu Steps Defined To create a “main menu”, simply follow these 5 easy steps… • Logon to Main Menu – This records all the keystrokes necessary to log onto the main menu. • Identify the Main Menu – Select the areas of the screen that will uniquely identify this as the main menu. • Return from Navigation Error – This records the keystrokes necessary to recover from an unexpected scripting error. • Logoff from the Main Menu – This records the keystrokes necessary to log off from the system. • Test Macros – This allows users to quickly test their macros.

  28. The Application Screen “Application Screens” are where the actual user input will normally take place. These screens are usually linked to macros to send and receive data from the host system. All “Application Screens” contain two basic functions… • Link to Main Menu • Go to Application Screen Script • Return to Main Menu Script

  29. Application Screen Steps Defined To create an “Application Screen”, simply follow these 5 easy steps… • Go to the Application Screen – This records all the keystrokes necessary to move from the main menu to the application screen. • Identify the Application Screen – Select the areas of the screen that will uniquely identify this as the application screen (page 1). • Identify Multiple Screen Pages – Select the areas of the screen that will uniquely identify this as an additional page of the application screen. • Return to the Main Menu– This records the keystrokes necessary to move from the application screen back to the main menu. • Test Macros – This allows users to quickly test their macros.

  30. The Data Entry Transaction “Transaction Macros” are where the actual data entry into the host system will take place. All “Transaction Macros” contain the following elements… • Link to Application Screen • Screen Input Fields • Screen Output Fields • Transaction Script

  31. Data Entry Transaction Steps Defined To create an “Transaction Macro”, simply follow these 4 easy steps… • Go to the Linked Application Screen – This step tests the code required to navigate to the linked Application Screen. • Mark All Significant Data Fields – Select the input fields/areas of the screen that you are interested in sending data to/receiving data from. • Enter a Sample Transaction – This starts recording the keystrokes required to input this type of transaction. A fully editable VBA script will then be created based upon the input captured. • Test Transaction – This allows users to quickly test their transaction macros.

  32. Embedded Screen Mapping Embedded Screen Mapping builds on the ‘Simplified’ approach to create the user interface for the wireless device. Using these methods, Screen Mapping applications can be created based entirely on “point-and-click” techniques.

More Related