@SetDocFiled

Hi Gurus,

I am trying to refresh view after I set the field by using @SetDocField and trying to open that document with the formula itself.

When I open the document for the first time I am not seeing the changes. When I close the document and open again I could see the changes.

What I feel is…it is not refreshing the document propely.

Just please let me know if I am missing anything.

I wrote the following formula.

keydocids:=@DbLookup(“”:“nocache”;“”;ViewName;@Text(@DocumentUniqueID);3);

@SetDocField(keydocids;“TotProjCurrency”;CurrencyType);

@Command([OpenView];“DocIDS”;keydocids);

@Command( [ViewRefreshFields] );

@Command([OpenDocument]);

Thanks in advance.