cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
trannguyen0410
Regular Visitor

Display gallery in component in published app

Hi all,

when i am create a component with a gallery, items of this gallery is input table

trannguyen0410_0-1629263648352.png

On Start App, i am create the collection with list records

trannguyen0410_1-1629263718581.png

everything is fine when i am run on start an pass this collection in input of component in studio, it show all record

trannguyen0410_2-1629263804782.png

But when i am publish app and run, the gallery don not show any data,

trannguyen0410_3-1629263996345.png

 

I was tried in another environment but it is the same, when i try in another organization, it is fine,

Please help me for this issue,

Thank you

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @trannguyen0410 ,

 

I did a test for you.

1\ Set onstart property to:

ClearCollect(_RequestPriority,{index:-99,Title:"All"},{index:0,Title:"Urgent"},{index:1,Title:"Normal"})

 

2\ Create a component and add a table input property.

vxiaochenmsft_0-1629270609085.png

 

Set this property 'CustomProperty1' to:

Table({index:-99,Title:"All"},{index:0,Title:"Urgent"},{index:1,Title:"Normal"})

vxiaochenmsft_1-1629270648376.png

 

Insert a gallery into this component and set its Items to:

Component1.CustomProperty1

 

Add this component into screen2 and set its CustomProperty1 property to:

_RequestPriority

vxiaochenmsft_2-1629270712764.png

 

Save ,publish and play it.

vxiaochenmsft_3-1629270743977.png

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

 

 

 

 

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @trannguyen0410 ,

 

I did a test for you.

1\ Set onstart property to:

ClearCollect(_RequestPriority,{index:-99,Title:"All"},{index:0,Title:"Urgent"},{index:1,Title:"Normal"})

 

2\ Create a component and add a table input property.

vxiaochenmsft_0-1629270609085.png

 

Set this property 'CustomProperty1' to:

Table({index:-99,Title:"All"},{index:0,Title:"Urgent"},{index:1,Title:"Normal"})

vxiaochenmsft_1-1629270648376.png

 

Insert a gallery into this component and set its Items to:

Component1.CustomProperty1

 

Add this component into screen2 and set its CustomProperty1 property to:

_RequestPriority

vxiaochenmsft_2-1629270712764.png

 

Save ,publish and play it.

vxiaochenmsft_3-1629270743977.png

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

 

 

 

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,369)