customization attribute
I can not figure out why this is not working.
All I want to do as an initial test is display 1177.
Help please.
Code Base
=======================
dojo.provide("com.example.ValueProvider");
(function() {
dojo.declare("com.example.ValueProvider", null, {
getValue: function(attribute, workItem, configuration) {
var result= 1177;
return result;
}
});
})();
======================================================
One answer
I tested with your script in 4.0.1 and it works for me.
I am wondering how you tried and what you mean it does not work, did you receive any error? What is your RTC version.
Here is what I did:
1) Enable process attachment scripts first:
http://www-01.ibm.com/support/docview.wss?uid=swg21508875
2) Create a calculated value custom attribute and point to the above js script.
3) Create a new string attribute and set the above new calculated custom attribute to it.
4) Add the new string attribute to presentation. For example Task workitem.
When creating a new task, 1117 will be set to the string attribute.
HTH
I am wondering how you tried and what you mean it does not work, did you receive any error? What is your RTC version.
Here is what I did:
1) Enable process attachment scripts first:
http://www-01.ibm.com/support/docview.wss?uid=swg21508875
2) Create a calculated value custom attribute and point to the above js script.
3) Create a new string attribute and set the above new calculated custom attribute to it.
4) Add the new string attribute to presentation. For example Task workitem.
When creating a new task, 1117 will be set to the string attribute.
HTH