cancel
Showing results for 
Search instead for 
Did you mean: 

Parent & Me - please add reference to the control itself.

We can reference control to a parent (Like Parent.Width, .Height, .Fill, etc.). For the controls however we have to reference it by it's name. So when I have a control name 'Label1' I can reference it bij Label1.Width, .Height, . Color, .Fill, etc.

 

It should be a great idea to add a global reference to the control itself. Me comes in mind as a good name for this parameter. So Me.Width, .Height, .Fill, etc.

 

This parameter would make it faster to copy formula's from control to control or add a formula to multiple selected controls. An example:

 

Say I have ten controls (Control1,2,3,4,5,...) and I want them to be at the left off my screen. I can then select them all and just do  the following formula on the X parameter: 

Parent.Width - Me.Width

 

Current I must adjust the formula for each control like:

Parent.Width - Control1.Width // for the first control
Parent.Width - Control2.Width // for the second control
Parent.Width - Control3.Width // for the third control
// and so on

This is time consuming because I have to copy/paste/adjust for each individual control.

So I would make a major time reduction to be able to do all ten controls in the same time.

 

Status: Under Review
Comments
Level: Powered On

It would be great for using the configured forms again

Regards,

MarcelLee

Level 8

Totally agree with this.  For reference, note that this appears the same as the followed two ideas:

 

 

Ability to reference items in a control using "Self"

 

Self reference named operator for controls

 

In addition to saving time, having a "Me" or "Self" also reduces errors.  Today if you copy a control, without having a "Me", "Self", "ThisControl", etc reference and having to reference the original control direclty by name, the copied control in many cases (such as code blocks) would still reference the ORIGINAL control not the new copy (even if PowerApps might otherwise "fix up" some of the references, this probably wouldn't affect code blocks).  So having Me/Self/ThisControl type of reference would help to eliminate these types of errors too.


 

Level: Power Up

+1  I think this is essencial in this 'object orentied' way of referencing things. 

 

e.g. in JS you have the 

this

class reference

Administrator

Thanks so much for this feedback. Adding @GregLi to comment on roadmap opportunities.

 

Thank you,

Audrie

Administrator
Status changed to: Under Review
 
Level 10

@Audrie-MSFT

 

Great to here this is under review. Hope this will be added so on to PowerApps. 

 

Greatings Paul

Level: Powered On

That will save alot of time ,great idea indeed

Level 10

@Audrie-MSFT

 

He Audrie, hopes this comes soon to PowerApps. Today it took me four hours to change references which will take me only 5 seconds when this feature comes available.

 

Any insights on when this will be brought to PowerApps? Are we talking weeks or months?

 

Thanks in advance for the reply.

 

Paul

 

 

Labels