cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to Save the farm in Database

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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. 

View solution in original post

16 REPLIES 16
WarrenBelz
Super User
Super User

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.

Anonymous
Not applicable

Hi,

 

Can you give the formula for patch ,

That could be great for me ,

 

Thanks 

OK @Anonymous ,

Reference is here.

Happy to assist if you strike problems.

Anonymous
Not applicable

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.

Anonymous
Not applicable

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.

Anonymous
Not applicable

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, 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (1,882)