Still having problems. It appears to be related to whatever the active database is, but even when I explicitly set the DB, it still doesn’t work. I’ve modified the code a bit, but it’s the same problem with formulafil. I’ll also add this is a procedure that worked fine in Pan 6 that I’m rewriting in Pan X.
What I have is a button on a form in the DB CCTotalsWork. The button calls a procedure,.buttons, which takes the button info and opens secret the DB DEPREP_WORK and far calls: farcall “DEPREP_WORK”,".depprocess"
.depprocess works down to this:
The formula fill fails to fill anything in. I have the identical code in a procedure “TEST” in “DEPREP_WORK” and it fills in the fields correctly when run as a standalone. If called from within the .depprocess procedure the fields are not filled in. Likewise if TEST is far called from CCTotalsWork it will not fill in the fields.
Does formulafill change the active window?