Creating a Custom Purchase Order App in Power Apps

Поделиться
HTML-код
  • Опубликовано: 2 авг 2024
  • This came from a question from one of you! And that was how to write multiple lines in Power Apps into 1 row into a data source. Our data source in this video was SharePoint because that is freely/easily available to me... But we wrote that one order into a multi-line text field as a HTML table.
    Thank you for the questions!
    We've successfully generated a purchase order using Power Apps, streamlining a procurement process with its user-friendly and efficient design. This technology empowers us to manage purchases more effectively and maintain better control over our expenditures.
    Previous Videos that may be helpful:
    Writing Gallery as HTML: • Convert a Gallery into...
    Write Multiple Lines at one time: • Beginner Tutorial: How...
    My name is Andrew Hess, please like & subscribe!
    OnVisible:
    ClearCollect(colItemOrder,{Item:"zshowbuttonvisible",Description:"",Quantity:0,Price:0})
    OnSelect of Save Button:
    Clear(colMyGallery);
    ForAll(
    Gallery1.AllItems,
    Collect(
    colMyGallery,
    {
    Item: TextInputCanvas2.Value,
    Description: TextInputCanvas2_1.Value,
    Quantity: TextInputCanvas2_2.Value,
    Price: TextInputCanvas2_3.Value
    }
    )
    );
    Remove(
    colMyGallery,
    Last(colMyGallery)
    );
    Patch(
    Order,
    {
    ContactPerson: TextInputCanvas1.Value,
    Address: TextInputCanvas1_1.Value,
    Items: "RUclips will not let me put HTML Here"
    DeliveryDate:DatePickerCanvas1.SelectedDate
    }
    )
    0:00 Introduction
    1:48 The Setup
    2:50 Setting up collection colItemOrder OnVisible
    5:08 Creating a button in the last row of Gallery
    7:00 Changing to zshowbuttonvisible
    10:20 The SharePoint List - 4 columns
    11:11 Recollecting our Gallery
    12:25 Creating an HTML Table
    15:48 Adding the HTML Table to our Patch
    16:30 Demonstration
  • НаукаНаука

