Here is an example of preparing input fields in units of 1 million yen by combining hidden item setting, descriptive text setting before and after the input field, input field length setting.
The monetary item of the project model deals with figures in the unit of one million yen when inputting and outputting.However, the database stores "1,000,000".
On the search screen, you can search with exact numerical values, not rounded numbers.
Figure 4 shows the definition of the project model shown in the above example.Two items are available for "amount for input/output" and "for search".
This item is used for input and output, but it is not used in search. First, for unit display, "Input field"And prepare a margin on the right side of the input field.
"Input control> style> String to be displayed after the input field", Specify the unit.
Together this time "Cursor position in input area"Right-aligned".
Separate the format of "Output control> Detailed screen> Numeric" into three digits.
"Output control> Detail screen> Style> Display contents of label"Amount" will be.It is intended to unify the item name displayed on the screen to "amount".(We will do the same in the search screen, which will be described later.)
This item is for searching purposes.Save the numerical value multiplied by 1000000 to the value of the entered budget_input item in the database.
"Input control> Hidden items"Is set.
In the same way, "output control> details screen> Hidden items"Is set.By this, this item is not displayed on the screen for both input and output.
We also set the output format.
"Search control> style> Display contents of label"Amount" will be.