PDA

View Full Version : [CLOSED] pass mutiple paramer with single extraparams



matrixwebtech
Nov 26, 2014, 4:19 PM
Hi
Currently I pass parametars and values

de.Select.ExtraParams.Add(new { containerId = "container", DepartmentID = "App.cmbDepartment.getValue()", PaygroupID = "App.PaygroupID.getValue()", Employeecode = "App.txtEmployeecode.getValue()" })
but I not able so set parameter mode in it.How to set parameter mode in it?

or if I follow bellow style ,then how I assign all parameter and values with it.

de.Select.ExtraParams.Add(new Parameter
{

});

Daniil
Nov 27, 2014, 2:49 PM
Hi @matrixwebtech,

Please use a JRawValue

de.Select.ExtraParams.Add(new
{
containerId = "container",
DepartmentID = new JRawValue("App.cmbDepartment.getValue()")
});
or

this.Button1.DirectEvents.Click.ExtraParams.Add(ne w Ext.Net.Parameter("containerId", "container", ParameterMode.Value));
this.Button1.DirectEvents.Click.ExtraParams.Add(ne w Ext.Net.Parameter("DepartmentID", "App.cmbDepartment.getValue()", ParameterMode.Raw));

matrixwebtech
Nov 28, 2014, 5:36 AM
Hi daniil ,
Your solution works.one more thing I want to know.new JRawValue("some value") and ParameterMode.Raw are same?

Daniil
Nov 28, 2014, 6:21 AM
I would say these things are different, but its destinations are the same - serialize a value without quotes.