Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Go to the External Plates DB object settings panel (2).
  2. Select the SQL query value from the Search method list (31).
  3. Click the Edit SQL-query button (42).
  4. The SQL-query configuration dialog window will be displayed in result.
  5. Enter SQL-query to extract (SELECT) the required data from the table, containing plates and bound tables. To replace the identified plate use the variable %PLATE%.

    Info
    titleNote.

    Detailed information concerning setting the SQL-queries is given in the corresponding reference manual.


    Info
    titleNote.

    SQL-query, given for example, returns the required columns from the external DB if the plate in this DB coincide with the identified number.

     
    Example of extracting the data from external DB

    Table

    Table's column

    Column's contain

    Is returned in result of SQL-query

    NOMERS

    GOS_ID

    Primary keys of NOMERS' table recordings

    No


    GOS

    Plates

    Yes


    DOC

    Documents' keys, on the basis of which the plates have been recorded to the DB

    Yes


    DATE

    Dates, of entering the plates to DB

    No

    DOCS

    DOC_ID

    Primary keys of DOCS' table recordings

    No


    DOCUMENT

    Document types, on the basis of which the plates have been recorded to the DB

    Yes


    PERSON

    Persons, who entered the plates to the DB

    Yes


    GOS_ID

    External keys of DOCS' table recordings, used for connection to the NOMERS table

    No

  6. To save the changes and close the SQL-query settings dialog window click OK.

    Info
    titleNote.

    Click Cancel to close the dialog window SQL-query settings without saving the changes.


  7. Click Apply (53).

Setting up the SQL-query is completed.