Transfer Data from one view to other view


Badge +6

Hi,

 

I have a smartform with number of views. In one of the view, a control's value will be the sum of value of two controls of two different views. Let's say: Views are V1, V2 & V3 with controls C1, C2 & C3 respectively. The value of C1 will be the sum of C2 and C3.

16969i83A803A4F0007F33.png

 

 

 

 

 

 

 

 

 

 

 

 

Then the value of control1 will be = Sum(Control 2, Control3) ?

 

I know this can be done on view level by creating an expression, if all these control are present on one view.

Is there any provision to create expression at form level ?

 

Any help suggestioon will be highly appreciated.

 

Regards,

Ram

 


3 replies

Badge +1

Hi Ram

 

As a quick answer:

 

1. You can create a expression on form level that adds the values of C2 and C3. Then you can put that expression in an action that transfers data to C1 when for example a button is pressed or the form is initialized.

 

To be able to give you a more specific answer I just need to know when do you want that value to go to C3? Once a button is clicked, on form initialization? Or as soon as the values change?

Badge +6

Hi, thnx for your reply.

Could you please put some light how expressions are created at form level?

These controls are in sequence where C1 is calculated (Read only field), follwed by C2 & C3. As soon as the value in C2 and C3 are entered and C3 control changes. C1 should be populated with the sum of C2 & C3.

 

Much appreciate your response.

 

Regards,

Ram

Badge +6

Hi Mark,

 

Thank you for your post, much appreciate your response. It worked me well.

 

Regards,

Ram

Reply