OpenViewInstance2

ACCPAC Common Controls

AccpacDBLink.OpenViewInstance2

Opens a view on the current database link, with the optional arguments giving enhanced control over the view's behavior.

Function OpenViewInstance(
ViewID As String,
[ProcessServer As AccpacProcessServerSetup],
[pExtErrInfo] As Variant,
[Readonly As Boolean = False],
[Unvalidated As Boolean = False],
[Unrevisioned As Boolean = False],
[Nonheritable As Boolean = False],
[Prefetch As Long],
[RawPut As Boolean = False],
[Noncascading As Boolean = False],
[extra] As Variant) As AccpacView

Parameters

ViewID

[in] the Roto ID of the view to open

ProcessServer

[in, optional] an AccpacProcessServerSetup object configured with the desired settings; pass Null if Process Server should not be used with the view

pExtErrInfo

[in, optional]

Readonly

[in, optional] if set to TRUE, opens the view in Read-only mode

Unvalidated

[in, optional] if set to TRUE, suppresses validation on the view

Unrevisioned

[in, optional] if set to TRUE, revisioning is disabled for the view

Nonheritable

[in, optional] if set to TRUE, composite views will not inherit the flags with which this view was opened

Prefetch

[in, optional] the number of records to pre-fetch when the view instance is read-only

RawPut

[in, optional] if set to TRUE, data is will not be processed upon a field put

Noncascading

[in, optional] if set to TRUE, suppresses propagation of foreign key values to composite views

extra

[in, optional] application-specific data to be passed to the view when it is opened (an unstructured block of data given to the view - the data type and format should be understood by both the caller and the view)

Return Value

Returns an AccpacView object.

Remarks

Script languages, such as Javascript, that do not accept "out" parameters, should use this variation of the OpenViewInstance function.