I need to paste a link form one document to another, which is loaded on a frame, it is the code:
REM {Copiando enlace al informe};
@Command([EditMakeDocLink]);
@Command([OpenView];“qry_diagnosticos”);
@Command([ViewRefreshFields]);
@Command([OpenDocument];“1”;id_diagnostico);
@Command([EditGotoField];“informe_caso”);
@Command([EditPaste]);
I get the next error message: “Cannot execute the specified command.”
I hope any can help me,
any help is this regard will be appreciated.
Subject: Impossible paste link(EditMakeDocLink) when use frame.
Try putting in @updateformulacontext before the paste function- I am not sure this will work, but I know when I use @function/@command formulas to bring info from one document to the next, I do it- the formula below brings the stated values from the 'parent" - FIELD ParentCorp := ParentCorp;
@Command([Compose];“Transactions”);
@UpdateFormulaContext;
@SetField(“CO_PA_IE”;“CO”);
@SetField(“GCorSC”;“GC”);
@SetField(“ParentCorp”;ParentCorp);
@Command([RefreshHideFormulas]);
@Command([ViewRefreshFields])
Having said that, I think I would use script.
Subject: RE: Impossible paste link(EditMakeDocLink) when use frame.
@UpdateFormulaContext didn´t wort, the code execute with out error until :
@Command([EditGotoField];“informe_caso”);
@Command([EditPaste]);
I think the problem is for frame reference, because I can see that the cursor is in other frame, do you know how I could change to other frame ?