Page tree
Skip to end of metadata
Go to start of metadata

Playground and DEMO space

This is a playground and demo space for ConfiForms and ConfiDoc addons developed and supported by Vertuna LLC

Most pages provide a storage format for the demo, so you can use the free add-on from Atlassian Confluence Source Editor to import this configuration into your Confluence and see it in action

Please note, all the examples here are provided without any obligation and may or may not be incomplete or may have bugs, and we provide NO SUPPORT for these examples and demos.


SuppliesTable

ID

Item Code

Item Name

Item Cost

1 C100 Chair 100
2 aergaesg argaeg 1
3 454545 bob 5
4 Hi Hi1 100
5 A0010 Attraction ONE 50.0
6 dnb dnb 1500
7 Code123 Name123 123
8 123133 Test 12
9 л
10 xcxc cvcvc 1
11 '.
12 Average Item code Avg Name 123
13 c100
14 ngngn yes 2
15 abc123 Nane 1 10

Using SuppliesTable

Item name and item cost are shown in readonly fields and are copied from item field, from supplies table

Storage format

<ac:structured-macro ac:macro-id="cd46e447-5b84-43db-bf7e-0bdec52c79e1" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">SuppliesTable1</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="bdb381b4-f26f-4856-b360-8fbb2ee4da5a" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
      <ac:rich-text-body>
        <p>
          <br/>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <ac:structured-macro ac:macro-id="130e60ed-d8d2-46f9-bb38-10a8abf04ea6" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">itemId</ac:parameter>
        <ac:parameter ac:name="fieldLabel">ID</ac:parameter>
        <ac:parameter ac:name="type">auto</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="3b967ce9-3dee-4fc3-b692-9c3345e24614" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">itemCode</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Item Code</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="d2c4a582-c295-43f5-aaa5-f1fb217a33bb" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">itemName</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Item Name</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="cb44c0ea-992b-4300-929f-de1b6ac2a8cf" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">itemCost</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Item Cost</ac:parameter>
        <ac:parameter ac:name="type">number</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>
<h2>SuppliesTable</h2>
<ac:structured-macro ac:macro-id="cdc38bfe-68a7-4c4b-bd03-b57c9d542269" ac:name="confiform-table" ac:schema-version="1">
  <ac:parameter ac:name="formName">SuppliesTable1</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="e128ea0d-3cc4-43f9-a830-79f8cda72402" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">itemId</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="9710f4c5-e2fc-4136-a206-09a4ace1e29f" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">itemCode</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="95444129-3869-470f-9922-e35222d460ae" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">itemName</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="4e866102-dded-4eec-b176-c669a25cbb44" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">itemCost</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>
<h2>Using SuppliesTable</h2>
<p>Item name and item cost are shown in readonly fields and are copied from item field, from supplies table</p>
<ac:structured-macro ac:macro-id="82ba631a-6b20-42ea-b579-f9825c2fb0d3" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">usingSuppliesTable1</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="7f4f8b27-a14a-4307-84c5-982516207eb2" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:parameter ac:name="formName">usingSuppliesTable1</ac:parameter>
      <ac:parameter ac:name="embedded">true</ac:parameter>
      <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
      <ac:rich-text-body>
        <p>
          <br/>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <ac:structured-macro ac:macro-id="f9c306f5-185e-4d90-b2e4-130735161601" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">item</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Item</ac:parameter>
        <ac:parameter ac:name="values">[27230635|SuppliesTable1|itemCode|true||]</ac:parameter>
        <ac:parameter ac:name="type">smartselect</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="2f8374bc-42fb-4a1f-afb8-4e5da414dd91" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">itemName</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Item Name</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="e6fd3e2e-9fae-4446-b707-1d229d191cff" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">itemCost</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Item Cost</ac:parameter>
        <ac:parameter ac:name="type">number</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="a6411f3f-bd3a-4a38-acf4-305a26a6ae42" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="condition">!item:[empty]</ac:parameter>
        <ac:parameter ac:name="values">itemName=[entry.item.itemName]&amp;itemCost=[entry.item.itemCost]</ac:parameter>
        <ac:parameter ac:name="action">Set value</ac:parameter>
        <ac:parameter ac:name="actionFieldName">item</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>





  • No labels