Filter iNotes calendar in extlib

I also need to filter iNotes calendar management in extlib. When I look in the examples in the extlib application, I see that it must be connected to the xecalendarJsonLegacyService.

The problem with this service is that I cannot filter the content based on a category or search, as with other view services.

I need to create various calendars / json data based on a search or category in a view. I looked at some other services, but I'm not sure that they can be used instead.

If you have ideas on how I should create my filter, answer.

I have attached the pictures below, showing both the jsonservice and the calendar.

enter image description hereenter image description here

Here is what json data represents in xsCalendarJsonLegacyService

{ "@timestamp":"20120311T171603", "@toplevelentries":"3", "viewentry": [ { "@unid":"37F0330979C04AF2C12579BE004F5629", "@noteid":"32E1A", "@position":"1", "@read":"true", "@siblings":"3", "entrydata": [ { "@columnnumber":"0", "@name":"$134", "datetime": { "0":"20120314T100000" } }, { "@columnnumber":"1", "@name":"$149", "number": { "0":119 } }, etc... 
+4
source share
4 answers

You can implement your own REST service (or extension to an existing one) in the extension library, but I think you're looking for something simpler.

+1
source

Sorry code, but maybe (and hopefully) the answer. Have you looked at the xc: CalendarStoreCustomRestService custom element inside the demo of the Xpages extension library? They seem to have associated the calendar control with a regular JSON view repository and support search keys.

+1
source

I found code that you could use, but you have to extend the user control. I think this is a new component that is not yet included as an xe component: inside the extension library.

This is how you use the control:

 <xc:CalendarStoreCustomRestService id="cc4ccCalendarStoreCustomRestService" storeComponentId="notesCalendarStore1" databaseName="#{sessionScope.databaseName}" viewName="($Calendar)"> </xc:CalendarStoreCustomRestService> 

This is your calendar component, it uses the above storeComponentId.

  <xe:calendarView id="calendarView1" jsId="cview1" summarize="false" type="#{javascript: null == viewScope.calendarType? 'M' : viewScope.calendarType }" storeComponentId="notesCalendarStore1"> <xe:this.loaded><![CDATA[${javascript:if (sessionScope.databaseName == null) { return false; } else { return true; }}]]></xe:this.loaded> </xe:calendarView> 

If you need more information, this example is included inside DWA_iNotesRest.xsp.

+1
source

I searched googled for a long time, and the only solution I found was to create my own Rest service

Did you manage to filter the Calendar without this?

0
source

Source: https://habr.com/ru/post/1400857/


All Articles