11-23-2011 08:23 AM
…
fieldId : "template_x002e_edit-metadata_x002e_edit-metadata_x0023_default_prop_ex_gross",
handler : Alfresco.forms.validation.exampleGrossValidation, …
<config evaluator="string-compare" condition="activiti$Simple">
<forms>
<form>
<field-visibility>
<show id="bpm:workflowDescription" />
<show id="bpm:workflowDueDate" />
<show id="bpm:workflowPriority" />
<show id="sgfwf:centre1" />
<show id="bpm:assignee" />
<show id="packageItems" />
<!– <show id="bpm:sendEMailNotifications" /> –>
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.general" />
<set id="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
<set id="assignee" appearance="title" label-id="workflow.set.assignee" />
<set id="items" appearance="title" label-id="workflow.set.items" />
<set id="other" appearance="title" template="/org/alfresco/components/form/table-5-column-set.ftl" label-id="workflow.set.other" />
<field id="bpm:workflowDescription" label-id="workflow.field.message">
<control template="/org/alfresco/components/form/controls/textarea.ftl">
<control-param name="style">width: 95%</control-param>
</control>
</field>
<field id="sgfwf:centre1" set="other" help-id="example.price.gross.help" >
<constraint-handlers>
<constraint type="MANDATORY" validation-handler="Alfresco.forms.validation.exampleGrossValidation" event="keyup" />
</constraint-handlers>
</field>
…
11-28-2011 07:29 AM
12-01-2011 09:24 AM
<field id="sgfwf:centre1" set="other" mandatory="true">
02-28-2013 12:50 AM
02-28-2013 01:46 AM
…
DTP.dtpDatatable.subscribe("editorSaveEvent", function(oArgs) {
var target = oArgs.editor.getTdEl();
var column = DTP.dtpDatatable.getColumn(target);
if (column.key == "centre") {
…
DTP.checkCentreCell(oArgs.editor.getRecord(), null, urlArgs);
…
/*
* Check if the data is correct.
*/
checkCentreCell : function(record, row,urlArgs){
var callbacks = {
success : function(o) {
// Process the JSON data returned from the
// server
var values = [];
try {
values = YAHOO.lang.JSON.parse(o.responseText);
var value = "";
if (values.length > 0) {
value = values[0].result;
}
if (value == "true") {
/* Data exist */
} else {
…
DTP.setValueInCell(record,row,"centre","");
DTP.setValueInCell(record,row,"centredes","");
…
}
} catch (e) {
return;
}
},
failure : function(o) {
if (!YAHOO.util.Connect.isCallInProgress(o)) {
// Clean
…
DTP.setValueInCell(record,row,"centre","");
DTP.setValueInCell(record,row,"centredes","");
…
}
},
timeout : 3000
}
var sUrl = Alfresco.constants.PROXY_URI
+ "custom/checkFromDatatable + "?firmNb=" + DTP.firmNb
+ "&fir_db=" + DTP.fir_db + urlArgs;
var request = YAHOO.util.Connect.asyncRequest('GET', sUrl, callbacks);
},
05-27-2013 11:29 AM
06-03-2013 02:59 AM
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.