I'm trying to get a value from a profile document in the beforePageLoad event of my XPage. To do this I use Server Side Javascript:
var currdb:NotesDatabase = database;
var profdoc:NotesDocument = currdb.getProfileDocument("frmProfile","");
var showRefInfo = profdoc.getItemValueString("ShowReferenceInformation");
sessionScope.put("showRefInfo",@Text(showRefInfo));
The field "ShowReferenceInformation" can have a value of either 1 or 0. I have changed this value from 0 to 1, however my SSJS code continues to return 0. What could be causing this?