VLF-One Visual Notification on Main Panel

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.
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: VLF-One Visual Notification on Main Panel

Post by MarkD »

Do you mean it fails to close when the timer to automatically close fires?

If yes, I'd try adding some avTrace operations into the timer logic to confirm that it actually runs at all.
dhunt
Posts: 65
Joined: Fri Feb 08, 2019 3:06 am

Re: VLF-One Visual Notification on Main Panel

Post by dhunt »

No, that part works. see attachement below.
Untitled4.png
Untitled4.png (7.35 KiB) Viewed 484923 times
the right side is an axes screen. it will NOT let me close the top slider but if i select in the smaller left box which is a filter it will close.
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: VLF-One Visual Notification on Main Panel

Post by MarkD »

What action are you taking to try to close the slider?
i.e. Is the action by mouse click or by some programatic logic?
If it's a click and focus is in the aXes window/pane then the event is probably getting absorbed by it.
dhunt
Posts: 65
Joined: Fri Feb 08, 2019 3:06 am

Re: VLF-One Visual Notification on Main Panel

Post by dhunt »

it's a click by mouse. do you know how to have it not just be absorbed by the axes window and act like the filter?
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: VLF-One Visual Notification on Main Panel

Post by MarkD »

If you are clicking on the filter pane or the aXes pane (i.e. somewhere outside the slider pane) to make the slider pane close then that is probably the issue.

Clicking on the aXes pane is behaving like clicking in any other 'external' web page - the click event goes into that web page, not up into the VLF container application.

You might be able to trap the click on the aXes 5250 screen and fire it as a 'Close any open Slider' VLF event up into the VLF container. Firing events from aXes JavaScripts scripts into VLF logic is pretty straightforward. This might be worth a quick experiment, but it might prove problematic if you need to hook up this click event handler every time a new 5250 aXes screen arrives.

----------------------------------------------------------------------------------------------------------------------------------------------------------

However, if you are actually clicking on the close button in the slider pane, and that's not working when the focus is in the aXes Window, then that's a different issue. In that case, try these temporary event handlers to try and see what's happening when you click on the close image.

Code: Select all

* -------------------------------------------------------------------------
Evtroutine Handling(#CLOSEIMAGE.Click) Handled(#Handled)

#Sys_web.Alert Caption("#CLOSEIMAGE.Click was fired")

Endroutine

* -------------------------------------------------------------------------
Evtroutine Handling(#CLOSEIMAGE.WasClicked)

#Sys_web.Alert Caption("#CLOSEIMAGE.WasClicked was fired")

Endroutine
dhunt
Posts: 65
Joined: Fri Feb 08, 2019 3:06 am

Re: VLF-One Visual Notification on Main Panel

Post by dhunt »

I added a close button to the pane in the slider. It doesnt show the CLOSEIMAGE until you dock the slider which we dont want to do and it already closes when you click outside the slider, which is what we want.
Post Reply