How to give NewLine feed to the text in OIC using xslt function

The requirement here is , if you get from the source system the text with some delimiters for e.g. here in this case the delimiter used as ## to give uniqueness and we want the text to split into new line wherever you see '##' for that we can use the \n hexadecimal code as 
 as shown below in OIC mapping.

  • In this case, from source system we got input as below 
 '(J0D) BRAZILWOOD//(WE) BRAZILWOOD##Laminate Color:(J0D) BRAZILWOOD##Edge Color:(WE) BRAZILWOOD'
  • Now here we want to replace '##' with the new line '\n', use the below code snippet according to your use case in order send the output to the target system.

       <xsl: value-of select="translate ($GlobalVarConfigDetails,'##', '&#10;' )"/>

Note:- After you use this expression in the mapping, at runtime you won't be able to see the text with new line. We have to go and check the target system there you will be able to see the exact result of this function.

 





  



Comments

  1. "As a business student, I'm always keen to learn about innovative solutions like Fusion SCM. Your post breaks down its features and benefits brilliantly. I'd love to hear more about its practical applications and success stories." fusion scm training in hyderabad

    ReplyDelete

Post a Comment

Popular posts from this blog

ERP Fusion Cloud Cost Rollup Process using OIC via API's

Oracle Fusion Cloud SCM REST and SOAP API's to use in OIC( Oracle Integration Cloud)