Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
7 replies
Subscribers
7 subscribers
Views
2943 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I have "user input task" activity and "document generator" s
dhavals
over 11 years ago
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
0
dhavals
over 11 years ago
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
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
dhavals
over 11 years ago
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
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data