@Command( [SwitchForm] ; formName) never works!?

Hi,

how does the @Command( [SwitchForm] ; formName ) works?

I never get any result! (release 6.5.1/2)

even in a button in an opened document - even without giving any formname, so I had to select it in a dialog… no effect!

Uwe

Subject: As you posted below, the [SwitchForm] will not work when the view has a Form Formula.

Subject: so there’s no way??

I thougt it was my fault - and the command was especially made for this purpose in R6…

but … did you know any other method to display the doc in another form than that of the form formula?

Uwe

Subject: You could trick the form forumla perhaps.

Create a field that you always blank out on save call it “UseActualForm”. then in your button to switch form,FIELD UseActualForm := “Y”;

@Command([SwitchForm]; “Yours”)

Then in the form formula:

@If(UseActualForm = “Y”; Form; “YourOtherForm”)

Subject: Or if the document is not in edit mode, you could…

@Command([OpenView]; “ViewSortedByUNIDWithNoFormFormula”; @Text(@DocumentUniqueID); “1”);@Command([EditDocument]; “0”);

REM “You may or may not need the following 1 line”;

@Command([SwitchForm]; “Yours”);

@Command([OpenView]; “ViewSortedByUNIDWithNoFormFormula”; @Text(@DocumentUniqueID); “0”);

@Command([FileCloseWindow])