Subscribe via Feed
, Apr 10, 2012 9:23:46 AM
5 responses to Using document data in a page title
homeopathie, October 6, 2009 10:14 AM
I have read all information which you have given and it is really very useful for me.Thank you for sharing this solution with us.This information will be helpful for those who gets problem like you.
Darin Dutcher, October 5, 2009 1:39 PM
You posted just as I was. You are right I had the same problems, when trying to set the page title from the custom control.
Darin Dutcher, October 5, 2009 1:37 PM
document1.getItemValueString("PageName") is what I use on the xpage properties.
Matt White, October 5, 2009 1:35 PM
@Steve, I wasn't able to set the pagetitle property the custom control or the XPage itself. I agree that this feels like a bug, but it's not an especially serious one. I had assumed that your suggestion would work but it doesn't hence the reason for this post in the first place. :-)
Steve Castledine, October 5, 2009 9:45 AM
My memory is failing me here, but I think this is more bug than feature. I may be confusing with something else, but for some reason setting the title within the custom control does not bubble up, however if you set the title within the xpage that contains the custom control it should work.
ie if your data source is called say document1 - and your data is within a custom control - just setting the title property within the main xpage using say document1.getItemValueString("subject") should work?