Patch error trying to update a sql table

  • Patch error trying to update a sql table

    Posted by Unknown Member on July 9, 2022 at 3:39 pm
    • Asha Richardson

      Member

      July 9, 2022 at 3:39 PM

      I feel like I’m trying to do a simple patch statement to update aĀ  sql table from a gallery, but I’m getting an error.Ā  I think it’s with the dropdown.selectedtext.

      There are 2 dropdown boxes:Ā  Categories and JobStatus.Ā  Can someone help me with this patch statement:

      Ā 

      Patch(
      YT_Work,
      ThisItem,
      {Category: Categories.SelectedText,Ā  //error here (I think)
      {Title: TextInput2.Text},
      {Chased: DatePicker1.SelectedDate},
      {Amount: Value(TextInput1.Text)},
      {LikelyStartDate: DatePicker2.SelectedDate},
      {AmountLeft: Value(TextInput3.Text)},
      {JobStatus: JobStatus.SelectedText}Ā  //error here (I think)
      )

      I’ve tried this one too and I got the error message:Ā  Invalid arguments:

      Patch(
      YT_Work,
      LookUp(YT_Work, ID=ThisItem.ID),
      {Category: Categories.SelectedText,
      {Title: TextInput2.Text},
      {Chased: DatePicker1.SelectedDate},
      {Amount: Value(TextInput1.Text)},
      {LikelyStartDate: DatePicker2.SelectedDate},
      {AmountLeft: Value(TextInput3.Text)},
      {JobStatus: JobStatus.SelectedText}
      )

      Let me know if you would me to post a picture of something.

      Thank you for your help!

      ——————————
      Asha Richardson
      DBA
      Little Rock AR
      ——————————

    • Shailendra Turlapati

      Member

      July 9, 2022 at 11:29 PM

      the syntax should be

      Category: Categories.Selected.ValueĀ 

      Check if you bind the drop down to a list or its just values.Ā  You can know once you type “Categories.Selected. “

      Same is the case with other dropdown

      ——————————
      Shailendra Turlapati
      ——————————
      ——————————————-

    • Warren Belz

      Member

      July 11, 2022 at 2:44 AM

      Hi ,
      I think I answered this one for you on this post
      ?

      ——————————
      Warren Belz
      Queensland Australia
      ——————————
      ——————————————-

    Unknown Member replied 3 years, 9 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Patch error trying to update a sql table’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!