Hi ,
I have farm with 6 records, 2 records are Text fields coming from "A" database, and 1 record is coming from "B" Databasethis is "ComboBox" , and 3 records are coming from "c" Database this is "ComboBox". I have to save this all fields in first database .i.e "A" database .
How to save this all fields in one database by using Button ,did I need to write Patch function,
Can any one help on this.
Solved! Go to Solution.
Ok @Anonymous ,
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item.
Hi @Anonymous ,
Yes you need to Patch and refer to the control names the other data is contained in when writing to the fields in "A" database.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi,
Can you give the formula for patch ,
That could be great for me ,
Thanks
Hi @WarrenBelz ,
sry to say this I have stuck in formula
I have attached the file which farumala I am using
Ok @Anonymous ,
What error are you getting - see comments - should that be .Text?
Patch(
'[MadCap_DWH].[USER_ACCESS_INFO]', //what is the table name here?
Defaults('[MadCap_DWH].[USER_ACCESS_INFO]' ),
{
emaillD:emailID_DataCard3_l.Update, //you might look at this and one below
isActive:isActive_DataCardl_l.Update,
roleName:ComboBox3_l.Selected.roleName,
zone:ComboBox9_l.Selected.Result,
market:ComboBoxl0_l.Selected.Result,
plant:ComboBox5_l.Selected.Result
}
)
- see comments - should that be .Text?
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @WarrenBelz ,
Patch('[MadCap_DWH].[USER_ACCESS_INFO]', // This is my DataBase Name //
Defaults('[MadCap_DWH].[USER_ACCESS_INFO]'),
emaillD:emailID_DataCard3_l.Update, // This is normol Text Fields
isActive:isActive_DataCardl_l.Update,
roleName,
Zone,
Market,
Plant
This all are comboBox
This all fields are coming from diferent Table and saving into [MadCap_DWH].[USER_ACCESS_INFO] This Table
Thanks for your
Hi @Anonymous ,
Text fields should be
emaillD:emailID_DataCard3_l.Text
isActive:isActive_DataCardl_l.Text
I cannot see your data or screen control types
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @WarrenBelz ,
I don't know what happing at the backend ,
it's possible to share my screen if you are free,
it's very urgent for me , if you help for me , as I am new to this technology ,
Hi @Anonymous ,
Could you tell me the control name of emaillD and isActive?
emailID_DataCard3_l is a datacard name.
You need to use controlname.Text to represent the data in the textinput.
Try this:
Patch(
'[MadCap_DWH].[USER_ACCESS_INFO]',
Defaults('[MadCap_DWH].[USER_ACCESS_INFO]' ),
{
emaillD:emailID_textinput.Text,
isActive:isActive_textinput.Text,
roleName:ComboBox3_l.Selected.roleName,
zone:ComboBox9_l.Selected.Result,
market:ComboBoxl0_l.Selected.Result,
plant:ComboBox5_l.Selected.Result
}
)
Please replace emailID_textinput and isActive_textinput with their textinputs' Name.
If the problem still exists, please tell me the controls' name and the combo boxes' Items mentioned in your formula.
Best regards,
User | Count |
---|---|
256 | |
107 | |
90 | |
51 | |
44 |