View Full Version : Ext.data.writer.Json: Encode and extraParams

1 Jul 2014, 8:43 PM

I'm using SA3 (extjs 4.2.2) when I unintentionally enabled writer.jason: encode to true.
Then I notice that this causes extraParams (theSoNo) in the SAVE scenario to pass BLANK, in my PHP code:

if(isset($_POST['theSoNo'])) {
$selectedSoNo = $_POST['theSoNo'];

The IF statement returns TRUE... but $selectedSoNO has no value.

When I set writer.jason: encode to false, everything worked as

Is this a normal behavior?

I'm new to ExtJS and have not dealt with other parameters yet.

1 Jul 2014, 9:03 PM
Additional scenario:

This happens only when extra param is set this way:

SOLIStore.getProxy().extraParams = {
theSoNo: soNo

jason.writer: encode = true does not affect this declaration:

SOLIStore.getProxy().setExtraParam('theSoNo', soNo);