FileInfo table columns structure

Documentation •
In this article

In Banana Accounting javascript extensions, when referring to tables and columns, you must always use the correct nameXml.

Each table and each column has a proper nameXml. With the nameXml, tables and columns can be accessed to read the data they contain.

All columns of FileInfo table are shown below with their nameXml.

FileInfo table

The FileInfo table is used by the program to store all the information about the currently open file.

All nameXml of the table columns are listed below:

  • SysCod
  • Links
  • Section
    This column is used to indicate the Group name of the values.
  • SectionText
  • Id
    This column is used to indicate the specific and explicit identification of the value.
  • Description
    This column is used to indicate explanation of the value.
  • Value
    This column is used to indicate the formatted value.
  • SectionXml
    This column is used to indicate the name of the section in English.
  • IdXml
    This column is used to indicate the identification in English.
  • ValueXml
    This column is used to indicate the field contents in Xml format.

The SectionXml and the IdXml identify the value unambiguously.

With Javascript extensions you can retrieve the ValueXml using the "Banana.document.info(SectionXml,IdXml)" API function.

FileInfo columns structure

The list of columns is shown below in JSON format, with also additional information for each column.

{
  "nameXml": "FileInfo",
  "columns": [
    {
      "nameXml": "SysCod",
      "alignment": "left",
      "dataType": "text",
      "decimal": "",
      "description": "",
      "excludeFromPrinting": "",
      "header": "SysCod",
      "header2": "",
      "style": {
        "objectName": "",
        "backgroundColor": "",
        "color": "",
        "fontSize": 10,
        "bold": false,
        "italic": false
      },
      "visible": "",
      "editable": "",
      "width": 100
    },
    {
      "nameXml": "Links",
      "alignment": "left",
      "dataType": "links",
      "decimal": "",
      "description": "Links to external documents",
      "excludeFromPrinting": "",
      "header": "Links",
      "header2": "",
      "style": {
        "objectName": "",
        "backgroundColor": "",
        "color": "",
        "fontSize": 10,
        "bold": false,
        "italic": false
      },
      "visible": "",
      "editable": true,
      "width": 600
    },
    {
      "nameXml": "Section",
      "alignment": "left",
      "dataType": "text",
      "decimal": "",
      "description": "",
      "excludeFromPrinting": "",
      "header": "Section",
      "header2": "",
      "style": {
        "objectName": "",
        "backgroundColor": "",
        "color": "",
        "fontSize": 10,
        "bold": false,
        "italic": false
      },
      "visible": "",
      "editable": true,
      "width": 120
    },
    {
      "nameXml": "SectionText",
      "alignment": "left",
      "dataType": "text",
      "decimal": "",
      "description": "",
      "excludeFromPrinting": "",
      "header": "Section",
      "header2": "",
      "style": {
        "objectName": "",
        "backgroundColor": "",
        "color": "",
        "fontSize": 10,
        "bold": false,
        "italic": false
      },
      "visible": "",
      "editable": "",
      "width": 400
    },
    {
      "nameXml": "Id",
      "alignment": "left",
      "dataType": "text",
      "decimal": "",
      "description": "",
      "excludeFromPrinting": "",
      "header": "Id",
      "header2": "",
      "style": {
        "objectName": "",
        "backgroundColor": "",
        "color": "",
        "fontSize": 10,
        "bold": false,
        "italic": false
      },
      "visible": "",
      "editable": "",
      "width": 400
    },
    {
      "nameXml": "Description",
      "alignment": "left",
      "dataType": "text",
      "decimal": "",
      "description": "",
      "excludeFromPrinting": "",
      "header": "Description",
      "header2": "",
      "style": {
        "objectName": "",
        "backgroundColor": "",
        "color": "",
        "fontSize": 10,
        "bold": false,
        "italic": false
      },
      "visible": true,
      "editable": "",
      "width": 800
    },
    {
      "nameXml": "Value",
      "alignment": "left",
      "dataType": "text",
      "decimal": "",
      "description": "",
      "excludeFromPrinting": "",
      "header": "Value",
      "header2": "",
      "style": {
        "objectName": "",
        "backgroundColor": "",
        "color": "",
        "fontSize": 10,
        "bold": false,
        "italic": false
      },
      "visible": true,
      "editable": "",
      "width": 900
    },
    {
      "nameXml": "SectionXml",
      "alignment": "left",
      "dataType": "text",
      "decimal": "",
      "description": "",
      "excludeFromPrinting": "",
      "header": "Section Xml",
      "header2": "",
      "style": {
        "objectName": "",
        "backgroundColor": "",
        "color": "",
        "fontSize": 10,
        "bold": false,
        "italic": false
      },
      "visible": "",
      "editable": "",
      "width": 400
    },
    {
      "nameXml": "IdXml",
      "alignment": "left",
      "dataType": "text",
      "decimal": "",
      "description": "",
      "excludeFromPrinting": "",
      "header": "ID Xml",
      "header2": "",
      "style": {
        "objectName": "",
        "backgroundColor": "",
        "color": "",
        "fontSize": 10,
        "bold": false,
        "italic": false
      },
      "visible": "",
      "editable": "",
      "width": 400
    },
    {
      "nameXml": "ValueXml",
      "alignment": "left",
      "dataType": "text",
      "decimal": "",
      "description": "",
      "excludeFromPrinting": "",
      "header": "Value Xml",
      "header2": "",
      "style": {
        "objectName": "",
        "backgroundColor": "",
        "color": "",
        "fontSize": 10,
        "bold": false,
        "italic": false
      },
      "visible": "",
      "editable": "",
      "width": 400
    }
  ]
}

 

