cancel
Showing results for 
Search instead for 
Did you mean: 

UDF for Counter

Former Member
0 Kudos

How would you write a UDF that would only flag an "X" to certain data (the data uses the counter)?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I think you can use standard function for this purpose....

Otherwise, UDF could be something like this:

Global Variable: int lv_counter;

public void DBLookUP_GeneralApi(ResultList result,Container container)

Answers (3)

Answers (3)

Former Member
0 Kudos

The quantity is in increments of 10 (10, 20, 30, 40 etc) and for each of these quantities I have to have an u201CXu201D in another data field (RET_ITEM)

Former Member
0 Kudos

Can you provide more information about this request? Do you want to "flag" an attribute when a certain value is met? What is the relation with the "counter"?

(edit after clarification):

You can create a function that will check the %10 == 0 (if the counter is divisible by 10) and then this returns "true", mapping a "X" to the target field.

(IF function) (CounterValue%10 == 0) THEN (concat? Do something for the target field) ELSE (ignore)

Former Member
0 Kudos

(clarification)I have a counter that counts every 10 (ex. 10,20,30,40 and so on) and I need each one of these to show an u201CXu201D in a different(Respective) field (RET_ITEM) and I was wondering what UDF would allow me to do this?