If you press the "Execute Search" button here, you can narrow down by the set search criteria.

Fig. 4 Using search conditions

How to write a repository

Figure 5 shows the model you prepared to run the above example.

Fig. 5 Model list

"Business division" model

This model and value ("provisional registration" "book registration") has no meaning.I treat it as a sample.

Figure 6 Business division model

"Business name master" model

This model has no meaning either.Figure 8 is prepared as sample data.

Figure 7 Business name master model

Figure 8 Sample data of business name master model

"Search condition master" model

It is a model for storing "search condition template".
For the items included in this model, the values ​​of the "business classification" and "business name master" models shown in Fig. 6 and Fig. 7 are retained.

Figure 9 "Search condition template" model definition

For example, the item "work name" refers to the "work name master" model in Figure 7.

Figure 10 Definition of "task name" item

Figure 11 shows an example of the search condition template used in this sample."Business name" "Business division" is the actual search item, and it is naming it.

Figure 11 "Search condition template" example

"Target business" model

A model that applies a search condition template.The point is to pull the search condition (by reference linking) by selecting the name of the search condition template model.This is the red frame in Figure 12.

However, this reference linked item itself is not a search condition.The actual search item is the blue frame in Figure 12.

"Search template name", "reference interlocking (hidden) work name", and "reference interlocking (hidden) business category" which are the red frame portion in FIG.It is set to use for search conditions, but it is not saved in the database.(This is for the intention of using on the search screen and is not used for actual search conditions.)

Do not save Fig. 16 "Search template name" in the database

Do not save Fig. 17 "Reference linked (hidden) work name" "Reference linked (hidden) business classification" in the database

Set "input control - make hidden item (full screen)" for "reference interlocking (hidden) work name" and "reference interlocking (hidden) business classification".

Figure 18 "Input Control - Make Hidden Item (Full Screen)"

Also set "output control (detail screen) - make it hidden" for "reference interlocking (hidden) work name" and "reference interlocking (hidden) business classification".

Figure 19 "Output control (detail screen) - make it a hidden item"

Also set "Search Control - Make Hidden Item (Full Screen)" and "Search Control - Set to Read Only" in the same way "Reference Linked (Hidden) Business Name" and "Reference Linked (Hidden) Business Group".

"Business name" "Registration classification" (blue frame part)

Defined in the blue frame part of Figure 12Items actually used for search, Specify the corresponding reference linkage item name in "Search Control - Copy and Use the Value of Another Item".This allows you to copy the reference linked value and use it as a search condition.

Figure 21 Copying and Using the Value of Another Item (1)

Figure 22 Copy and use the value of another item (2)

Redraw the screen when changing the value

Lastly, for "target template name" item in the target task model, "Enable input control - Redraw screen when changing value" is enabled.As a result, when template is selected, search values ​​are linked with each other (although it is not displayed on the screen), screen redrawing will be performed with the reference linked values ​​copied.