datasync-dynamic-form 1.0.20 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -142,7 +142,8 @@ class DsDynamicForm extends _react.Component {
|
|
|
142
142
|
this.local_data_blob = {
|
|
143
143
|
data_tier: {}
|
|
144
144
|
};
|
|
145
|
-
this.local_data_blob.data_tier = Object.assign({}, duplicate_data_tier);
|
|
145
|
+
//this.local_data_blob.data_tier = Object.assign({}, duplicate_data_tier);
|
|
146
|
+
this.local_data_blob.data_tier = Object.assign(this.props.foreign_keys ? this.props.foreign_keys : {}, duplicate_data_tier);
|
|
146
147
|
console.log("28:this.local_data_blob.data_tier ->", this.local_data_blob.data_tier);
|
|
147
148
|
console.log("28:this.props.data_blob.data_tier ->", this.props.data_blob && this.props.data_blob.data_tier ? this.props.data_blob.data_tier : "props data_blob not set");
|
|
148
149
|
};
|
|
@@ -103,9 +103,14 @@ class DynamicForm3Tiers2 extends _react.Component {
|
|
|
103
103
|
};
|
|
104
104
|
setFieldData = (pFieldObject, value) => {
|
|
105
105
|
this.data_blob.data_tier[pFieldObject.name] = value;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
|
|
107
|
+
//onFormChange handler return current form value to caller - PMAB onn 2025-02-03
|
|
108
|
+
if (this.props.onFormChange) this.props.onFormChange(this.data_blob.data_tier);
|
|
109
|
+
if (_Globals.globals.parameters.debugging) {
|
|
110
|
+
console.log("01:setFieldData[", pFieldObject.name, "] value->", value);
|
|
111
|
+
console.log("01:setFieldData[", pFieldObject.name, "] this.data_blob.data_tier ->", this.data_blob.data_tier);
|
|
112
|
+
console.log("01:setFieldData[", pFieldObject.name, "] this.data_blob ->", this.data_blob);
|
|
113
|
+
}
|
|
109
114
|
};
|
|
110
115
|
getSelectedFieldValues_V1 = pFieldObject => {
|
|
111
116
|
return pFieldObject.selected_values ? pFieldObject.selected_values : "";
|