It's all about the answers!

Ask a question

Can I add a constraint to not allow users to add hours in RTC time sheet if it is not a multiple of 0.25 hours


Rohit Rishabh (1531136) | asked Nov 24 '15, 11:35 a.m.
edited Nov 24 '15, 11:42 a.m.
We want to limit our user to only enter time in RTC timesheet which are multiple of 0.25 hours. I.e if user add a time as 1.3 hr, 1.45 hr, 4.65 hr etc, the tool should not allow it and only allow time with decimal value when they are a multiple of 0.25 hours (i.e 1.25 hr, 1.5 hr, 1.75 hr, 2.0 hrs etc).

Is there a way in RTC add this limitation?  We are using CLM 5.0.2

Accepted answer


permanent link
Tiago Moura (8387) | answered Nov 24 '15, 11:41 a.m.
edited Nov 24 '15, 11:41 a.m.
 Yes, but you need to implement your own precondition.


Rohit Rishabh selected this answer as the correct answer

Comments
Rohit Rishabh commented Nov 24 '15, 2:32 p.m.

Does it require to write a java script and add it as a precondition?


Tiago Moura commented Nov 24 '15, 4:25 p.m. | edited Nov 24 '15, 4:26 p.m.

No, preconditions are Java extensions.


You can find more details in my blog:

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.