I have "user input task" activity and "document generator" s

I have "user input task" activity and "document generator" service where i map the ### parameters(defined in DOCX template) with appropriate process variables.
PROBLEM: I want checkbox field to populate in template field based on given input from "user input task form".
As found, it discussed/found , we could achieve this using OOXML and w:checkbox such elements.
But, How can i generate OOXML for given template and generate docx file having checkbox ?
any one please share me some detail step to achieve checkbox field to populate in report template ?
Thank You...

OriginalPostID-79028

OriginalPostID-79028

  Discussion posts and replies are publicly visible

Parents
  • it did not work.
    I got XML file through how you mentioned and in document.xml file, i have updated block as below:
    <w:sdt>
    <w:sdtPr>
    <w:id w:val="-1225917461"/>
    ###checkboxfinal###
    </w:sdtPr>
    <w:sdtContent>
    <w:r w:rsidR="00F82D0C">
    <w:rPr>
    <w:rFonts w:ascii="MS Gothic" w:eastAsia="MS Gothic" w:hint="eastAsia"/>
    </w:rPr>
    <w:t>?</w:t>
    </w:r>
    </w:sdtContent>
    </w:sdt>

    Now, when i do zip and rename back to DOCX and open that file then it shows me error and unable to open the file. it would be due to xml format issue.
    As you suggested, i think to replace this ###checkboxfinal### with process variable value which will be like (<w:checkBox>
    <w:size w:val="1"/>
    <w:default/>
    <w:checked/>
    </w:checkBox>)

    But, for now, unable to open that DOCX file so, i could not move forward.

    Can you please correct me where i am wrong ?

    Thank You
Reply
  • it did not work.
    I got XML file through how you mentioned and in document.xml file, i have updated block as below:
    <w:sdt>
    <w:sdtPr>
    <w:id w:val="-1225917461"/>
    ###checkboxfinal###
    </w:sdtPr>
    <w:sdtContent>
    <w:r w:rsidR="00F82D0C">
    <w:rPr>
    <w:rFonts w:ascii="MS Gothic" w:eastAsia="MS Gothic" w:hint="eastAsia"/>
    </w:rPr>
    <w:t>?</w:t>
    </w:r>
    </w:sdtContent>
    </w:sdt>

    Now, when i do zip and rename back to DOCX and open that file then it shows me error and unable to open the file. it would be due to xml format issue.
    As you suggested, i think to replace this ###checkboxfinal### with process variable value which will be like (<w:checkBox>
    <w:size w:val="1"/>
    <w:default/>
    <w:checked/>
    </w:checkBox>)

    But, for now, unable to open that DOCX file so, i could not move forward.

    Can you please correct me where i am wrong ?

    Thank You
Children
No Data