Example DocumentChange FileProperties

Documentazione •
In questo articolo

When changing data to the File Properties (Header, date begin, date end) the change is structured like a change to the table, but using a special table FileInfo

See: Menu > Tools > File info for the list of elements.

Structure of the DocumentChange:

  • You can only use the operation "modify".
  • The extension can change only the elements that the user can change.
  • The element to be changed
    • SectionXml
      The name of the section, for example "SectionXml":"Base"
    • IdXml
      The identification, for example "IdXml":"HeaderLeft"
  • The value to be changed
    • ValueXml
      The contents of the field in Xml format, for example "ValueXml":"Changed header1 with documentChange"

 

Example changing file properties

The following example shows how to change accounting data properties as accounting header.



{
   "format":"documentChange",
   "error":"",
   "data":[
      {
         "document":{
            "dataUnits":[
               {
                  "nameXml":"FileInfo",
                  "data":{
                     "rowLists":[
                        {
                           "rows":[
                              {
                                 "fields":{
                                    "SectionXml":"Base",
                                    "IdXml":"HeaderLeft",
                                    "ValueXml":"Changed header1 with documentChange"
                                 },
                                 "operation":{
                                    "name":"modify"
                                 }
                              },
                              {
                                 "fields":{
                                    "SectionXml":"Base",
                                    "IdXml":"HeaderRight",
                                    "ValueXml":"Changed header2 with documentChange"
                                 },
                                 "operation":{
                                    "name":"modify"
                                 }
                              }
                           ]
                        }
                     ]
                  }
               }
            ]
         }
      }
   ]
}

 

Aiutaci a migliorare la documentazione

Sono benvenuti suggerimenti per come migliorare questa pagina.

Informaci quale tema necessita di una spiegazione migliore o come chiarire meglio un argomento.

Condividi questo articolo: Twitter | Facebook | LinkedIn | Email