Jump to content

Go to layout based on user data


This topic is 5667 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have a script that adds new records. The layout that is used to enter the new record is different for different users (one type of physician uses one form and another type of physician uses a different form). Within the "add new record" script step, I want to determine who the user is and then send them to the appropriate form. I tried the following script step:

Go To Layout [Case (Get (AccountName); "admin"; LayoutNames ("EP INVOICE"); Get (AccountName); "cohen"; LayoutNames ("CATH INVOICE"))]

where admin and cohen are two different users and EP INVOICE and CATH INVOICE are the desired destination layouts. I get no error messages from this calculation, however, the script seems to get stuck at this step. I also tried a If/ElseIf statement which also didn't seem to work. Any thoughts would be appreciated. Thanks.

Rick (newbie)

Link to comment
Share on other sites

Try this:

Case (

Get (AccountName) = "admin"; "EP INVOICE";

Get (AccountName) = "cohen"; "CATH INVOICE";

"")

I think your formatting of the case statement is the problem

Hope that helps :

Link to comment
Share on other sites

This topic is 5667 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.