Dynamic MEDITECH Value Truncation
Typically, programmers truncate magic values like this: /DATA:10TL^/VARIABLE. The report writer will not translate this attempt at dynamic truncation: /DATA:/LENTL because /LENTL is now the name of a variable. To dynamically truncate a value based on a previously defined length, use the following method.
1) Get the length. Here we are retrieving the length of the data from the MIS Query Dictionary.
- @MIS.QUERY.length^/LEN
2) Truncate the data and store in another variable.
- /DATA:(/LEN_"TL")^/VARIABLE

0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home