Need help with Iron Python script for validation on input box in spotfire

Hi,

I have created an input box for showing only entered no. of days data into the report. The report holds data only for last 14 days from the current date.

But, currently when user is entering a value more than 14 in the input box , it is still showing the data in the report. I want to give a validation on this input box.

If user enters value >14 or <0, it should through a error or customized message.

Below is the code, for passing above value into the report to filter out the data.

[date_colmn]>=DateAdd('day',-${NumberOfDays},DateTimeNow())

Also, attached is the snapshot for the input box created.

Please help if this is possible.

Thank you!

(1) Answer

Login