I have a computed text field and a hotspot resource link on a page. So far on the hotspot click event I have this one line of code:
@Command([RunAgent] ; “(RefreshAllSearches)” )
And I need to add additional code that will change the value of the computed text field to the value contained in a field on a form.
In the agent that runs the the hotspot click event there is code that retrieves this value from the form:
Set doc = view.GetDocumentByKey(session.CommonUserName)
value = doc.GetItemValue(“FavSearch_1”)
So, I need the formula language command(s) to retrieve this value from the form and use it to change the computed text value on the page.
Thanks in advance!!
Subject: How To Change Computed Text
As far as I know, the Computed Text is only calculated as the page is first displayed. There’s no way of changing it while the page is open.
You would need to switch to a Document based on a Form to do that.
Subject: …which begs the question
Is this computed text, or is it a text field that is computed? There is a difference. One is stored in the backend document, the other is not. If it is a computed text FIELD, it will recalculate when the document refreshes.
Subject: RE: …which begs the question
You can’t put fields on a page, so I’m presuming it’s computed text 
Subject: RE: …which begs the question
you are assuming he meant page and not form. Since he said he has a computed text FIELD, it could be either he has computed text on a page, or a computed text FIELD on a form. 