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 :
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

I have the same question (0)
  • cowboyott Profile Picture
    204 on at
    RE: Random range fields in dialog prompt

    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
    RE: Random range fields in dialog prompt

    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
    RE: Random range fields in dialog prompt

    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
    RE: Random range fields in dialog prompt

    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

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 3

#3
Willem van Duren Profile Picture

Willem van Duren 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans