Support > Repository > Search control > [Advanced] Search condition template
ja | en

Multiple search conditions can be prepared in advance as "templates". When you select a template, each search item is automatically set.

"Search template" is a function that assigns names to combinations of multiple search conditions and automatically sets search conditions according to this name.

It shows the execution example is shown in Figure 1.When "Search Template Name" is not selected, both search item "work name" and "registration classification" are unselected.

Fig. 1 Initial state where search template name is not selected

Select an arbitrary search processing pattern from "Search Template Name".

Figure 2 Selecting the Search Template Name

As shown in Figure 3, the search condition is set automatically.

Figure 3 Search condition was set automatically

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

Fig. 4 Using search conditions

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.

Figure 12 Target business model

For "Search template name" item, refer to "Search condition template" model in Fig.

Figure 13 Definition of "Search Template Name" Item

In the item "reference linkage (hidden) work name" and "reference linkage (hidden) business classification", the value of the search template model is acquired by reference linkage respectively.

Fig. 14 Relationship between "reference interlocking (hidden) work name"
Relationship of Fig. 15 "Reference interlocking (hidden) business division"

"Search template name" "Reference interlocking (hidden) work name" "Reference interlocking (hidden) business division" (red frame part)

"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".

Fig. 20 "Search Control - Make Hidden Item (Full Screen)" and "Search Control - Make Read Only"

"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.

Figure 23 Redrawing the screen when changing the value