Example DocumentChange FileProperties

文件资料 •
在此文中

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 "InfoFile". 

See: Menu > Tools > Info File 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 change are specified with the elements
    • SectionXml
      For example "SectionXml":"Base"
    • IdXml
      For example "IdXml":"HeaderLeft"
  • The value to be changed
    • ValueXml
      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"
                                 }
                              }
                           ]
                        }
                     ]
                  }
               }
            ]
         }
      }
   ]
}

 

请帮助我们完善必备文件

我们非常欢迎您发送宝贵的反馈意见

请告诉我们什么主题需要更好的解释或如何才能更好的对其诠释。

分享这篇文章: Twitter | Facebook | LinkedIn | Email