How to Passing data from current view to other view?


#1

Hi sir,

I want to build a demo like
https://dhtmlx.com/docs/products/demoApps/dhtmlxExam/#exams.

I add clik function in exams grid cell:

cell__template: function(event, data) {
   this.fire("view:modeChanged", ['results','XXX1','XXX2']);

}

I want to pass data XXX1 and XXX2 to view results.

How to do it?

Thanks,
Jack


#2

You may get the data fields of the record from the “data” parameter of the template function. and then return the needed formatted data from that template function.