在 alfresco 工作流共享表单中,在文本框中按行和列方式插入字符串数组
insert string array in text box alligned row and column wise in alfresco workflow share form
我在自定义 属性(文本框)中设置字符串数组(字符串动态值)在露天形式 share.but 我需要将它们排列在适当的行中 columns.How在适当的 table(文本框内)
中对齐动态数组值
//任务脚本:-
xyz.bpmn
var stringcollection = "Column1:"+value1+" "+" :"+Column2+"value1 "+"End Date: "+stopDate+""...... ....进一步连接字符串。
execution.setVariable('abc:def', 字符串集合);
我需要在任务表单(工作流露天共享)中的文本框内的行和列中对这些字符串集合进行排序。
//与自定义大小的文本框共享 UI 可见性。
sharecustomconfig.xml
<config evaluator="task-type" condition="abc:taskname">
<forms>
<form>
<field-visibility>
<show id="abc:def"/>
<show id="packageItems" />
<show id="bpm:comment" />
</field-visibility>
<appearance>
<field id="abc:def" label="abcdef" read-only="true">
<control template="/org/alfresco/components/form/controls/textarea.ftl">
<control-param name="style">color: black</control-param>
<control-param name="rows">6</control-param>
<control-param name="columns">6</control-param>
</control>
</field>
</appearance>
</form>
</forms>
</config>
在模型文件中定义 属性
在您的 share-config-custom.xml 中定义要呈现的表单字段
'" field id="your:prop" set="details" label="details" read-only="true" '"
"control template="org/alfresco/components/form/controls/workflow/custom.ftl" "
定义一个 属性,它将显示您的 table 定义一个自定义 ftl 作为表单字段。并将您的变量传递给此 ftl 编写您的逻辑以对行和列中的字符串列表进行排序,您可以在 ftl 文件 table 中呈现它
我在自定义 属性(文本框)中设置字符串数组(字符串动态值)在露天形式 share.but 我需要将它们排列在适当的行中 columns.How在适当的 table(文本框内)
中对齐动态数组值//任务脚本:- xyz.bpmn
var stringcollection = "Column1:"+value1+" "+" :"+Column2+"value1 "+"End Date: "+stopDate+""...... ....进一步连接字符串。 execution.setVariable('abc:def', 字符串集合);
我需要在任务表单(工作流露天共享)中的文本框内的行和列中对这些字符串集合进行排序。
//与自定义大小的文本框共享 UI 可见性。 sharecustomconfig.xml
<config evaluator="task-type" condition="abc:taskname">
<forms>
<form>
<field-visibility>
<show id="abc:def"/>
<show id="packageItems" />
<show id="bpm:comment" />
</field-visibility>
<appearance>
<field id="abc:def" label="abcdef" read-only="true">
<control template="/org/alfresco/components/form/controls/textarea.ftl">
<control-param name="style">color: black</control-param>
<control-param name="rows">6</control-param>
<control-param name="columns">6</control-param>
</control>
</field>
</appearance>
</form>
</forms>
</config>
在模型文件中定义 属性
在您的 share-config-custom.xml 中定义要呈现的表单字段
'" field id="your:prop" set="details" label="details" read-only="true" '"
"control template="org/alfresco/components/form/controls/workflow/custom.ftl" "
定义一个 属性,它将显示您的 table 定义一个自定义 ftl 作为表单字段。并将您的变量传递给此 ftl 编写您的逻辑以对行和列中的字符串列表进行排序,您可以在 ftl 文件 table 中呈现它