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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

SysQuery::valueNotEmptyString()

(0) ShareShare
ReportReport
Posted on by

I have a checkbox on a form.  This checkbox is supposed apply a filter to the a field on the sales line making it not empty.

            if(!IncludeUnmarked.value())
            {
                qbds_Salesline.addRange(fieldNum(Salesline,InventRefId)).value(queryValue(SysQuery::valueNotEmptyString()));
            }

Which seems to work fine as far as the SQL goes:

{SELECT FORUPDATE * FROM SalesLine(SalesLine) WHERE MHAdditionalSOModsAuditLogTable.SalesLineRecId = SalesLine.RecId AND ((NOT (SalesStatus = 3))) AND ((NOT (InventRefId = N'""'))) JOIN FORUPDATE * FROM InventTable(InventTable) ON SalesLine.ItemId = InventTable.ItemId JOIN FORUPDATE * FROM InventBuyerGroup(InventBuyerGroup) ON InventTable.ItemBuyerGroupId = InventBuyerGroup.Group AND ((MHHcmWorkerRecId = 5637231576)) JOIN FORUPDATE * FROM MHSalesLineReqItemView(MHSalesLineReqItemView) ON SalesLine.ItemId = MHSalesLineReqItemView.ItemId AND SalesLine.InventTransId = MHSalesLineReqItemView.InventTransId}

but puts this value on the form filter:

pastedimage1657137054358v1.png

Do anyone know why?

Thanks

I have the same question (0)
  • Alex Panait Profile Picture
    170 on at

    You need to make the range locked or hidden. Otherwise it will be just like any normal filter / user range on the form.

  • brianmaric Profile Picture
    on at

    I tried hiding it and locking it but still same result:

    pastedimage1657141286745v1.png

  • brianmaric Profile Picture
    on at

    I found the answer...needed to remove queryvalue:

                if(!IncludeUnmarked.value())
                {
                    qbr_InventRefId = qbds_Salesline.addRange(fieldNum(Salesline,InventRefId));
                    qbr_InventRefId.value(SysQuery::valueNotEmptyString());
                }

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 565 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans