PA_QueryDialog


version 2003


PA_QueryDialog (defaultTable)

Parameter Type Description
defaultTable short Default table

Description

The routine PA_QueryDialog displays the standard Query Dialog for defaultTable . If the user fills the search area and clicks OK , 4D executes the query.

As the routine does not return any information on the query result, the plug-in should check the "OK" global variable (see the example given in the " Building a query with the API " chapter).

This is like the QUERY command when it is used with a table as parameter. See the 4th Dimension Language reference manual for more information.

Example

Query dialog on table 1:

   PA_Query(1);
   if(GetOK())  // the user did not cancel the operation
   {
      if(PA_RecordsInSelection(1) == 0L)
         PA_Alert("\pNo records found");
      else
         /* . . . do something . . . */
   }

See Also

Building a query with the API , QUERY .

Error Handling

PA_GetLastError

always returns eER_NoErr