You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have a custom property on a Text widget which will open a pop-up of values that can be multiselected. And on closing the popup, i am trying to update the value of text field with the value selected. But the UI is not reflecting that value.
onClickText = (e) => {
// this opens the pop-up with values that can be multi selected
let item = lookupFieldsConf.find( ({ field }) => field === 'CCMSECTYPE' );
if (item !== undefined)
item.lookupFunction(this, 'CCMSECTYPE', '=', e.currentTarget.id);
}
//this is called on close of the pop-up and selected values are sent as parameter
handleOkLookupDialog = selectedValues=> {
console.log('handleOkLookupDialog selectedValues:: ', selectedValues);
console.log('handleOkLookupDialog componentID :: ', componentID);
Hi, I have a custom property on a Text widget which will open a pop-up of values that can be multiselected. And on closing the popup, i am trying to update the value of text field with the value selected. But the UI is not reflecting that value.
In config I have defined the widget as below:
widgets: {
...InitialConfig.widgets,
text: {
...InitialConfig.widgets.text,
customProps: {
id: 'MYTEXT7999',
onClick : (e) => this.onClickText(e)
}
}
}
onClickText = (e) => {
// this opens the pop-up with values that can be multi selected
let item = lookupFieldsConf.find( ({ field }) => field === 'CCMSECTYPE' );
if (item !== undefined)
item.lookupFunction(this, 'CCMSECTYPE', '=', e.currentTarget.id);
}
//this is called on close of the pop-up and selected values are sent as parameter
handleOkLookupDialog = selectedValues=> {
console.log('handleOkLookupDialog selectedValues:: ', selectedValues);
console.log('handleOkLookupDialog componentID :: ', componentID);
};
console log show the component and values correctly, but after assigning the values, Text onChange is never invoked i believe.
Is there a way to identify the uid of the widget when it is clicked ?
The text was updated successfully, but these errors were encountered: