read the settings of a office add-in manifest file from the angular app which is inside the Excel task pane - excel

Requirement: Read the AutoConfig element in a manifest file using office.js/angular app and will
hide/show the content in my angular app in task pane based on the AutoConfig value.
The 1st approach I will put a custom tag i.e <AutoConfig>true</AutoConfig>
in the manifest file and this custom tag should read by the angular app/office.js in the task pane.
The 2nd approach will pass the URL parameter from the<SourceLocation https://localhost:3000/index.html?autoConfig=true> if it is not possible to give a custom tag in the manifest file (1st approach)
could you please help me how can I achieve this requirement?

I'm afraid that there is no way at present for an Office Add-in to read its own manifest. But you can vote for the same idea at Create an API for reading resource strings and URLs from the add-in manifest.

Related

SPFX - Best way to store custom settings file when developing extension app

I am developing SharePoint framework Extensions and need to store settings json file which can be configured anytime by admin/privilege person.(such as a component layout settings/app settings).
What is the best way to store such a settings file without storing database ?
for example - I could create json file when app is starting first time and retrieve the file data next time onwards.
is there any better solution ?
I will make an assumption that it will be used in SharePoint.
If it was me, I would suggest using a SharePoint list to hold your settings as this provides an easy way for an admin to change your applications settings using the SharePoint UI rather than having to potentially download the JSON fike, edit and and then upload back into SharePoint.
Depending on how the settings need to be stored, are they global? Or scoped to a site collection? Will give you an idea of where the settings need to be stored.
If the settings are global then use a Tenant Property to configure where your app should load the settings from.
https://learn.microsoft.com/en-us/sharepoint/dev/spfx/tenant-properties
My thoughts.

How can I create Liferay web content structure's outside of Liferay configuration?

I'm very new to Liferay theme development and i'm trying to find the most optimal workflow for development.
So I've been experimenting with creating Web Content Templates and Web Content Structures within Liferay CMS configuration.
What I would ideally like to do is create my view "Web Content Structure" outside of Liferay configuration and instead have it as a view/template inside my theme files so that I can have my code peer reviewed and version controlled in Bitbucket.
Is this possible?
Alternatively is there a way to output the values of a given web content instance within my theme?
I'm building a theme for Liferay 7 by the way.
Thanks in advance
Richard
You can copy and paste the structure when you create them form the LFR editors into your source code repository.
Also if you know how to define the JSON you can do it straight in the file. The free market templates are even easier to edit in file format. When you're done, you need to go and upload the artefacts to the portal via the editor/file upload option.
You can't stick it into the theme because that approach would not allow you to do updates.
You can search for a community plugin or write your own one that would do structure/template updates during deploy.

Talend (Placing the Xls file in sharepoint)

I am quite new for the Talend tool.
I have the requirement to place the xls/.csv file in sharepoint application using Talend.
How can I achieve this and which components we need to use to achieve the result.
You can try using tFileFetch component.
In the advanced settings enable Upload File option.
You can refer this link

Issue related to layout of custom webpart

According to requirement of application, I have developed a custom web part in Kentico 9. This web part is using with same functionality at various places but we have to use with different layout structure.
As per my understanding, we can create custom layouts for a single web part from "Layout Tab" in web part configuration. As I used same things with various Kentio built in web part like Logon form, Logon-Mini form, etc.
But while trying to create new layout for my custom web part, I am getting web part loading error and when I checked into event log it is showing following error:
The file
'/CMSVirtualFiles/WebPartLayouts/=vg=87a868ce-926c-4cb3-a441-b4f1d4310afc/TDNForgottenPassword/ForgottenPassword.ascx.cs'
does not exist.
Here, internally system looking for ".CS" file under "CMSVirtualFiles" folder, which has actually under the "CMSWebParts" directory in which I have created my user control.
Is there any specific configuration required in custom web part to implement multiple layout of it? Please help me and guide me, what am I missing or doing wrong?
Check your webpart code file property in the ascx file. You need to specifically declare the full relative path to the .cs file and not just the filename. For example:
Correct
CodeFile="~/CMSWebParts/Community/GroupRegistration.ascx.cs"
Incorrect
CodeFile="GroupRegistration.ascx.cs"
Please make sure you don't have the store virtual files in the file system setting enabled.

SharePoint -copy library template when creating a new item

I have a document library with 4 content types, each having a default template. Users click on "New" and choose the content type for the new item.
I need WSS 3.0 to create a copy of that template (in the current folder) so that the users can edit it. I do not want WSS to open the template in a client application -I need it to leave the template right there.
How could I accomplish this?
Thank you for your help.
I wonder what you mean by EDIT the template copy, you mean setting properties? cause otherwise you must open it in a client app.
Anyway, we did t before for a client, he needed a file naming convention feature, so we added a feature that replaced the New button options with our own option, that takes the user to our custom page, where he selects the content type and fill in appropriate metadata. When clicking OK, the template is copied to the folder, given name according to the convention and assigned metadata. After that we opened the file in a client app, but you don't have to do that. The whole thing involved
Feature XML files
Layouts custom page with code behind
Custom menu customizer code to hide the New button options
Hope it helps

Resources