Click or drag to resize
RunOpenLayout Method
Opens a layout in search page and executes a XWhere on it.

Namespace:  Biolomics.BioCallback
Assembly:  Biolomics.BioCallback (in Biolomics.BioCallback.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static int OpenLayout(
	string p_LayoutName,
	XWhere p_Where
)

Parameters

p_LayoutName
Type: SystemString
Name of the layout.
p_Where
Type: Biolomics.SharedClassesXWhere
The XWhere statement to be used .

Return Value

Type: Int32
Error code.
Examples
Code sample below is a demonstration of how to open a layout in search page with a query.
Example VB.Net
Imports System
Imports BioloMICS.BioCallback
Imports BioloMICS.SharedClasses
Imports BioloMICS.Utility.DatabaseConstants
Imports System.Collections

Public Class Program

    <STAThread()>
    Shared Sub Main()
        Dim program As New Program
        program.OpenLayout()

    End Sub

    Public Sub OpenLayout()
        'XWhere statement
        Dim where As XWhere = xwhere.Gte(StaticFields.id, 5)
        Run.OpenLayout("Deposit", where)
        DrawMessages()
    End Sub

    '    display all recent error messages
    Public Sub DrawMessages()
        Dim ErrorList As Generic.List(Of String) = Run.GetLastErrorMessage()
        For Each errorMsg As String In ErrorList
            Console.Write(vbcrlf & errorMsg)
        Next
    End Sub

End Class
See Also