• Compatibility with Domino 8.5.0

    By Trapti Agrawal 1 decade ago

    Hi Keith,

    I have Notes Client 8.5.1 and domino server 8.5.0. I understand that the template requires 8.5.1 server. Yet, when I tried using the xpages calendar v0.06a ntf (on server), its working fine for Notes Client, which is fabulous. However with browser (IE6), it throws some compatibility errors.

    I escaped some of those errors by removing the 8.5.1 properties such as @clienttype, xp:text content type and event handler code formats. But, I am still facing some problems in Javascript functions - getFullYear and search (error as below)

    Page Name:/default.xsp
    Control Id: monthYearDisp
    Property: value
    Error while executing JavaScript computed expression
    Script interpreter error, line=2, col=45: Unknown member 'getFullYear' in Java class 'java.util.Date'

    Also, there is one more issue with Notes client, when I click on any calendar entry it gives message as below.

    500 Exception The request is not coming from a trusted rich client part.

    Any help how to get around them, would definitely be appreciable.

    Thanks,

    Trapti

    • Re: Compatibility with Domino 8.5.0

      By Keith Strickland 1 decade ago

       

      <p>
          Trapti,</p>
      <p>
          This really doesn&#39;t work in IE. The widgets are very flakey as is the styling doesn&#39;t look quite right. Also, I haven&#39;t tried this on Domino 8.5.0. This is also an alpha level product hence the &quot;a&quot; at the end of the version.</p>
      <p>
          Regarding your error on .getFullYear(). This usually is caused by the date not being set for some reason, if you&#39;re getting a date from one of the sessionScope, viewScope or applicationScope variables you can turn on the &quot;debug&quot; property to see the scoped variables.</p>
      <p>
          As for the error you&#39;re getting in the notes client, I&nbsp;<em>think</em>&nbsp;you&#39;ll need to include the session id (I&#39;m not sure how to get that) in the link.</p>
      <p>
          Keith</p>
      

  • Some issues with date picker

    By Trapti Agrawal 1 decade ago

    Hi Keith,



    Thanks for your last response. I was able to get the links work in Notes Client by adding session id. Just giving the format below for those reading this for solution.

    I got help from http://www.stevecastledine.com/sc.nsf/dx/some-important-titbits-when-developing-xpages-for-the-client



    changes in ccCalData -

    var sessionID="";

    if(sessionScope.sessionID!=null){

    sessionID=&quot;&amp;SessionID=&quot;+sessionScope.sessionID;<br/>
    

    }

    -

    -//passing sessionID to calEntOnClick funtion and then adding at end of url.

    'onclick="calEntOnClick('entry.xsp','' + docData[i] + '',''+sessionID+'');"' +

                'id=&quot;calData-' + docData[i] + '&quot;&gt;' +<br/>
                rawData[i] + '&lt;/div&gt;' +<br/>
    



    However, I am facing some problems with the datepicker. For monthly/day view calendar, it is giving error "This field is not a valid date" when I select any future dates. If I select any previous dates, it allows me to select but shows the calendar in a broken format (See attached screenshot). For week view, the date picker is not coming in proper format and doesn't allow selection.



    Also, the data is not coming for me in the day or week views. What I need to set for that?



    Thanks for your help!

    Trapti