How to passing a viewmodel value to other view model for making a validator
i want to pass a value of one of view model to another as a parameter for validator like this code below
"PDS_UsrPrice_5kkod23": {
"modelConfig": {
"path": "PDS.UsrPrice"
},
"validators": {
"MySuperValidator": {
"type": "usr.DGValidator",
"params": {
"minValue": 0,
"message": "#ResourceString(PriceCannotBeLess)#"
}
},
"MySecondValidator": {
"type": "usr.CommentValidator",
"params": {
"minValue": 5000,
"comment": "$PDS_UsrComment_tapvx6u",
"message": "#ResourceString(CommentNeeded)#"
}
},
}
},
"PDS_UsrComment_tapvx6u": {
"modelConfig": {
"path": "PDS.UsrComment"
}
},
it is possible?
Like