FileInfo table for a double-entry accounting

The following is an example of the FileInfo table for a double-entry accounting data with some values in it.

  • In the first row there are the names Xml of the columns.
  • In the next rows there are all the data saved in the table.
SectionXmlIdXmlDescriptionValueXmlValue
BaseDateDate2024-11-1515.11.2024
BaseTimeTime15:17:51.53715:17:51
BaseProgramVersionProgram version10.1.24.2427510.1.24.24275
BaseHashAlgorithmHash algorithmSha2-256Sha2-256
BaseHashTotalTotal Hasha77a16e6eae92a9db0d4109d2040a6f6a77a16e6eae92a9db0d4109d2040a6f6
     
BaseFileNameFile Name/Users/username/Desktop/Double-entry with VAT-Sales tax.ac2/Users/username/Desktop/Double-entry with VAT-Sales tax.ac2
BaseWorkingCopyFileNameWorking copy file name/Users/username/Library/Application Support/Banana.ch/BananaPlus/10.0/WorkingCopies/Double-entry with VAT-Sales tax.ac2/Users/username/Library/Application Support/Banana.ch/BananaPlus/10.0/WorkingCopies/Double-entry with VAT-Sales tax.ac2
BaseDateLastSavedDate last saved2024-11-0808.11.2024
BaseTimeLastSavedTime last saved16:10:31.00016:10:31
BaseFileSizeFile size782728782728
BaseFilePwdProtectedFile password protectedNoNo
BaseHeaderLeftHeader LeftCompany XXCompany XX
BaseHeaderRightHeader RightAccounting 2024Accounting 2024
BaseDecimalsAmountsDecimal points for amounts22
BaseRoundingTypeRounding Type3:Commercial/Arithmetic (Half up)3:Commercial/Arithmetic (Half up)
BaseLanguageLanguage in useenuEnglish
BaseLanguageCreationLanguage used to createenuEnglish
BaseExtension1Extension 1https://www.banana.ch/portal/repodata/ghba/Universal/report/accounting/…https://www.banana.ch/portal/repodata/ghba/Universal/report/accounting/…
BaseExtension2Extension 2  
BaseExtension3Extension 3  
BaseCreateProgramVersionVersion Creation10.1.24.2427510.1.24.24275
BaseLastSavedProgramVersionVersion Last saved10.1.24.2427510.1.24.24275
BaseMaxSavedProgramVersionVersion Max saved10.1.24.2427510.1.24.24275
BaseSavedProgramVersionCompatibilityVersion compatibility9.0.19.0.1
BaseFileTypeTypeDouble-entry with VAT/Sales taxDouble-entry with VAT/Sales tax
BaseFileTypeGroupGroup type100100
BaseFileTypeNumberNumber type110110
BaseFileTypeVersionVersion type100100
AccountingDataBaseCompanyCompanyCompany XXCompany XX
AccountingDataBaseCourtesyCourtesy  
AccountingDataBaseNameNamePincoPinco
AccountingDataBaseFamilyNameFamily NamePallinoPallino
AccountingDataBaseAddress1Address 1Via del Sole 54Via del Sole 54
AccountingDataBaseAddress2Address 2  
AccountingDataBaseZipZip69006900
AccountingDataBaseCityCityLuganoLugano
AccountingDataBaseStateState  
AccountingDataBaseCountryCountrySwitzerlandSwitzerland
AccountingDataBaseCountryCodeCountryCodeCHCH
AccountingDataBaseWebWebwww.companyxx.comwww.companyxx.com
AccountingDataBaseEmailEmailcompanyxx@info.comcompanyxx@info.com
AccountingDataBasePhonePhone12345678901234567890
AccountingDataBaseMobileMobile09876543210987654321
AccountingDataBaseIBANIBANCHXX 0900 0XXX XXXX XXXX XCHXX 0900 0XXX XXXX XXXX X
AccountingDataBaseFiscalNumberFiscal number  
AccountingDataBaseVatNumberVAT NumberCHE-123.456.789 VATCHE-123.456.789 VAT
     
