@DbLookup does not work on the server

The Picklist works but the @dblookup does not work when the database is copy to the server?

Both works on local.

@SetField( “prosjekt_nr”; @PickList( [Custom] ; @DbName; “prosjekt_sort_prosj_nr” ; “Prosjekt velger” ; “Vær vennlig å velg et prosjekt” ; 1 ));

@SetField(“prosjektnavn”;@DbLookup(“”;“”;@DbName;“prosjekt_sort_prosj_nr”; prosjekt_nr;“prosjektnavn”));

Jarle.

Subject: @DbLookup does not work on the server.

@dblookup, if executed in the UI (not in an agent) will evaluate locally - you need to specify the server and database instead of just “”. Use @servername in R6+ for the server name and @dbname.

Subject: RE: @DbLookup does not work on the server.

Thanks, did not see the “”:

It works now…

Jarle.

Subject: @DbLookup does not work on the server.

Try this…

@SetField(“prosjektnavn”;@DbLookup(“”:“”;@DbName;“prosjekt_sort_prosj_nr”; prosjekt_nr;“prosjektnavn”));

Just changed the first semicolon in your syntax to a colon… the second argument to @DbLookup should be teh Server… Database path list.

Hope this helps.

Nitin