Is it possible to transfer data between subforms. I am currently using K2 4.7
Regards
Andrew
Is it possible to transfer data between subforms. I am currently using K2 4.7
Regards
Andrew
Good day AndyR1
Please check the following:
Data transfer between forms: https://community.k2.com/t5/K2-Blackpearl-Forum-Posts/Data-transfer-between-forms/td-p/82259, How To: Filter a Form with a Parameter from another Form: https://help.k2.com/onlinehelp/k2smartforms/userguide/current/default.htm#How_Tos/Filter_a_Form_with_a_Parameter_from_another_Form/Using_a_Form_Parameter.htm, How to send ID value from one form to another form: https://community.k2.com/t5/K2-Blackpearl-Forum-Posts/How-to-send-ID-value-from-one-form-to-another-form/td-p/93928.
Best,
Sunrise
Hello
Create Parameters in your subview/subform
-On the rule for button click > open subview/subform
-and configure to map data that you want to display on the subview/subform to the parameters of the subview/subform
-On the subview/subform, configure the rule when view executed list item add or add toolbar button is clicked,
use transfer data rule to transfer the parameters to the textbox/control in the subview/subform.
Best of luck.
Good day
Yes, it's possible especially using the form tabs &/or lookup control for smartform performance, dive into this formal documentation refer to the rules on how it's implemented (https://help.k2.com/onlinehelp/k2smartforms/UserGuide/4.7/default.htm#How_Tos/Navigate_Between_Tabs_on_One_Form/Creating_a_Tabbed_Form.htm)
Thanks;
Widson.
Hi
This is possible, I see there are multiple ways suggested. You can also try this solved post from a community as well: https://community.k2.com/t5/K2-Blackpearl-Forum-Posts/Transfer-Data-from-Subview-to-Form/td-p/99748
Regards,
BesM
Hi AndyR1,
Though you cannot tranfer data directly from 1 subform to another, you can transfer data from one subform to another subform through your main form by the use of parameters or controls themselves.
For instance, if you have MainForm, SubForm1 and SubForm2 in your solution and you intend to pass the values entered in SubForm1 to SubForm2, this is the rules you would need to take note of in order to achieve this:
1. Open a subform
Obviously you would need to open subform1 in order to enter your values in it and this can be done upon "click" of a button in your MainFrom (When a control on a view raises an event), for arguments' sake.
2. When a control on a View on a subform raises an event
Assuming that you are going to close your SubForm1 by clicking a "close" button, use this rule.
followed by:
2.1 Transfer data
In this rule, you will transfer data from the controls of SubForm1 to some paramaters in your MainForm.
2.2 Close subview or subform
After the values in your SubForm1 have been transfered to parameters in your MainForm, SubForm1 will close.
At this stage, we have called SubForm1, entered values in it and then tranfered these values back to the MainForm's parameters. Next is to load these values in the parameters on SubForm2. To achieve this, we would need to use the following rules;
Assuming that you open SubForm2 upon "click" of a button in your MainFrom(When a control on a view raises an event);
1. Open a subform
Open SubForm1. Click on "configure" of this rule -> input mappings. And then drag the parameters or the MainForm into controls in the input mappings of the SubForm2.
In this way, when SubForm2 opens, the values of the parameters in the MainForm will load. Meaning that values entered in SubForm1 have been passed on to SubForm2 via the MainForm parameters.
I hope this makes sense and helps you.
Regards,
Katleho
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.