Link to home
Start Free TrialLog in
Avatar of reden
reden

asked on

Changing Form on Edit/View

I have 2 forms: FormA and FormB.
All fields in FormA and FormB intersect meaning they have common fields.

In View1, the user will compose using FormA.  In View2 the users can see all those in View1 but when they view/edit/print the documents it must use FormB.

TIA

Reden
Avatar of reden
reden

ASKER

sorry I forgot to ask how will I implement this
In the view properties, set the Form formula for view1 to: "FormA" and the Form formula for view2 to: "FormB".  This should do it.
Hi reden,

The thibg u r trying to do can be achived by triggering a manual agent from the query save event of the FormA. This agent will change the value of the form field in the document.

But the better approach will be to create a single form with hide when formula in it. The hide when formula should check for @IsNewDoc.

Hope this will help u solve the problem.
Avatar of reden

ASKER

amit

but what will I do with the common fields, they should be in different formatting, I cannot put a field in two places in a form AFAIK



The simplest thing is to use Gunsens proposal.

Use Form Formula among views to use different forms for different purposes when on different views.

-Arun
Avatar of reden

ASKER

To all

documents will be viewed  using the form in form field, AFIAK, gunsen's formula is not the solution. Each document can only be seen in one of the form.

But I've already solved my problem,

here's what I do

I have views:
    view1 = shows/create using MasterForm
    view2 = shows/create using MasterForm
I move contents of FormA & FormB to:
    SubFormA & SubFormB
I Create Form:
    MasterForm with computer subform
    shows SubFormA when in View1
    shows SubFormB when In View2
    by using @ViewTitle & @If functions


Now, how can we close this Question?
There should be an option for you to withdraw your question.
Community Support has reduced points from 50 to 0
ASKER CERTIFIED SOLUTION
Avatar of ianB
ianB

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial