Write validations on fromdate and todate in SSRS report

How to write the fromdate and todate validations in ssrs report in ax 2012?

please give me suggestions.

See if the documentation helps,

technet.microsoft.com/…/gg731942.aspx

You have to Write Validate Method for contract class as like

public boolean validate()
{
    boolean result = true;
    if (!fromDate || !toDate || toDate < fromDate)
        result = checkFailed("Invalid Date");
    return result;
}


Sir, Iam written same code in contract but its not working.

Does you class implements SysOperationValidatable interface? If not, the validate() method won’t be called.

If you have some other problem, please explain it. “its not working|” is never a sufficient description of any problem.

sir,I am written this code .after i am added validate method. but its not working.

public class xyzcontract implements sysoperationvalidatble

{

}

public boolean validate()
{
boolean result = true;
if (!fromDate || !toDate || toDate < fromDate)
result = checkFailed(“Invalid Date”);
return result;
}

Have you tried to debug?

In which case it is not working for you?

yes sir , but its is not working.

What do you mean by not working? Can you please explain with an example?

iam enter from date 6/11/2018 and todate 6/3/2018 in ssrs report parameters its not throw warning . directly its taking values sir

Your validate method look OK.

Have you tried to debug? If so, what did you found while debugging?

Can U Put your Parm Method Code

sir i am completed that requirement.

What was the issue?

issue is i am not written the sysvlidateble in contract class. thats y it s not getting validation

public class xyzcontract implements sysoperationvalidatble