Normal Topic @popupmenu question (Read 668 times)
FlipGilbert
Full Member
***
Offline


Running Ver 2.6.4

Posts: 236
Location: Sandy Eggo
Joined: Mar 8th, 2005
@popupmenu question
Nov 30th, 2016 at 5:55pm
Print Post Print Post  
Hello,
Not even sure how to say this...so I'll show it.

Machine_Type = @Popupmenu (@xlookupall(@fn, CompanyName, "Equipment!Co_Name", "Equipment_Type"), "Equipment Type")

When the list pops up, any equipment with a "/" in it makes a sub list with every thing after the "/".

I've tried to work around this by not using the "/" character but the time has come to correct this. 

Any suggestions or ideas?

Thank you,
flip
  

It's not what a man says that matters or how he says it, but what he does and how he does it.
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: @popupmenu question
Reply #1 - Dec 1st, 2016 at 2:20pm
Print Post Print Post  
Hey Flip,

The / is the character used to create sub-menus so if you don't want a sub-menu all you need to do is use the @Replace() function to replace a single / with a double / telling @PopupMenu() that you just want a slash in the data.

Ex:

Code
Select All
Machine_Type = @Popupmenu(@Replace(@xlookupall(@fn, CompanyName, "Equipment!Co_Name", "Equipment_Type"), "/", "//"), "Equipment Type") 



-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
FlipGilbert
Full Member
***
Offline


Running Ver 2.6.4

Posts: 236
Location: Sandy Eggo
Joined: Mar 8th, 2005
Re: @popupmenu question
Reply #2 - Dec 2nd, 2016 at 8:40pm
Print Post Print Post  
Hi Ray, good to hear from ya!

Thank you, was reading up and seen where my code broke. And you made it look painfully simpler than mine.

As always thankful for you support!
flip
  

It's not what a man says that matters or how he says it, but what he does and how he does it.
Back to top
 
IP Logged