web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Create Collection and ...
Power Apps
Answered

Create Collection and append move values created by a timer

(0) ShareShare
ReportReport
Posted on by 261

Hello

I have a timer who is running and changing the X-Value to slide a menu box.

Now I want to get the x values at the move and import them in a collection at the move time.

I tried to use a TextInput2-Property: onChange:

 

Collect(colVariableX,{FullName: TextInput1.Text});
 
but its not working. After run, collection without values is created.
The TextInput1 is showing under Default:
LabelGreenBlock.X
 
The workflow behind is:
(1) The TextInput shows the values at runtime so changed always the input of the default.
(2) I collect all the values in a collection.
(3) I show the values in a table
 
The idea is, to get all values of the changing X variable of the timer (movement by each step).
 
I hope I could explain it in an easy way 😉
 
Cheers
Michael
 
Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @MD2024 ,

     

    Could you please share more details about your scenario? What are the properties of all the controls you mentioned?

    1. Timer: OnTimerEnd

    2. Text Input1: OnChange

    3. Text Input2: Default

    4. LabelGreenBlock: X

     

    Best regards,

  • MD2024 Profile Picture
    261 on at

    Hello 

    The follwoing details:

    LabelGreenBox

    PROPERTY: X

     

    If(docDirection = "Out" && slideTimer,
    50 - LabelGreenBlock.Width + (LabelGreenBlock.Width * Timer2.Value / Timer2.Duration),
    If(docDirection = "In" && slideTimer,
    50 - (LabelGreenBlock.Width * Timer2.Value / Timer2.Duration),
    If(docDirection = "Out" && !slideTimer,
    50,
    50 - LabelGreenBlock.Width
    )
    )
    )
     
    TextInput1
    PROPERTY: Default
    LabelGreenBlock.X
     
    If I push the button to start the move, I will get changing position-numbers about the X status in the TextInput1.
    I like now to get all position-numbers in a collection to create based on that collection a Data-Table.
    I tried to use the TextInput1 PROPERTY:onChange to fill a collection, but the trigger of onChange can't use the numbers, it works only if you click in that TextInput field.
    If I used a button and trigger him with Select(Button) it only shows one number, because only onetime triggerd.
    I will try now User Defined Functions to get that values by looping through that TextInput1.Default: LabelGreenBlock.X
    Not sure if I could use a FOREACH in PowerApps maybe only possible of using function ForAll()???
    Any ideas most appreciated 😉
    Cheers 
    Michael
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @MD2024 ,

     

    I found that OnChange of these controls won't be triggered by automatic actions. I'm afraid there is no way to achieve your goal...

     

    Best regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard