cancel
Showing results for 
Search instead for 
Did you mean: 

Validations in VC

Former Member
0 Kudos

Hi Vc Experts,

I am new to VC , I have created a VC report for BPM reporting data source, it is working fine. My requirement is , How to validate the input given for report. Attached my report filter screenshots.

Validations required are

1) while submitting either From date, To Date or Request Id is mandatory

2) From Date and Two date duration should be 14 days.

Please help.

Regards,

Rakesh Mathew

Accepted Solutions (1)

Accepted Solutions (1)

talia_gurevich
Participant
0 Kudos

Hi Mathew,

You can use Validation section in the Configuration panel of controls.

For required field just check the required check box in Validation section.

Thanks,

Talia

Former Member
0 Kudos

Hi Talia,

Thanks for your update, in this case not all inputs are mandatory, either one of the input is mandatory. So where i need to do validation? How to do validations on click of submit button.Please help.

Regards,

Rakesh Mathew

former_member202465
Contributor
0 Kudos

Hi Rakesh Mathew,

I agree with Talia, I think the clear UI way is to use the Validation feature. here is a small example - I find it important enough to be worth a document:

http://scn.sap.com/docs/DOC-48482

Thanks,

Udi

Former Member
0 Kudos

Hi Udi,

   Thanks a lot for the Document, It was really helpful. In this case if i select only From Date it is not validating and allowing to submit. Actually If i select from date then i need to validate for to date right?.

Because of =ISNULL(@from_date)&&ISNULL(@to_date)&&ISNULL(@id) if any value is not null validation is failing. How to correct this?. Date range validation is working fine.

Regards,

Rakesh Mathew

former_member202465
Contributor
0 Kudos

Hi Rakesh Mathew,

In the example I defined that at least one input is needed to run the report.

About the dates:

- if only one is defined, then it is always valid

- if both are defined, then there is a validation of the required gap

Thanks,

Udi

former_member202465
Contributor
0 Kudos

Hi Rakesh Mathew,

If we want to have both dates being supplied together, like this -

We could add another condition. for example in From Date:

This way we don't allow the From Date to be missing if the To Date is not.

Thanks,

Udi

Former Member
0 Kudos

Hi Udi,

Now my issue is resolved, thanks a lot.Also how to give messages like "No Data found for given input" if our input is retrieving any data.

Regards,

Rakesh

Answers (0)