The mail-in database has a button to ‘Publish & Send’. This does:
@command([FileSave]);
a few prompts asking questions and setting fields accordingly.
@command([Compose];“Publish”)
…
The Publish form inherits the whole of the current document into a rich text field.
Now what we’re seeing is that the original document doesn’t always get saved before the publish is made. Apparently around 30% of the time its ok, but the rest of the time whats inherited thru is the version of the document before the save at the start of the button. (Scenario is you receive an email, edit it then hit the Publish & Send button.)
I’m seeing if a do nothing loop using @for will ensure that the document is saved before we do anything with it. And pretty obviously the underlying problem is network speed (can’t say too much about that as its a customers!)
However, does anyone have any rules of thumb as to how long it might take for a save request to actually happen. And do you think it would be more reliable to do it in Script?
Subject: Is Save Immediate??
Hi Sue.
I think the answer to “immediate” is “kinda…”
From the “Working with @commands” Help page:
@Commands are special @functions that perform immediate actions in the user interface…
@Command functions execute in sequence with other @functions, with some exceptions…
@PostedCommand functions execute in sequence with each other after all other @functions execute…
You can check and respond to the return value of @Command (but not @PostedCommand)
…so I think your answer would be to act only on the result of the FileSave after encapsulating it in an “@If…” block,
or changing the “@Command([Compose…” to an “@PostedCommand([Compose…”
Subject: This got round the problem
I inserted this ‘do nowt’ loop before the Compose and this got around the problem.
@For(n := 1;
n <= 50;
n := n + 1;
temp:=“”);
For the record, I’ve been ‘doing’ Notes for something like 13 years and this is the first time I have run into this sort of thing. Usually if you ask it to do something in Formula language it just does it.
Hope this helps anyone else who has this sort of problem,
Sue