OnRequestFormSubmitById
Interface AntViewDocument
Type: Event
Parameters: String FormId Integer Error
Returns: None
Async Return from the RequestFormSubmitById method.
FormId holds the Id of the submit button that was used by the RequestFormSubmitById call.
FormId is case sensitive.
Error is 0 when the element was found, 1 if the element identified by FormId was not found, or 2 if there is no function identified that can be used to submit the form.
Example code in DataFlex:
Object oDocument is a cComAntViewDocument
Set peAutoCreate to acAutoCreate
Procedure OnComRequestFormSubmitById String llFormID Integer llError
Showln "Form Submit " llFormId " error = " llError
End_Procedure
Procedure ConnectBrowser
Variant vBrowser
Get pvComObject of oEdgeWebBrowser to vBrowser
Set ComCurrentBrowser to vBrowser
End_Procedure
End_Object
Object oEdgeWebBrowser is a cComAntView
Set Location to 10 10
Set Size to 184 360
There's also a synchronous alternative RequestFormSubmitByIdSync that wraps this method and the event into one call.
AntView - The MS Edge WebView2 ActiveX control Date last changed: 09/25/2024