The cVDFInternetSession class is considered private. All WBOs talk to this
by sending messages to the ghInetSession handle but this entire interface is
is private. All public access is defined in the WBOs and in the cWebApp object
Construct_Object()
- Integer
hErr - Integer
pbVerboseErrorswhen errors are reported should technical info be provided. If set
to true you get Error#, Line#, File# and Field#
- Integer
pbQueueErrorsWhen True, VDF errors are queued. This should be set
indirectly with ErrorQueueStart and ErrorQueueEnd
- Integer
pbAllErrorsToEventLogIf true, ALL errors are recorded in the event log. This
is good for debugging. If false only appropriate error
are event logged
- Integer
pbAllErrorsToLocalIf true, errors are directed to the VDF error handler. This
means an error will pop up on your VDF program. Normally not
wanted for the web, but this can be useful when debugging at
the server
- Integer
pbAllErrorsToHtmlIf false, no errors will be sent to the HTML client.
Normally, this should be true. Might be useful when debugging
- Integer
peHtmlOutput - String
psHtmlOutputFileName - integer
pbFirstTimeOpen - Integer
pbPrivateInLogEventused to prevent recursion in LogEvent method
- oFileIds : cFileIdsSet
- oWpoIds : cWpoIdsSet
list of wbos (for asp)
- oWsoIds : cWpoIdsSet
list of wsos (for web-service)
PreSetFileRecordID(Integer lpDispParams)
needed for backwards compatibility (private)
- Integer
Search_Wpo_ID(String sWebBPO)
// when OCX is created, set up error redirection. We do this as
// late as possible. (Occurs when activate sent to panel)
// This used to be called PostCreateOCX
Procedure OnCreate
Forward send OnCreate
End_Procedure
Procedure Search_Wpo_ID string sWebBPO Returns Integer
returns: Object ID of BPO, zero if not found
Set_Wpo_Data(String sWpoName Integer iWpoID)
Add WPO to the list
- Integer
Wpo_ID(Integer iItem)
return Id of WBP object for item
- integer
Wpo_Count()
get number of WBP items
- Integer
Search_Wso_ID(String sWebBPO)
Same as above, but used for web services!
Procedure Search_Wpo_ID string sWebBPO Returns Integer
returns: Object ID of BPO, zero if not found
Set_Wso_Data(String sWpoName Integer iWpoID)
Add WPO to the list
- Integer
Wso_ID(Integer iItem)
return Id of WBP object for item
- integer
Wso_Count()
get number of WBP items
- Integer
Search_File_Name(String sName)
Field and field string to integer conversion functions
- Integer
Search_Field_Name(integer iFile String sFieldName)
- integer
MapWPONametoID(string sWPO)
This will be good for augmentation allowing us to handle
not finding the WBPO any way we want.
- Integer
hWPO
- integer
MapWSONametoID(string sWPO)
This will be good for augmentation allowing us to handle
not finding the WSO any way we want.
- Integer
hWPO
DoSetVDFISData_Error(Address pVDFISData integer iError)
place error code within VDFISData structure
- Integer
bOK
OnKillSession()
These events are sent by the OCX and must be directed to the WBPO
OnAttachSession()
This object's container (cWebApp) must understand these
DoAttach and Detach messages.
OnDetachSession()
OnRequestSave(String sWebBpo string sFile address pVDFISData)
-------------OnRequestSave---------
- Integer
hObjId - Integer
iError
OnRequestDelete(String sWebBpo string sFile address pVDFISData)
-------------OnRequestDelete---------
- Integer
hObjId - Integer
iError
OnRequestClear(String sWebBpo string sFile integer bClearAll address pVDFISData)
-------------OnRequestClear---------
- Integer
hObjId - Integer
iError
OnRequestFind(String sWebBpo string sFile string sField integer iFindMode Address pVDFISData)
-------------OnRequestFind---------
- Integer
hObjId - Integer
iError
OnDoProcess(String sWebBpo integer iParam string sParam1 address pVDFISData)
-------------OnDoProcess---------
- Integer
hObjId - Integer
iError
OnSetFileFieldValue(Integer hObjId String sFile String sField Address pVDFISData)
-------------OnSetFielFieldValue---------
OnSetFileRecordId(Integer hObjId String sFile String sRecordId)
-------------OnSetFileRecordId---------
OnSetFileRowId(Integer hObjId String sFile String sRowId)
-------------OnSetFileRowId---------
OnDDValue(String sWebBpo String sFile String sField DWORD iOption String sParam Address pVDFISData)
-------------OnDDValue---------
- Integer
hObjId - Integer
iError
OnDFFunc(string sWebBpo Address pVDFISData)
-------------OnDFFunc---------
Note that DfFunc and Call both map to this location. From this point on, it is Call
This can be called as part of a webapp or a web-service. We must check and only
pass these messages to the correct objects
values for WebAppEndPointEnvironment in function CurrentWebAppEnvironment
- Integer
hObjId - Integer
iError - Integer
eWebAppEndPointEnvironment
OnRequestFindByRecId(String sWBO String sFile String sRecId Address pVDFISData)
-------------OnRequestFindByRecId---------
- Integer
hObjId - Integer
iError
OnRequestFindByRowId(String sWBO String sFile String sRowId Address pVDFISData)
-------------OnRequestFindByRowId---------
- Integer
hObjId - Integer
iError
OnRequestDDUpdate(String sWBO String sFile Boolean bShowErrs DWORD iExtra Address pVDFISData)
-------------OnRequestDDUpdate---------
- Integer
hObjId - Integer
iError
OutputHTMLtoTestFile(string sHtml)
As of 9.1, we no longer Augment messages that require OEM/ASNI translation.
Flexcom now does this for us. This only affects string parameters.
Note that all data passed through VDFISData already is properly converted
- String
sFile
OutputHtml(string sHtml)
- Integer
iOut
OutputPlainText(String sText)
- Integer
iOut
LogEvent(Integer iEventType String sEvent)
augment to check for recursion as well as do ansi conversion
- String
HtmlQueryString(String sVariable)
- String
sRet
- DWORD
HtmlFormValue(String sFormName)
- Integer
lretVal
ReportError(integer iErr string sErrMsg integer iLine integer iFileNr integer iFieldNr)
Error Interface:
ReportError and ReportErrorEvent is private and should never be sent. It is sent
from within the error handler object to report errors
- String
sLineBreak - String
sDtl - String
sFileName - String
sFieldName
ReportErrorEvent(integer iErr string sErrMsg integer iLine integer iFileNr integer iFieldNr)
- String
sHtml - String
sLineBreak - String
sDtl - String
sFileName - String
sFieldName
EnumerateErrors(integer iMsg integer hObj)
EnumerateErrors and ErrorReportCallBack could be used for
advanced purposes allowing other objects to handle errors in
a more custom fashion.
use this to generate a report of all errors
ErrorReportCallBack(integer iItem integer iMsg integer hObj)
ReportAllErrors(String sErrHdr)
use this to generate a report of all errors
ReportLastError(Integer bClearError)
Use this to display the last error
- string
ErrorMessage(integer iItem)
return error for item, return in HTML format
- String
sLineBreak - String
sErrMsg
ClearErrors()
This will clear all errors
- Integer
ErrorCount()
return true if any errors exist in queue
- integer
FileFieldErrorItem(integer iFile integer iField)
see if error exists for this file and field. If it does, return the
item number, else return -1.
ErrorQueueStart()
starts a queued errors,
ErrorQueueEnd()
ends queued errors. Note that the queue is not cleared
ReportErrorItem(integer iItem)
Generate error for pass item
LogErrorEvent(integer iErr string sText)
Generate and error and make sure that it is
logged in event log.
- Integer
bOldSt