Genii Weblog


Civility in critiquing the ideas of others is no vice. Rudeness in defending your own ideas is no virtue.


Mon 5 Jul 2004, 03:35 PM
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: 

Inline GIF image

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.