Trying to open object browser dialog using Office js Addin - ms-word

I'm developing a Word Add-in (Word API + Office.js) and I'm wondering if it's possible to open word embedded object browser dialog
Currently my word template has few content controls with data, now i am trying to open object browser dialog to attach office object(excel) to the document as shown in the image when the user clicks on button.
so want check whether Word API has a way to open word object browser dialog? Thanks!

Related

Not able to use "Continue Here" button in WOPI Client

When clicking Open in Desktop App in WOPI client, the document opens in the Office desktop app. And in the same WOPI client, it shows a popup having Continue here button which can be used to reload the document once editing is done in the desktop office app.
For PPTX, clicking Continue here button is working fine. But for XLSX and DOCX files it is throwing an error in the browser console.
Can anyone suggest where I should check?

Google Form Prefilled shortcut not working

With the recent "upgrade" to Google Forms saving data, prefilled URLs no longer seem to work.
Steps to recreate problem:
create a Google Form
Create a prefilled URL for some of the fields
Open the form on an Android phone
Create a shortcut on the phone's homescreen from the "Save to homescreen" option on the form's menu
Open the form from the shortcut and submit a response
Open the form again from the shortcut -- the form will no longer have prefilled values.
Anyone have a workaround for this? I have a fairly large form that I use to track some tasks with some standard response values. This worked perfectly before the "upgrade" but now is useless saved as a shortcut. I can still use the prefilled URL from an email or another rich text object available on the phone, but needing to open additional documents is frustrating after getting used to the convenience of one click of an icon for years.
I've had the same issue. Not quite as convenient but I've posted the URL of the prefilled link on a Google note so its still one click away with Google note on the home screen.
I had the same issue. The fix that worked for me was to remove the "autosave" option in the forms settings.
Settings -> Presentation -> Disable auto-save for all respondents

Word web Add-in: detect document Close

I'm developing a Word Add-in (Word API + Office.js) and I'm wondering if it's possible to get notified when the user click on Close button of word application
Currently my word template has few content controls with data, i am saving the content control data to database when the cursor comes out of the control.
i am trying to implement the same logic when the user click on Close button.
so want check whether Word API has a way to track user click on Close button? Thanks!
I'm afraid that there is no way yet to handle that event in Office.js. But it's a great idea. Please go to Office Developer Suggestion Box and vote up this suggestion.

Protractor: Unable to handle windows Based popup to browse and upload a file using Protractor framework

Trying to automate uploading .xml/pdf format files (Windows based popup) from local system to web application (Angualrjs) using Protractor framework.
Scenario:
Browser the application in Chrome> Click upload button> web app popup comes where able to locate elements > click Browse button on upload field (This field would be disabled, only click event is allowed which opens windows popup to browse files)> Here we have challenge to browse the file.
After clicking Browse button performed> Window popup shows Documents location however we want to browse and upload the file from Desktop or from Project location.
Followed other stackoverflow references as given below but unable to solve:
How to upload file in angularjs e2e protractor testing
Scripts which we tried:
iUploadConfigDefinition : (sPath) => {
var absolutePath = path.resolve(__dirname, sPath);
uploadInput.sendKeys(absolutePath);
}
Here not sure what should be 'uploadInput' element locator and how to recognize/fetch Open button of windows popup.
Please guide. Attached the screen for reference.
enter image description here
Please try the following solution :
browser.findElement(by.xpath("path of the browse button"));
browser.findElement(by.css('input[type=file]')).sendKeys('full path of the file with extension');

How to use hyperlinks in a page to toggle for more information using Dreamweaver?

I'm trying to use the toggle feature to open up more information. How do you use hyperlinks in a webpage to just open up a toggle feature that located elsewhere on the page for more information? The hyperlink should not go to a different page and also, the page was created using Adobe Muse, which created div classs and divs, so where can I paste the code into the HTML?
You can use a hyperlink to execute a javascript function without going to another page.
Test
Replace the alert with the javascript function that does your toggle functionality.