PANTHEON™ Help

 Категории
 PANTHEON Help - Welcome
[Collapse]PANTHEON
 [Collapse]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]GDPR
       [Expand]Certificates
       [Collapse]Program Parameters
        [Expand]General
        [Expand]Colors
        [Expand]Internet
        [Expand]Company
        [Expand]Subjects
        [Collapse]Items
         [Expand]General
          EAN
         [Collapse]Find Item
           Find Item
           Preparation of Information for the Display
           Advanced Assigning of Identifiers
         [Expand]Custom Fields
         [Expand]Profili zaslona na dotik
        [Expand]Manufacturing
        [Expand]Orders
        [Expand]Goods
        [Expand]Financials
        [Expand]Personnel
       [Expand]Task Autorun
        Extra Menu
       [Expand]Documentation
        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]Logon
   [Expand]Orders
   [Expand]Goods
   [Expand]Manufacturing
   [Expand]POS
   [Expand]Service
   [Expand]Financials
   [Expand]Personnel
   [Expand]Analytics
   [Expand]Desktop
   [Expand]Помощ
   [Expand]Messages and Warnings
   [Expand]Старите продукти
   [Expand]Additional programs
  [Expand]Ръководство за PANTHEON Търговия
  [Expand]Ръководство за PANTHEON Vet
  [Expand]Ръководство за PANTHEON Фермерство
 [Collapse]PANTHEON потребителски ръководства
  [Expand]Ръководство за потребителя за PANTHEON
  [Expand]Ръководство за потребителя за PANTHEON Retail
  [Expand]Ръководство за потребителя за PANTHEON Vet
  [Expand]Ръководство за потребителя за PANTHEON Farming
[Collapse]PANTHEON Web
 [Collapse]PANTHEON Web Guides
  [Expand]Ръководство за PANTHEON Web Light
  [Expand]Ръководство за PANTHEON Уеб Терминал
  [Expand]Ръководство за PANTHEON Web Legal
  [Expand]Архив на стари продукти
 [Collapse]PANTHEON Web User Manuals
  [Expand]Започване на PANTHEON Web
  [Expand]User Manual for PANTHEON Web Light
   Ръководство за потребителя за PANTHEON Web Terminal
  [Expand]Ръководство за потребителя за PANTHEON Web Legal
  [Expand]Архив на стари продукти
[Collapse]PANTHEON Гранула
 [Collapse]Ръководство за PANTHEON Гранули
  [Expand]Гранула за служители
  [Expand]Пътни заповеди Гранула
  [Expand]Гранула за документи и задачи
  [Expand]Гранула Табло
  [Expand]Гранула за B2B поръчки
  [Expand]Гранула за обслужване на клиент
  [Expand]Инвентаризация на дълготрайни активи
  [Expand]Гранула за складови наличности
 [Collapse]PANTHEON Granules
   Започване
   Using PANTHEON Granules at Tecta, a fictional company
  [Expand]PANTHEON Granules and activation
  [Expand]PANTHEON Granule Work records
  [Expand]PANTHEON Granule Travel orders
  [Expand]PANTHEON Granule Documents and Tasks
  [Expand]PANTHEON Granule B2B orders
  [Expand]PANTHEON Granule Dashboard
   PANTHEON Granules - FAQ
  [Expand]Полеви сервизен гранул
  [Expand]Инвентаризация на дълготрайни активи
  [Expand]Инвентаризация на склада Гранула
   Архив
[Expand]Потребителски сайт

Load Time: 871,121 ms
"
  3086 | 3485 | 400927 | Localized
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



 

Оценете темата
Темата беше ли ви полезна?
Коментар
Вашият коментар ще бъде видим и във форума!