Here is an example of using the constraints from a DD to do manual constrained finds
you can add this code to the order entry example
Code:
Procedure OnPostFind Integer eMessage Boolean bFound
Forward Send OnPostFind eMessage bFound
Constraint_Set 99
Constraint_Set 99 Clear
Send Constrain to orderdtl_DD
Number nTotal
Constrained_Find First orderdtl by 1
While (Found)
Move (nTotal+OrderDtl.Extended_Price) to nTotal
Constrained_Find Next
Loop
Constraint_Set 99 Delete
Set Value of oTotalManual to nTotal
End_Procedure
this way you dont have to code your selections twice once in the constraints and once for the manual finds