PDA

View Full Version : conditional current user display


sametch
09-Oct-2003, 02:53 PM
When an account holder logs in in business. The account holder details are displayed by "Actinic:NOWSERVING". I want to put these in a styled table.

The problem is if a user doesn't login then a blank styled table with no contents is displayed.

Is there anyway of doing either of the following:

a) Determine if the current user is logged in before creating the table. ie something along the lines:

if (!NOWSERVING)
{
//do nothing
}
else
{
<table><tr><td>Actinic:NOWSERVING</td></tr></table>
}

b) Display "Guest User" if current user is not logged in!

cdicken
13-Oct-2003, 09:42 AM
You could try entering the code for the styled table into the code for the actual prompts themselves. You will find these if you go to 'Design | Text', click 'Go to' and go to prompts '212', '213' and '217'.