Комментарии • 26

  • @andrewhess123
    @andrewhess123  9 месяцев назад

    You may be able to notice in the video, I made a small mistake with the description column, but I kinda skipped over the issue! 😀 But I did recognize it.

  • @franciscobastos893
    @franciscobastos893 8 месяцев назад +4

    Jesus, man! You really made the video! Have all my gratitude for that. Tonight will be long with this content. Thanks again!

  • @khyatipatni
    @khyatipatni 5 месяцев назад

    Hi Andrew, your videos have been very helpful for me to learn create an app. I am trying to create an input form for purchase order and save the data to SharePoint. I um unable to share a screenshot but basically the master details for a PO would have PO number, vendor name, approver, etc. The details part is where I add new lines via a button for Qty, unit price, Amount and would like to save each line to SharePoint in a separate row and copy same master data for each row. Would you be able to make a video to show how to do this? Thanks!

  • @marcusplima
    @marcusplima Месяц назад +1

    Hi Andrew, could you please share how to configure SharePoint View to show the html code as a table? In my list view the code is being showed as a text, despite of using rich text or not. Thanks!

    • @andrewhess123
      @andrewhess123  Месяц назад

      Hi Marcus, I have run into this issue before, I would just try again. For some reason the rich text doesn't stick? Normally I just choose a multi-line text and turn rich enhanced text on in SharePoint.

  • @noraf4946
    @noraf4946 5 месяцев назад +1

    Hi Andrew, This was very educational and really helped me alot thank you, the solution works perfect, but i have one request if possible, how can i retrieve the HTML formated table that we stored in the SharePoint column, for viewing and editing purposes. Thank you, this takes my power apps knowledge to next level

    • @andrewhess123
      @andrewhess123  5 месяцев назад +1

      Hi Nora, it depends on how you want to use the data. If you just want to edit/view it, you can edit it in the SharePoint multi-line text field.
      If you want to retrieve the HTML formatted table and edit it in Power Apps, this solution may not be the right choice, instead using a completely separate SharePoint list for the Items column may be a better choice.
      You just need to have a way to connect the 2 SharePoint lists most likely using a primary key of some sort (ID).

  • @aspirethrissur4016
    @aspirethrissur4016 8 месяцев назад +1

    Thank You for the multi line items entry screen idea. In case, if we want to retrieve and edit the saved line items, I think we have to make use of 'Split' and bind it to the individual text box inputs, right? Also, it would be nice if we can avoid the 'Add New Line' button and always present a blank row at the bottom of the grid ready for the input. Thank You so much.

    • @andrewhess123
      @andrewhess123  8 месяцев назад +1

      These are great questions and great points, most likely yes you would have to split the html back up. I'm not sure exactly how I would do the Edit part. Maybe the best way to Edit is to not edit, and require a recreation of the entire order, and have a "Canceled" button on the line item that was a mistake or needed editing. A few options there too.
      For the blank row that sounds totally possible, to always have a blank row at the end.
      But for the blank row, when would it create the blank row, would you hit a submit button on the row? Would it do it on the OnChange property? A few questions there.

    • @noraf4946
      @noraf4946 5 месяцев назад

      have you found a solution for your question, i'm also looking the same

  • @kwebbjr
    @kwebbjr 6 месяцев назад

    Can you create a power app that links the purchase order app to the inventory management app?

  • @GuilhermeDSa
    @GuilhermeDSa 9 месяцев назад +1

    Hi, this video helped me so much, thanks. I have an other problem, I have to search in a gallery, but just the collums that I mark in n group of check boxes. Like a gallery of food, and I have 3 check boxes, name, colour and taste, and one text input, and if I marked name, colour, I can search for name or colour. Its hard to set these check boxes in the Search formula. Please, if u could help me, I would be grateful.

    • @andrewhess123
      @andrewhess123  9 месяцев назад +1

      Hi Guilherme, it could be possible, for your filters in your gallery you would use a variable and the checkboxes whether true or false would then change the variable in your Gallery Filter.
      This is how you would do it, hard to explain in text, a video could be possible.

  • @RonnieMorgan2011
    @RonnieMorgan2011 7 месяцев назад

    Hi Andrew! Great video. Please help me. Im trying to re-create so I can learn. I am stuck at the ColItemOrder part. When you referenced the part to the OnVisible of the screen how are referencing each field/textbox in your gallery with the controls? I'm having trouble and keep getting errors :(

    • @RonnieMorgan2011
      @RonnieMorgan2011 7 месяцев назад

      To note here is a picture of how I named my text boxes txtItemInput1, txtInvInput1 (this is a choice in my sharepoint list etc. Any ideas on what I might be doing wrong? Thank you for any help you can provide.

    • @andrewhess123
      @andrewhess123  7 месяцев назад

      Hi Ronnie, so the colItemOrder part that is just a trick that I do, I create a row and the first column I just populate it with something... in this case I populated it with "showbuttonvisible". The only reason I'm doing this is to create the button Add New Line Item there, you don't even need to do it this way. It was just a trick. Try skipping that part and not doing that button there for the " Add New Line" in the gallery. The fields are referenced later on. In the collection for colMyGallery.@@RonnieMorgan2011

    • @andrewhess123
      @andrewhess123  7 месяцев назад

      Hope this helps, would love to help but sometimes difficult through youtube chat 😋@@RonnieMorgan2011

    • @RonnieMorgan2011
      @RonnieMorgan2011 7 месяцев назад

      No worries thank you so much for your help & quick responses. I can provide my email if you like. I think somehow I figured it out (not sure how). Now my modern text boxes don't want to cooperate :(
      Clear(ColItemOrder);
      ForAll(Gallery3.AllItems,Collect(ColItemOrder,{Item:drpItemInput1Mod.Selected.Value,InventoryType:drpInvTypeMod.Selected.Value,Quantity: txtQtyInput.Value,Price:txtPriceInput.Value}))
      Keep in mind I have used modern instead of classic on the text input boxes ...is that an issue possibly? I getting the red lines.
      @@andrewhess123

  • @basehumax
    @basehumax 8 месяцев назад +1

    Thanks, is there a way to show us a to print the order in html Invoice style?

    • @andrewhess123
      @andrewhess123  8 месяцев назад +1

      I'll keep that in mind. But you would just create a new screen with a print button and put the html table on there with all the labels, then just make it look pretty.
      Or you could create a Power Automate with a Word Template and then print. This would most likely require a premium Power Automate license.

    • @basehumax
      @basehumax 8 месяцев назад

      @@andrewhess123 I did try but not success please keep in mind Thanks

  • @savioalves4504
    @savioalves4504 6 месяцев назад +1

    How can i create a table column like in yout sharepoint list?

    • @andrewhess123
      @andrewhess123  6 месяцев назад

      Hi Savio, It's a multi-line text field with Rich-text On

    • @louisbourgseafoods2552
      @louisbourgseafoods2552 5 месяцев назад

      can you edit it on SharePoint or it has to be done in PowerApps. For example you put the wrong amount and notice it later after you saved it.@@andrewhess123

    • @BMTinSoCal
      @BMTinSoCal Месяц назад

      @@andrewhess123hello. Similar question. Do you have a video showing how you created the text boxes from the beginning?