Use this field level rule to justify (left, right, or center) a variable field by modifying its field coordinates.
JustFld (Mode,Cord,XPos,Achr,Rota,Font,NoClip,Rule)
This rule calls either the Move_It, MoveNum, FmtDate, FfSysDte, MoveSum, ConCat, TblLkUp, SAPMove_It, MoveExt, FmtNum, TblText, Mk_Hard, StrngFmt rules, or other similar rules.
The first parameter used by the JustFld rule must be the Mode parameter. Here is a discussion of the parameters:
Parameter |
Description |
Mode |
Enter L (left), R (right), or C (center). If you omit this parameter, this rule will call the Move_It rule and generate an error message. You must also include the Cord or Xpos parameter. The other parameters are optional. The mode parameters (left, right, and center) tell the system to remove leading and trailing blanks before it justifies the data. Use the NoClip parameter if you do not want the system to do this. |
Cord |
Enter the top, bottom, left, and right coordinates to define where the field appears on the page. In Studio, you specify a field’s coordinates on the field’s Properties window. The coordinates are specified as shown here: The top coordinate is specified in the Vertical field. The bottom coordinate is the entry in the Vertical field, plus the entry in the Height field. The left coordinate is specified in the Horizontal field. The right coordinate is the entry in the Horizontal field, plus the entry in the Width field. |
XPos |
Enter the X coordinate used to align the field. If Mode=R this will be the right most position of the field, likewise if Mode=C this will be the center of the field. Here is an example: MODE=R,XPOS=5000 If the data is 12345, character 5 will be at position 5000. |
Achr |
Enter a string of characters found in the data and used to align the field. When you use this parameter, you must define the XPos parameter, otherwise the system ignores the Achr parameter. With the correct setup, the rule aligns the field so the characters you specify in this parameter overlay the XPos. You can include up to 10 characters in the string. Here is an example: MODE=R, XPOS=5000, ACHR=. If the data is 123.45, the decimal will be at position 5000. |
Rota |
Specifies the field rotation. Enter 0,90,180, or 270. For example: ROTA=270 This tells the system to rotate the field 270 degrees. |
Font |
Specifies the font ID. Here is an example: FONT=11010 |
NoClip |
Tells the system not to remove trailing spaces from the field. |
Rule |
Enter the name of the rule you want to use to load the data from the extract file. If you omit this parameter, the system uses the Move_It rule. You can choose from any of the date function rules, such as FmtDate, FfSysDte, MoveSum, ConCat, TblLkUp, SAPMove_It, MoveExt, FmtNum, TblText, Mk_Hard, StrngFmt, and so on. For instance, enter MoveNum to have the JustFld rule call the MoveNum rule. This lets you use the formatting capabilities of the MoveNum rule. Here is an example: MODE=R,XPOS=5000,RULE=MoveNum,FONT=11010 |
Be sure to separate the parameters in the data area with commas.
Essentially, you first define the necessary information as though you were not using the JustFld rule, but were going to use the underlying rule to get the data. Then, at the end of the list of parameters, add the Mode parameter and follow with any other JustFld rule parameters you need—including the Rule parameter if you want to use a rule other than Move_It.
If the call to the rule fails, this rule returns an error. If you omit the Mode parameter, this rule calls the Move_It rule and generates an error. The Mode parameter separates the portion of the data parameter passed to the specified rule.
Use of the LoadCordFAP option also affects the JustFld rule. The following table shows how this INI option affects this rule:
If set to... |
Then... |
Yes |
The system gets the coordinates (Cord), font (Font), and rotation (Rota) from the FAP file. |
No |
You must define the coordinates, font, and rotation using the Cord, Font, and Rota parameters. Otherwise the field will not be positioned properly. |
© Copyright 2014, Oracle and/or its affiliates. All rights reserved. Legal notices.