web stats
How to remove a library or code template - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 02-13-2018, 05:55 AM
frankh frankh is offline
What's HL7?
 
Join Date: Feb 2018
Posts: 5
frankh is on a distinguished road
Default How to remove a library or code template

I finally figure out how to add a new library with a code template. (See below)
But now I can't figure out how to remove the library or even remove old code templates. According to the API it an andArray[string] of ids. But in what format? How would you alter my current bulk update to remove the library beforehand or remove any unused code templates. Thanks

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="libraries"
Content-Type: application/xml

<list>
<codeTemplateLibrary version="3.5.1">
<id>ce996cc2-825b-470e-9ad3-91f8c8da8ca1</id>
<name>TestLibrary</name>
<includeNewChannels>false</includeNewChannels>
<enabledChannelIds/>
<disabledChannelIds/>
<codeTemplates>
<codeTemplate version="3.5.1">
<id>054540d8-5613-4779-8e02-43552ee1b8f8</id>
</codeTemplate>
</codeTemplates>
</codeTemplateLibrary>
</list>

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="updatedCodeTemplates"
Content-Type: application/xml

<list>
<codeTemplate version="3.5.1">
<id>054540d8-5613-4779-8e02-43552ee1b8f8</id>
<name>TestTemplate</name>
<contextSet>
<delegate>
<contextType>DESTINATION_FILTER_TRANSFORMER</contextType>
<contextType>SOURCE_RECEIVER</contextType>
<contextType>DESTINATION_DISPATCHER</contextType>
<contextType>DESTINATION_RESPONSE_TRANSFORMER</contextType>
<contextType>SOURCE_FILTER_TRANSFORMER</contextType>
</delegate>
</contextSet>
<properties class="com.mirth.connect.model.codetemplates.Basic CodeTemplateProperties">
<type>FUNCTION</type>
<code>
/**


@param {String} arg1 - arg1 description
@return {String} return description
*/
function new_function1(arg1) {
return &quot;test&quot;
}</code>
</properties>
</codeTemplate>
</list>

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="removedLibraryIds";
Content-Type: application/xml;

<set/>

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="removedCodeTemplateIds";
Content-Type: application/xml;

<set/>

------WebKitFormBoundary7MA4YWxkTrZu0gW--
Reply With Quote
  #2  
Old 02-14-2018, 06:46 AM
frankh frankh is offline
What's HL7?
 
Join Date: Feb 2018
Posts: 5
frankh is on a distinguished road
Default Issue??

Is there no way to update a libraries code templates without deleting all the libraries on the Mirth system?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 02:43 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Mirth Corporation