Normal Topic Best way to display two elements (Read 623 times)
proudpoppy
Full Member
Members
***
Offline


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
Best way to display two elements
Aug 27th, 2007 at 12:29am
Print Post Print Post  
Whats the simplest way to display a popup windows with two values from another layout. Its just a simple lookup for the inventory. I've tried Xuserselect, and been working with variables but have not hit the right combination. I have a command button and when pressed I want some kind of a popup to display item number ; Item Name, Looked through the programming manual but don't see nothing about retreiving two values.  Embarrassed
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Best way to display two elements
Reply #1 - Aug 27th, 2007 at 12:41am
Print Post Print Post  
There is an example of doing exactly this under @XLookupSourceListAll.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
proudpoppy
Full Member
Members
***
Offline


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
Re: Best way to display two elements
Reply #2 - Aug 27th, 2007 at 1:28am
Print Post Print Post  
Hammer wrote on Aug 27th, 2007 at 12:41am:
There is an example of doing exactly this under @XLookupSourceListAll.

Well I don't have a "Key" to match the external key, I want to popup a list that displays the item number and description from all the records in my inventory. This is what I need @XUSERSELECT(filename,[formName!]source,source), unless I'm missing something @XlookupSourceListAll needs keys to work ??
  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Best way to display two elements
Reply #3 - Aug 27th, 2007 at 2:30am
Print Post Print Post  
Quote:
...from all the records in my inventory.

The key can be any search criteria, so if you want all the records you can use "=; /=" (equals nothing; does not equal nothing) for the key. This will find all records that are in the database, regardless.
  


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


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
Re: Best way to display two elements
Reply #4 - Aug 27th, 2007 at 2:42am
Print Post Print Post  
I got what I needed with the following code, but I will try your suggestion down the road a little.

var vmasinv as String
vmasinv = @Insert("c:\sesame2\data\mastpopup.txt");
Writeln(Vmasinv)

Thanks   Wink
  
Back to top
 
IP Logged