validation for property

Hi,

I have a data type with 5 field among that one field i.e, for one property I need a validation which should not allow 6th row only 5 row of data should be displayed if I try to enter the 6th row for that property have same value in all rows it should show for this value you are allowed only untill 5 rows how can I implement this requirement using validation?

please help

@PabbaV71 once a row is added and saved, please start tracer and check. There will be ootb extension activities running. You can use any of the extension activity to implement this validation using obj-validate in that activity.

Hi @PabbaV71: 2 options I would suggest.

  1. If this is something to validate the property alone in terms of contents, you can use edit validate
  2. If you want to do some complex validations comparing other attributes / rows, create a validate rule in the same data class with name “Validate” and add your conditions. This will get called when you add or edit data in your data type. Also from OOTB save API’s.

Thanks.

@PabbaV71

Create an activity with name as “Validate” in your data type class, call a validate rule using Obj-Validate and implement logic for validation here.

This gets fired upon every row save while updating rows in data type