Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Sunday, September 13, 2015

Look up date and calendar in AX

Hi,

void lookup()
{
    ProjPeriodId    projPeriodId = DNGRMParameter::find().PeriodId;
    ProjPeriodTo    projPeriodTo;
    ProjControlPeriod  projControlPeriod = new ProjControlPeriod();
   // projControlPeriod = element.args().caller().runbase();
    //if (!projControlPeriod.parmPeriodic())
    //{
        //if (this.dateValue())
        //{
            //projPeriodTo = this.dateValue();
        //}
        //else
        //{
            //projPeriodTo = ProjPeriodLine::findPrevFromDate(projPeriodId, systemdateget()).PeriodTo;
        //}
    //}
    //else
    //{
        if (this.dateValue())
        {
            projPeriodTo = this.dateValue();
        }
        else
        {
            projPeriodTo = ProjPeriodLine::findPrevFromDate(projPeriodId, systemdateget()).PeriodTo;
        }
   // }

    ProjPeriodLine::lookupPeriodTo(this, projPeriodId, projPeriodTo);
}

Regards,

No comments:

Post a Comment

How find size of recordsortedlist in D365/AX 2012

Hi, This is the continuity of the previous article where we are now getting the size of recordsortedlist . if(recordsortedlist.len() >1) ...