• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 189
  • Last Modified:

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
0
reden
Asked:
reden
1 Solution
 
redenAuthor Commented:
sorry I forgot to ask how will I implement this
0
 
GunsenCommented:
In the view properties, set the Form formula for view1 to: "FormA" and the Form formula for view2 to: "FormB".  This should do it.
0
 
amit_duttaCommented:
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.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
redenAuthor Commented:
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



0
 
ArunkumarCommented:
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
0
 
redenAuthor Commented:
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?
0
 
snocrossCommented:
There should be an option for you to withdraw your question.
0
 
ianBCommented:
Community Support has reduced points from 50 to 0
0
 
ianBCommented:
Refunding points and closing question.

IAn
Community  Support @ Experts Exchange
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now