The community of Analytics developers are invited to follow and participate in the developer network.
OpenText technical experts collaborate with supported customers and partners in the Magellan product area.

Parameter validation error and warning messages?

<p>Hi,</p>
<p> </p>
<p>I have a report that has a start and end date parameter. I want to do the following validations</p>
<p> </p>
<p>1) If start date is null and end date is some selected date ( or otherwise), show error message that either both should be nulls or both should be a selected date..(in case of start date and end date null, all dates will be selected, otherwise show data between start and end date)</p>
<p> </p>
<p>2) If end date is less than start date, show an error message</p>
<p> </p>
<p>Can someon please help me do this validation for start and end date parameters</p>
<p> </p>
<p>Arif</p>

Comments

  • <p>Hi, </p>
    <p> </p>
    <p>you have to build a custom parameter page.</p>
    <p>This kind of test are not possible with the default one.</p>
    Guillaume L.
    Solution Consultant
    OpenText Reporting & Analytics
    http://www.opentext.com
  • Hi,
    Is there a change here since 2014? I need to validate the parameters , and the concept of "out of the box" report parameter fails if I cant do a simple custom validation. Is there a place I can write my cusom javascript for the parameter screen ?
  • Hi Mihai,
    If you select the parameter in the Data Explorer pane and then select the Script tab at the bottom of the Layout pane, you will see several events.  One of them is called "Validate".  You can write JavaScript code that evaluates to Boolean true or false in the Validate event as shown in the attached example.  If you run the sample report and enter a parameter value greater than 112, the parameter will be rejected.  Your Validate script can contain any JavaScript code to do the validation.
    It is not possible to control the error message.  Add clear instructions in the parameter editor help so that users know why values are invalid.  As was mentioned in the old posts, you can create your own parameter page (typically an HTML form) if the built in functionality does not meet your requirements.
    Regards,
    Jeff F.
    Sr. Technical Support Specialist
    OpenText
Sign In or Register to comment.