How to show error message to user if data grid 2 is empty

0
Hi, There is a page which contains a form. In this page we have many fields and some data grid 2 where user can create object. On click of SUBMIT button, if required fields are empty , it displys a error message below that particular field.  I have called a microflow on SUBMIT button where I am validating all the fileds if they are empty or not. I want to display error message on click of SUBMIT if data grid 2 is empty. How to achieve this. Please help me out its urgent
asked
4 answers
1

Hi trishla,

          For data grid validation, check if the associated list passed to the data grid is empty or not

answered
0

For this you need a helper object that can keep track of the object count. Create a dataview that includes that count in an attribute.

 

Put the datagrid2 within dataview and use visibility condition to show that

 

$dataviewHelperObject/CountObjects > 0

answered
0

Hi Trishla,

 

Create a new microflow on OnSubmit button-> take a decison & check condition $CurrentObject/AttributeName!=empty 

if condition is true then check for another attribute if condition is false  show a validation feedback & write the message this is required field or what you want then take a merge on true path & join the false path with merge. 

 

answered
0

Hi Trishla,

Create validation Microflow call that on submit button in validation Microflow

1) create boolean variable with true.

2) take decision box in that check empty of that attribute.

3) if value is empty then change the boolean attribute to false and use how a validation feedback.

4) repeat point 3 for all attribute .

5) after showing the error message merge with their normal flow.

6) at the end check boolean value in decision 

7) if boolean value is true then save the object.

8) if else terminate Microflow .

 

answered