Hi Guys,
Can any one help me in Data type i have 4 fields are empty than display an error message like This field is can not be blank.but fields are not a Class key.only pyGuid is the Key
Please give me suggestion.
Hi Guys,
Can any one help me in Data type i have 4 fields are empty than display an error message like This field is can not be blank.but fields are not a Class key.only pyGuid is the Key
Please give me suggestion.
Hi @Rojasatish , are you going to use this datatype in UI under grid , if you are going to use it, you can write validation rule to address this issue.
Like GiridharanVenkat mentioned if you are going to use it in a grid on the modal dialog flow action you can use a validate rule.
If that’s not the case, and you meant on the data type itself while adding records. I doubt there is a way to do that other than defining all fields not null. For that to do, pega data modal/type creation doesn’t allow to make fields not nullable from designer studio.
Option 1: You can have all 4 attributes as part of keys on the data type class rule which would in turn makes it mandate when developers adding records on data type. (Easiest way from designer studio)
Option 2: Create the data type, and if you have access to the actual database, open the table you created from designer studio from database client , run it in create script mode, you will see the complete table creation script where all attributes / columns are present with default NULL, change it to NOT NULL(Keep the script somewhere you can copu). Now drop the table from the db client tool and re-run the updated create table script from before. Now just go to designer studio and re-save the db table instance & class rule instance. Now try to add records on the data type. 99% i am sure it will not let you leave the column blank.