the response doesnt even open, and the parent stays open
I put “@Command([FileCloseWindow])” under post save for the parent, and it opens the response and doesnt close the parent. I’ve been going at this for the past couple days, does anyone have any suggestions for my problem??
I suspect you are wondering why you are not getting much help with this topic. Likely it is because you asked pretty much the same thing yesterday. No matter how hard you try, you are not going to be able to close the parent using formula language and compose a response document. (Maybe you could set an environment variable and then make the new doc a response on the save event… but I would avoid this like the plague)
Is there any reason why you cant leave the parent open and create the response… or have your users create the responses from the view where the parents are being stored. Either way, you will simplify this problem by keeping the parent open (or selected)
I hope I can sort some of this out, since it was my suggestion to use toolsrunmacro. After reviewing this, I’m not sure that a macro is still going to solve this issue.My idea was to let the macro do everything, so your @if would look something like:
But still you have the issue of composing a response - and then closing an underlying window - this can easily be done in script by just creating a new doc, specifying it a response and then assigning the respective doc as its parent.
In 6 we have the new: ComposeWithReference that composes a response - but you still have to at least have the parent selected in a view - if its not open. If you can find a way to select the (parent) doc - after its closed, then you’re there.
Otherwise, restricted to formula language, I would try to save the parent, compose the response - leaving the parent open underneath.
After the response document is finished processing, it could have a button that does two closes if its a new doc or just one close if its not.
I have tried this in a local copy of a database and the double window close as I have it written does work - both the response and the underlying parent were both closed - so this is probably the only option you have at this time