xpages - How do I access the column names of a view datasource in sortColumn? -



xpages - How do I access the column names of a view datasource in sortColumn? -

i have custom command displays view based off configuration documents. had been storing sortcolumn in sessionscope variable, user retain sort when leave , homecoming xpage. unfortunately, if leave xpage has same custom control, view doesn't have column same name, throws error.

so, thought check columnnames of view don't seek using sortcolumn doesn't exist. have been unable handle view info source while applying sortcolumn.

<xp:dominoview var="inputview" sortorder="#javascript:sessionscope.sortedcolumndirection}"> <xp:this.sortcolumn><![cdata[#{javascript:var namevector:java.util.vector = inputview.getcolumnnames(); var namearray = sessionscope.curdynamicviewsettings.columntitles; if ( @ismember(viewscope.sortedcolumnname,namearray)) { homecoming viewscope.sortedcolumnname; } return;}]]> </xp:this.sortcolumn> </xp:dominoview>

xpages

Comments

Popular posts from this blog

javascript - I need to update the text of a paragraph by inline edit -

javascript - THREE.js reposition vertices for RingGeometry -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -