I want to get the current view/folder name so I can conditionally add menu items based on the current folder. We have a process that adds folders to users mailboxes with special tags on the end of their names. I need to look at those tags to determin what menu items I want to add.
In 7.0 it was easy to tell by simply looking at the s_ViewLabel variable.
This variable is does not seem to exist in lite mode.
Subject: That does not seem to work for shaired folders
It does give the folder name for the Inbox, but when you call it when the current folder is a custome one it just gives a sequence of hexidecimal digits (unique identifier for the folder perhaps). Is there something else I need to do to get the actual folder name from this?
Sorry about the delayed responce as I have been working on other things.
Subject: sTitle property
Hi Clarence,
For non-system folders, using sTitle property instead of Cd property will give you the folder name.
Best regards,
Subject: Doh?!
How did I miss that in your wiki artical?
I will try that when I get back to that project (expecting it to work).
Subject: sTitle is always undefined?
well that does not work either?Here is exactly what I am calling:
var oPanelManager = AAA.Fkb();
var sContentId = EPx.get('p-e-panelmanager-currentselected').BoB;
var folderName = (/^(home|mail|calendar|todo|contacts|notebook)$/i).test(oPanelManager.EZV(sContentId)) ? oPanelManager.getContent(sContentId).sTitle : '';
folderName always ends up with the value undefined?
Subject: Should be there
Hi Clarence,
Not sure why you couldn’t get the result you wanted, but I quickly tried to navigate to a folder in left-hand pane and then ran the following code (in an interactive pane in JavaScript debugger, etc.), and I got the name of the folder:
(function(){ var oPanelManager = AAA.Fkb(); var sContentId = AAA.DSq.EPx.get(‘p-e-panelmanager-currentselected’).BoB; return (/^(home|mail|calendar|todo|contacts|notebook)$/i).test(oPanelManager.EZV(sContentId)) ? oPanelManager.getContent(sContentId).sTitle : ‘’; })()
Best regards,
Subject: I got it working
I accedentally copied the modified Forms85.ntf from a 8.5 Domino server to an 8.5.1 Domino server and that seemed to be the problem (I thought they were both 8.5 servers).
I have it working in a simple Forms85_x.nsf, now I just need to put it all our other needed changes.