Skip to main content
Solved

Contact User Lookup Filter

  • October 28, 2022
  • 4 replies
  • 224 views

Forum|alt.badge.img+7

We have a Contact User Lookup field that uses Lookup Expression as below:

select usr.id from usr as usr where usr.csg.shortCode ='xxxxxxxxxx'

 

The expression returns only Active Users.

 

We need all Active and Inactive Users.

Best answer by MennovH

Hi Manish,

 

all lookup filters have a hard coded setting to only show active records as a default. In assystWeb the user would have an option to also include discontinued records but this is not available in assystNet.

 

 

4 replies

Forum|alt.badge.img+10
  • Hero (Employee)
  • 50 replies
  • Answer
  • November 7, 2022

Hi Manish,

 

all lookup filters have a hard coded setting to only show active records as a default. In assystWeb the user would have an option to also include discontinued records but this is not available in assystNet.

 

 


  • Do Gooder (Customer)
  • 2 replies
  • January 24, 2023

Hi, In our case we have a lookup expression same as “ select usr.id from usr as usr where usr.csg.shortCode ='xxxxxxxxxx' “ but when number of fields increase in the form the search fails on AssystNet with error Lookup Failed. any clues or suggestions ? thanks 


Forum|alt.badge.img+10
  • Hero (Employee)
  • 50 replies
  • January 24, 2023

Hi, most likely just a typo in your example, but when setting the lookup filter you always need to ‘alias’ the table you are selecting from.

In this case try select User.usr_id from usr as User where User.csg.shortCode = ‘xxxxx’

 


  • Do Gooder (Customer)
  • 2 replies
  • January 24, 2023

Thanks for the quick response, I tried the query as given but not worked same error “ Lookup search failed “ 

If I remove few fields from the form it works, some how when adding new fields the expression to able to process.

Anything to be done on Default Value Expression ? 

Thanks