[1.0] BUG: STORE Parameter Value="" empty causes invalid json construction

  1. #1

    [1.0] BUG: STORE Parameter Value="" empty causes invalid json construction

    <ext:Store runat="server" AutoLoad="false" ShowWarningOnFailure="false">
    <Proxy>    
        <ext:HttpProxy Url="/svc/test.ashx" Method="GET" DisableCaching="true" />
    </Proxy>
    <BaseParams>
        <ext:Parameter Name="P1" Value="" Mode="Raw" />
        <ext:Parameter Name="P2" Value="" Mode="Raw" />
    </BaseParams>
    <Reader>
        <ext:JsonReader Root="Response" >
        <Fields>
            <ext:RecordField Name="Test" Type="Int" />
        </Fields>
        </ext:JsonReader>
    </Reader>
    </ext:Store>
    Produces javascript code that crashes.

    Ext.apply(options.params,{"P1":,"P2":});
    Should produce
    Ext.apply(options.params,{"P1":"","P2":""});
    Last edited by Daniil; Jun 27, 2011 at 10:32 AM. Reason: Please use [CODE] tags for all code
  2. #2
    Hi,

    You have to use Mode="Value" if you need empty value

Similar Threads

  1. Replies: 7
    Last Post: Dec 19, 2013, 7:16 PM
  2. Replies: 6
    Last Post: Jul 03, 2012, 5:46 PM
  3. [CLOSED] TreePanel : "invalid property id" error
    By coleg123 in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jul 23, 2011, 9:47 PM
  4. Replies: 2
    Last Post: Jun 26, 2011, 1:59 AM
  5. [CLOSED] IE8 combo "Invalid argument" on z-index
    By ljcorreia in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 22, 2011, 10:10 AM

Posting Permissions