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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Table variable values ...
Power Apps
Unanswered

Table variable values clear when navigating between screens in edit mode

(0) ShareShare
ReportReport
Posted on by

We’ve built wizard-style form which has multiple screens with Next and Back buttons. We are storing a Table Variable for one of the screens that is populated with values when checkboxes in a gallery are ticked. We use the OnCheck property to populate the variable.

Checkbox code for OnCheck property:

Set(Ljm, ShowColumns(Filter(GalleryLjms.AllItems, DataCardCheckboxLjms.Value),Value));

 

Then when the user navigated back to the screen using the wizard, we populate the set checkbox control based the table variable using the OnVisible property:

OnVisible property of the screen

If(FormMode.New Or FormMode.Edit,

    If(

        !IsBlank(DataCardValueLjms.SelectedItems),

        Set(Ljm, DataCardValueLjms.SelectedItems)

    );

)

 

The problem is that a few days ago, we noticed that the table variables are being cleared whenever we navigated back to the screen and try to reload the controls. Nothing changed in the form solution. It appears to be somehow related to the FormMode.New and FormMode.Edit functions but we don’t know what has changed. Has anyone else encountered as similar issue?

Categories:
I have the same question (0)
  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at
    If(formName.Mode=1 || formName.Mode=0,
    
     If(
    
     !IsBlank(DataCardValueLjms.SelectedItems),
    
     Set(Ljm, DataCardValueLjms.SelectedItems)
    
     );
    
    )

    try this

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard