PDA

View Full Version : Inavailgroup Token


Jim Cockerham
10-26-06, 05:38 PM
I am beating my head on my desk trying to figure out why this code does not work. I want the image to display based on the availability group. I have the %OUI% first . Here is the code:

%IF(INAVAILGROUP|Lodg)%
<IMG src="graphics/00000001/hotel_store_head.jpg" border="0" hspace="0" vspace="0" alt="blah">
%IFEND%
%IF(INAVAILGROUP|Atlas)%
<IMG src="graphics/00000001/atlas_head.jpg" border="0" hspace="0" vspace="0" alt="blah2">
%IFEND%

ids
10-26-06, 07:33 PM
I think you need to use this form instead.

%begin_inavailgroup|Lodg%
<IMG src="graphics/00000001/hotel_store_head.jpg" border="0" hspace="0" vspace="0" alt="blah">
%end_inavailgroup|Lodg%

HTH

Scott

Jim Cockerham
10-26-06, 07:40 PM
Thanks Scott,
I tried that too but it did not work either...
Here is what I ended up finding from an old post from Darren on the list and it does work.....

Then, if the AvailGroup name is "AG01", you can use this:

%IF(login)%
%FUNC(AvailabilityGroup_Find_Name('AG01'))%
%IF(g.OUIX_FuncReturn)%
%FUNC(AvailabilityGroupXCustomer_Find(Availability Groups.d.id,
BasketList.d.cust_id))%
%IF(g.OUIX_FuncReturn)%
Customer is in the Availability Group 'AG01'...
%ELSE%
Customer is NOT in the Availability Group 'AG01'...
%IFEND%
%IFEND%
%IFEND%