relation properties...

Can one get the properties of a relationship and if so how? For instance whether a relation allows creation of records, deletion of parent, etc… I see the properties in the ‘Prop’ panel when I click on the relationship name and I also see them available in the solution model but not sure how to get the properties of relationships in a method. In typing the relation name followed by the period and going for autocomplete, those properties don’t show up. And with the name of the relation being ‘pat_crs’ coding:```
var foreignSource = pat_crs.foreignDataSource


(I want to check some properties of relations before deleting records and either telling the user to first delete the related records, or that certain related records will also be deleted, etc.)

You’re on the right way using the solutionModel, but to check those properties you first have to get the relation object:

var _jsRelation = solutionModel.getRelation("pat_crs");
var foreignSource = _jsRelation.foreignDataSource;