Normal Topic @popupmenu (Read 753 times)
dman
Member
*
Offline


A Complete Dummy

Posts: 19
Joined: Feb 18th, 2004
@popupmenu
Feb 21st, 2004 at 11:44pm
Print Post Print Post  
I have this code to bring up a list of previously entered names for an invoice form. While it brings them up to click on, if you doubleclick on a name it does put the correct name into the field and everything is ok but if you singleclick it puts it there and then goes to the first name in the list. Therefore if you don't doubleclick it and then press enter to continue, it puts the wrong name there. Is there a way to make it single clickable?

name = @popupmenu(@xlistvalues("c:\forms\magimp.db","invoice!name"), "Pick a name")
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: @popupmenu
Reply #1 - Feb 22nd, 2004 at 2:49pm
Print Post Print Post  
Why don't you submit this to Support as a suggestion? I don't think we can make it single-click without losing a lot of the keyboard support (although I'll check), but we may be able to position the selection so pressing Enter doesn't change the value.
http://www.lantica.com/Support/support_request_form.html
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: @popupmenu
Reply #2 - Feb 22nd, 2004 at 9:22pm
Print Post Print Post  
Erika,

Besides the header description, how is @popupmenu different from @userselect?
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: @popupmenu
Reply #3 - Feb 22nd, 2004 at 10:50pm
Print Post Print Post  
You need a semicolon delimited list in popup, but XUS uses existing database as a source.  

I have not tested this yet, but I suspect you could use @Insert(File) for the "list" parameter.  

You can also use the XListValues to generate a semicolon delimited list from an external database to do that.

But I also think that XUS is the only one of the three that will provide unique values, no duplicates.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: @popupmenu
Reply #4 - Feb 23rd, 2004 at 1:03am
Print Post Print Post  
Hi Bob,

Not XUS (External User Select), regular @userselect.

@Userselect(string) to be exact.

The Programming Guide defines string as "a comma-delimited string of values", but it will also work with a semicolon-delimited list.  So, for the most part it seems to be the same as @PopupMenu, with the exception of the header feature.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged