cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

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
Highlighted
Super User III
Super User III

Re: How to Save the farm in Database

Ok @MamathaReddy694 ,

 

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
Highlighted
Super User III
Super User III

Re: How to Save the farm in Database

Hi @MamathaReddy694 ,

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.

Highlighted
Helper II
Helper II

Re: How to Save the farm in Database

Hi,

 

Can you give the formula for patch ,

That could be great for me ,

 

Thanks 

Highlighted
Super User III
Super User III

Re: How to Save the farm in Database

OK @MamathaReddy694 ,

Reference is here.

Happy to assist if you strike problems.

Highlighted
Helper II
Helper II

Re: How to Save the farm in Database

Hi @WarrenBelz ,

 

 sry to say this I have stuck in formula 

I have attached the file which farumala I am using

Highlighted
Super User III
Super User III

Re: How to Save the farm in Database

Ok @MamathaReddy694 ,

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.

Highlighted
Helper II
Helper II

Re: How to Save the farm in Database

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

Highlighted
Super User III
Super User III

Re: How to Save the farm in Database

Hi @MamathaReddy694 ,

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.

Highlighted
Helper II
Helper II

Re: How to Save the farm in Database

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 ,

Highlighted
Community Support
Community Support

Re: How to Save the farm in Database

Hi @MamathaReddy694 ,

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
Community Conference

Power Platform Community Conference

Come join us today! Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,467)