PANTHEON™ manual

 Categories
 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
     [Collapse]Reports in PANTHEON
       Settings in Administration Panel
      [Expand]Reports Register
       Print Preview
      [Expand]Report Designer
      [Collapse]Creating Reports
        Report Objects
        "Hello, World!" Report Example
        Basic Work with Objects
        The "Text" Object
        Displaying Expressions with the Help of the "Text" Object
        Bands
        "Subject List" Report: Aliases and Variables
        "Picture" Object
        Stretching Objects, Page Breaks and Shifting Objects
        Displaying Data in the Form of a Table
        Printing Labels
        Child Bands
        Report with Two Data Levels (Master-Detail)
        Headers and Footers of a Data Band
        Multi-Page Report
      [Expand]Groups and Aggregates
      [Expand]Formatting and Highlighting
       Nested Reports (Subreports)
      [Expand]Specifics of Printouts in PANTHEON
      [Expand]Script
       Report Design Considerations
      Document Texts
      Delivery Methods
     [Expand]Loyalty Cards
     [Expand]Administration Panel
     [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
 [Expand]User Manuals for PANTHEON
[Expand]PANTHEON Web
[Expand]PANTHEON Granules
[Expand]User Site

Load Time: 968.7628 ms
print   |
Label

Izrazi

Displaying Expressions with the Help of the "Text" Object

In the "Text" object you can display static plain text but expressions as well. Expressions have a similar role as in Excel. 

Properties of expressions:

  •     The value of the expressions is determined only when the report is executed. Expressions are written in square brackets - between [expression].
  •     In expressions you can use data from tables and queries, variables and functions.
  •     Expressions can be located within the object mixed in with normal text. We can write in small or capital letters.
  •     Field names in datasets are written in the form: <dataset_name. "field_name">. Symbols < and > are optional if there is nothing else in the expression.

Examples of text in the "Text" object and output on the report are listed in the table below:

Text Type Text in the Object Example of Output on the Report
Plain text 1+2*(3+4) 1+2*(3+4)
Expression with calculation operations [1+2*(3+4)] 15
Expression with function [Sin(Pi/6)] 0,5
Plain text Hello! Today is DATE. Hello! Today is DATE.
Plain text and expression with system variable Hello! Today is [DATE]. Hello! Today is 6.7.2017.
Expression with Field Name [qReportIzpis."acName"] ItemName
Expression with Field Name [<qReportIzpis."acName">] ItemName
Plain text and expression with FieldName Total amount [<qReportIzpis."acCurrency">]: Total amount EUR:
Text and expression with FieldName and Calculation operation [100 * <qReportIzpis."anValue">]% 18%
Expression with Field Name and Function [SUM(<qReportIzpis."NabavaNeto">
- <qReportIzpis."anSalePrice">)]
15,25

More complex example can be found on the report '22C - Detailed Receiving Slip - Valuation Price and Sale Prices' that is in the program menu 'Goods | Transfer | Document (e.g. 200 - Transfer Wholesale - Retail)':
 
[100 * (((<tbIzpisPrometPozIzdPL."anPrice"> * ((1 -
<tbIzpisPrometPozIzdPL."anRebate">/100))) -
<tbIzpisPrometPozIzdPL."anStockPrice">) /
<tbIzpisPrometPozIzdPL."anStockPrice">]



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