WebQueryOpen Agent to check for User Access

Hi,

I have a wqo agent in a form that checks if the user has certain roles and based on the roles I am trying to redirect them to different url. I tried the below options but none of them open the desired page. The form opens but the users are not redirected anywhere.

Please help. thanks.

Print “[”+ dbPath(0) + “/Error?OpenPage” + “]”

Print “]”

Print “[”+ dbPath(0) + “/Error?OpenPage&target=_blank”+ “]”

Subject: WebQueryOpen Agent to check for User Access

Does anything appear in the Address Bar (URL)?

If so, what displays there?

What is the value of ‘dbpath(0)’ ?

Subject: WebQueryOpen Agent to check for User Access

How are you computing dbpath(0)?

I use db.filePath since it’s just there to use. I’m manually entering the server name but the following seems to work:

Print “[http://mydomain.com/” & Db.FilePath & “/frmRegistered?OpenForm]”

Can you modify the script so you can run it with the debugger and watch the outputs?