Unit2 - Lesson 4 - Creating a Search Page Flashcards
How to use > stereotype to return multiple records
Entity > Add Operation > read multi
Name the operation
Select attributes for key struct.
How to use Generated List structs to return multiple records
[Modeling a BPO readmulti] (facade or process operation)
Model the input struct
Model return type and shadow type (can reuse from entity >)
How to use UIM List element to view multiple entries in a table
Without UIM
- Use a HTML table to display multiple entries
- Need to calculate the number of rows
With UIM
- Combination of LIST and SERVER_INTERFACE elements
- Can page through the list and control # of records
- Can display # of items in the list beside the list title
How to control the number of records returned from the server
In RSA operation option can set Readmulti_max=60
OR In Bootstrap.properties set curam.db.readmultimax=100
Handling is based on Readmulti_informational. applies to > > >.
0 is infinity.
Except is thrown if more records available than readmulti_max.
RSA config is taking precedence of Bootstrap.properties
How to use the pagination feature to control the number of records displayed on each page
Applies to list defined with a LIST element. All records are returned to the client and they are paginated without further calls to the server.
Global pagination is set in curam-config.xml:
PAGINATION true or false
DEFAULT_PAGE_SIZE number of rows to display, size can be changed at runtime.
PAGINATION_THRESHOLD minimum list size before pagination is enabled.
Page specific pagination is defined using attributes of a LIST element.
Page specific pagination takes precedence of an application wide pagination.
Default value is 15.
How to create a Search page
PAGE_ID=”BankAccount_searchAccount”
Set ACTION SERVER_INTERFACE NAME=”searchAccountBean” CLASS=”MaintainBankAccount” OPERATION=”searchAccountyType”
CLUSTER > ACTION_SET > ACTION_CONTROL TYPE=”SUBMIT” > LINK PAGE_ID=”THIS”
ACTION_CONTROL > LINK PAGE_ID=”BankAccount_searchAccount”
FIELD > CONNECT > TARGET NAME=”searchAccountBean”
describe Readmulti stereotype
Returns on or more records in a list
Select on a non-primary key
List struct is generated to contain the list of records to return
Return struct is created by the generators
Define LIST element usage
Attributes: TITLE, STYLE, DESCRIPTION, SORTABLE, SUMMARY, SCROLL, HEIGHT, BEHAVIOUR, PAGINATED, DEFAULT_PAGE_SIZE, PAGINATION_THRESHOLD
Elements: TITLE, DESCRIPTION, ACTION_SET, FIELD, CONTAINER, CONDITION, FOOTER_ROW
LIST element - Display Number of Records
To display number of records found
Specify curam-config.xml list_row_count[true]list_row_count
The display text is defined in CDEJResources.properties [record.number.message=Number of Items:]
Explain Readmulti_informational option
Determines what happens when Readmulti_max reached
If not enabled, Readmulti_max message gets logged and all entries are returned to user
If enabled, InformationalMessage can be added to InformationManager for handling in the Facade layer. Only Readmulti_max number of entries are returned.
Applies to > > > >
Default is false for Readmulti_informational.