Code Examples using JavaScript Selectors API or jQuery for UI developers. The Decoration feature is available with Professional edition. NOTE: No updates or support. Decoration is at your own risk.
<button type='button' onclick='user_preview_Html()'>Open Window to Preview HTML</button>
<script>
function user_preview_Html() {
let str_HtmlCode = qbpms.form.get("q_HtmlCode");
if( str_HtmlCode === "" ){
throw new Error('No String in this Textarea');
}
let blob = new Blob([ str_HtmlCode ], { type: 'text/html' });
let strUrl = URL.createObjectURL(blob);
window.open( strUrl, "_Blank" );
}
</script>
Capture
HTML Code Previewer. Display the HTML text stored in the String type in another window.
Export Text as UTF8B-File
Input/Output
Referrer:
Multiline STRING form
Target:
(download)
<div class="form-data-item-wrapper column column-1 " data-pdd-number="0" data-type="STRING" data-sub-type=""
data-form-type="TEXTAREA" data-var-name="q_Multiline_String" data-accessibility="READWRITE" data-field-name="data[0].input">
<div class="item "><label class="item-label">Multiline String</label><!--文字列型-->
<textarea name="data[0].input" rows="15" placeholder="" style="resize: both;" class="fit">I am a cat.
As yet I have no name. I've no idea where I was born.
All I remember is that I was miaowing in a dampish dark place when, for the first time, I saw a human being.
</textarea>
</div>
</div>
Example of DESCRIPTION setting
vanilla JavaScript (click to open)
<button type='button' onclick='user_exportTextAsFile0()'>Save as Text File</button>
<script>
function user_exportTextAsFile0(){
let str_Multiline_String = qbpms.form.get("q_Multiline_String");
let bom = new Uint8Array([0xEF, 0xBB, 0xBF]);
let blob = new Blob([bom, str_Multiline_String], {type: 'text/plain'});
let url = (window.URL || window.webkitURL).createObjectURL(blob);
let link = document.createElement('a');
link.download = 'download.txt';
link.href = url;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}
</script>
Searches to past data via “Questetra Workflow API” (completed process instance only), then Shows 10 samples. Note that it depends on the user’s privileges and history.