Localizable string message shown in console but popup not displayed
Hi team,
I’m trying to display a popup message in Freedom UI using a localizable string.
The message is successfully retrieved from the resource file (I can see it in the console log), but the dialog box itself doesn’t appear on the UI.
Here’s the code snippet I’m using inside my handler:
const messageText = await request.$context.resources.strings.SyncStartedMsg_List["en-US"];
console.log("messageText",messageText);
await context.executeRequest({
type: "crt.ShowDialogRequest",
dialogConfig: {
data: {
message: messageText,
actions: [
{
key: "OK",
config: {
caption: "OK",
color: "primary"
}
}
]
}
}
});
The message prints correctly in the browser console (so messageText is fine), but the popup/dialog does not show up.
Could anyone help on this pls
Like
The dialog request is being executed using:
await context.executeRequest({That should be:
await request.$context.executeRequest({(Or are you setting a variable named context with request.$context elsewhere?)
Ryan