Class: cVDFInternetSession
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
Class Hierarchy:
DFCOMAUTOMATIONOBJECT

cComAutomationObject


OLEVDFInetSession



cVDFInternetSessionClass Definition
Properties
Integer
pbAllErrorsToEventLog
If true, ALL errors are recorded in the event log. This
is good for debugging. If false only appropriate error
are event logged
Integer
pbAllErrorsToHtml
If false, no errors will be sent to the HTML client.
Normally, this should be true. Might be useful when debugging
Integer
pbAllErrorsToLocal
If 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
pbFirstTimeOpen
Integer
pbPrivateInLogEvent
used to prevent recursion in LogEvent method
Integer
pbQueueErrors
When True, VDF errors are queued. This should be set
indirectly with ErrorQueueStart and ErrorQueueEnd
Integer
pbVerboseErrors
when errors are reported should technical info be provided. If set
to true you get Error#, Line#, File# and Field#
Integer
peHtmlOutput
String
psHtmlOutputFileName
Functions and Procedures

ClearErrors()
This will clear all errors

Construct_Object()

DoSetVDFISData_Error(Address pVDFISData integer iError)
place error code within VDFISData structure

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
Integer
ErrorCount()
return true if any errors exist in queue
string
ErrorMessage(integer iItem)
return error for item, return in HTML format

ErrorQueueEnd()
ends queued errors. Note that the queue is not cleared

ErrorQueueStart()
starts a queued errors,

ErrorReportCallBack(integer iItem integer iMsg integer hObj)
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.
DWORD
HtmlFormValue(String sFormName)
String
HtmlQueryString(String sVariable)

LogErrorEvent(integer iErr string sText)
Generate and error and make sure that it is
logged in event log.

LogEvent(Integer iEventType String sEvent)
augment to check for recursion as well as do ansi conversion
integer
MapWPONametoID(string sWPO)
This will be good for augmentation allowing us to handle
not finding the WBPO any way we want.
integer
MapWSONametoID(string sWPO)
This will be good for augmentation allowing us to handle
not finding the WSO any way we want.

OnAttachSession()
This object's container (cWebApp) must understand these
DoAttach and Detach messages.

OnDDValue(String sWebBpo String sFile String sField DWORD iOption String sParam Address pVDFISData)
-------------OnDDValue---------

OnDetachSession()

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

OnDoProcess(String sWebBpo integer iParam string sParam1 address pVDFISData)
-------------OnDoProcess---------

OnKillSession()
These events are sent by the OCX and must be directed to the WBPO

OnRequestClear(String sWebBpo string sFile integer bClearAll address pVDFISData)
-------------OnRequestClear---------

OnRequestDDUpdate(String sWBO String sFile Boolean bShowErrs DWORD iExtra Address pVDFISData)
-------------OnRequestDDUpdate---------

OnRequestDelete(String sWebBpo string sFile address pVDFISData)
-------------OnRequestDelete---------

OnRequestFind(String sWebBpo string sFile string sField integer iFindMode Address pVDFISData)
-------------OnRequestFind---------

OnRequestFindByRecId(String sWBO String sFile String sRecId Address pVDFISData)
-------------OnRequestFindByRecId---------

OnRequestFindByRowId(String sWBO String sFile String sRowId Address pVDFISData)
-------------OnRequestFindByRowId---------

OnRequestSave(String sWebBpo string sFile address pVDFISData)
-------------OnRequestSave---------

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---------

OutputHtml(string sHtml)

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

OutputPlainText(String sText)

PreSetFileRecordID(Integer lpDispParams)
needed for backwards compatibility (private)

ReportAllErrors(String sErrHdr)
use this to generate a report of all errors

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

ReportErrorEvent(integer iErr string sErrMsg integer iLine integer iFileNr integer iFieldNr)

ReportErrorItem(integer iItem)
Generate error for pass item

ReportLastError(Integer bClearError)
Use this to display the last error
Integer
Search_Field_Name(integer iFile String sFieldName)
Integer
Search_File_Name(String sName)
Field and field string to integer conversion functions
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
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_Wpo_Data(String sWpoName Integer iWpoID)
Add WPO to the list

Set_Wso_Data(String sWpoName Integer iWpoID)
Add WPO to the list
integer
Wpo_Count()
get number of WBP items
Integer
Wpo_ID(Integer iItem)
return Id of WBP object for item
integer
Wso_Count()
get number of WBP items
Integer
Wso_ID(Integer iItem)
return Id of WBP object for item
References (1):