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 / How to get data from t...
Power Apps
Unanswered

How to get data from table into variable

(0) ShareShare
ReportReport
Posted on by 231

varsql.JPGDatabase: SQL from AWA

 

Navigate(Diagnoses_view,ScreenTransition.None,{myVar:'[Access].[tbl_relaties]'.tbl_relatiesId})

 

Why this is not working?

 

My goal is to select child records and view them in a new form. Like all contacts from the company. I know there are more ways to do this, but i can't get it working.

 

Set(myVar,0) is set in the "Onvisible" of the form. 

 

 

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

    In my apps with Galleries I use the following to get to the specific Record:

     

    MyGallery

     

    When User clicks Edit I use :

     

    Navigate(Screen_EditUpdate,ScreenTransition.Fade,{EditRecord:ThisItem,type:ThisItem.AssignedTo})

     

    and populate all data in the table for future edits. It basically opens a new page with the table that has all data for the selected item from the gallery:

     

    Edit

    When User clicks View, I use :

    Navigate(Screen_ViewECR,ScreenTransition.Fade,{ViewRecord:ThisItem,type:ThisItem.AssignedTo})

     

    it just populates data in a form:

     

    View

     

     

  • CarlosFigueira Profile Picture
    Microsoft Employee on at

    Navigate(Diagnoses_view,ScreenTransition.None,{myVar:'[Access].[tbl_relaties]'.tbl_relatiesId})

     Which property (of which control) has the expression above?

     

    Set(myVar,0) is set in the "Onvisible" of the form. 

    One more thing - may be related or not: when you pass a variable to a screen using the Navigate function, that variable is local to that screen. When you create (or set a value of) a variable using the Set function, that variable is global to the entire app. That means that your Diagnoses_view screen has now two variables of the same name, which may be conflicting with each other (I don't know which variable takes priority).

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    As you said there may be  different ways to approach what you want - to select child records and view them in a new form.

     

    I`d use a gallery with all records (you can add filters), and onselect I`d transfer selected item data into the table to view, print or even email to others.

     

  • Frans_365CH Profile Picture
    231 on at

     

    Knipsel1.JPG

     

    I want to navigate from the first singel record form

     

    To the galary form en select the child records

     

    Hope this will clear my question.

     

    Thank you very much anyway!

     

     

     

     

  • Frans_365CH Profile Picture
    231 on at

    Knipsel2.JPG

  • Frans_365CH Profile Picture
    231 on at

    Problem is, if i set the var on the value 2 all the child records are filtered.

     

    But the value from the table into the variable does not work.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard