.NET Framework Class Library
UserInterface.ListFromQuery Method (String, String, Int32, String, String, String, String)

<< Click to Display Table of Contents >>

Navigation:  MwPDMApi Namespace > UserInterface Class > UserInterface Methods > ListFromQuery Method  >

.NET Framework Class Library
UserInterface.ListFromQuery Method (String, String, Int32, String, String, String, String)

Shows a dialog box that allows to choose between entries retrieved from a query to a datasource managing authentication if needed.

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

Syntax

Visual Basic

Public Function ListFromQuery ( _

 datasource As String, _
 query As String, _
 ByRef coloumntochoosefrom As Integer, _
 title As String, _
 ByRef choosedvalue As String, _
 Optional login As String = "", _
 Optional pass As String = "" _
As Boolean

C#

public bool ListFromQuery(

 string datasource,
 string query,
 ref int coloumntochoosefrom,
 string title,
 ref string choosedvalue,
 string login = "",
 string pass = ""
)

Visual C++

public:

bool ListFromQuery(
 Stringdatasource,
 Stringquery,
 intcoloumntochoosefrom,
 Stringtitle,
 String^% choosedvalue,
 Stringlogin = L"",
 Stringpass = L""
)

JavaScript

function listFromQuery(datasourcequerycoloumntochoosefromtitlechoosedvalueloginpass);

Parameters

datasource

Type: System.String
name of a valid datasource or "@USEDEFAULTDATASOURCE" to force the usage of the default application datasource

query

Type: System.String
query to submit to the datasource

coloumntochoosefrom

Type: System.Int32
integer (starting from 1) that specifies the column to choose values from

title

Type: System.String
dialog box title

choosedvalue

Type: System.String
Ouput, item selected. If the function has a FALSE value resp contains a null string

login (Optional)

Type: System.String
Optional. The user name

pass (Optional)

Type: System.String
Optional. The user password

Return Value

TRUE if the user has closed the dialog by pressing the OK button, FALSE otherwise

Remarks

See Also

UserInterface Class

UserInterface Members

ListFromQuery Overload

MwPDMApi Namespace