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

Community site session details

Session Id : ft3TKki9cR+QzQNAYTmxvR
Power Apps - Building Power Apps
Answered

AFTER LAST UPDATE

Like (0) ShareShare
ReportReport
Posted on 18 Nov 2019 19:28:21 by

AFTER MANY YEARS PERFECT JOB and now

DO NOT WORK - Filter('[dbo].[ObedListek]';Datum>Today()) - now return empty collection - Datum is Date field in SQL table  

I must change to Filter('[dbo].[ObedListek]';DateDiff(Datum;Today())<=0)) - this work fine

 

Next new problem

DO NOT WORK - OnSelect on any inserted element (text,button,..) in DataCard in FormViewer (pointer changed on hand, but not fired Launch("..")) on the same screen Button out of FormViewer work fine.

 

Categories:
  • Verified answer
    v-yutliu-msft Profile Picture
    on 19 Nov 2019 at 07:36:28
    Re: AFTER LAST UPDATE

    Hi @barta ,

    Q1:

    The reason why you met this problem is that:

    Direct date filters do not work for SQL Server.

    However, you can create a calculated column that will work. For instance, ALTER TABLE myTable ADD DateAsInt AS (YEAR([date]) * 10000 + MONTH([date]) * 100 + DAY([date])) and then filter on the calculated number column.

    For example:

    Filter(AddColumns('[dbo].[ObedListek]';
     "newdate";
     YEAR(Datum) * 10000 + MONTH(Datum) * 100 + DAY(Datum)
     );
     newdate>Value(ToDay())
     )

    Here's a doc about SQL Server connector for your reference:

    https://docs.microsoft.com/en-us/connectors/sql/

     

    Q2:

    The reason why you met this problem is that you put the button inside the formviewer.

    Since the formviewer's mode is View, the button's mode will change with it automatically.

    So I suggest you put the button outside the form.😀

     

     

    Best regards,

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete