cancel
Showing results for 
Search instead for 
Did you mean: 

Show a textArea property in read-only mode

chicco0386
Champ on-the-rise
Champ on-the-rise
Hi,
I must to show a text area in read-only mode inside a workflow task.
My model and web-client-config-custom.xml files are:

model:
<type name="wfTria:qualificaPM">
         <parent>bpm:workflowTask</parent>
      <properties>
         <property name="wfTria:what">
            <title>Descrizione</title>   
            <type>d:text</type>
            <mandatory>false</mandatory>
            <multiple>false</multiple>
         </property>
      </properties>
      </type>

web-client-config-custom.xml
<config evaluator="node-type" condition="wfTria:qualificaPM" replace="true" >
      <property-sheet>
         <separator name="sep1" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
         <show-property name="wfTria:what" component-generator="TextAreaGenerator"/>
      </property-sheet>
   </config>

I try to set the web-client-config-custom.xml like this:

<show-property name="wfTria:what" component-generator="TextAreaGenerator" read-only="true"/>

but when inside the WF I populate the value of textArea "wfTria:what" like this:
<event type="task-create">
         <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
            <runas>admin</runas>
            <script>
               <variable name="wfTria_what" access="write"></variable>
               <variable name="nomeProgetto" access="read"></variable>
               <variable name="what" access="read"></variable>
               <expression>
                  taskInstance.description = nomeProgetto;
                  wfTria_what = what;
               </expression>
            </script>
         </action>
      </event>
Inside the Alfresco wf task the property is not define correctly, but if I remove the read-only = "true" it is populated correctly but NOT in read-only mode.

CAN YOU HELP ME PLEASE?
THANK YOU
2 REPLIES 2

chicco0386
Champ on-the-rise
Champ on-the-rise
I've solved,
I've a problem inside the WF script… the read-only attribute works fine.

chicco0386
Champ on-the-rise
Champ on-the-rise
If i want to show the property like this:
[img]http://img705.imageshack.us/img705/1805/labelh.png[/img]
and not as it appears now:
[img]http://img809.imageshack.us/img809/2773/textarea.png[/img]
I've just try with the component-generator="TextFieldGenerator", but nothing change.

CAN YOU HELP ME?
THANK YOU
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.