Can we use PrimaryCommandSurface in Outlook add-in generated by yo office - plugins

Is there any way we can use PrimaryCommandSurface to show the add-in on the top Ribbon in the outlook add-in development, if yes Please help with the updated valid manifest.xml.
If not help with the other way how to create outlook top Ribbon commands plug-in
<ExtensionPoint xsi:type="PrimaryCommandSurface">
<CustomTab id="Contoso Tab">
<!-- If you want to use a default tab that comes with Office, remove the above CustomTab element, and then uncomment the following OfficeTab element -->
<!-- <OfficeTab id="TabData"> -->
<Label resid="residLabel4" />
<Group id="Group1Id12">
<Label resid="residLabel4" />
<Icon>
<bt:Image size="16" resid="icon1_32x32" />
<bt:Image size="32" resid="icon1_32x32" />
<bt:Image size="80" resid="icon1_32x32" />
</Icon>
<Tooltip resid="residToolTip" />
<Control xsi:type="Button" id="Button1Id1">
<!-- information about the control -->
</Control>
<!-- other controls, as needed -->
</Group>
</CustomTab>
</ExtensionPoint>
<ExtensionPoint xsi:type="ContextMenu">
<OfficeMenu id="ContextMenuCell">
<Control xsi:type="Menu" id="ContextMenu2">
<!-- information about the control -->
</Control>
<!-- other controls, as needed -->
</OfficeMenu>
</ExtensionPoint>

The PrimaryCommandSurface stands for the ribbon in Office. In case of Outlook we deal with read or compose items, so we should use the MessageReadCommandSurface for received items, for example:
<ExtensionPoint xsi:type="MessageReadCommandSurface">
<OfficeTab id="TabDefault">
<-- OfficeTab Definition -->
</OfficeTab>
</ExtensionPoint>
The TabDefault is the idMso value of the built-in tab in Outlook.
Also you you can place controls into a custom tab in the following way:
<ExtensionPoint xsi:type="MessageReadCommandSurface">
<CustomTab id="TabCustom1">
<-- CustomTab Definition -->
</CustomTab>
</ExtensionPoint>
If you need to get a ribbon UI displayed for the composed items in Outlook you need to use the MessageComposeCommandSurface extension point that puts buttons on the ribbon for add-ins using mail compose form:
<ExtensionPoint xsi:type="MessageComposeCommandSurface">
<OfficeTab id="TabDefault">
<-- OfficeTab Definition -->
</OfficeTab>
</ExtensionPoint>
And to place controls into the custom tab:
<ExtensionPoint xsi:type="MessageComposeCommandSurface">
<CustomTab id="TabCustom1">
<-- CustomTab Definition -->
</CustomTab>
</ExtensionPoint>
See the ExtensionPoint element for more information.

Related

Azure Dev Ops add field Remaining work in backlog

is there a possibility to add the field "Microsoft.VSTS.Scheduling.RemainingWork" on backlog level? I would like to have a field with remaining work in the backlog, so that the work can be entered there directly without creating a work item.
example image
Azure DevOps Server version: Version Dev17.M153.3
I added following lines in Bug.xml:
<FIELD name="Verbleibende Arbeit" refname="Microsoft.VSTS.Scheduling.RemainingWork" type="Double" reportable="measure" formula="sum" />
<Group Label="Details">
<Control Label="Verbleibende Arbeit" Type="FieldControl" FieldName="Microsoft.VSTS.Scheduling.RemainingWork" />
<Control Label="Aufwand" Type="FieldControl" FieldName="Microsoft.VSTS.Scheduling.Effort" />
<Control Label="Schweregrad" Type="FieldControl" FieldName="Microsoft.VSTS.Common.Severity" />
</Group>
On the backlog, you can specify columns and the quick add panel configuration. Check this:
Set default columns
Customize the quick add panel
Use witadmin to import and export process configuration.

Office Js: avoid doubling "&" symbol on ribbon button tooltip

I am developing a Word addin with Office-js. I want to create a button in my ribbon. This button's name and tooltip should be AAA & BBB.
So, I developed the following part of the xml manifest.
<Group id="XXX.GrpYYY">
<Label resid="XXX.GrpYYY.Label"/>
<Icon>...</Icon>
<Control xsi:type="Button" id="XXX.BtnYYY">
<Label resid="XXX.BtnYYY.Label" />
<Supertip>
<Title resid="XXX.BtnYYY.Label" />
<Description resid="XXX.BtnYYY.Tooltip" />
</Supertip>
<Icon>...</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="XXX.YYY.SL" />
</Action>
</Control>
</Group>
And this is the relevant part of the Resources in the xml manifest:
<bt:ShortStrings>
...
<bt:String id="XXX.GrpYYY.Label" DefaultValue="MY GROUP" />
...
<bt:String id="XXX.BtnYYY.Label" DefaultValue="AAA & BBB" />
...
</bt:ShortStrings>
<bt:LongStrings>
...
<bt:String id="XXX.BtnYYY.Tooltip" DefaultValue="AAA & BBB" />
...
</bt:LongStrings>
This is the result:
As you can see the & symbol in the tooltip is doubled.
Is it a bug or am I doing something wrong? Is there a way to avoid doubling this symbol?

alfresco tag content on create

