Is there any way to access the Project Task Assign...
# general
r
Is there any way to access the Project Task Assignments sublist on the Financial Tab of Projects via script? I don't see any such sublist on the records browser. I would like to make unit cost hidden for certain roles.
I got to the financial tab using
form.getTab()
. The tab object doesn't give me any clues. Documentation isn't clear.
s
There is project task sublist from there you should be able to access it.
a
project task assignment is a sublist on the record project task, which is where you might be able to hide it - i don't think you can customize the view it shows on the financial tab, though i may be wrong
r
that's what it seems like.
a
actually, i was just looking - that financial subtab has a "view" for the task assignment sublist. could you just make a view w/o that value the only enabled/preferred view for the roles you don't want to be able to see it?
s
Well they can still do save search on it. As long as I know it can’t be hidden 100%
We had situation were unit cost was related to employee salary and wanted to hide it. After scripting we hide it in task and on form but could not prevent user doing saved search.
r
I don't think we're necessarily going to pursue it, but maybe. I think it's possible that saved searches are an ok level of risk. You'd have to be looking for it to find, as it's under the
Project Task Assignment fields...
join. If we could hide it on the project and the task, it might be worth it. They've also considered doing a leveled unit cost.
s
On project and task record it is possible to hide it, you just need script and make sure if you do it with script you test if you can create project template and project from templates because it was not easiest script from my experience.