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 / Navigate broke my JSON...
Power Apps
Answered

Navigate broke my JSON text

(1) ShareShare
ReportReport
Posted on by 8
Bit of a weird one.
I have a table and on my Canvas Forms it pulls through the text of the choices selection. This was working perfectly fine with 
Concat(varSelectedProject.'Job Type', Value,Char(10))
 
Now I have a side panel where I display a list of all my projects. I set the OnSelect on the vertical gallery as: 
Set(varSelectedProject, ThisItem);Navigate('Project Details')
 
So this works for everything else but it somehow broke my JSON string to text. Even when I delete the OnSelect Code for the side bar navigation the JSON to text still doesn't work. 
It still shows the values when I do JSON(varSelectedProject.'JobType') so it isn't an empty record.
Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,392 Super User 2025 Season 2 on at
     
    Can you share the actual code that you say is broken and if broken do you get any errors?
     
    You are setting varSelectedProject to a record.
     
    My suggestion is not to do this as you do not need a Global Variable unless there is some other place you are using it
     
    Navigate('Project Details', Transition.None, { SelectedProject: ThisItem })
     
    Because if for any reason your Gallery resets your variable is going to be incorrect and broken.
     
    So pass the Context Variable and inside your Form put SelectedProject as the Item
     


    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard