XPages - any way to get the view name for a view panel before rendering?

I have several XPages with a view panel with the data-source var name set to “notesView”.(Note the casing - it should not conflict with the NotesView class, but I could change the var name if necessary.)

Is there any way, in the beforePageLoad or beforeRenderResponse events of the page, to get the name of the view used by the view panel?

I tried using “requestScope.notesView” in beforePageLoad, but that returned null.

Subject: looking into this…

…though have you tried using ‘.getName’ for the view data source?

<xp:this.beforePageLoad>

	<xp:setValue binding="#{requestScope.notesView}">

		<xp:this.value><![CDATA[#{javascript:var v1 = viewDataSource1.getName();

"This is the Notes View name = " +v1}]]></xp:this.value>

	</xp:setValue>

</xp:this.beforePageLoad>