11-25-2011 11:24 AM
I wonder if anyone can help me with a problem . I have a list on a screen but I need to validate that only can select in order, I appreciate if someone can help me with this issue.
Solved! Go to Solution.
11-26-2011 03:31 PM
I have a list and need to take an order of sequence, for example, if I have a list of 10 items,start from index 0, then step index 1, 2, 3 .. etc ... but I can not skip the index 0 to index 2 ...that's the validation I need to do, I hope you can understand me .... I speak Spanish and my English is very poor ..
11-26-2011 03:58 PM
Here is what I would do:
1. Create an object that would be in charge of the validation logic (check if the order was valid, reset validation, etc.).
2. Override the fieldChangeNotify to call the validation manager with the selected Item Index.
3. At this point, the Validation Manager check the input and decides what to do: let the user continue (validation completed successfully), display an error message (input not valid) or do nothing and wait for rest of input.
I think that should get you started for now.