Showing results for 
Search instead for 
Did you mean: 

Ability to reference items in a control using "Self"

This is basically the same idea as in Self reference named operator for controls idea, and even though I commented on it as well, I thought it might be useful to create a new one to have it "bubble to the top" since the prior one was marked as Completed - which in my opinion it was not.  


So as in the prior idea, the request here is to have a Self (or ThisControl, or whatever it may be called) operator that would allow one to access members of the SAME control without having to refer to it directly by name. 


This would be very similar to the Parent operator or even ThisItem and would both save time and prevent errors when copying and pasting similar controls (especially when creating "composite" controls by grouping others).  


When one copies and pastes controls that reference another property within the same control, one then has to go back and manually ensure that all references are modified to be that of the new control (yes PowerApps in some cases will rename on copy and paste - but this often/usually does not work in the code blocks).  


Please see the link above for the prior idea for more information.


Note, this would be a BIG productivity boost for me.

Note that as I am unaware if there is another way to flag that an idea that was marked as completed did not appear to meet what the idea asked for I have created a new one.  If this is not the appropriate way, please let us know how otherwise to flag this (perhaps just commenting is enough?).  


Status: Completed
Not applicable

FYI - now that we have the new enhanced group control - we ALMOST have the ability to make somewhat true custom controls (at least close).


The things missing now are the Self/ThisControl in this "idea" as well as custom properties and being able to "lock" properties (these two will be tracked in a separate idea).


Adding "Self" / "ThisControl" would make this much easier to maintain these "custom controls"



Power Apps
Power Apps
Status changed to: Under Review

This is a great idea. Flagging @GregLi to review.

Power Apps
Power Apps

Also, @Anonymous, we are doing work on the concept of custom/reusable controls, stay tuned for more here in the next few months beyond just this idea.

Not applicable

Thanks!  Great to hear.  I have some further ideas on custom controls as well and will document a few others as separate ideas when I have time.

Frequent Visitor

This is badly needed.  I'm currently setting up a BUNCH of labels where the color is based on the Text content.  It should be as simple as pasting "If(this.Text="No", Red, Black)" into the Color property but it's not.

Advocate IV

Yes, this is a must-have. As most other things .. hope to see it near 2021 😄


Advocate II

Already commented on the original 'completed' post mentioned, but gonna do it again here for good measure. 


This operator would be incredibly useful.

Regular Visitor

This is so useful I really need it now. Since I don't have it I'll keep manually modifying 75 controls each time I decide to make a minor change to my layout or color scheme Smiley Tongue

Not applicable

Any status on this?  Having this would be a MAJOR boon to code reuse, reliability, reducing errors, and getting rid of one of the frustrations with creating applications with PowerApps.

Regular Visitor

I'm building a bingo game where I badly need to self-reference labels and checkboxes for the player board and bingo cards. Every change I make to these requires 75 or more manual updates to my controls. it's getting absurd.