Inhalt anzeigen / ausblenden

    Create document

    In this example, a new document is to be created from a template in a specific document language.

    <OneOffixxConnectBatch xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schema.oneoffixx.com/OneOffixxConnectBatch/1">
      <Entries>
        <OneOffixxConnect>
          <Arguments>
            <TemplateId>6bb49520-1ebd-4f68-bb5f-02f46a9e1ec8</TemplateId>
            <LanguageLcid>2055</LanguageLcid>
          </Arguments>
     
          <!-- Document Parameter Dialog -->
          <Function name="DocumentParameter" id="2de8db66-f3d7-456d-bba3-6bb0f12c1fb6">
            <Arguments>
              <Value key="DocParam.Subject">Betreff Brief</Value>
              <Value key="DocParam.FirstName">John</Value>
              <Value key="DocParam.Name">Doe</Value>
              <Value key="DocParam.Ref">doj</Value>
              <Value key="DocParam.SuperiorName">Jane Doe</Value>
              <Value key="DocParam.ShowContact">true</Value>
            </Arguments>
          </Function>
    
          <!-- Recipient dialog -->
          <Function name="Recipient" id="b9e8ec94-bec0-418a-b985-c565ac3bec23">
            <Settings>
              <Value key="ShowDialog">true</Value>
            </Settings>
            <Arguments>
              <ContactList>
                <!-- One contact in contact list -->
                <ContactItem Selected="true" id="1">
                  <AddressType>PersonData</AddressType>
                  <Person>
                    <LastName>Doe</LastName>
                    <FirstName>Jane</FirstName>
                    <SalutationShort>Frau</SalutationShort>
                    <Address>
                      <Street>Example Street 1</Street>
                      <City ZipCode="3000">Bern</City>
                      <Country ShortCode="CH">Schweiz</Country>
                    </Address>
                  </Person>
                  <!-- Options for this contact -->
                  <ContactViewOptions InterneAddress="false" PositionView="false" SecondNameView="false" SalutationSeparatetLine="true" SalutationView="true" CountryCodeView="false" CountryView="false" PersonOverFirm="false" ShowProviderLayout="false" AddressingType="An" SelectedAddress="Private" />
                </ContactItem>
              </ContactList>
            </Arguments>
          </Function>
        </OneOffixxConnect>
      </Entries>
    </OneOffixxConnectBatch>
    

    Editor mode

    The Editor argument can also be used to call the underlying template directly in the template editor.

    <OneOffixxConnectBatch xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schema.oneoffixx.com/OneOffixxConnectBatch/1">
      <Entries>
        <OneOffixxConnect>
          <Arguments>
            <TemplateId>6bb49520-1ebd-4f68-bb5f-02f46a9e1ec8</TemplateId>
            <LanguageLcid>2055</LanguageLcid>
            <Editor>true</Editor>
          </Arguments>
        </OneOffixxConnect>
      </Entries>
    </OneOffixxConnectBatch>
    
    Back to top | Deutsch | English PrimeSoft AG   I   Bahnhofstrasse 4   I   8360 Eschlikon   I   Switzerland   I   Privacy   I   Legal notice