This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Feb 24, 2014, 11:48 AM
10 Posts

DataView and sessionScope

  • Category: Extension Library
  • Platform: All
  • Release: All
  • Role: Developer
  • Tags:
  • Replies: 1

Hi

Have a DataView (ExtLib) and want to put a sessionScope with documentID when I click on a link in a column, where do you do it? also want to use partiel refresh to update a specific panel.

Have done this in a ordinary view and column

<xp:viewColumn columnName="company" id="viewColumn1"

style="width:auto" displayAs="link" openDocAsReadonly="true">

<xp:viewColumnHeader value="Company" id="viewColumnHeader1"

sortable="true">

</xp:viewColumnHeader>

<xp:eventHandler event="onclick" submit="true"

refreshMode="partial" refreshId="CC_UPDATE">

<xp:this.action><![CDATA[#{javascript:tmp = rowdata.getDocument().getUniversalID()

sessionScope.myID = tmp}]]></xp:this.action>

</xp:eventHandler>

</xp:viewColumn>

 

Regards

Feb 25, 2014, 10:33 PM
453 Posts
dataView and click on link

I spent a lot of time creating dataViews in my application then eventually tossed the whole lot and went to repeat controls. Far prefer the control and flexibility that I have with the repeat. Had a struggle making dataViews do what I wanted. One thing I would suggest is that you get the deBug tool bar from the OpenNTF site. You can use the dBar.info to get feed back from your code. The code you have to update sessionScope.myID looks OK. The deBugToolBar allows you to examine all the scope variables, as well as comment your js which can really help in debugging.


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal