PANTHEON™ Help

 Toc
 PANTHEON Help - Welcome
[Collapse]PANTHEON
 [Collapse]Guides for PANTHEON
  [Collapse]Guide for PANTHEON
   [Collapse]Settings
    [Expand]Subjects
    [Expand]Items
    [Expand]POS
    [Expand]Manufacturing
    [Expand]Personnel
     Calendar
    [Expand]Financials
    [Expand]Customs
    [Collapse]Program
     [Expand]Document Types
     [Expand]Reports in PANTHEON
      Document Texts
      Delivery Methods
     [Expand]Loyalty Cards
     [Collapse]Administration Panel
      [Expand]Right click on Administration panel tree
      [Collapse]Settings
       [Expand]Settings
       [Expand]Colors
       [Expand]Internet
       [Expand]Company
       [Expand]Subjects
       [Collapse]Items
        [Expand]General
        [Expand]Custom Fields
         EAN
        [Collapse]Custom Search
          Find Item
          Preparation of Information for the Display
          Advanced Assigning of Identifiers
         Touchscreen Profiles
       [Expand]Manufacturing
       [Expand]Orders
       [Expand]Goods
       [Expand]Financials
       [Expand]Personnel
       [Expand]Documentation
       [Expand]Task Autorun
        Extra Menu
        Task scheduler
       Menu
      [Expand]Security
      [Expand]Users and Groups
      [Expand]Versions/Upgrades
      [Expand]Database
      [Expand]ZEUS
      [Expand]OTOS
     [Expand]Dashboard Components
      Dashboard Reports
      Ad-hoc analysis
     [Expand]ARES
      SQL urejevalnik
    [Expand]Documentation
    [Expand]Change User
   [Expand]Orders
   [Expand]Goods
   [Expand]Manufacturing
   [Expand]POS
   [Expand]Service
   [Expand]Financials
   [Expand]Personnel
   [Expand]Analytics
   [Expand]Desktop
   [Expand]Help
   [Expand]Messages and Warnings
   [Expand]Additional programs
   [Expand]Old products
  [Expand]Guide for PANTHEON Retail
  [Expand]Guide for PANTHEON Vet
  [Expand]Guide for PANTHEON Farming
 [Collapse]User Manuals for PANTHEON
  [Expand]User Manual for PANTHEON
  [Expand]User Manual for PANTHEON Retail
  [Expand]User manual for PANTHEON Vet
  [Expand]User Manual for PANTHEON Farming
[Collapse]PANTHEON Web
 [Collapse]Guides for PANTHEON Web
  [Expand]Guide for PANTHEON Web Light
  [Expand]Guide for PANTHEON Web Terminal
  [Expand]Guide for PANTHEON Web Legal
  [Expand]Old products Archive
 [Collapse]User Manuals for PANTHEON Web
  [Expand]Getting started PANTHEON Web
  [Expand]User Manual for PANTHEON Web Light
  [Expand]User Manual for PANTHEON Web Terminal
  [Expand]User Manual for PANTHEON Web Legal
  [Expand]Old products Archive
[Collapse]PANTHEON Granules
 [Collapse]Guides for PANTHEON Granules
  [Expand]Personnel Granule
  [Expand]Travel Orders Granule
  [Expand]Documents and Tasks Granule
  [Expand]Dashboard Granule
  [Expand]B2B Orders Granule
  [Expand]Field Service Granule
  [Expand]Fixed Assets Inventory Granule
  [Expand]Warehouse Inventory Granule
 [Collapse]User Manuals for PANTHEON Granules
  [Expand]Getting started
  [Expand]Personnel Granule
  [Expand]Travel Orders Granule
  [Expand]Documents and Tasks Granule
  [Expand]B2B Orders Granule
  [Expand]Dashboard Granule
  [Expand]Field Service Granule
  [Expand]Fixed Assets Inventory Granule
  [Expand]Warehouse Inventory Granule
  [Expand]Archive
[Expand]User Site

Load Time: 574.1002 ms
"
  3086 | 3485 | 337389 | Updated
Label

Preparation of Information for the Display

Preparation of Information for the Display

Preparation of Information for the Display

010379.gif010380.gif010381.gif010411.gif010382.gif010383.gif

Preparation of information is equal for all thee kind of settings. 

Settings for the SQL statement will return columns of the table (record set). The program will display them as drop-down table in individual fields where you will be able to pick from.

005128.gif

The base of setting the search procedure for items is in the generation of the select statement which will return suitable information. Let us see the easiest way, which is predefined in Pantheon.

select acIdent, acActive, acName, anRTPrice, anWSPrice, anWSPrice2, anPrtPrice 
  from tHE_SetItem 
  order by acIdent

This statement will display 7 columns, Item ID, Status, Name, all possible prices.

Let us see, how to upgrade the statement so the table will have 8 columns. In the 8 columns would display the first 20 characters from the technological description of  the item:

select acIdent, acActive, acName, anRTPrice, anWSPrice, anWSPrice2, anPrtPrice,
       Left(cast(acTechProcedure as varchar),30) as TEH
  from tHE_SetItem 
  order by acIdent

Until this point things are rather smooth, because you always prepare data with its source is in one table. It is more difficult if you would like to display data from more different tables, i.e.:

select M.acIdent,M.acName,M.anRTPrice,Z.anStock, Z.acWarehouse
  from tHE_SetItem M
    left join tHE_stock Z on Z.acIdent = M.acIdent 
   order by M.acName

The above statement is from the view of SQL queries totally OK, but it is useless for selection tables. 

 

000001.gif

In select statements, you can use only one table!
If you would like to use data from different tables, you will for this purpose have to define a view!

For example, you would like to include search settings the items stock from the wholesale warehouse. First, create a view which will select all desired data in one record set:

 

Example of a View

create view dl_ IdentLookup
as
select M.acIdent, M.acName, M.acClassif, M.acSetOfItem, M.acActive, Sum(Z.anStock) as ZALOGA
  from tHE_SetItem M 
    left join tHE_Stock Z on M.acIdent = Z.acIdent 
      and Z.acWarehouse = 'Veleprodajno skladišče'
group by M.acIdent, M.acName, M.acClassif, M.acSetOfItem, M.acActive

*This statement has one major problem - the warehouse from which you are picking stock is predefined and this, cannot be changed. If you change the name of the warehouse, you will have to change the view as well. 

Once, the view is created, you can enter in the Select field the usual select statement from the view that will select columns.

select acIdent,acName,anStock from _IdentLookup
  order by acIdent



 

Rate this topic
Was this topic usefull?
Comments
Comment will also bo visible in forum!