Property Search Replace Operation

<< Click to Display Table of Contents >>

Manual > Screen Creation Guide > Advanced Editing Functions of Panel Editor > Property Search >

Property Search Replace Operation

Property Search Replace Operation

This article explains the replace operation in the property search function of Panel Editor.

 

Property search provides the ability to replace property or binding settings with any string.

 

The replacement operation is performed in the following parts:

 

fap_s_0049

 

fap_s_0018

Enter the replacement string.

 

fap_s_0050

Specifies the conditions for the replacement process.

 

You can choose from the following:

•Replace entire text... Replaces the entire text set in the target column with the search string.

•Replace search string portion... Replaces only the part that matches the search string.

 

fap_s_0019

Replaces the line selected in the search list with the selected line. After the replacement, the selected line remains.

 

fap_s_0021

Replace all lines displayed in the search list at once.

 

fap_s_0023

Replaces the line selected in the search list with only one line, then moves to the next line. This operation is useful when you want to check the lines to be replaced one by one.

 

fap_s_0025

Moves to the next line from the currently selected line in the search list. No replacement is performed.

 

fap_s_0026

Moves from the currently selected line in the search list to the previous line. No replacement is performed.

 

fap_s_0074

Cancels and undoes the replacement.

 

fap_s_0075

Cancels the undo of a replacement (redo).

 

 

You can also select whether or not to include a line in the replacement by checking the following columns in the search list. Clicking the check mark with the mouse will switch the check between ON/OFF, and unchecking it will exclude it from the replacement process. For example, if the line is unchecked, even if you perform the operation "Replace only one line and move to the next line", the replacement process will not be performed and you will move to the next line.

 

fap_s_0051

 

 

The following explains how to perform the replace operation.

 

1.Run a script search.

 

As an example, we will use the following search criteria:

 

fap_s_0052

 

•Exact match...ON

•Object... Button

•Property name: Focusable

•Property value: T

•Search criteria: Search within the selection form

 

The search results are displayed in a list. The list shows all button objects placed on Form01 that have Foculable "T".

 

fap_s_0053

 

 

2.Set the conditions for the replacement process.

 

Click the icon (red gear) to set the replacement conditions. In this example, we will set it to "Replace entire text."

To avoid unintended consequences, be sure to check the following settings before making any substitutions:

 

fap_s_0054

 

Setting items

Commentary

Replace an entire character

Among the settings displayed in the column (property, binding) to be replaced,Replaces the entire displayed string with the replacement string..

 

example)

If the bind expression is set to "IN:U01.F01.T01", searching for "U01.F01.T01" against the bind column will display all properties that have U01.F01.T01 in the bind expression in the list.

 

fap_s_0055

 

In this state, if you set "Replace entire text" and specify "U01.F01.T03" in Replace Text and perform the replacement, the entire text will be replaced with "U01.F01.T03" as shown below (*Please note that this is not "IN:U01.F01.T03").

 

fap_s_0056

 

 

Replace part of search string

Among the settings displayed in the column (property, binding) to be replaced,Replaces only the part of the displayed string that matches the search string with the replacement string..

 

example)

If the bind expression is set to "IN:U01.F01.T01", searching for "U01.F01.T01" against the bind column will display all properties that have U01.F01.T01 in the bind expression in the list.

 

fap_s_0055

 

In this state, if you set "Replace search text portion" and specify "U01.F01.T03" in Replace Text and perform the replacement, only the "U01.F01.T01" part will be replaced with "U01.F01.T03", as shown below.

 

fap_s_0057

 

 

 

3.Replace only one line

 

To replace only one line, first enter the replacement string in the following section. In this example, enter "F".

And in the search results listBe sure to select the column you want to replace in the row you want to replace., and click the Replace one line action icon. In this example, Property Value

Select the column.

 

fap_s_0058

 

 

The value in the target row/column was then replaced with "F."

 

fap_s_0059

 

 

hint

Binding settings can also be replaced in a similar way.

 

 

4.Global Replace

 

To perform a bulk replacement, first enter the replacement string in the following area. In this example, "F" is entered.

And in the search results listMake sure to select the column you want to replace (the row position is optional)Click the Bulk Replace action icon.

 

fap_s_0060

 

 

The contents of the selected column (in this example, "Property Value") for all rows displayed in the search result list will now be replaced with the specified replacement string (in this example, "F").

 

fap_s_0061

 

 

5.Cancel (undo) a replacement

 

To cancel the replacement (revert to the state before replacement), you can undo it by performing the following operations.

 

fap_s_0062

 

 

This will cancel the replacement process and revert it to its original state.

 

fap_s_0063

 

 

hint

Binding settings can also be replaced globally in a similar way.

 

hint

You can cancel (undo) a replacement operation only until a search for a different keyword is performed in the property search (i.e., while the replaced item is displayed in the search result list).