AccountingDataBaseRecalculateEntire recalculationNoNo
AccountingDataBaseBasicCurrencyBasic CurrencyCHFCHF
AccountingDataBaseBasicCurrencyHeaderBasic Currency Header  
AccountingDataBaseDecimalsAmountsCurrencyDecimal points for amounts in foreign currency22
AccountingDataBaseOpeningDateOpening date2024-01-0101.01.2024
AccountingDataBaseClosureDateClosure date2024-12-3131.12.2024
AccountingDataBaseObligatoryDateObligatory transaction dateYesYes
AccountingDataBaseMinusSignSegmentSeparatorMinus sign as segments separatorNoNo
AccountingDataBaseCostCenterSignCost center sign relative to amountNoNo
AccountingDataBaseFileNamePreviousYearFile from previous year  
AccountingDataBaseSmartFillFromPreviousYearSmart fill from previous yearNoNo
AccountingDataBaseVatAccountVAT Account  
AccountingDataBaseVatAccountRecoverableRecoverable VAT Account  
AccountingDataBaseVatRoundingVAT rounding  
AccountingDataBaseCc1VatAmountCC1 VAT amount00
AccountingDataBaseCc2VatAmountCC2 VAT amount00
AccountingDataBaseCc3VatAmountCC3 VAT amount00
AccountingDataBaseCustomersGroupCustomers groupDEB1DEB1
AccountingDataBaseSuppliersGroupSuppliers groupCRE1CRE1
AccountingDataBaseAccountingDifferenceThere are accounting imbalancesYesYes
AccountingDataBaseInitialBalanceDifferenceDifference on initial balance  
AccountingDataBaseDebitCreditDifferenceDebit/credit difference147.50147.50
     
AccountsTableNameXmlXml Table nameAccountsAccounts
AccountsTableHeaderTable headerAccountsAccounts
AccountsCountRowsNumber of rows4646
AccountsCountRowsErrorRows with errors00
AccountsCountRowsWarningRows with messages00
AccountsCountRowsProtectedProtected rows00
AccountsCountRowsLockedLocked rows00
AccountsCountGroupsNumber of groups99
AccountsCountAccountsNumber of accounts2323
AccountsCountAccountsBalanceNumber of accounts with a balance1010
AccountsCountTransactionsNumber of accounts with transactions1010
AccountsHashAccountsBalanceHash of the balancebcySJq3b9DHGdeyzP/CZzkgmcCfeBpLmbcySJq3b9DHGdeyzP/CZzkgmcCfeBpLm
AccountsCountAccountsOpeningNumber of accounts with opening balance  
AccountsHashAccountsOpeningHash of the opening balance  
     
