My IPeople

Community discussion for IPeople products and services
Welcome to My IPeople Sign in | Help
in
Home Blogs Forums

C/S NPR Utility program for changing the length of a multiple field

Last post 08-24-2007, 5:41 AM by Brian. 0 replies.
Sort Posts: Previous Next
  •  08-24-2007, 5:41 AM 562

    C/S NPR Utility program for changing the length of a multiple field

    Sometimes a field from a Child Segment has multiple lines of free text.  Let's assume the length of the Child Field is 40 but you would like it to be reformatted to print out a length of 30.  The following example converts the text stored in the child  segment into another table called /GMOD but with a length of 30 instead of 40.  Then the contents of /GMOD are put into an MV Array:

     ""^TEMP,
     DO{>/GMOD[TEMP]^TEMP ""^/GMOD[TEMP]},
     %NUR.TOOL.BOX.convert.length(^@Root(@child.segment),^/GMOD,30),
     ""^TEMP,
     DO{+(/GMOD[TEMP],LN)^TEMP "  "_LN^@Z.rpt.mv[MARKER,TEMP,FIELD]}

    MARKER would need to be replaced whatever value used in your MV Line Attribute.  FIELD would be replaced by the field # on your Report Picture.

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems