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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Random range fields in dialog prompt

(0) ShareShare
ReportReport
Posted on by 204

2017_2D00_10_2D00_20_5F00_11_2D00_17_2D00_03.png

Photo is pretty self explanatory.  I am getting range fields in my dialog prompt that I do not wish to be there? Can anybody tell me why they are showing up?

*This post is locked for comments

  • cowboyott Profile Picture
    204 on at

    No, all of the query was done in the AOT.  there is a small select statement in the fetch, but nothing that deals with the query itself.  Thanks, Tim

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    Please clear the usage data and refresh the cache to check if this range gets cleared. If you are not sure, from where the extra range is getting added probably you can remove range using the below code:

    this.Query().dataSourceTable(tableNum(ReqTrans)).clearRange(fieldNum(ReqTrans, Plan*));

  • cowboyott Profile Picture
    204 on at

    Resetting the usage data and clearing the cache did not work.  I tried manually hiding the range in the AOT for the specific field that was being displayed. That worked, but then two other random fields are added as ranges.  ???

    BEFORE - dialog

    2017_2D00_10_2D00_23_5F00_15_2D00_47_2D00_16.png

    CHANGE made

    2017_2D00_10_2D00_23_5F00_15_2D00_47_2D00_16.png

    AFTER - dialog

    2017_2D00_10_2D00_23_5F00_15_2D00_46_2D00_38.png

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    I prefer to clear all the ranges on the datasource ReqTrans and add the required ranges through code like below

       QueryBuildDataSource qbdsReqTrans;

       QueryBuildRange qbr;

       qbdsReqTrans = this.Query().dataSourceTable(tableNum(ReqTrans));

       qbdsReqTrans.clearRanges();

       qbr = SysQuery::findOrCreateRange(qbdsReqTrans, fieldNum(ReqTrans, Plan*));

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Prashant Singh Profile Picture

Prashant Singh 2

#1
nmaenpaa Profile Picture

nmaenpaa 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans