Infopath - Instruct concat not to strip out existing formatting - sharepoint

I should like to append a string to the end of a Rich Text Box, on a button press.
I have configured the button to "set a field's value" on press, with the value being configured as:
concat(richTextBox, string_to_append)
However the concat function removes any existing formatting on the text in the text box.
Is there any way to tell concat() to preserve existing formatting
OR
Is there some way to convert the strings to byte arrays, then join and convert back?
(Using Infopath 2010 to edit a Sharepoint form.)

Related

Power Automate - how to pass rich text from SharePoint to Word?

I'm trying to send text from a multiline SharePoint column to a Word doc, using Power Automate. The html_to_text action recognises a bulleted list (which I don't need), but it doesn't seem to recognise words in bold, which I do need.
Any ideas how to pass the bold formatting?
Currently we cannot pass the bold formatting.
This is by design that Bold will not be retained, and Unordered lists will use * as prefix when we use Content Conversion service:
More information about Html to text action for your reference:
https://learn.microsoft.com/en-us/connectors/conversionservice/#html-to-text

Sharepoint 2010 Content types Hyperlinks and Word QuickParts

Sharepoint 2010I'm slowly making progress with Sharepoint, but have encountered a problem with Content Types and Word Quickparts.
What I'm trying to do:
I want a Content type to hold summary information for manuals and related documents that might be located in separate libraries. I want to display this information in a Table within Word (by setting up a template) using Word Quick Parts>Document property fields.This table would then summarise all the relevant fields and their related links at the top of a document that in turn summarises information about a particular system.This Word document in turn would be stored in a separate document library.
This all works fine for dates, text descriptions, check boxes, yes/no fields and drop down selections as I can find the related Word Quick Parts>Document Property
However, the "Hyperlink or Picture" Type fields are not present in the Word Quick Parts>Document Property fields. SoAm I completely misunderstanding what content types are for? orIs there a setting within sharepoint that would make these hyperlinks visible in the Word Quick Parts?or Is there a better alternate solution. Thanks!
Hyperlink is not available as property in Word Quick Parts.
Sadly, you can access to this field in Word when you click in the property icon. This will display all the SharePoint property of the document with the hyperlink field.
A workaround would be to create a simple text field and to put the URL of the hyperlink field in this field. (With Workflow or Event Receiver)
An another deep solution is proposed in this link :
https://social.msdn.microsoft.com/Forums/office/en-US/c7619237-baa1-4669-af65-0f0a39223aad/sharepoint-metadata-and-office-quickparts-hyperlinks-are-not-appearing-in-the-quick-part-list?forum=worddev
This is about create two properties, one for the text, one for the url. Then to arrange it in Word in order to get an hyperlink.
Since Microsoft seems to be removing a lot of its legacy web pages, the content of the above link is copied below:
a. In the sharepoint list, you will need two text properties, one for
the link text and one for the display text. Let's call them hllink1
and hldisplay1. For a sample document, put some text in each of these
properties.
b. in the template,
insert the hllink1 Document Property and the hldisplay1 Document Property. This is a temporary move that will let you change thevalues
of these properties without displaying the DIP
insert a HYPERLINK field as follows
use ctrl-F9 to insert a pair of field code braces { }
type HYPERLINK "" between the {}, so you have
{ HYPERLINK "" }
then insert another copy of the hllink1 Document Property between the ""
{ HYPERLINK "the Document Property for hllink1" }
c. select the Hyperlink field and use F9 to update it. When you show
the result (Alt-F9), you should see a clickable hyperlink where the
"display text" is the same as the link text
d. Click somewhere inside the display text, and insert the hldisplay1
Document Property.
e. Carefully select the remainder of the display text and delete it.
You should stil be left with a hyperlink that can be ctrl-clicked in
the usual way.
f. Modify the texts in hllink1 and hldisplay1. However notice that,
as a maximum, the hyperlink display text will update automatically.
The tooltip for the hyperlink does not update automatically.
g. Select the hyperlink and press F9 to update it. The tooltip/link
text should update

How can I programmatically map XML fields in Excel 2013?

I'm trying to programmatically map some fields from an XML file to a table in excel.
Manually, I go to the developer tab, hit the source button, select XML Maps, press the add button, paste in the path to my XML file, and Excel creates the XML map. I then click and drag the fields to certain cells in my worksheet. This works fine.
I figured I could use the macro recorder to capture this, however the actual mapping of the fields to the cells does not get recorded. The only thing that gets recorded is the creation of the map:
ActiveWorkbook.XmlMaps.Add( _
"path_to_my_XML_file" _
, "feed").Name = "feed_Map"
how can I programmatically map the fields to a range? Is it possible in VBA?

SSIS Sharepoint Insert - Combo Box Values

I am using SSIS (2008R2) to insert data into a SharePoint 2010 list. The problem I am having is that the combo box selections are inserted as text values (not the appropriate selection) and are not available on a subsequent extract. They also immediately revert to the first list item if a user edits the list item. How do I insert data and make the appropriate value selection from the combo-box values?
Ok. Figured this one out with a little trial and error.
The combo-box/"multi-select choice" stores as plain text.
In order to programatically insert with SSIS set the default value of the choice to calculation and leave it empty.
It is important to note that these items are not set to restrict to list.
Simply changing the default value to an empty calculation instead of "choice" (which defaults to the first list item) allowed me to insert plain text values and have them store properly.

how to enter free-form text in cell with drop-down-list?

I'm having to do a little bit of user data validation in Excel which will be used for application upload. I have a list of values (LOVs) that I'm providing in a drop down box in an Excel. That's easy.
Is there a way to also allow for free form text in the drop down list cell? Excel tries to validate it against the given LOVs. I don't need the user-entered text to become part of that LOV, just that it is possible to 'override' or put additional text in there instead?
In the Validation dialog, go to the "Error Alert" tab and uncheck "Show error alert after invalid data is entered".

Resources