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 / Label Value not Refres...
Power Apps
Answered

Label Value not Refreshing Currently

(0) ShareShare
ReportReport
Posted on by 1,059

Hi,

 

I have a Bar Code Scanner Application, in which user scans a code and it's patched into the List.

and it shows the Scanned Codes in the Data Table and the Count of Codes Scanned in a Label

The issue is when two different users opens the same app and scans the codes simultaneously, the Label Value is not refresh at the same time, if the any of the user scans a code, although I am using Refresh(DataSource) after the Patch (onScan).

Actually, the changes are not reflected at that moment, user have to restart the application.  is there any help for solving this issue?

For Label: 

CountRows(MyBarCodeList) //Showing some delegation error any fix for this? 


 

Categories:
  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @MH3 ,

    Hope the below approach helps you to resolve your issue.

    You can eliminate the Delegation Error Like Below (Workarrounf as per my understanding).

    ClearCollect(CountBarCodeRows,MyBarCodeList);
    CountRows(CountBarCodeRows);

    Another thing is you can Add the Navigation the same Screen like Navigate(ScreenName, None);
    and set the Code for refresh data and other operations in Screen OnVisible Properties.
    even you can set the variable after the patch for evaluating the condition.

    Thanks,
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • MH3 Profile Picture
    1,059 on at

    Hi @VijayTailor ,

     

    Thanks for the Fast Reply,

    Do, I have to enter this code in App onStart? and if the two users simultaneously, scans do the collection updates at that time, after the refresh code?

    My Code:

    If(IsEmpty(Filter(Barcodes, Right(BarcodeScanner1.Value,8)=Right(SerialCode,8))), 
    
     Patch(Barcodes,
     
     Defaults(Barcodes),
    
     {SerialCode:Right(BarcodeScanner1.Value,8),
     Title:Right(BarcodeScanner1.Value,8),
     UserName:MyUser,
     When:Now() 
     }
    ),Set(_Duplicate,true)) ;
    
    Refresh(Barcodes);
    

     

  • Verified answer
    Vijay Tailor Profile Picture
    2,961 on at

    Hi @MH3 ,

    Not on AppStart but you can use your code in Screen - "OnVisiable" Properties.

    and instead of Refresh you can navigate to the same screen and get the data in Invisible property.

    For reference - 

    VijayTailor_0-1601364566745.png

     

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard