Hot Topic (More than 10 Replies) @XLU (Read 1625 times)
wildwood
Full Member
***
Offline


No personal text

Posts: 156
Location: New York
Joined: Apr 2nd, 2004
@XLU
Dec 3rd, 2012 at 4:04pm
Print Post Print Post  
I have a few older applications which I have, successfully, using for many years and that contain programming for @XLU's. These were accomplished, with many thanks, with the help from Lantica members. I hav had to create a new application and am at wit's end trying to utilize the @XLU.
It is an Alumni application. It has two databases(?) One is simply called Alumni and contains the Alum's info. The other database(?) is called Statement. If an Alum signs up for our gala reunion I would like their info to go into the Statement's form. I have been able to get to the point where upon opening the Statement database I can choose which Alum to add but CAN'T get his relevant information to be copied into the Statement.
I have used the programming similarily used in my other Applications but to no avail.
Help would be appreciated.
Peter
  
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: @XLU
Reply #1 - Dec 3rd, 2012 at 5:44pm
Print Post Print Post  
Hi Peter,

Can you post the code that you currently have?

-Ray
  

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


No personal text

Posts: 156
Location: New York
Joined: Apr 2nd, 2004
Re: @XLU
Reply #2 - Dec 3rd, 2012 at 6:29pm
Print Post Print Post  
Hi Ray,
Here is the coding I have. I have tried a slightly different coding for last and first names and then the rest of the contact info. I'm sure I probably have it pretty much screwed up. Please remember that I am still a novice at progrmming so please spell everything out in any coding you prepare.
Thanks,
Peter


If @add then
Last Name:=@XLU(@FN,Alum0,"Alumni!Alum","Last name")
First Name:=@XLU(@FN,Alum0,"Alumni!Alum","First Name")
Address:=@XLU(@Fn,Alum0,"Alumni!Alum","Address")
City:=@XLU(@Fn,Alum0,"Alumni!Alum","City")
State:=@XLU(@Fn,Alum0,"Alumni!Alum","State")
Zip:=@XLU(@Fn,Alum0,"Alumni!Alum","Zip")
Home Phone:=@XLU(@Fn,Alum0,"Alumni!Alum","Home Phone")
Cell Phone:=@XLU(@Fn,Alum0,"Alumni!Alum","Cell Phone")
Email:=@XLU(@Fn,Alum0,"Alumni!Alum","Email Address")
  
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: @XLU
Reply #3 - Dec 4th, 2012 at 2:20pm
Print Post Print Post  
Hi Peter,

Well the syntax looks right, so it could be a problem with names or when it's running. What event do you have that programming in? The easiest way for me to check the names, would be if you could send a copy of your DSR and DDT files to support@lantica.com.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
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: @XLU
Reply #4 - Dec 4th, 2012 at 4:11pm
Print Post Print Post  
Hi Peter,

The element on the Alumni form that you are wanting to match to is named Alum: (Note the colon) so your code was almost there. The following should work for you.

Code
Select All
If @add then
Last Name:=@XLU(@FN,Alum0,"Alumni!Alum:","Last name")
First Name:=@XLU(@FN,Alum0,"Alumni!Alum:","First Name")
Address:=@XLU(@Fn,Alum0,"Alumni!Alum:","Address")
City:=@XLU(@Fn,Alum0,"Alumni!Alum:","City")
State:=@XLU(@Fn,Alum0,"Alumni!Alum:","State")
Zip:=@XLU(@Fn,Alum0,"Alumni!Alum:","Zip")
Home Phone:=@XLU(@Fn,Alum0,"Alumni!Alum:","Home Phone")
Cell Phone:=@XLU(@Fn,Alum0,"Alumni!Alum:","Cell Phone")
Email:=@XLU(@Fn,Alum0,"Alumni!Alum:","Email Address")  



-Ray
  

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


No personal text

Posts: 156
Location: New York
Joined: Apr 2nd, 2004
Re: @XLU
Reply #5 - Dec 4th, 2012 at 5:20pm
Print Post Print Post  
Hi Ray,
That worked.........almost.
The email address does not, for some reason, get copied into the statement. Another quirk...........I created a desktop shortcut for the Alumni application. The coding you did works great there. However, for some reason it does not work in the actual application in the main sesame program.

Thanks,
Peter
  
Back to top
 
IP Logged
 
wildwood
Full Member
***
Offline


No personal text

Posts: 156
Location: New York
Joined: Apr 2nd, 2004
Re: @XLU
Reply #6 - Dec 4th, 2012 at 6:46pm
Print Post Print Post  
Hi Ray.
Found the solution to the Email not copying
In the coding below:
Email:=@XLU(@Fn,Alum0,"Alumni!Alum","Email Address")

it should have read:
Email:=@XLU(@Fn,Alum0,"Alumni!Alum","Email")

I deleted the word Address .

But I still have the issue with it not working in the Sesame Program only in my shortcut.

Thanks,
Peter
  
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: @XLU
Reply #7 - Dec 4th, 2012 at 9:56pm
Print Post Print Post  
wildwood wrote on Dec 4th, 2012 at 5:20pm:
Another quirk...........I created a desktop shortcut for the Alumni application. The coding you did works great there. However, for some reason it does not work in the actual application in the main sesame program


Hi Peter,

I'm not following you there. Do you mean it works if you open Sesame and the DB file through your icon but doesn't work if you open Sesame and then open the DB file?

-Ray
  

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


No personal text

Posts: 156
Location: New York
Joined: Apr 2nd, 2004
Re: @XLU
Reply #8 - Dec 5th, 2012 at 12:21am
Print Post Print Post  
Hi Ray,
On my desktop I created a shortcut to the Alumni.db. That is the application that works. If I open Sesame and scroll to the Alumni.db file it will not utilize the coding for the statement you helped me with. When I add a new Statement the pop up list of Alum does not show and just takes me into the statement file. However, if I type two or three letters of an existing alum, followed by two .. it fills in the fields.
Weird!!
  
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: @XLU
Reply #9 - Dec 5th, 2012 at 3:28pm
Print Post Print Post  
Hi Peter,

That almost sounds as if there are two different alumni.db files. Open the one using the shortcut on the desktop and note the file path displayed on the top of the Sesame Window. Then close that copy of Sesame and open Sesame and browse to the alumni.db file. Open that and note the file path displayed on the top of the Sesame Window. Are they different?

-Ray
  

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


No personal text

Posts: 156
Location: New York
Joined: Apr 2nd, 2004
Re: @XLU
Reply #10 - Dec 6th, 2012 at 2:32am
Print Post Print Post  
Hi Ray,
Sorry to be such a pain. I got frustrated and deleted the application and started from scratch. I can still not get the Statement database to where upon opening it I can choose which Alum to add. I will send the files to lantica support.

Thanks again,
Peter
  
Back to top
 
IP Logged