I have heard this question many times, but never seen a really good answer that I remember.Is there a way to get a handle to the selected document in an embedded view?
Rune Carlsen posted an answer to this very question in the Business Partner forum, and I think it is worth re-posting for others to use:
In a embedded view, there is a "target frame (single click)" event:
In this, you can add a formula to catch the unid of the document:
@SetEnvironment("DocUNID" ; @Text(@DocumentUniqueID))
Now, you can do what ever you want on this document, as you have the UNID. At least in @formulas...
Best regards;
Rune Carlsen
Copyright © 2004 Genii Software Ltd.