raypower Posted June 11, 2006 Posted June 11, 2006 (edited) Hi, Just bought FM8 Advenced from FM's dealer in China. Get problem when I am creating a service call book system: 1. Value list based on current date; 2. Date Caculation/Relationship. Who would give valuable advices to me can find more information in attached sample file.(winziped). Thanks. Value_list_based_on_currentdate.zip Edited June 11, 2006 by Guest
CoZiMan Posted June 11, 2006 Posted June 11, 2006 Try this. It's set to calculate a field for the relationship up to 5 days before and 5 days after the current date. This is the simplest way to do this, I think. Auto updates, too. This creates a set of entry fields to create a 'Range Length' for selection. k? SelectDateRangeFromtoday.fp7.zip
raypower Posted June 12, 2006 Author Posted June 12, 2006 Sorry, attached file does not work! SelectDateRangeFromtoday.fp7v01.zip
comment Posted June 12, 2006 Posted June 12, 2006 But will it still work tomorrow? If you don't modify the before/after radio fields, what's going to trigger the list calc to get the current date?
raypower Posted June 13, 2006 Author Posted June 13, 2006 (edited) Hi comment, I simplified my database, just use Service_call_enddate>=Get(CurrentDate) to list all call in progress. Edited June 13, 2006 by Guest
comment Posted June 13, 2006 Posted June 13, 2006 I don't know what you have now, but the file you have posted does not work. If you do not modify the Before/After fields, the value list will be stuck forever with the same dates.
raypower Posted June 13, 2006 Author Posted June 13, 2006 Thanks. You are correct. We have to find another way for solution. This thread is still open. I don't know what you have now, but the file you have posted does not work. If you do not modify the Before/After fields, the value list will be stuck forever with the same dates.
comment Posted June 13, 2006 Posted June 13, 2006 I hope you realize that the problem is only with the value list. Generating the key for the relationship is a breeze. But a value list can only come from indexable values, so there's no way you can use Get (CurrentDate) for this, at least not directly. You'd need to make the field a button that runs some kind of a script - as shown in the thread I linked to in my first response, for example. Do you really need a value list here? What if you format the field as a drop-down calendar instead?
raypower Posted June 14, 2006 Author Posted June 14, 2006 Finally I found it's much easy to use g_CurrentDate<=Service_Call_End_Date relationship to list all call not finshed. g_CurrentDate=If (IsEmpty ( Main_Menu::gShow_ToDay_Engineer_Activities_Engineer_Name ) â 1; Get ( CurrentDate ) ; "" ) Attached is the screenshot. Thanks comment.
Recommended Posts
This topic is 6738 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now