void AutoSuggest(
string
$input
)
|
|
Generate list for AutoSuggest listing. Formatted for simple of hidden inputs
Parameters:
|
string |
$input: |
- the search string used to filter the list |
API Tags:
mixed CallService(
string
$class, string
$method
)
|
|
Call/Invoke service method, this EasyForm name is passed to the method
Parameters:
|
string |
$class: |
|
|
string |
$method: |
|
API Tags:
| Return: | - return value of the service method |
| Access: | public |
Cancel input and do page redirection
API Tags:
Redefined in descendants as:
Close the popup window
API Tags:
void CopyRecord(
[string
$id = null]
)
|
|
Copy Record
Parameters:
|
string |
$id: |
id of record that want to copy |
API Tags:
void DeleteRecord(
[string
$id = null]
)
|
|
Delete Record NOTE: use redirectpage attr of eventhandler to redirect or redirect to previous page by default
Parameters:
API Tags:
EditRecord(
[
$id = null]
)
|
|
Edit Record NOTE: append fld:Id=$id to the redirect page url
Parameters:
API Tags:
Fetch single record
API Tags:
| Return: | one record array |
| Access: | public |
Fetch record set
API Tags:
| Return: | array of record |
| Access: | public |
Redefined in descendants as:
GetActiveRecord(
[
$recId = null]
)
|
|
Get activeRecord
Parameters:
API Tags:
Get object instance of BizDataObj defined in it's metadata file
API Tags:
Element GetElement(
string
$elementName
)
|
|
Get an element object
Parameters:
|
string |
$elementName: |
- name of the control |
API Tags:
array GetErrorElements(
array
$fields
)
|
|
Get error elements
Parameters:
API Tags:
string GetErrorMessage(
string
$msg
)
|
|
Get error message
Parameters:
API Tags:
Get event log message
API Tags:
| Return: | string or null |
| Access: | protected |
string GetMessage(
string
$msgId, [array
$params = array()]
)
|
|
Get message, and translate it
Parameters:
|
string |
$msgId: |
message Id |
|
array |
$params: |
|
API Tags:
| Return: | message string |
| Access: | protected |
array GetOnEventElements(
)
|
|
Get on event elements
API Tags:
| Return: | element list |
| Access: | protected |
GetProperty(
$propertyName
)
|
|
Get object property
Parameters:
API Tags:
Redefinition of:
- MetaObject::GetProperty()
- Get property
return redirect page and target array
API Tags:
| Return: | {redirectPage, $target} |
| Access: | protected |
Get/Retrieve Session data of this object
Parameters:
API Tags:
Redefined in descendants as:
Get sub form of this form
API Tags:
void GotoPage(
[number
$page = 1]
)
|
|
Goto page specified by $page parameter, and ReRender
Parameters:
API Tags:
Insert new record
API Tags:
void LoadPicker(
string
$viewName, string
$formName, [string
$elementName = ""]
)
|
|
Popup a selection EasyForm in a dynamically generated EasyView
Parameters:
|
string |
$viewName: |
|
|
string |
$formName: |
|
|
string |
$elementName: |
|
API Tags:
void LoadPopForm(
string
$viewName, string
$formName, [string
$queryStr = ""]
)
|
|
Load pop form
Parameters:
|
string |
$viewName: |
|
|
string |
$formName: |
|
|
string |
$queryStr: |
|
API Tags:
New record, be default, just redirect to the new record page
API Tags:
Get output attributs as array
API Tags:
| Return: | array of attributs |
| Access: | public |
Redefined in descendants as:
string ProcessBDOException(
mixed
$e, int
$errCode
)
|
|
Handle the exception from DataObj method, report the error as an alert window
Parameters:
API Tags:
string ProcessDataObjError(
[int
$errCode = 0]
)
|
|
Handle the error from DataObj method, report the error as an alert window
Parameters:
API Tags:
string ProcessFormObjError(
array
$errors
)
|
|
Process error of form object
Parameters:
API Tags:
| Return: | - HTML text of this form's read mode |
| Access: | public |
void ProcessPostAction(
)
|
|
Process Post Action
API Tags:
Read user input data from UI
API Tags:
| Return: | - record array |
| Access: | protected |
Read inputs
API Tags:
| Return: | array of input |
| Access: | protected |
void ReadMetadata(
array
&$xmlArr
)
|
|
Read array meta data, and store to meta object
Parameters:
API Tags:
Redefined in descendants as:
Remove the record out of the associate relationship
API Tags:
Render this form (return html content), called by EasyView's render method (called when form is loaded).
Query is issued before returning the html content.
API Tags:
| Return: | - HTML text of this form's read mode |
| Access: | public |
Redefined in descendants as:
string RenderContextMenu(
)
|
|
Render context menu code
API Tags:
| Return: | html code for context menu |
| Access: | protected |
Render html content of this form
API Tags:
| Return: | - HTML text of this form's read mode |
| Access: | protected |
Render parent form
API Tags:
string ReRender(
[boolean
$redrawForm = true], [boolean
$hasRecordChange = true]
)
|
|
Rerender this form (form is rendered already) .
Parameters:
|
boolean |
$redrawForm: |
- whether render this form again or not |
|
boolean |
$hasRecordChange: |
- if record change, need to render subforms |
API Tags:
| Return: | - HTML text of this form's read mode |
| Access: | public |
Rerender sub forms who has dependecy on this form.
This method is called when parent form's change affect the sub forms
API Tags:
Save input and redirect page to a new view
use redirectpage attr of eventhandler to redirect or redirect to previous page by default NOTE: For Edit/New form type
API Tags:
void SelectRecord(
string
$recId
)
|
|
Select Record
Parameters:
API Tags:
Redefined in descendants as:
void SetActiveRecord(
$rec
)
|
|
Set active record
Parameters:
API Tags:
Set client scripts, auto add javascripts code to the page
API Tags:
Set data object (BizDataObj) with specified instant from parameter
Parameters:
API Tags:
void SetFixSearchRule(
[string
$rule = null], [boolean
$cleanActualRule = true]
)
|
|
Set the dependent search rule of the bizform, this search rule will apply on its BizDataObj.
The dependent search rule (session var) will always be with bizform until it get set to other value
Parameters:
|
string |
$rule: |
- search rule has format "[fieldName1] opr1 Value1 AND/OR [fieldName2] opr2 Value2" |
|
boolean |
$cleanActualRule: |
|
API Tags:
void SetRequestParams(
array
$paramFields
)
|
|
Set request parameters
Parameters:
API Tags:
Save object variable to session context
Parameters:
API Tags:
Redefined in descendants as:
void SetSubForms(
string
$subForms
)
|
|
Set the sub forms of this form. This form is parent of other forms
Parameters:
|
string |
$subForms: |
- sub controls string with format: ctrl1;ctrl2... |
API Tags:
void SortRecord(
string
$sortCol, [string
$order = 'asc']
)
|
|
Sort Record, for list form
Parameters:
|
string |
$sortCol: |
column name to sort |
|
string |
$order: |
'dec' (decending) or 'asc' (ascending) |
API Tags:
Update form controls
API Tags:
void _showForm(
mixed
$formName, mixed
$target, mixed
$paramFields
)
|
|
API Tags: