Hello,
I'm trying to get value from dialogfield in the method dialog() in the class inherited from RunBaseBacth class I'm writing the following:
protected Object dialog() { DialogRunbase dialog = new DialogRunbase('Анализ количества технически обоснованных форм', this); DialogGroup dialogGroup; dialogGroup = dialog.addGroup('Parameters'); dialogGroup.caption('Параметры'); dlgReportSelectMethod = dialog.addfieldvalue(enumstr(TechnReasonableReportSelectMethod_ICL1),reportSelectMethod); dlgFromDate = dialog.addFieldValue(extendedTypeStr(FromDate),fromDate); dlgToDate = dialog.addFieldValue(extendedTypeStr(ToDate),toDate); dlgItemId = dialog.addFieldValue(extendedTypeStr(ItemIdProduction),itemIdProduction); dlgInventSiteId = dialog.addFieldValue(extendedTypeStr(InventSiteId),inventSiteId); dlgItemId.registerOverrideMethod(methodStr(FormStringControl, lookup) ,methodStr(ExportAnalisTechnJustifiedNorms_ICL,customLookup) ,this); return dialog; }
Depending on the value which user has chosen in the field dlgReportSelectMethod I would like other values to become enabked or disabled. I know this is done through dlgToDate.enabled() method. But I don't understand how to retrieve the values of the field dlgReportSelectMethod. I tried dlgReportSelectMethod.value() but with no success.
Could please someone assist kindly?
Thank you.
*This post is locked for comments