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 Apps
Unanswered

Circular reference

(0) ShareShare
ReportReport
Posted on by 37

Hello, I have a problem here

 

 

If(IsEmpty(Filter(colBasket,Quantity= Quantity_input.Text))," ",LookUp(colBasket,Quantity = Quantity_input.Text).Quantity)

 

 

The problem is that is a Circular reference Between Properties. Quantity input is an input textbox and the field text Quantity is from my collection.

The idea is that I need to store every input that is added in my collection and than to show it.

Thank you!

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @boarder ,

     

    Please try:

    1\Set Quantity_input's OnChange property to:

    Set(
     defaultValue,
     If(
     IsEmpty(Filter(colBasket,Quantity= Quantity_input.Text)),
     " ",
     LookUp(colBasket,Quantity = Quantity_input.Text).Quantity
     )
    );
    Reset(Self)

    2\Set Quantity_input's Default property to:

    defaultValue

     

    Best Regards,

    Bof

  • boarder Profile Picture
    37 on at

    Not working, every time I pressed something else it resets my input

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @boarder ,

     

    The function of the solution I provided is to solve the error of the 'Circular reference' you mentioned based on the formula you provided. If you can provide a detailed description of your requirements, we could continue to optimize this solution.

     

    Best Regards,
    Bof

     

  • boarder Profile Picture
    37 on at

    Well, I have this scenario: I have a that Quantity input that will store my quantity of a product. After I set it up, I make a collection by pressing a button. (add to basket-  that stores the name, value and quantity) After that I have a view basket area (in the same screen) that allows me to change the quantity if needed. I want to see the changes also in my main order menu 
    Now: In my menu order I added 12 pieces of gum. I pressed Add and that my collection is made with 12 pieces of gum. I go to my basket and change it to 8 pieces of gum. I go to order menu back and I still see 12 (even if in my collection there are 8 pieces)
    Expected: In my menu order I added 12 pieces of gum. I pressed Add and that my collection is made with 12 pieces of gum. I go to my basket and change it to 8 pieces of gum. I go to order menu back and I will have 8 pieces of gum

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @boarder ,

     

    What is the texinput's Default property before?

     

    Best Regards.

    Bof

  • boarder Profile Picture
    37 on at

    The default property before is " ".

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @boarder ,

     

    If you want it to display the value of a field in a record, you need to set it to:

     

    TheSpecificRecord.Quantity

     

    Best Regards,
    Bof

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard