Clarity

Expand all | Collapse all

Timesheets - "All Open Time periods" default?

  • 1.  Timesheets - "All Open Time periods" default?

    Posted 09-23-2016 11:02 AM

    On the Timesheets page, in the Dates: By Time Period dropdown, the current default is "Current Time Period".  We need to make this "All Open Time Periods".  I know it's not a configurable object, but I've seen at least one reference to being able to set this in the file in $NIKU_HOME/META-INF/timeadmin.  Unfortunately I can't find where the default is set.

     

    Anyone know?  The file name and a code snippit would be very helpful!!



  • 2.  Re: Timesheets - "All Open Time periods" default?

    Posted 09-23-2016 11:26 AM

    Looks like the code in timesheetBrowser.xsl (in timeadmin\vxsl\timesheets)?



  • 3.  Re: Timesheets - "All Open Time periods" default?

    Posted 09-23-2016 11:41 AM

    I was looking at that, and I see the following, but I don't see where the default is set!

     

                <cell id="ff_date_select" type="select" onEnter="applyFilter">
                  <data value="open">
                    <label value="All Open Time Periods"/>
                  </data>
                  <data value="prior" selected="{filter/date_select/@value = 'prior'}">
                    <label value="Prior Time Period"/>
                  </data>
                  <data value="current" selected="{filter/date_select/@value = 'current'}">
                    <label value="Current Time Period"/>
                  </data>
                </cell>



  • 4.  Re: Timesheets - "All Open Time periods" default?

    Posted 09-23-2016 11:54 AM

    Sorry not helping, just GUESSING.

    And in my local test system the default is "All Open Time Periods" not "Current Time Period".



  • 5.  Re: Timesheets - "All Open Time periods" default?

    Posted 09-23-2016 12:10 PM

    That's OK David, thank you for answering! 

     

    The good news is that I did figure it out!  If anyone else is looking, here it is:

     

    • This requires a change to the Clarity standard file $NIKU_HOME/META-INF/timeadmin/timesheetbrowser.xbl.
      Step 1:
      Line 101: <date_select value ="current "/> <!-- default to current period -->
      Change to: <date_select value ="open"/>
      Line 114: <date_select value ="current "/> <!-- default to current period -->
      Change to: <date_select value ="open"/>

      Step 2: Restart app service

       

      For anyone else thinking of doing this though, bear in mind that this is NOT supported or upgrade protected.



  • 6.  Re: Timesheets - "All Open Time periods" default?

    Broadcom Employee
    Posted 09-23-2016 12:27 PM

    Just to be careful, if you keep to open and you have lot of time period the page might blow away. Also these file level changes can/might impact product upgrades.