Posted on 2006-06-22
Any idea why my picklist is always populating the previous value in my form computed field.
For example, if i have the following list of dates:
10/06/2006, 10/07/2006, 10/08/2007, 10/09/2007....
This are populated in the tests view which is called from picklist
Now when I select the first entry 10/06/2006, it seems to be OK and I complete and close the document as required.
However, when I select 10/08/2007 or any other entry next,I get the 10/06/2006 populated still in my field. Then when I select a third entry, 10/07/2006, I then get 10/08/2007 in my field, so it is always populating the previous entry in the field.
It seem like it is caching the entry somewhere but i am not sure where.
Here's my code:
Choice := @PickList([Custom]; "" : ""; "tests"; "Open view"; "Select a test from the list"; 3);
This is suppose to prompt for a list of tests, then when the user selects - OK , it open a new test document in edit mode and set the value of the testdate to the selected value.
I've tried the testdate field with both computed and computed when composed but still have the same problem.
Any ideas will be much appreciated.