1. What form is this? - customized or standard?
2. What type of form is this?
3. Does this form have subforms in it?
4. How is the form opened? Is there any code getting automatically fired when the form opens / periodically?
5. Some more details (if you think that may help us suggest a solution)...
i have a report that am running,upon passing the filters to the report, its opens the form modally see the code below.
IF GSuggestPrices THEN BEGIN
Window.OPEN('Processing #1########## \' +
'@2@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@' );
FnCheckItemLE;
TempItemsREC.SETCURRENTKEY(TempItemsREC.Make,TempItemsREC.Model,TempItemsREC.Category);
TempItemsREC.COPYFILTERS(Item);
[b] FORM.RUNMODAL(FORM::"Inventory With Zero Movement",TempItemsREC);[/b]
CurrReport.QUIT;
END;
CLEAR(GNo);
upon opening this form with the details i have filtered i want to view, in the header of the form i have field known as percentage , here i enter the percentage value i want,then it modifies on my fields,lets call it unit price by that percentage value.
the problem is that when i pass this value the field am modifying doesn't auto refresh until i close the form and open it again.
i want once i pass the value,that field is refreshed automatically with my new value.
in the form i have set autoupdate properties to yes,autotimer but none is working,even on modify trigger of the form but to no avail
That's quite odd. You can also try using CurrForm.SAVERECORD before the updatecontrols, but that's it, nothing else is coming to my mind now to refresh the records on a form. Let's see if we get anymore ideas here.
You say in the header of the form is the textbox with the percentage.
Does that mean your form has a subform?
If that is the case, refresh the subform...
BTW you say that after you edit the percentage. it triggers an update on the records.
What happens when you enter the wrong percentage? can a user easily edit the percentage over and over without losing the initial values of the records?
This I ask because when you add for example 7% it is not the same as subtracting 7%, and mistakes are hard to undo.
|Pressing F1 is so much faster than opening your browser| |To-Increase|
so you're entering a "percentage" into a field and it's not updating the corresponding field "unit price by that percentage value" can you show us the code that's OnValidate of your "percentage" field?
Comments
what exactly is your requirement?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
1. What form is this? - customized or standard?
2. What type of form is this?
3. Does this form have subforms in it?
4. How is the form opened? Is there any code getting automatically fired when the form opens / periodically?
5. Some more details (if you think that may help us suggest a solution)...
Chn
i have a report that am running,upon passing the filters to the report, its opens the form modally see the code below.
upon opening this form with the details i have filtered i want to view, in the header of the form i have field known as percentage , here i enter the percentage value i want,then it modifies on my fields,lets call it unit price by that percentage value.
the problem is that when i pass this value the field am modifying doesn't auto refresh until i close the form and open it again.
i want once i pass the value,that field is refreshed automatically with my new value.
in the form i have set autoupdate properties to yes,autotimer but none is working,even on modify trigger of the form but to no avail
If the code which is modifying the record is written inside the form, this method should work fine. Let us know whether this works for you?
Chn
Chn
Does that mean your form has a subform?
If that is the case, refresh the subform...
BTW you say that after you edit the percentage. it triggers an update on the records.
What happens when you enter the wrong percentage? can a user easily edit the percentage over and over without losing the initial values of the records?
This I ask because when you add for example 7% it is not the same as subtracting 7%, and mistakes are hard to undo.
|To-Increase|
yes the user can modify the percentage over and over again,coz the field we are modifying is not that critical ,its just for analysis purposes.
IS your code on the form or on the table?
http://www.BiloBeauty.com
http://www.autismspeaks.org