.NET Framework Class Library
UserInterface.ListFromQuery Method (String, String, Object, String[])

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > .NET API > MwPDMApi Namespace > UserInterface Class > UserInterface Methods > ListFromQuery Method  >

.NET Framework Class Library
UserInterface.ListFromQuery Method (String, String, Object, String[])

Shows a dialog box that allows to choose between entries retrieved from a query on the database.

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Function ListFromQuery ( _

query As String, _
title As String, _
ByRef choosedvalue As Object, _
Optional columns As String() = Nothing _
) As Boolean

C#

public bool ListFromQuery(

string query,
string title,
ref Object choosedvalue,
string[] columns = null
)

Visual C++

public:

bool ListFromQuery(
String^ query,
String^ title,
Object^% choosedvalue,
array<String^>^ columns = nullptr
)

JavaScript

function listFromQuery(query, title, choosedvalue, columns);

Parameters

query

Type: System.String
Query to submit to the database in order to retrieve the list of objects

title

Type: System.String
Dialog box title

choosedvalue

Type: System.Object
Output: an object representing the chosen row. The object property names are specified in the column name in the query

columns (Optional)

Type: System.String[]
The list of columns to be shown in the dialog box. If none specified, all columns retrieved will be shown

Return Value

See Also

UserInterface Class

UserInterface Members

ListFromQuery Overload

MwPDMApi Namespace