Class: cWebBusinessProcess
Class Hierarchy:
cObject

cDistributedBusinessProcess


cRemoteEntryProcess



cInternetSessionBusinessProcess




cWebBusinessProcessMixins:
HtmlFormat_Mixin, HtmlWrite_Mixin, WmlFormat_Mixin, WmlWrite_Mixin,
Class Definition
Properties
integer
hDDValueInterface
integer
phAutoWebReport
integer
phLastFindDD
integer
piLastFindIndex
String
psAutoEntryDataEnd
String
psAutoEntryDataStart
String
psAutoEntryLabelEnd
String
psAutoEntryLabelStart
Functions and Procedures
integer
AutoEntry(string sFileName)
This creates an entire HTML output entry form automatically for all fields that
are not binary or overlap
integer
AutoReport(string sFileName string iIndex string sHRef integer iMax integer iStart)
Auto report.
pass: FileName, Index, ASP-href name

Construct_object()
string
CreateFindIndexCombo(string sComboName string sfileName integer iDfltIndex)
Create a Combo with all Indexes for passed File and current selected fldname
returns control named FindIndex
string
DDAutoControl(integer hMain integer iFile integer iField string sParams)
integer
ddClear(string sFile)
ddClear
string
DDComboControl(integer hMain integer iFile integer iField string sParams)
string
DDComboOptions(integer hMain integer iFile integer iField)
integer
ddDelete(string sFile)
ddDelete
Delete current record in DD
string
DDEditControl(integer hMain integer iFile integer iField string sParams)
string
DDFieldErr(integer hMain integer iFile integer iField integer bShort)
integer
ddFind(string sFileName string sFieldName Integer iFindMode)
ddFind
Find Record from primed DD buffer
Note: 2nd param (sFieldName) can be a field (if name passed) or an index (if number passed)
integer
ddFindbyRecId(string sfileName String sRec)
ddFindbyrecId
Find by record Id. Pass FileName and record ID
integer
ddFindbyRowId(string sfileName string sSerializedRowId)
integer
ddFindFirst(string sFile string sField)
ddFindFirst
Find First record.
Note: 2nd param can be a field (if name passed) or an index (if number passed)
integer
ddFindLast(string sFile string sField)
ddFindLast
Find last record.
Note: 2nd param can be a field (if name passed) or an index (if number passed)
integer
ddFindNext()
ddFindNext
Find next record. Must be primed with a ddFind, ddFindFirst or ddFindLast
This takes no params, it uses last "primed" find data.
integer
ddFindPrev()
ddFindPrev
Find previous record. Must be primed with a ddFind, ddFindFirst or ddFindLast
This takes no params, it uses last "primed" find data.
string
DDFormControl(integer hMain integer iFile integer iField string sParams)
string
DDHndValue(integer hMain integer iFile integer iField integer iOption string sParams)
This replaces the standard ddValue
string
DDParentComboControl(integer hMain integer iFile integer iField string sParams)
changed to use row ids instead of recnums. Should work the same
string
DDRadioControl(integer hMain integer iFile integer iField string sParams)
in WA/3 we now pass optional decriptions on sParams delmited by "|". e.g. "Yes|No|Maybe".
If passed those are used for the radio item descriptions. If not passed, we use the database values
which is consistent with WA/2.
String
DDReadOnlyHTML(integer hMain integer iFile integer iField)
string
DDRecsOptions(integer hMain integer iFile integer iField)
string
DDRowIdsOptions(integer hMain integer iFile integer iField)
integer
ddSave(string sFile)
ddSave
This does a validate and a save.
String
DDTitleHTML(integer hMain integer iFile integer iField)
integer
ddValidate(string sFile)
ddValidate
validate all fields (even if error is encountered all fields are validated)
string
DDWMLInputControl(integer hMain integer iFile integer iField string sParams)
create input for WML
integer
DoAutoReport(integer iIndex string sHref integer iMax integer iStart)
not used. keeps the compiler happy
integer
DoRequestFindbyRecId(string sfileName String sRec)
Find by recnum. Pass FileName and record ID
integer
DoRequestFindbyRowId(string sfileName String sRec)
Find by rowed. Pass FileName and serialized row id

Enumerate_DDOs(integer hDD integer hMsg integer hObj string sP1 string sP2)
*************************************************************************
*** Interface reporting:
*************************************************************************
Ideally these two messages belong in the DD class.
traverse All DDOs starting at the parent most and working down.
String
FormatXmlObjName(String sObject)
FormatXmlObjName
----------------
This is a cheap way to improve the way that object names appear in WebApp.xml
At least it is better than ALLCAPS.
String
GetParamType(String sParamName)
GetParamType
------------
determine the parameter type by analysing the parameter name.
The analysis is case-sensitive, so the name must be case-exact...
string
Html_Ctrl_Name(integer iFile integer iField)
string
Html_Ctrl_RowId_Name(integer iFile)
string
IndexMainField(string sfileName integer iIndex)
return field name of first segment in index

PrivateEnumerate_DDOs(integer hDD integer hMsg integer hObj string sP1 string sP2)

RegisterAutoEntryInterface()
includes interface to create an auto-entry screen

RegisterBasicErrorInterface()

RegisterDDInterface()

RegisterDebugInterface()

RegisterFullErrorInterface()

RegisterStandardInterface()
includes the standard call Interface

ShowDDData(integer hDD integer hoObj integer hmMsg)

ShowddValue(integer hoObj integer hmMsg)

ShowWBOData(integer hoObj integer hmMsg integer iMode)

ShowXml(integer hObj)
ShowXml
-------
XML Output. Both of these messages expect that hOBj understands the messages
Add_xml_tag, begin_xml_tag and end_xml_tag

ShowXMLDDdata(integer hDD integer hObj)
ShowXMLDDdata
-------------

ShowXMLddValue(integer hObj)
ShowXMLddValue
--------------

ShowXmlMethodParameters(Integer hObj String sParams integer bExtendedParams)
ShowXmlMethodParameters
-----------------------
This method parses the sParams and outputs the <Params> collection of WebApp.xml.
The sParams string is derived from the InterfaceMessageParams property of a given
interface method.
String
TrueFalse(integer bState)
string
ValTbl_ItemData(integer hMain integer iFile integer iField integer iItem)
string
ValTbl_ItemDesc(integer hMain integer iFile integer iField integer iItem)
integer
ValTbl_Items(integer hMain integer iFile integer iField)
string
WmlCreateFindIndexSelect(string sComboName string sfileName integer iDfltIndex)
create index selector for WML

WriteData(address pData)

WriteHtml(string sHtml)
If you use characters that could be understod as a html tag it will be written as a tag.

WriteHtmlPlainText(string sTxt)
Will output everything in the string without destroying the HTML page.
String
YesNo(integer bState)
References (10):