1. #1
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    64
    Vote Rating
    6
    jim@carroll.net is on a distinguished road

      2  

    Default How to set pageParam to undefined using Architect?

    How to set pageParam to undefined using Architect?


    Working with Ext.data.proxy.Ajax, we'd like to disable the 'page' URL parameter. According to the docs we need to set pageParam to undefined, but we can't figure out how to accomplish this using Architect. Entering the word undefined in the value field of the configuration panel results in the pageParam being set to a quoted string 'undefined'.

    I understand we could just fire up and editor and directly change the .js file, but that gets overwritten by all subsequent save operations from within Architect.

    (http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.proxy.Server-cfg-pageParam).

  2. #2
    Sencha User jojopad's Avatar
    Join Date
    Aug 2012
    Location
    Manila, Philippines
    Posts
    6
    Vote Rating
    3
    jojopad is on a distinguished road

      2  

    Default


    Here's my workaround on how to set the pageParam property to undefined.

    1. Add a "beforeload" event binding to the store object.
    2. Inside the beforeload function:

    store.proxy.pageParam = undefined;
    store.proxy.limitParam = undefined;
    store.proxy.startParam = undefined;