TransactionsTableNameXmlXml Table nameTransactionsTransactions
TransactionsTableHeaderTable headerTransactionsTransactions
TransactionsCountRowsNumber of rows4646
TransactionsHashCompleteHash completex1iqL10LDNjc9DqkXvu9xsj8olbM2CGrx1iqL10LDNjc9DqkXvu9xsj8olbM2CGr
TransactionsCountRowsErrorRows with errors00
TransactionsCountRowsWarningRows with messages00
TransactionsCountRowsProtectedProtected rows00
TransactionsCountRowsLockedLocked rows00
TransactionsDateEarliestTransactionEarliest transaction date  
TransactionsDateLatestTransactionLatest transaction date2024-10-3131.10.2024
TransactionsTransactionLockUsedTransaction lock is usedNoNo
     
VatCodesTableNameXmlXml Table nameVatCodesVatCodes
VatCodesTableHeaderTable headerVAT codesVAT codes
VatCodesCountRowsNumber of rows9090
VatCodesHashCompleteHash completepwLdoomYeFIdnw1T2dfpxO2B6ks8a3tKpwLdoomYeFIdnw1T2dfpxO2B6ks8a3tK
VatCodesCountRowsErrorRows with errors00
VatCodesCountRowsWarningRows with messages00
VatCodesCountRowsProtectedProtected rows00
VatCodesCountRowsLockedLocked rows00
     
BudgetTableNameXmlXml Table nameBudgetBudget
BudgetTableHeaderTable headerBudgetBudget
BudgetCountRowsNumber of rows11
BudgetCountRowsErrorRows with errors00
BudgetCountRowsWarningRows with messages00
BudgetCountRowsProtectedProtected rows00
BudgetCountRowsLockedLocked rows00
     
DocumentsTableNameXmlXml Table nameDocumentsDocuments
DocumentsTableHeaderTable headerDocumentsDocuments
DocumentsCountRowsNumber of rows11
DocumentsCountRowsErrorRows with errors00
DocumentsCountRowsWarningRows with messages00
DocumentsCountRowsProtectedProtected rows00
DocumentsCountRowsLockedLocked rows00
     
LockTransactionsTransactionLockUsedTransaction lock is usedNoNo

The same table exists for all the accounting file types. What changes from one type of accounting to another is the data the table contains.

The SectionXml and the IdXml columns identify the value unambiguously.

With Javascript extensions you can retrieve the value of ValueXml column using the JavaScript API function "Banana.document.info(SectionXml,IdXml)". The function returns the info value of the document referenced by SectionXml and IdXml.

Some examples:

// Get some value of the accounting file 
var FileName = Banana.document.info("Base","FileName");
var DecimalsAmounts = Banana.document.info("Base","DecimalsAmounts");
var HeaderLeft = Banana.document.info("Base","HeaderLeft");
var HeaderRight = Banana.document.info("Base","HeaderRight");
var BasicCurrency = Banana.document.info("AccountingDataBase","BasicCurrency");

// For openingDate and closureDate use instead startDate and endDate
var openingDate = Banana.document.info("AccountingDataBase","OpeningDate");
var closureDate = Banana.document.info("AccountingDataBase","ClosureDate");

// For file accounting type
var FileType = Banana.document.info("Base","FileType");
var FileGroup = Banana.document.info("Base","FileTypeGroup");
var FileNumber = Banana.document.info("Base","FileTypeNumber");

// For customer settings
var customersGroup = Banana.document.info("AccountingDataBase","CustomersGroup");
var suppliersGroup = Banana.document.info("AccountingDataBase","SuppliersGroup");

 

 

 

 

 

Help us improve the documentation

We welcome feedback on how to improve this page.

Tell us what theme needs a better explanation or how to clarify a topic.

Share this article: Twitter | Facebook | LinkedIn | Email