I want to create a template in only office with some bookmarks(variable type). then replace these bookmarks, every time we open the document in the editor. Bookmark values will be replaced by Calling Our server API that fetches the data from the database.
Is there any way we can implement this type of functionality using only office.
Replace Bookmarks with API Data Every on loading Document
-
- Posts: 3
- Joined: Thu Apr 01, 2021 5:02 pm
Re: Replace Bookmarks with API Data Every on loading Document
Hello,
You can use Content Controls to load some external data to your document:
https://api.onlyoffice.com/plugin/execu ... ntcontrols
Plugin examples:
https://github.com/ONLYOFFICE/sdkjs-plu ... t-controls
You can use Content Controls to load some external data to your document:
https://api.onlyoffice.com/plugin/execu ... ntcontrols
Plugin examples:
https://github.com/ONLYOFFICE/sdkjs-plu ... t-controls
-
- Posts: 3
- Joined: Thu Apr 01, 2021 5:02 pm
Re: Replace Bookmarks with API Data Every on loading Document
Thanks for the help.
I tried content control. But it is not updating existing content control, every time it is creating new CC. I want to update the existing ones by using the tag.
Can you please help me?
Thanks
I tried content control. But it is not updating existing content control, every time it is creating new CC. I want to update the existing ones by using the tag.
Can you please help me?
Thanks
-
- Posts: 3
- Joined: Thu Apr 01, 2021 5:02 pm
Re: Replace Bookmarks with API Data Every on loading Document
I Found a way to update Content Controls.
here is the link
https://github.com/ONLYOFFICE/sdkjs-plu ... trols_tags
here is the link
https://github.com/ONLYOFFICE/sdkjs-plu ... trols_tags