how to make some changes in a specific subform ?
HI
I have an auto lookup through which I getting values in a field and to that, I wrote a js which is
var t={};
t.fieldId='SubformDetailInfo/Region: [this]';
eFormHelper.getFieldValue(t, function(w){
if(w.data == 1)
{
debugger;
var options = {};
options.fieldId = 'SubformDetailInfo/LineRegion: [this]';
options.propertyName = eFormHelper.constants.fieldProperty.Visible
options.value = true;
eFormHelper.updateFieldProperty(options, function (result){});
}
else
{
debugger;
debugger;
var options = {};
options.fieldId = 'SubformDetailInfo/LineRegion: [this]';
options.propertyName = eFormHelper.constants.fieldProperty.Visible
options.value = false;
eFormHelper.updateFieldProperty(options, function (result){});
}
});
but [this] isn't working, I mean this should be specific for this one and no changes in other subform.
reply fast.
-
Suraj,
The context of this is not applicable to be used like that. You can have make use of the helper method 'getSubFormData' to get the subform data and the process as per requirement.
Reference link: https://documentation.agilepoint.com/00/appbuilder/cloudjsGetSubFormData.html
Thank you
AgilePoint NX Support
サインインしてコメントを残してください。
コメント
1件のコメント