1. #1
    Sencha Premium Member
    Join Date
    Mar 2010
    Location
    Nashville, TN
    Posts
    34
    Vote Rating
    1
    malkandari is on a distinguished road

      0  

    Default How to Get the Store URL? Including Extra Params, Filters and Sorters

    How to Get the Store URL? Including Extra Params, Filters and Sorters


    I kinda feel what I'm trying to do is simple but couldn't find enough resources in the API.

    Basically, I am trying to get the last URL Request the Store made including Extra Params, Filters, etc...

    Here is an example URL that I would like to store in a variable.

    app/data/affiliates/Grid.php?_dc=1384475192076&page=1&start=0&limit=100&filter=%5B%7B%22property%22%3A%22status%22%2C%22value%22%3A%22Active%22%7D%5D

    I guess the question is how to retrieve that URL from the store?

    Thanks,

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    This is your request URL that i sent to the server, correct?

    When do you want this info?

  3. #3
    Sencha Premium Member
    Join Date
    Mar 2010
    Location
    Nashville, TN
    Posts
    34
    Vote Rating
    1
    malkandari is on a distinguished road

      0  

    Default


    Correct. On a button Click.

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Have a look at the following:

    Code:
    xtype: 'button',
    text: 'click me',
    handler: function() {
        store.load({
            params: {
                start: 0,
                limit: 10,
                sort: '[{"property":"abbr","direction":"ASC"}]'
            },
            callback: function(records, operation, success) {
                console.log('--- operation ---');
                console.log(operation);
            }
        });
    
        console.log('--- store ---');
        console.log(store); // store.lastOptions
    }

  5. #5
    Sencha Premium Member
    Join Date
    Mar 2010
    Location
    Nashville, TN
    Posts
    34
    Vote Rating
    1
    malkandari is on a distinguished road

      0  

    Default


    Interesting. I can see the store options; I do not see the URL. My guess would be to get it form the proxy and then build my URL based on the last options. store.lastOptions is not in the docs, correct? I don't see it anywhere. I was hopping there is a much quicker way to do it. To just get the Built URL from the store.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi