Function API_GetSelectedDocs_Lite(sId) from Custom_JS_Lite not working in calendarviews

Steps to reproduce:

  1. Create a custom view action “Example” in Custom_JS_Lite subform in Scene_Actions_Lite that calls the function API_GetSelectedDocs_Lite(sId) just like the example com_ibm_dwa_ui_EXAMPLE_actionSelectedDocs does

    var aAdd1 = [

    {title: “Example”, find_id: “print”, id: “example”, before: false,

    action: "com_ibm_dwa_ui_EXAMPLE_actionSelectedDocs"
    
    	}];
    

    addActionsLite( s_MenuID, bLeftItems, aAdd1 );

  2. Open iNotes mailfile,(Inbox) select some docs and click on the view action example. You’ll get an alert box with all the UNIDs of the selected documents as expected.

  3. Switch to a calendar view and select an appointment/meeting document. When you click on the “Example” button, the alert box is empty with no UNID

Why? How do I get the UNID of a calendar document? According to the description in Custom_JS_Lite the function API_GetSelectedDocs_Lite can be called from any scene. The function works in mail, to do, contacts and notebook but not in the calendar views.

Thanks for your help, Veit

Subject: Opened a PMR with IBM

After reproducing this issue with the standard forms85.nsf I opened a PMR with IBM 62979 SGC 724.

The corresponding function API_GetSelectedDocs in DWA7 works in calendarviews as well.

Subject: Here’s what helped me

Until there is a fix from IBM, I changed the following in the function API_GetSelectedDocs_Lite

I replaced the line

var ENt

= EKc.prototype.EYl[‘e-listview-container-’ + sParentContentGroupId + ‘:’ + AAA.Fgg];

with this

if (sParentContentGroupId == ‘calendar’){

var ENt=EKc.prototype.EYl['e-calendarview-frame:Fjw'];

}

else{

var ENt

 = EKc.prototype.EYl['e-listview-container-' + sParentContentGroupId + ':' + AAA.Fgg];

}

With this modification I was able to get the UnID of a selected doc in a calendar view.

Hope that helps anyone.

Veit

Subject: Customer Support reproduced it - now there’s an SPR