silver_surfer Posted June 22, 2005 Posted June 22, 2005 Hi Does anyone know how to force FM to reindex an indexed field? I want to create a key that points at either the date in the record or if the record in over due to point to today. As today's date is an unstored calc, I had to use a getField() in the key so that FM will index it. This worked but now it won't update itself (ie today's date) as it is stored in the index. Any ideas? Thanks
comment Posted June 22, 2005 Posted June 22, 2005 Well, yes - it cannot be indexed if it's not stored, and if it's stored it will not update. Try moving the unstored current date to the left side of the relationship.
silver_surfer Posted June 22, 2005 Author Posted June 22, 2005 I am aware of that. That's why I was asking about the reindex. I need the key on the right so that it will appear in a portal of the users tasks for today
comment Posted June 22, 2005 Posted June 22, 2005 The conclusion does not follow from the given. If you have a relationship: cToday => TaskDueDate the portal will show today's and past due tasks. cToday is an unstored calculation of Get (CurrentDate). You will need to add another criterion to the relationship to filter out completed tasks, or create a calculation field = Case (IsEmpty ( CompletionDate ) ; TaskDueDate ) and use that in the relationship instead of TaskDueDate.
silver_surfer Posted June 22, 2005 Author Posted June 22, 2005 cool sounds like a good option, will give it a go. thanks
silver_surfer Posted June 22, 2005 Author Posted June 22, 2005 that nearly fixed it just needed to stop it picking up the blank field values from Case (IsEmpty ( CompletionDate ) ; TaskDueDate ) in cToday => TaskDueDate Rel and it did the trick.
comment Posted June 22, 2005 Posted June 22, 2005 Ah, yes - a blank is smaller than today. Should have been: Case ( IsEmpty ( CompletionDate ) ; TaskDueDate ; Date ( 12 ; 31 ; 4000 ) )
Recommended Posts
This topic is 7093 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