@Command([compose]) and list of forms?

I have an action button on a form that uses @Command([compose]) to open a new form which then inherits fields from the current form.

I want the compose action to be able to choose from a number of different forms in the database, whilst mucking around trying to dynamically set the form name in the @Command([compose]) formula, I discovered that it will open a dialog box allowing you to choose from all forms in the database if its not sure what form to use. This would be perfect if I could only show “some” of the forms in the database. Is there a way to pass a list of forms to the @Command([compose]) formula?

Subject: @Command([compose]) and list of forms?

Jason,

try something along the lines of…

SelectedForm := @Prompt([OKCancelList];“Compose new document”; “Select the required document type from the following list”; “”; “FormA” : “FormB” : “FormC” : “FormD” );

@if(SelectedForm = “”; @return(“”);“”);

@command([Compose]; SelectedForm)

Hope that helps … John Kvalheim

Subject: RE: @Command([compose]) and list of forms?

Thanks John, I actually started using @PickList to select from a view containing the form names but this will work better.