Jump to content
Sign in to follow this  
cartographer

Equation not autoupdating

Recommended Posts

For some reason, this equation only autoupdates,

when I select the field in question, or close and reopen the Filemaker document:

If(index>1;If(index+skip ≠ index; GetNthRecord ( addtoindex; Get(RecordNumber)-1 )+skip;GetNthRecord ( addtoindex; Get(RecordNumber)-1 )+1);index+skip)

where index, skip, and addtoindex are all fields.

and this equation gives the results for addtoindex itself.

Calculation result is a number.

Number of repetitions is 1.

Do not evaluate if all reference fields are empty.

Storage options is set for Do not store calculation results.

And no Global storage is checked.

Filemaker 8.0v3, soon upgrading to version 8.5 for the Mac.

Will this be improved in 8.5, or do I need to do something else that that every time I change the value of skip or index, addtoindex updates without my having to select it first or close the document?

Share this post


Link to post
Share on other sites

Any calculation field with GetNthRecord() needs to be unstored. Some unstored calcs only update after a Refresh Window [ flush cached join results ] step.

Create a script with the Refresh Window [ flush cached join results ] step and run it to see if the calc updates.

There is proably nothing wrong with FMP.

Share this post


Link to post
Share on other sites

I have no idea what this is trying to do, but try this calculation instead:

Case(

index > 1 and skip = 0 ;

GetNthRecord ( addtoindex ; Get( RecordNumber ) - 1 ) + 1 ;

index > 1 ;

GetNthRecord ( addtoindex ; Get( RecordNumber ) - 1 ) + skip ;

index+skip

)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Who Viewed the Topic

    1 member has viewed this topic:
    vwgtiturbo 
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.