Display screen format without RPG

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
pjshuey
Experienced User
Posts: 119
Joined: Wed May 25, 2016 11:58 am
First Name: Patti
Last Name: Shuey
Company Name: Conestoga Wood Specialties
Phone: 7174452886
Address 1: 645 Reading Road
City: East Earl
State / Province: Pennsylvania
Zip / Postal Code: 17519
Country: United States
Contact:

Display screen format without RPG

Post by pjshuey »

Is there a way to display a screen format based on an event such as onclick without passing control back to the RPG? I am trying to add a button to my main screen to take a picture and have it automatically bring up my "camera" screen format without changing the RPG code.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Display screen format without RPG

Post by Scott Klement »

The pui.show() API can be used to display/control a format from JavaScript. Not sure that I understand your situation, however... it's possible that what you're asking for doesn't make sense.

Remember, your RPG program is working with a record format, and has requested input from that format. This has caused the Open Access handler to fire, and it has done some work to prepare and and wait for that format. You want to suddenly change which format is on the display without sending control back to it? I have no idea what that'll do...

What's the advantage of switching to another format? Why not have data from the same format that's hidden and pops up when the camera is selected? There's no limit to how much stuff can be in one format.

Or, why not send the control back to RPG so it can switch screens? This would make things much easier, and isn't difficult to code.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests