Functions
dbdlglib.fdf File Reference
#include "dlogitem.h"
#include "dbdefs.h"
#include "mselems.h"

Functions

int mdlDBDialog_firstRow (MSDialog *dbP)
 Synchronizes the database form dbP with the first record of the query. More...
 
int mdlDBDialog_lastRow (MSDialog *dbP)
 Synchronizes the database form dbP with the last record of the query. More...
 
int mdlDBDialog_startQuery (MSDialog *dbP)
 Creates and executes the SQL query generated from the database form and displays the first query result. More...
 
int mdlDBDialog_clearValues (MSDialog *dbP)
 Clears all column values from the database form dbP. More...
 
int mdlDBDialog_nextRow (MSDialog *dbP)
 Synchronizes the database form dbP with the next record of the query. More...
 
int mdlDBDialog_prevRow (MSDialog *dbP)
 Synchronizes the database form dbP with the previous record of the query. More...
 
int mdlDBDialog_nextPage (MSDialog *dbP)
 Scrolls the multi-paged database form dbP to the next page. More...
 
int mdlDBDialog_prevPage (MSDialog *dbP)
 Scrolls the multi-paged database form dbP to the previous page. More...
 
int mdlDBDialog_updateCurrentRow (MSDialog *dbP)
 Updates the current record with column values present in the database form. More...
 
int mdlDBDialog_deleteCurrentRow (MSDialog *dbP)
 Deletes the current record from the primary table. More...
 
int mdlDBDialog_insertRow (MSDialog *dbP)
 Inserts a new row to the primary table with the column values present in the database form. More...
 
int mdlDBDialog_itemGetState (WChar **statePP, MSDialog *dbP, int itemIndex)
 Gets a pointer to the value of the item at itemIndex on the database form dbP. More...
 
int mdlDBDialog_itemSetState (MSDialog *dbP, int itemIndex, WChar *stateP)
 Sets the value of the item at itemIndex on the database form dbP. More...
 
int mdlDBDialog_setPage (MSDialog *dbP, int pageNum)
 Scrolls the multi-paged database form dbP to pageNum. More...
 
int mdlDBDialog_totalPages (MSDialog *dbP)
 Used to get the maximum page number from the dialog query information. More...
 
int mdlDBDialog_processUserQuery (MSDialog *dbP, WCharCP userQueryP)
 Selects all the rows satisfying the WHERE clause specified by userQueryP and synchronizes the form with the query results. More...
 
MSDialogmdlDBDialog_openForm (RscId dialogId, WCharCP tableName, WCharCP columnList, WCharCP condition, UInt32 itemMask, UInt32 attributes)
 Dynamically creates and displays an MDL based multi page database form using the specified primary tablename, column list, query conditions, database features and attributes. More...
 
int mdlDBDialog_openModal (int *lastActionP, WCharCP tableName, WCharCP columnList, int dialogHookID)
 Used to open the database dialog box with the primary table name, in a modal fashion. More...
 
MSDialogmdlDBDialog_openReport (RscId dialogId, WCharCP tableName, WCharCP columnList, WCharCP condition, UInt32 itemMask, UInt32 attributes)
 Used to open the specified dialog box and populate it with a report generated using the specified table name, column names, WHERE clause, items and attributes. More...
 
int mdlDBDialog_generateRscFile (WCharCP rscFileName, RscId dialogId, WCharCP tableName, WCharCP columnList, UInt32 itemMask, UInt32 attributes)
 Generates (creates, writes and closes) a resource file containing the dialog and item resources of the database form using the specified primary tablename, column list and database features. More...
 
int mdlDBDialog_attachCurrentRow (MSDialog *dbP)
 Prompts and attaches the current row displayed in the database form to the element(s) selected. More...
 
int mdlDBDialog_review (MSDialog *dbP)
 Prompts and reviews the database linkages of the element(s) linked to the primary table. More...
 
int mdlDBDialog_detachCurrentRow (MSDialog *dbP)
 Prompts and detaches the current row displayed in the database form from the element(s) selected. More...
 
int mdlDBDialog_locateCurrentRow (MSDialog *dbP)
 Locates one after the other, all elements linked to the current row from the map pointed by the MAPID field. More...
 
int mdlDBDialog_fetchRow (MS_sqlda *sqlda, MSDialog *dbP)
 Used to retrieve the next row of the query in the specified database dialog box. More...
 
int mdlDBDialog_openFormFromElement (MSElementP el, RscId *dialogId)
 Opens database form for each linkage on the element, el. More...
 
int mdlDBDialog_useFenceIfActive (MSDialog *dbP, int useFence)
 Sets or gets the USE FENCE flag associated with the database form dbP to decide whether to use the fence elements with the linkage functions if a fence is active. More...
 
void mdlDBDialog_publishExtraHooks ()
 Publishes the hooks for some of the database items created by mdlDBDialog_openForm functions. More...
 
int mdlDBDialog_queryRscFile (RscId *dialogId, WCharP tableName, RscFileHandle rFileH)
 Retrieves the database form id and table name from the resource file created by mdlDBDialog_generateRscFile. More...
 
int mdlDBDialog_queryRscExtended (RscId *dialogId, WChar *tableName, WChar **joinTables, WChar **columnList, RscFileHandle rFileH)
 Used to query a MicroStation resource file for information about the dialog box contained within it. More...
 
WCharCP mdlDBDialog_getPrimaryTable (MSDialog *dbP)
 Used to get the primary table from the specified database dialog box. More...
 
WCharCP mdlDBDialog_getPrimaryKeyValue (MSDialog *dbP)
 Used to get the primary key value from the specified database dialog box. More...
 
MSDialogmdlDBDialog_find (WCharCP tableNameP, MdlDesc *ownerMD)
 Used to find the database dialog box associated with the specified name. More...
 
void mdlDBDialog_setDateDelimiters (WCharCP beforeP, WCharCP afterP)
 Used to set the delimiters to use before and following a date value. More...
 
void mdlDBDialog_getDateDelimiters (WCharP beforeP, WCharP afterP)
 Used to get the delimiters to use before and following a date value. More...
 

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.