How to get the current record(ROW VALUES )in List Form ??

pskannaa
Member Posts: 138
List form values:
Min_Value(int) Max_Value(int) Autual_value(int) Process(bool)
1 5 3 Yes10 20 23 No21 22 21 Yes
....the list form will show initially Min,Max values
user can enter the "Actual_value" column for each records..when user enters the first value i.e 3(above eg) and it should validate the correspoinding row MIN and MAX values and check the Actuall value between 1 to 5 if yes "Process" field is "YES"(this condition i can use setfilter)....
But How can i get the corrent row position values MIN,MAX,, If im entering in first row i need to get the first row of Min,max values and if second row then get 2nd row min,max values as on on ....
suggestion..
Regards,
Psk
Min_Value(int) Max_Value(int) Autual_value(int) Process(bool)
1 5 3 Yes10 20 23 No21 22 21 Yes
....the list form will show initially Min,Max values
user can enter the "Actual_value" column for each records..when user enters the first value i.e 3(above eg) and it should validate the correspoinding row MIN and MAX values and check the Actuall value between 1 to 5 if yes "Process" field is "YES"(this condition i can use setfilter)....
But How can i get the corrent row position values MIN,MAX,, If im entering in first row i need to get the first row of Min,max values and if second row then get 2nd row min,max values as on on ....
suggestion..
Regards,
Psk
0
Comments
-
Any code fired from a validation trigger will always be in the context of the current record, so just use the Min and Max values or the REC variable.0
-
Yea, im trying that only...But i couldn't able to capture the "Actual_value" using "recLineFilter" as record...'cz just we typing the value in "Actual_value" field...it is not taking the effect even i applied
recLineFilter.SETFILTER(recLineFilter."Actual Value(Num)",'%1..%2',"Min Value(Num)","Max Value(Num)");
i put a code in Actual_value Validate() trigger..
showing record count is zero even it match the actual value..0 -
you are setting a filter on a field at entering that field ? What for ?
If you want to set the "Process value" if the actual value is between min and max, your OnValidate should be something likeProcess := ( ( min_value <= actual_value ) and ( actual_value <= max_value )) ;
0 -
YES right...Got it.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions