uCosminexus Service Platform, Basic Development Guide

[Contents][Glossary][Index][Back][Next]

6.5.5 Removing Spaces from a String

Removes the leading and trailing spaces (single--byte space, tab, carriage return, and line feed) from a string of the mapping source. Also replaces consecutive spaces between strings with a single space.

Organization of this subsection
(1) Function used
(2) Setup procedure

(1) Function used

To remove spaces from a string, you use the trim node function. The following figure shows an example that uses the trim node function.

Figure 6-6 Usage example of the trim node function

[Figure]

(2) Setup procedure

To remove spaces:

  1. From the palette, choose the trim node function (trim), and deploy it in the mapping viewer.
  2. Set up a mapping line.
  3. Use one of the following methods to open Trim Node dialog box:
    • Right--click the trim node function, and choose Setting.
    • Double--click the trim node function.
    The Trim Node dialog box opens.
    For details about the Trim Node dialog box , see the manual Cosminexus Service Platform Overview.
  4. When a transformation-source node is specified in Input, to specify a condition for the transformation-source node and map it only when this condition is satisfied, click Set Node Condition.
    The Set Node Condition dialog box opens.
    For details about how to set a node condition, see 6.7 Specifying Node Conditions. For details about the Set Node Condition dialog box, see the manual Cosminexus Service Platform Reference.
  5. Click OK.