Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Everything was fine with the scripting used to update our milestones defined as "100%" every time we edit a PLM object but we have noticed today that the script is not working. Could you please terll me if an update was made on the scripting on the Autodesk side?
Action script call "On Edit":
updateMileStones(item.DUE_DATE);
Library script call by the Action script:
// Function to update the milestones of a PLM object
// Only the milestones with a percentage equals to 100% will be updated according the field "Due date" of the tab "Details"
function updateMileStones(dueDate){
var i = 0;
for(i; i < item.milestones.length; i++){
if(item.milestones[i].progress === 100){
item.milestones[i].milestoneDate = dueDate;
}
}
return;
}
It cannot be more easier. Why it is not working now?
Thanks,
Sylvain
Solved! Go to Solution.