|
: 13 : 13 : 0 |
I wanted to make a universal formula and put it in the Shared Computed For Display (CFD) Field $hf_WindowTitle (inherit to all databases), and that it was calculated at the opening of the Form.
Code:
@If(@NoteID!="NT00000000";
@If(Form!="DeletedDocument";
$hf_WindowTitleDoc;
"(Deleted document)");
"New document")
$hf_WindowTitleDoc - CFD-field that contains a formula for a specific form.
The sequence of fields: Form -> $hf_WindowTitleDoc -> $hf_WindowTitle.
This design does not work, because now in the Window Title formula you can use the field values only saved document or a static constant values.
Please, make a calculation WindowTitle-formula after miscalculation fields on the form, for example it could be done somewhere in between QueryOpen and PostOpen. Values CFD-fields appear in the document on PostOpen, but the document on the screen is not visible, ie to implement this dynamic Window Title can be without problems.
Thank you.
---
Old name for this idea: "Set to Window Title forms calculated after a miscalculation fields when loading Forms"
|