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.