is it possible to display tag form during document (cm:content) creation in Alfresco 5.2 share ?
I've searched in share-form-config.xml for an example and I've not found an answer.
I've tried with
<config evaluator="model-type" condition="myco:myType">
<forms>
<form>
<field-visibility>
<!-- ... -->
<!-- tags and categories -->
<show id="cm:taggable" for-mode="edit" force="true" />
<!-- ... -->
</field-visibility>
<appearance>
<!-- ... -->
<field id="cm:taggable">
<control>
<control-param name="compactMode">true</control-param>
<control-param name="params">aspect=cm:taggable</control-param>
<control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
<control-param name="createNewItemIcon">tag</control-param>
</control>
</field>
<!-- ... -->
</appearance>
</form>
</forms>
but it works only during edit forms (with <config evaluator="node-type" condition="myco:myType">, not during creation.
SOLUTION
the previous code is right except for
<!-- tags and categories -->
<show id="cm:taggable" for-mode="edit" force="true" />
which should be without the for-mode="edit" during creation of a document.
I can't tell what you are doing because you haven't included the enclosing "" element. If you want to change the form that exists for new nodes use the "model-type" evaluator, like:
<config evaluator="model-type" condition="sc:whitepaper">
The "node-type" evaluator is used for existing nodes.
If that doesn't meet your requirements you might take a look at the Uploader Plus add-on.

how to create icon and text in list?

I want to create moible application ( sap.m) with list with 4 fields :
icon label icon
label
-------------------
I want that in one row the label will be under the icon.
i found good example in standard list item but the problem that StandartdListItem not allow that the title will be icon. ( the idea is to do something like title and description the the title should be icon and need to be in the right screen )
do you know in which sap object I need to use ?
Example for StandartdListItem
<mvc:View
controllerName="sap.m.sample.StandardListItemTitle.List"
xmlns:l="sap.ui.layout"
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m">
<List
id="ShortProductList"
headerText="Products">
<items>
<StandardListItem
title="{0/Name}"
description="{0/ProductId}"
icon="{0/ProductPicUrl}"
iconDensityAware="false"
iconInset="false"
adaptTitleSize="false" />
<!-- set this item's description be empty -->
<StandardListItem
title="{1/Name}"
description=""
icon="{1/ProductPicUrl}"
iconDensityAware="false"
iconInset="false"
adaptTitleSize="false" />
<StandardListItem
title="{2/Name}"
description="{2/ProductId}"
icon="{2/ProductPicUrl}"
iconDensityAware="false"
iconInset="false"
adaptTitleSize="false" />
<!-- don't specify a description for this item -->
<StandardListItem
title="{3/Name}"
icon="{3/ProductPicUrl}"
iconDensityAware="false"
iconInset="false"
adaptTitleSize="false" />
</items>
You have to use CustomListItem and to build this particular row yourself I'm afraid. Probably you have to insert a horizontal layout and then a vertical layout to achieve your goal, but there may be different paths to your desired goal.

Confluence Macro Browser autocompletion for attachments

I am trying to show all attachments (from the current page) in an auto-completed drop-down list. This is the part in the atlassian-plugin.xml which defines the parameters:
<xhtml-macro name="plugin-name" class="com.example.macro.name" key="macroname-xhtml" icon="/download/resources/${project.groupId}.${project.artifactId}/icons/macroname.png">
<category name="formatting"/>
<parameters>
<parameter name="content_input" type="confluence-content" />
<parameter name="space_input" type="spacekey" />
<parameter name="attachment_input" type="attachment" />
</parameters>
</xhtml-macro>
The confluence-content and spacekey types work just fine. It shows a textfield which autocompletes Pages and Spaces.
However, the attachment type shows a empty drop-down list (select box) which cannot auto-complete.
The official Confluence documentation says it should work like I do:
https://developer.atlassian.com/display/CONFDEV/Including+Information+in+your+Macro+for+the+Macro+Browser
I must be missing something here, but I don't know what. Anyone might know what the problem is?
If you want a drop-down list with all the attachments then you may also try the following:
<xhtml-macro name="plugin-name" class="com.example.macro.name" key="macroname-xhtml" icon="/download/resources/${project.groupId}.${project.artifactId}/icons/macroname.png">
<category name="confluence-content" />
<parameters>
<parameter name="page" type="confluence-content" required="false"
multiple="false" />
<parameter name="name" type="attachment" required="false" />
</parameters>
</xhtml-macro>
Don't change the names of the parameters
If you want to add a filter, then you need the following:
<web-resource key="macro-browser-smart-fields" name="Macro Browser Smart Fields">
<resource type="download" name="confluence-core-macro-fields.js" location="js/confluence-core-macro-fields.js" />
<dependency>confluence.editor.actions:editor-macro-browser</dependency>
<context>macro-browser</context>
</web-resource>
confluence-core-macro-fields.js
(function($) {
AJS.MacroBrowser.activateSmartFieldsAttachmentsOnPage("plugin-name", [ "png", "jpg", "gif" ]);
})(AJS.$);
I found that setting the type as attachment (following official documentation) is bugged. I have found a work-around to display attachments in a auto-complete box.
<parameter name="xsd" type="confluence-content" required="true">
<option key="type" value="attachment"/>
<option key="showKeyInPlaceholder" value="false" />
<option key="showValueInPlaceholder" value="true" />
</parameter>