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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (2,991)