PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Auto Clicking Buttons and entering data  (Read 1417 times)

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 188
  • I must have taken a wrong turn at Albuquerque.
    • View Profile
Auto Clicking Buttons and entering data
« on: May 11, 2023, 03:13:11 PM »
Hi List,
i have handled this different ways in the past and i'm wondering if someone has some input on a better way to handle it.
I have a gui screen that has been around a while. The client is giving me a file which is the input for the screen. But unlike something like Excel.Application there is no api for the screen.  Is there a better way to simulate the user clicking on buttons and filling out the fields than what i have done in the past which is to:

a.) fire off screen with some argument saying Auto Mode
b.) then go to a routine that will do something like this
  1.) Item_Number = passed in item Number
  2.) gosub item_number_changed
  3.) Quantity = passed in quantity
  4.) gosub quantity changed

thanks jeff

Peter.Higgins

  • Diamond Member
  • *****
  • Posts: 124
    • View Profile
Re: Auto Clicking Buttons and entering data
« Reply #1 on: May 11, 2023, 06:10:37 PM »
Jeff,
I preload data filtered by object then READ DATA from that into the nomads fields. 
If one or more objects are used, all the validation and bulk loading scope can be separated from the GUI interface.

The way I load files most often is to add a drop button or key field on the panel to load the list/file/spreadsheet into a grid with a test mode to indicate new/changed before update.