cancel
Showing results for 
Search instead for 
Did you mean: 

Formatted Search

Former Member
0 Kudos

Hi,

I'm trying to create a Formatted Search to update an UDF. The problem is this formatted search is based in a combo box field, and I can't make reference to the value I see in the form...The reference is a Number of the position of the item in the list of the combo box. How can I make reference to the value of the combo box to compare it in the Query???

regards.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

1. list all possible Number of the position of the item

in the list of the combo box.

2. Link UDF to UDtable, with 2 field :

Code (fill it with number in the point 1); => @code

Name (Value you want to update based above code)

3. Note the Value and Variable of the combo in the

document.

4. create a query:

declare @code as int

declare @udf as int

select @code=$[$85.1.0] '=> value and variable of "Contact Person" combo in Order form

if @code=1

set @udf=1

if @code=2

set @udf=3

if @code=3

set @udf=3

if @code=4

set @udf=4

if @code=5

set @udf=6

else

set @udf=7

select @udf

5. Assign formatted search in the UDF,

Choose "Search by saved query" and point to your

query you've just create.

Mark "Auto Refresh When Fields Changes"

Choose "Refresh Regularly and choose field that

trigger change (field in the combo).

6. To see the effect, try to choose any value from the

combo, is UDF updated?

Former Member
0 Kudos

Hi Dody,

thanks for that.