Quantcast
Channel: AX Developer Forum
Viewing all articles
Browse latest Browse all 9880

Change the Label of dialog filter field

$
0
0

Good Day

Any one can help me please,

In reporting I add DateDialog this is on current date then the year must reflect to the filter field label of a dialog,

sample: in my report datasource the range is fixed let say SalaryValue field with label of "Salary Value (%1)" so in my dialog I have 2 field, the added DateDialog and Standard dialog filter field the SalaryValue

How it happened when I opened the Dialog the filter field must have label of "Salary Value (2013)"?

I used this code but this is working after I click the DateDialog and it will reflect only in the part of selecting the select button and the filter field label range there is good but in dialog it self is not reflecting. here is my code.

public boolean Fld10_1_modified()

{

    QueryRun qr;

    QueryBuildDataSource qbds;

    QueryBuildRange qbr;

    ;

 

    dateVal = dialogDate.value();

    qr = this.queryRun();

    qbds = qr.query().dataSourceTable(tablenum(MyTable));

    if (qbds)

    {

        qbr = qbds.findRange(fieldnum(MyTable, SalaryValue));

        if (qbr)

        {

           qbr.Label(strfmt('FieldLabel',year(dateVal));

        }

    }

    this.dialogUpdate();

    return true;


Viewing all articles
Browse latest Browse all 9880

Trending Articles