-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to pass data to task pane from new window dialog box in powerpoint add-in. #5231
Comments
Here are some similar issues that might help you. Please check if they can solve your problem. Possible solution (Extracted from existing issue, might be incorrect; please verify carefully) I see the problem. On Excel desktop for the mac, you can't send a boolean value in the message. I changed true to "true" for my message and it worked. The docs say you can send either a boolean or a string so you might want to leave this open to fix or change the docs. booleans do work everywhere else. Reference: |
Hi @ankitmahapatra, thx for reaching out here. |
I'm adding here the main code snippet @RuizhiSunMS below (specific part i have commented that This is to handle onclick of any story in the folder naviagtion dialog)
|
the event handling set up to process Office.EventType.DialogMessageReceived appears to work flawlessly in the web version of PowerPoint but fails to trigger in the desktop version. Despite ensuring proper initialization and setup, the dialog messages (intended to share resourceId and resourceTitle from the dialog to the task pane) do not reach the DialogMessageReceived event handler |
Im sorry but @ankitmahapatra what you shared still lacks some details. Would you please share some more including:
|
sure. This code snippet is a part of our addin.
I'll record and attach a video of how it is working in ppt desktop version and web version within some time.
|
This is the successfull scenario where the ppt web-version works perfectly. Clicking.a.link.working.in.web.ppt.version.mp41.) In the video, the dialog box is already open. This is the unsuccessfull scenario where the ppt web-version works perfectly. Clicking.a.link.now.working.in.ppt.desktop.version.mac.mp41.) In the video, the dialog box is already open. |
@RuizhiSunMS please let me know if you need further info or if i missed anything |
if this case is inside the addin and can't repro simply with scriptlab, please share the project (as a zip for example) so that we can sideload to investigate. This part is owned by our partner team. They require local repro steps strictly. |
I'm discussing this with one of our senior dev.. We will soon give the whole project as well as also the steps to set it up so that we can reach to the solution asap. Thanks |
Dear @ankitmahapatra Thank you for the update. I'll be on standby for the project details and setup steps. Please let me know if there's anything further required. Best regards, |
This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins! |
Issue: Error on Sending Data Back to PowerPoint Add-in task pane in Desktop Version on Mac
Your Environment
Expected behavior
performing operations in the pop up dialog should allow data to be sent back to the PowerPoint add-in taskpane correctly using the (Office.context.ui.messageParent) function.
Current behavior
In the PowerPoint Web version, the Office.context.ui.messageParent function sends data back successfully. However, in the PowerPoint Desktop version on Mac, does not occur successfully neither it shows any error in dev console.
Steps to reproduce
1.) Open the PowerPoint add-in on the Mac desktop app.
2.) From the task pane, click a link or button (e.g., "Open Folder") to open a dialog box.
3.) Perform operations within the dialog (e.g., select an item and prepare its details to be sent back).
4.) Close the dialog and attempt to send the selected data back to the task pane.
example snippet which we are doing is below
**`
else if (item.resourcetype === ResourceTypes.STORY) {
const favorite = item.favorite === false ? false : true;
const message = {
type: "CloseDialog",
content: {
hasBeenClicked: "StoryLink",
state: { resourceTitle: item.name, resourceId: item.key, favorite: favorite },
},
};
Office.context.ui.messageParent(JSON.stringify(message));
Observe the behavior: While the data is sent back successfully in the PowerPoint Web version, the same operation fails in the PowerPoint Desktop version on Mac.
Context
This issue impacts the functionality of our PowerPoint add-in for Mac users. The dialog's inability to send data back to the add-in task pane disrupts the intended workflow. The feature works as expected in the web version, indicating that the issue might be specific to the desktop implementation on Mac.
Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.
The text was updated successfully, but these errors were encountered: