Skip to main content link. Accesskey S
  • HCL Logo
  • HCL Notes and Domino wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL Forums and Blogs
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • API Documentation
Search
Community Articles > Lotus iNotes > Lotus iNotes customization > How to determine the current view/folder
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

How to add entries to iNotes time zone table

There are two places to change in Forms85x.nsf. One is CustomTimeZones() in CustomJS subform. Another is CustomTimeZonesLite() in CustomJSLite subform. Below is a code sample for CustomTimeZonesLite(). The exact same code can be applied to CustomTimeZones(). {code:an600} function ...

How to determine the current view/folder

Short version {code: an} var oPanelManager AAA.Fkb(); var sContentId EPx.get('pepanelmanagercurrentselected').BoB; return (^(homemailcalendartodocontactsnotebook)i).test(oPanelManager.EZV(sContentId)) ?} oPanelManager.getContent(sContentId).Cd : ''; Longer version ...
Community articleHow to determine the current view/folder
Added by ~Frank Kifreemanakol | Edited by IBM contributor~Michelle Opveluvitchflar on March 25, 2010 | Version 20
  • Actions Show Menu▼
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: AJAX, inotes, Javascript, web
Short version

   1:  var oPanelManager = AAA.Fkb();
   2:  var sContentId = EPx.get('p-e-panelmanager-currentselected').BoB;
   3:  return (/^(home|mail|calendar|todo|contacts|notebook)\$/i).test(oPanelManager.EZV(sContentId)) ?
   4:   oPanelManager.getContent(sContentId).Cd : '';



Longer version

Beginning in 8.0.1 lite mode and 8.5 full mode, every view or document tab in iNotes is called "content" and has an object associated with it. Every content object has an ID, and the content ID that the user is currently seeing can be obtained by:

EPx.get('p-e-panelmanager-currentselected').BoB;.

Every content object has its group. It can be a functional area (mail, calendar, etc.) or "documents". The ID of the group can be obtained via EZV (getContentGroupId) method of the "panel manager". The panel manager can be obtained by AAA.Fkb(); (com_ibm_dwa_globals.getPanelManager()).

The content object can be obtained via getContent method of the panel manager. Cd (sValue) property of content object is the view/folder name. The view/folder title is in sTitle property.

  • Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (1)
collapsed Versions (1)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (20)Mar 25, 2010, 1:21:33 PM~Michelle Opveluvitchflar  IBM contributor
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL Software
  • Privacy
  • Accessibility