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 / Cache problem in docum...
Power Apps
Answered

Cache problem in document library customized powerapps form

(0) ShareShare
ReportReport
Posted on by 6

I have used the below formule to fetch automatically data from a sharepoint list when user seraches a text.

With({wordMatch:If(!IsBlank(Self.Text),LookUp(LargeListAPMI,StartsWith(Title,Self.Text)).Title)},UpdateContext({varThematch:If(!IsBlank(wordMatch),wordMatch,Self.Text),varThematchname:LookUp(LargeListAPMI,Title=wordMatch).field_2}));

Below code in Text default property:

If(!IsBlank(varThematch),varThematch,Parent.Default)

 

Above code works fine. However when i edit properties for an item in document library and save. Item gets saved sucessfully with new values However when i try to edit properties of another item, The tet box shows the previous id value in the text box. How to remove the cached value.

 

If(
!IsBlank(DataCardValue3.Text),
With(
{
wordResult:
Concat(
Distinct(
Filter(
LargeListAPMI,
StartsWith(
Title,
DataCardValue3.Text
)
),
Title
),
Value & "; "
)
},
Left(
wordResult,
Len(wordResult) - 2
)
)
)

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,962 Most Valuable Professional on at

    Hi @santoshPrasanna ,

    You can probably save a bit of code here

    UpdateContext(
     {
     varThematch:
     Coalesce(
     LookUp(
     LargeListAPMI,
     StartsWith(
     Title,
     Self.Text
     )
     ).Title,
     Self.Text
     ),
     varThematchname:
     LookUp(
     LargeListAPMI,
     Title = wordMatch
     ).field_2
     }
    )

    then

    Coalesce(
     varThematch,
     Parent.Default
    )

    and 

    If(
     !IsBlank(DataCardValue3.Text),
     Concat(
     Distinct(
     Filter(
     LargeListAPMI,
     StartsWith(
     Title,
     DataCardValue3.Text
     )
     ),
     Title
     ),
     Value, 
     "; "
     )
    )

    but your code issue is the second code above - you need to clear the Variable

    UpdateContext({varThematch: Blank()})

    if you do not want to see it in another record.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard