Unstored Calc in Portal

Using function get(currentdate) in calculation field that is in a portal.  According to FMP
the calc should be unstored in order to ensure updated data.  However, when we make it unstored, the portal does not display any records.  If we make it stored, it displays
the incorrect records.  How can we make an unstored calc display correct records?  Thanks.
pmilllokAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

lesouefCommented:
What do you do? You are using get(currentdate) as the field to link to the external table?
Anyway, if you store it, the value is refreshed only upon on request, so you will display the "last know value of current date" fields.
If it is unstored, it is recalculated upon request only, so you have to display it, but only fields from the current table of the current layout are refreshed, therefore portal fields are skipped. I suggest you first go to the layout of the external table, do nothin basically provided the field=get(currentdate) is present in this layout, and come back to the portal in a script.
A better and easier way is to create a global field say today=get(currentdate), then use that to link to the external table.
In yr startup script (I assume you have one), you define today=get(currentdate), and yr portal always display the right thing for the current day untill midnight.
You can also redefine this value when entering the proper layout if you may have people working around midnight.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
FileMaker Pro

From novice to tech pro — start learning today.