Hi,
I have a gallery showing my submitted items in my canvas app. I added an icon which would only be visible if the the status was completed.
When clicked the OnSelect has the required values for the Flow to run to generate a PDF of the data.
The issue I have is on the gallery screen the record has not loaded for the PDF to generate any data, how do I overcome this please?
Thanks
Solved! Go to Solution.
Hi @Lefty :
You could check the length of the HTML Text, suppose the fixed HTML text length is 100, then you can consider the length less than or equal to 100 to be empty, and greater than 100 to be non-empty.
Best Regards,
Bof
I probably did not explain myself.
On my gallery screen I can select previously submitted items. The data in the item is loaded when the user clicks an item in the gallery. The data is then captured in a HTMLText property which the flow uses to convert the data into PDF.
I wanted to have a button in the gallery next to each item, where the user can click it to generate a PDF, but the issue I believe is the data has not loaded so the flow cannot obtain values from the HTML, thus in turn cannot run. I guess what I am asking is, is there a way I can have a button on the gallery screen, or do I ultimately have to have the data loaded and put this button say on the final screen of my app, or at least after a user selects the item from the gallery and then on the next screen they have the button to generate the PDF? This is the simpler option and I have this working. I wanted to know if at all it is possible to have this button on the gallery screen or not?
Thanks
Hi @Lefty ,
I think you could check if the value is empty or check the length of the HTML text before you run the flow.
For example, if there is no HTML value then disable the button:
you could set the button's DisplayMode property to:
If(IsBlank(TheHTMLText),DisplayMode.Disabled,DisplayMode.Edit)
Best Regards,
Bof
Thanks but this doesn't work either as my HTML box is not empty, as it has titles of the fields at all times
Hi @Lefty :
You could check the length of the HTML Text, suppose the fixed HTML text length is 100, then you can consider the length less than or equal to 100 to be empty, and greater than 100 to be non-empty.
Best Regards,
Bof
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
181 | |
52 | |
41 | |
39 | |
33 |
User | Count |
---|---|
262 | |
81 | |
71 | |
69 | |
66 |