Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Find String in PUI DDS Source (PUIFNDSTR) command lets you search for character strings in the Profound UI metadata stored in DDS source code. You can use it to determine which widgets contain a given string or are bound to a particular DDS field.

...

Parameters

Keyword

Description

Choices

Notes

STRING

Find 'string'

Character value, *ALL

Required

PROPERTY

Property to search

Character value, *ALL

Required

SUBPROPSub-property to searchCharacter value, *NONE, *ALLOptional

SRCFILE

Source file

Qualified object name

Optional

 

Qualifier 1: Source file

Name, QDDSSRC

 

 

Qualifier 2: Library

Name, *LIBL, *CURLIB

 

SRCMBR

Source member

Name, *ALL

Optional

BNDONLY

Bound field names only

*YES, *NO

Optional

MATCHCASE

Search is case-sensitive

*YES, *NO

Optional

OUTPUT

Output

*, *OUTFILE

Optional

OUTFILE

File to receive output

Qualified object name

Optional

 

Qualifier 1: File to receive output

Name

 

 

Qualifier 2: Library

Name, *LIBL, *CURLIB

 

OUTMBR

Output member options:

Element list

Optional

 

Element 1: Member to receive output

Name, *FIRST

 

 

Element 2: Replace or add records

*REPLACE, *ADD

 

Find 'string' (STRING)

Specifies the string you want to search for.

...

Only widget properties that contain the specified string will be searched. For example, if you specify 'border' for this string, all widget property names that contain the word 'border' will be searched.

Sub-property to search (SUBPROP)

Specifies widget sub-property name that will be searched. Some widget properties (such as "value") contain sub-properties such as "zeroBalance" (as shown on the Binding dialog) or "translations" (as shown on the "Translation Settings" dialog). The sub-property name as stored in the JSON metadata may be slightly different than what is shown on the dialogs.  For example, "Show Zero Balance" on the Binding dialog is stored in the metadata as "zeroBalance". To view the actual sub-property names, you can perform the following steps in the Profound UI Visual Designer:

  o  Open the Rich Display File, which will be initially displayed in Design View. Click "Edit" on the ribbon to select the Edit tab.                                                                      

  o  Under "View", click "Source" to switch to Source View. The JSON metadata for all widgets are displayed.                                                                      

  o  Right click on the source and click "Format Document" to view the metadata in a more readable format.                                                                      

  o  Press Ctrl-F to search for a particular widget and view its properties and sub-properties.

Example: Command "PUIFNDSTR STRING(12345) PROPERTY(*ALL) SUBPROP(translations)" will find all instances where the sub-property "translations" contains string "12345", regardless of what property the sub-property "translations" belongs to. Command "PUIFNDSTR TRING(12345) PROPERTY("column headings") SUBPROP(translations)" will find all instances where the sub-property "translations" of property "column headings" contains string "12345".

*NONE                                                                   

No sub-property will be searched.   

*ALL

Search all widget sub-properties of the property specified in the PROPERTY parameter.                                                                          

character-value

Only widget sub-properties that contain the specified string will be searched. For example, if you specify 'translations' for this tring, all widget sub-property names that contain the word 'translations' will be searched.

Source file (SRCFILE)

...

Error messages for PUIFNDSTR

*ESCAPE Messages

CPF9801

Object &2 in library &3 not found.

CPF9802

Not authorized to object &2 in &3.

CPF9810

Library &1 not found.

CPF9812

File &1 in library &2 not found.

CPF9820

Not authorized to use library &1.

PUI0041

&1 errors detected during search.