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 / Add fields to gallery ...
Power Apps
Answered

Add fields to gallery based on dataflex table

(0) ShareShare
ReportReport
Posted on by 36

Hi everyone,

 

I'm currently having some issues with the following scenario:

- I have a dataflex table that contains all months (January - December)

- I can select a start and end month

- I then created a gallery and filterered all items based on the selected start and end months

- I have a number field and that number is equally divided into all months

powerapps_problems.png

I have added checkboxes and also plan to enable the edit mode of the input field, to allow users to split the costs differently for each month.

 

Unfortunately I cannot use If(ThisItem.CheckboxName.Checked; DisplayMode.Edit; DisplayMode.View) to enable/disable the DisplayMode. I can only use the columns/values that are stored within my dataflex table. I can also not modify the value of my checkbox in preview mode or access ThisItem.

 

Am I missing something?

 

Thanks in advance

Categories:
I have the same question (0)
  • Verified answer
    CU-18081211-6 Profile Picture
    9,270 Moderator on at

    Hi @Nilsnutz 

     

    Use this formula for DisplayMode of the TextInput inside Gallery:

     

    If(CheckboxName.Value; DisplayMode.Edit; DisplayMode.View)

     

    Please show me the error you get here:

    Capture.PNG

  • Nilsnutz Profile Picture
    36 on at

    Thanks for your input. That solution worked. However i found that my the controls I am currently using are not working as expected. My app is a Teams Powerapp and I had to activate classic controls to use the .Value property. The "new" checkbox controls have a .checked property, but I cant check/uncheck it in preview mode.

     

    The errormessage in Start Month is just work in progress. I was trying to clear the endmonth value if my startmonth value is changed an now higher but didnt finish that yet.

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