Proxy with Nested Url

  1. #1

    Proxy with Nested Url



    Hi,

    How can I set a nested Url property in a store proxy:

    <ext:Store ID="Store1" runat="server">
        <Proxy>
            <ext:HttpProxy Url="/customers/{customerId}/orders/List" />
        </Proxy>
        <Reader>
            <ext:JsonReader IDProperty="KEY" MessageProperty="message">
                <Fields>
                    <ext:RecordField Name="ID" SortDir="ASC"/>
                    <ext:RecordField Name="NAME" />
                    <ext:RecordField Name="DESC" />
                    <ext:RecordField Name="TYPE" Type="int" />
                </Fields>
            </ext:JsonReader>
        </Reader>
        <SortInfo Field="ID" Direction="ASC" /> 
    </ext:Store>
    How can I set customerId value dinamically?

  2. #2

    RE: Proxy with Nested Url



    Hi,

    Is there some way to define proxy url property dinamically?

    Something like:

        <Proxy>
            <ext:HttpProxy Url='<%# "/customers/" + Model.CustomerId.ToString() + "/orders/List" %>' />
        </Proxy>
  3. #3

    RE: Proxy with Nested Url

    Hi Dominik,

    With your second sample, try setting AutoDataBind="true" on the <ext:HttpProxy>. I haven't tested, but that should databind the <% %> if it is properly formed.


    Hope this helps.


    Geoffrey McGill
    Founder
  4. #4

    RE: Proxy with Nested Url



    Thanks,

    It works now.

Similar Threads

  1. [CLOSED] Nested data in nested grids
    By FAS in forum 1.x Legacy Premium Help
    Replies: 16
    Last Post: Apr 19, 2012, 7:51 PM
  2. What exactly is Page Proxy?
    By chearner in forum 1.x Help
    Replies: 5
    Last Post: Jan 09, 2012, 9:52 PM
  3. Replies: 0
    Last Post: Oct 05, 2011, 3:45 PM
  4. Multicombo store proxy
    By David Pelaez in forum 1.x Help
    Replies: 1
    Last Post: Feb 08, 2011, 1:27 PM
  5. [CLOSED] How To: Proxy Extra Params
    By Immobilmente in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 19, 2009, 6:46 AM

Posting Permissions