DBLookup Issue

Hi, I am facing a very strange problem with dblookup. I have developed a workflow application.when user opens the application,I do the lookup from user profile on his name and make the menus customize based on his user profile options.This lookup works fine with me but on client machine it’s not working.Following is the lookup:

PersonName:=@Name([Abbreviate];@UserName);

@DbLookup(“”:“NoCache”;@DbName;“(UserProfile)”;PersonName;“zone”);

If anyone know the possible reason,please let me know as it’s very urgent.

Thanx in advance.

Subject: DBLookup Issue

Are you using ‘genuine’ profile documents in Notes? If you are (i.e. created with @Command([EditProfile]; formname; username)) then you are retreiving the field values incorrectly.

The correct syntax for retreiving profile field values is:

@GetProfileField(profilename; fieldname; username)

So your formula maybe should look a bit more like this:

PersonName:=@Name([Abbreviate];@UserName);

@DbLookup(“”:“NoCache”;@DbName;“@GetProfileField(”(UserProfile)"; fieldname;PersonName);“zone”);

Hope this helps

Simon

Subject: RE: DBLookup Issue

Thanx for your responses.I am not client machine.Client itself on his machine. I am not getting notes profile.I am getting customize profile.

If this is access problem,how can I give access to the client on the view??

Regards,

Subject: DBLookup Issue

Is it you on the client machine or the client?

If it is the client then maybe the view access is restricted. Or if it is a replica on a client machine then maybe the view does not exist for the client.

Subject: DBLookup Issue

Have you try to test if it’s returning an error?

PersonName:=@Name([Abbreviate];@UserName);

res:=@DbLookup(“”:“NoCache”;@DbName;“(UserProfile)”;PersonName;“zone”);

@if(@IsError(res); @Failure("An error occured "); res)