{"id":389,"date":"2015-10-26T11:58:09","date_gmt":"2015-10-26T16:58:09","guid":{"rendered":"https:\/\/linux.asberry.org\/blog_tech\/?p=389"},"modified":"2024-05-14T09:14:28","modified_gmt":"2024-05-14T14:14:28","slug":"tcc-replace-crlf-in-export","status":"publish","type":"post","link":"https:\/\/asberry.org\/blog_tech\/?p=389","title":{"rendered":"TCC &#8211; Replace CR\/LF in Export"},"content":{"rendered":"<p>Sometimes you get to export a field where someone could have placed CR\/LF&#8217;s, which is an enter in a text area sending carriage return line feed.  This is the replace statement that will removed it and replace it with a blank:<\/p>\n<pre class=\"brush: xml; light: false; title: ; toolbar: true; notranslate\" title=\"\">\r\n&lt;quer:projection alias=&quot;OfferNotes&quot; projectedValueType=&quot;string&quot; xmlns:quer=&quot;http:\/\/www.taleo.com\/ws\/integration\/query&quot;&gt;\r\n  &lt;quer:replace&gt;\r\n    &lt;quer:replace&gt;\r\n      &lt;quer:field path=&quot;CurrentOffer,Notes&quot;\/&gt;\r\n      &lt;quer:customFunction name=&quot;CHR&quot;&gt;\r\n        &lt;quer:integer&gt;10&lt;\/quer:integer&gt;\r\n      &lt;\/quer:customFunction&gt;\r\n      &lt;quer:string\/&gt;\r\n    &lt;\/quer:replace&gt;\r\n    &lt;quer:customFunction name=&quot;CHR&quot;&gt;\r\n      &lt;quer:integer&gt;13&lt;\/quer:integer&gt;\r\n    &lt;\/quer:customFunction&gt;\r\n    &lt;quer:string\/&gt;\r\n  &lt;\/quer:replace&gt;\r\n&lt;\/quer:projection&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes you get to export a field where someone could have placed CR\/LF&#8217;s, which is an enter in a text area sending carriage return line feed. This is the replace statement that will removed it and replace it with a blank: &lt;quer:projection alias=&quot;OfferNotes&quot; projectedValueType=&quot;string&quot; xmlns:quer=&quot;http:\/\/www.taleo.com\/ws\/integration\/query&quot;&gt; &lt;quer:replace&gt; &lt;quer:replace&gt; &lt;quer:field path=&quot;CurrentOffer,Notes&quot;\/&gt; &lt;quer:customFunction name=&quot;CHR&quot;&gt; &lt;quer:integer&gt;10&lt;\/quer:integer&gt; &lt;\/quer:customFunction&gt; &lt;quer:string\/&gt; &lt;\/quer:replace&gt; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"TCC - Replace CR\/LF in Export","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[13],"tags":[],"class_list":["post-389","post","type-post","status-publish","format-standard","hentry","category-tcc","author-aron"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4bBkH-6h","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=389"}],"version-history":[{"count":1,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/389\/revisions"}],"predecessor-version":[{"id":390,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/389\/revisions\/390"}],"wp:attachment":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}