12-22-2012 12:25 AM
I have a page with attached SystemDialog object
attachedObjects: [
SystemDialog {
id: attemptToDeleteProfileHistoryDialog;
body: "Do you really want to delete profile?";
cancelButton.label: "No";
confirmButton.label: "Yes";
title: "Delete profile";
onFinished: {
if (SystemUiResult.ConfirmButtonSelection == attemptToDeleteProfileHistoryDialog.result) {
// processing
}
}
}
]
and ActionItem, which shows this dialog.
actions: [
ActionItem {
title: "Delete profile history";
imageSource: "asset:///images/dark/icons/cancel.png";
onTriggered: {
attemptToDeleteProfileHistoryDialog.show();
}
}
]
When I invoke action and choose 'Yes' option, I often get following "Context: Failed to find target node with id 0" debug message in the console output and onFinished handler is not triggering at all.
Is it correct usage of the SystemDialog or I should to avoid it at this moment?
12-22-2012 03:26 PM
12-23-2012 01:50 AM - edited 12-23-2012 01:51 AM
As I see this console message is happened when I open a page ActionBar with action items, so it's unrelated.
I also open a ticket BBTEN-584.