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
Community Champion
Community Champion

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

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 (3,047)