cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
knsrinath
Helper IV
Helper IV

Is it possible Lookup, Patch, Gallery in Component

Hi

 

Request you suggest for following...........

 

How to get ComboBox Items from SharePoint List in a Component.

How to use Lookup, Gallery and Patch in Component.

 

Thanks & Regards

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @knsrinath,

I did a simple demo for you.

1\ Create a component and create a custom property.

vqiaqimsft_0-1626933134411.png

2\ This is my list 'LIST145'.

vqiaqimsft_1-1626933134413.png

3\ Set the custom property of component to:

Table({Title:"A"})

vqiaqimsft_2-1626933134415.png

4\ Add a combo box control and set its Items property to:

Component1.Test

vqiaqimsft_3-1626933134418.png

5\ Add this component to screen and set the Test property of the component to:

LIST145

vqiaqimsft_4-1626933134422.png

6\ The result is as follows:

vqiaqimsft_5-1626933134425.png

If you want to use the patch function in the component to operate on the data source, unfortunately this is a limitation so far.

But there is a work around that can achieve a similar effect.

You could create a Timer control in the screen.

I did another demo for you.

1\ Create a component and create a custom property.

vqiaqimsft_6-1626933134428.png

2\ Add a button control and set its onseelct property to:

Set(Var,true)

vqiaqimsft_7-1626933134431.png

3\ Set the 'Test2' property to:

Var

vqiaqimsft_8-1626933134432.png

4\ Set the OnReset property to :

Set(Var,false)

vqiaqimsft_9-1626933134434.png

5\ Add a Timer control into screen and set its OnTimerEnd property to:

If(Component1_1.Test2=true,Patch(LIST145,Defaults(LIST145),{Title:"Test22"}));Reset(Component1_1)

vqiaqimsft_10-1626933134438.png

Set other properties:

vqiaqimsft_11-1626933134441.png

// The value of the duration property cannot be too small.

Best Regards,
Qi

View solution in original post

2 REPLIES 2
StalinPonnusamy
Super User
Super User

Yes, That's possible. You can use languages like TypeScript, React...

 

Please review the existing PCF components that our community members created and are available to use. https://pcf.gallery/

Filter it for PowerApps

v-qiaqi-msft
Community Support
Community Support

Hi @knsrinath,

I did a simple demo for you.

1\ Create a component and create a custom property.

vqiaqimsft_0-1626933134411.png

2\ This is my list 'LIST145'.

vqiaqimsft_1-1626933134413.png

3\ Set the custom property of component to:

Table({Title:"A"})

vqiaqimsft_2-1626933134415.png

4\ Add a combo box control and set its Items property to:

Component1.Test

vqiaqimsft_3-1626933134418.png

5\ Add this component to screen and set the Test property of the component to:

LIST145

vqiaqimsft_4-1626933134422.png

6\ The result is as follows:

vqiaqimsft_5-1626933134425.png

If you want to use the patch function in the component to operate on the data source, unfortunately this is a limitation so far.

But there is a work around that can achieve a similar effect.

You could create a Timer control in the screen.

I did another demo for you.

1\ Create a component and create a custom property.

vqiaqimsft_6-1626933134428.png

2\ Add a button control and set its onseelct property to:

Set(Var,true)

vqiaqimsft_7-1626933134431.png

3\ Set the 'Test2' property to:

Var

vqiaqimsft_8-1626933134432.png

4\ Set the OnReset property to :

Set(Var,false)

vqiaqimsft_9-1626933134434.png

5\ Add a Timer control into screen and set its OnTimerEnd property to:

If(Component1_1.Test2=true,Patch(LIST145,Defaults(LIST145),{Title:"Test22"}));Reset(Component1_1)

vqiaqimsft_10-1626933134438.png

Set other properties:

vqiaqimsft_11-1626933134441.png

// The value of the duration property cannot be too small.

Best Regards,
Qi

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,471)