VL Web popup menu - CloseOnClick

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
adale
Posts: 210
Joined: Wed Apr 08, 2020 9:18 pm
Location: Poplarville, MS

VL Web popup menu - CloseOnClick

Post by adale »

Can someone help out with a behavior question in regards to popup menu "CloseOnClick" functionality in VL web applications, specifically in versions prior to V16?

We utilize the popup menu that is provided with most all the VL web sample or starting templates, where the popup menu opens to show links to attachments or notes. We have expanded this in some cases to also include menu options that are links to VL web pages, or other VL dialogs, such as shown in the "Top Navigation" template.

Here is the question:
I am trying to confirm that in prior versions, with a popup menu that is defined with Closeonclick(True), that the popup menu would go away on ANY menu item click.

In prior release, V14SP2 & V15, it is my recollection that when you clicked on ANY of the menu option in the popup menu, the popup menu would go away.
Now in V16 what is happening is that if you click on a menu option that is a VL Dialog, then the same behavior is in place where the popup menu goes way.
But, if you click on a menu option that is a link to a VL View, then the popup menu does not go way, it stays present on the screen. The link navigation works fine, but the popup menu does not go away.

Since we upgraded our dev PC's and IBMi server to V16, I don't have a means to go back and verify this.

Source definition of the popup menu panel:
* Controls - Popup menu for more Options
Define_Com Class(#PRIM_PPNL) Name(#MoreOptionsMenu) Left(260) Height(224) Layoutmanager(#LayoutMoreOptions) Top(56) Closeonclick(True)

Thanks in advance for any assistance or insight provided.
Last edited by adale on Thu Oct 16, 2025 12:51 am, edited 1 time in total.
Arlyn Dale
Servias LLC
adale
Posts: 210
Joined: Wed Apr 08, 2020 9:18 pm
Location: Poplarville, MS

Re: VL Web popup menu - CloseOnClick

Post by adale »

Follow up -
When you click on a popup menu option that is a link to a VL web view, the popup menu stays present until you click somewhere on the view. Once the view is "active" then the popup menu is hidden.
I recall in the past that the popup menu would go away once you clicked on the menu option, you did not need to click on the view to make the popup menu go away.

Maybe this is all just my "selective memory", but others in the company recall is that way as well.
Last edited by adale on Thu Oct 16, 2025 12:51 am, edited 1 time in total.
Arlyn Dale
Servias LLC
davidbalansa
Posts: 92
Joined: Mon Feb 01, 2016 10:08 am

Re: VL Web popup menu - ClickOnClose

Post by davidbalansa »

Hi Arlyn,

I tried to recreate your scenario in V16. I created a sample app from the Template Top Navigation. The menu options generated provide links to Views and display dialogs. I am unable to recreate the issue.

Routing example
Screenshot 2025-10-14.jpg
Screenshot 2025-10-14.jpg (94.68 KiB) Viewed 14941 times
No Routing example
Screenshot 2025-10-14 2.jpg
Screenshot 2025-10-14 2.jpg (96.59 KiB) Viewed 14941 times
When I serve the application in a Chrome browser and test the popup panel menu options, an option is selected (either link to a view or a dialog) the popup menu always closes. There is no need to put focus in the displayed view (or dialog).

If I understand your question, I select the 'Quick Links' menu option (links to Quick Links View) the pop up menu will remain visible? Let me know if I have misunderstood your question and I will give it another go.

I generated my sample application twice using Routing and without Routing and got the same result.

Regards.
adale
Posts: 210
Joined: Wed Apr 08, 2020 9:18 pm
Location: Poplarville, MS

Re: VL Web popup menu - CloseOnClick

Post by adale »

Well isn't that interesting.
Yes, you understand correctly that when I click on a menu option that is a link, such as Quick Links, then the popup would be expected to go away, but in my case it stay present on top of the newly navigated to link.

Looking out the basics of our source we look to be the same, or least I don't see anything that stands out as different. I can send you a QE with all of my objects if you would like?

Code: Select all

* Controls - Popup menu for more Options
Define_Com Class(#PRIM_PPNL) Name(#MoreOptionsMenu) Left(260) Height(224) Layoutmanager(#LayoutMoreOptions) Top(56) Closeonclick(True)

Define_Com Class(#prim_md.MenuItem) Name(#MenuOptionsDisplay) Parent(#MoreOptionsMenu) Displayposition(1) Tabposition(1) Caption('Settings') Icon('auto_awesome_mosaic') Left(0) Top(8) Width(278) Themedrawstyle('ForegroundSecondary') Link('/Settings')

Define_Com Class(#prim_md.MenuItem) Name(#MenuOptionsSrvDisplay) Parent(#MoreOptionsMenu) Displayposition(1) Tabposition(2) Caption('QuickLings') Icon('fa-table') Left(0) Top(44) Width(278) Themedrawstyle('ForegroundSecondary') Link('/QuickLinks')

Define_Com Class(#prim_md.MenuItem) Name(#MenuOptionsOrdDisplay) Parent(#MoreOptionsMenu) Displayposition(1) Tabposition(3) Caption('Refresh') Icon('fa-file-text-o') Left(0) Top(80) Width(278) Themedrawstyle('ForegroundSecondary') Link('/Refresh')

Define_Com Class(#prim_md.MenuItem) Name(#MenuOptionsAbout) Parent(#MoreOptionsMenu) Displayposition(2) Tabposition(4) Caption('About') Icon('info') Top(188) Left(0) Width(278) Themedrawstyle('ForegroundSecondary') Dialog(#About)

Define_Com Class(#prim_md.MenuItem) Name(#MenuOptionsQuickLinks) Parent(#MoreOptionsMenu) Displayposition(3) Tabposition(5) Caption('Support Links') Icon('help') Left(0) Top(224) Width(278) Themedrawstyle('ForegroundSecondary') Link('/QuickLinks')
Last edited by adale on Thu Oct 16, 2025 12:51 am, edited 1 time in total.
Arlyn Dale
Servias LLC
adale
Posts: 210
Joined: Wed Apr 08, 2020 9:18 pm
Location: Poplarville, MS

Re: VL Web popup menu - CloseOnClick

Post by adale »

Any chance you can attach a short screen capture video, showing the popup menu going away when you click on yours?
Last edited by adale on Thu Oct 16, 2025 12:52 am, edited 1 time in total.
Arlyn Dale
Servias LLC
davidbalansa
Posts: 92
Joined: Mon Feb 01, 2016 10:08 am

Re: VL Web popup menu - ClickOnClose

Post by davidbalansa »

Hi Arlyn,

Here is the recording:

Screen Recording 2025-10-14.zip
(1.63 MiB) Downloaded 153 times
Screenshot 3.jpg
Screenshot 3.jpg (58.75 KiB) Viewed 14910 times
Some thoughts:
- Have you tried your app in different browsers?
- Did you create the application in a V15 / V14.2 environment and then upgrade your LANSA system to V16 or after you upgraded to V16? Maybe try to recompile all your application components in the V16 environment. This is not optimal and may lead to other questions.

Regards.
adale
Posts: 210
Joined: Wed Apr 08, 2020 9:18 pm
Location: Poplarville, MS

Re: VL Web popup menu - CloseOnClick

Post by adale »

Thanks for that recording.
It confirms the behavior as I was expecting it to be.
Same behavior issue is present in Chrome, Edge, and Firefox. So, I am ruling out a browser specific issue.
This odd behavior of the popup menu not auto closing, seems to only be in VL web applications that we had previously built in V15. I checked one other one we had that has not been touched since we upgraded to V16, and the popup menu in it still works as expected, and auto closes. So it seems it has something to do with VL web applications that we had built in previous version, but have since worked on and compiled now in V16. Or, if I make a copy of a VL web app from one of the earlier version, and compile in V16 it seems to have the same issue of not auto closing.
Note: If I create a brand new VL web app from the Top Navigation template, the popup menu CloseOnClick behavior works as expected. So brand new objects never having been compiled in a previous version are working fine. Keeps getting back to our objects that had been compiled in an earlier version, and now re-compiled in V16.

* Updated topic subject line to correctly reflect the parm in question.
Arlyn Dale
Servias LLC
Post Reply