VLF-One Redisplay Business Object

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
mwilliams
Posts: 36
Joined: Sat May 28, 2016 1:45 am

VLF-One Redisplay Business Object

Post by mwilliams »

I have a business object that has a single command that is attached to ramp. This business object is not in the navigation pane. If I do an avSwitch to that business object, the ramp screen shows up in it's panel and everything works fine. If I then select another business object from the navigation pane and then try to redisplay the original business object using avSwitch again ramp goes through the whole process of finding the navigation plan and backs out to the junction before it goes right back into the same screen. I was wondering if there was a way to redisplay the original business object that has my ramp screen without it navigating again? Or, is there a better method to redisplay or bring back to the front my business object?
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: VLF-One Redisplay Business Object

Post by MarkD »

Do you mean you just want to cause the business object's container pane to come to the front/top and nothing else to happen ?
mwilliams
Posts: 36
Joined: Sat May 28, 2016 1:45 am

Re: VLF-One Redisplay Business Object

Post by mwilliams »

Yes. That's sounds like what I am looking for. I'm using code you provided that allows us to list all the open Bo's in a rp. I am just looking to be able to toggle to the open bo selected in the list. Nothing more than making the pane that the bo is in visible.
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: VLF-One Redisplay Business Object

Post by MarkD »

That should be achievable (maybe) but it might take a few goes to get it right as I don't have a system to try it out on.

First, you need to put an event handler in your system IIP - your version of the shipped UF_OSYSTM reusable part.
Something like this:
Capture.PNG
Capture.PNG (42.73 KiB) Viewed 101509 times
This handles a user defined event named BringToFront.

When it detects that event it requests that the current command handler (i.e. the one containing the aXes 5250 screen) is activated.
That should bring it to the front (I hope).

Then in the place you are issuing the avSwitch request using an avSignalEvent WithId(BringToFront) instead.

If that works we know it may be possible, so then it just needs to be refined a bit to make sure that if multiple aXes screen command handlers are open that only the requested one comes to the front.
Post Reply