[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] if-statement for "dealer" field in userdb?


----- Original Message -----
From: "Ton Verhagen" <suppressed>
To: <suppressed>; "Xavier GILLET"
<suppressed>
Sent: Friday, September 26, 2003 8:59 AM
Subject: Re: [ic] if-statement for "dealer" field in userdb?


> Quoting "Xavier GILLET" <suppressed>:
>
> >[tmp dealer][data table=userdb field=dealer key="[data session
> >username]"][/tmp]
>
> In foundation you normally wouldn't need to search for
> the dealer field of the logged in user. As the value of the
> dealer field will be assigned automatically to a scratch
> variable 'dealer'.
>
> See catalog.cfg:
> UserDB    default    scratch       "dealer price_level credit_limit"
>
>
>
> So the code below would suffice.
>
>
> >[if scratch dealer]
> >*
> >*
> >*
> >[else]
> >*
> >*
> >*
> >[/else]
> >[/if]
>
> Good luck !
>
>
>
> Best regards,
>
> Ton
>

I think you need to use [value] and not [scratch] variable in this case :

[if value dealer]
*
*
*
[else]
*
*
*
[/else]
[/if]


_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.