Is it possible to set value from checkbox/view with sessionScope

Is it possible in XPages that with a checkbox in a view to create a sessionScope when you click in the box with a value from the document as shown in the view, such document ID.