@updateformulacontext

I have this code in an action hotspot. If I compose “Configuration” without specifying target frame - set field works fine.If i use the following code (open form /compose “Configuration” in designated frame) - I could not set any field in that new document.

temp:=“xxxx\xx”

@Command([FileOpenDatabase];@Subset(@DbName;1):temp);

@UpdateFormulaContext;

@SetTargetFrame(“Nav”);

@Command([OpenPage]; “PageName”);

@SetTargetFrame(“HomeTop”);

@UpdateFormulaContext;

@Command([Compose];“Configuration”);

@UpdateFormulaContext;

FIELD PeopleDb:=2;

Where is my mistake, or is there some workaround?

Subject: @updateformulacontext

Try the same without UpdateFormulaContext.

temp:=“xxxx\xx”

@Do(

@Command([FileOpenDatabase];@Subset(@DbName;1):temp);

@SetTargetFrame(“Nav”);

@Command([OpenPage]; “PageName”);

@SetTargetFrame(“HomeTop”);

@Command([Compose];“Configuration”))

Update Configuration document field -----> FIELD PeopleDb:=2, in the form’s PostOpen event