Hello everyone!
I will try my best to summarize what my problems are.
Problem One:
I have created a new screen to let the users add attachments when they want to create a new LineItem.
In this page i have a gallery which will show only the filename of the image added from their phones.
In the AddMediaButton1 i want to Create files in SP library, which will contain the FileName and i want to include the path of the uploaded image so when they click on the name it will redirect them to the image url located in SP library.
I have tried on AddMediaButton1 this function OnSelect but it didn't work:
Set(varSharePointFile, 'Expenses Bills Images'.CreateFile("test", AddMediaButton1.FileName, AddMediaButton1.Media));
Collect(varReceipt, {FN: AddMediaButton1.FileName, FL: "myurlsite" & varSharePointFile.Path, FID: varSharePointFile.Id})
I have used for title in the gallery OnSelect: Launch(FL) but it also didn't work because of AddMediaButton1.
Now, on “save” it should add the images to the SP library FileName, create new link, of current id of the item in the list.
So i didn't know how to continue this function to add the link of the image of the current item.
Set(SelectedReport,LookUp(Expenses,ID=SelectedReport.ID))
Problem Two:
I have another screen called EditLineItem where the user can edit the item and check for the uploaded photos added on creation.
So in this page i want to display in the gallery the related image of the related item id.
I have tried to set the Items’ property of the gallery to:
First(Filter(LineItems,ID=SelectedLineItem.ID))
But what would be all the function to display images that was saved on creation and redirect them to the image url.
Is it possible to solve this issue ? Can someone please explain, in details, and provide examples ?
Thank you!