[CLOSED] Store HTTPproxy problem

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Store HTTPproxy problem

    My store is like this

    
    <ext:Store runat="server" ID="dsResult" AutoLoad="false" >
              
               <Proxy>
                   <ext:HttpProxy >
                        <DirectEvents>
    
                     
                                    <Load 
                                                        Url="/Data/ValidateInput/" 
                                                        Timeout="60000"
                                                        FormID="GeneralForm"
                                                        IsUpload="true"
                                                        CleanRequest="true" 
                                                        Method="POST">
                                                        
                                                        <EventMask MinDelay="250" />
                                                        
                                       </Load>
                      </DirectEvents>
                  </ext:HttpProxy>
               </Proxy>
               <Reader>
                   <ext:JsonReader IDProperty="id" Root="data">
                             <Fields>
                                  <ext:RecordField Name="id"/>
                                  <ext:RecordField Name="part" />
                             </Fields>
                   </ext:JsonReader>
               </Reader>
               <BaseParams>
                    <ext:Parameter Name="branch" Value="#{cboCity}.getValue()" Mode="Raw" />
                    <ext:Parameter Name="franchise" Value="#{cboCountry}.getValue()" Mode="Raw" />
               </BaseParams>
               <Listeners>
                    <Load Fn="selectRecords" Delay="20" /> 
               </Listeners>
        </ext:Store>
    Am getting Error " Object reference not set to an instance of an object."
    Last edited by Daniil; Nov 08, 2010 at 7:54 AM. Reason: [CLOSED]
  2. #2
    Hi webppl,

    The <ext:HttpProxy> doesn't support any direct events.
    Please clarify what are you trying to achieve?
  3. #3
    Hi again,

    The DirectEvents section was removed from the HttProxy control some time ago.
    Please use the Store's DirectEvents.
  4. #4
    Thanks for your reply daniil,

    I want to upload files and validate contents of those uploaded files and display the validated result inside another tab which will be having Gridpanel. what am doing is in first tab panel i've got formpanel and on submit button am reloading store. Is there any other alternate to this?
  5. #5
    Is there any other alternate to this?
    Hi,

    At the moment we can't suggest you any alternate because your requirement is not clear for us.
    What is the relation between uploading files and a store?

    Please provide more details.
    Probably the best way to clarify is posting a sample code.
    We need have a look how everything is configured on your page.

    NOTE: Marked as solved. No more information was provided.
    Last edited by Daniil; Oct 25, 2010 at 7:36 PM. Reason: Added note
  6. #6
    Quote Originally Posted by Daniil View Post
    Hi,

    At the moment we can't suggest you any alternate because your requirement is not clear for us.
    What is the relation between uploading files and a store?

    Please provide more details.
    Probably the best way to clarify is posting a sample code.
    We need have a look how everything is configured on your page.

    NOTE: Marked as solved. No more information was provided.
    Hi Danii, Have a look for requirement http://forums.ext.net/attachment.php...5&d=1287984678
  7. #7
    Hi,

    We had a look into the code that you provide but, unfortunately, we still don't understand the requirement.

    Please make an efforts to explain it with more details.
  8. #8
    Hi Daniil,

    In the code provided there is tabpanel which contains 2 panels Enquiry and results.
    In first tab which is Enquiry is having some dropdowns, fileuplodField and Topbar with Button named Enquiry.
    When user click Enquiry Button form data which is in panel "Enquiry" submits to this action "/Data/Validate"

    
    <ext:Button ID="Button3" runat="server" Icon="Tick" Text="Enquiry">
                                              
                                                 <DirectEvents>
                                                    <Click 
                                                        Url="/Data/Validate/" 
                                                        Timeout="60000"
                                                        FormID="GeneralForm"
                                                        CleanRequest="true"
                                                        IsUpload="true" 
                                                        Method="POST"
                                                       Failure="Ext.Msg.show({
                                                       title:   'Error',
                                                       msg:     result.errorMessage,
                                                       buttons: Ext.Msg.OK,
                                                       icon:    Ext.MessageBox.ERROR
                                                    });">
                                                    <EventMask MinDelay="250" />
                                                        
                                                      
                                                        <ExtraParams>  
                                                           <ext:Parameter Name="City" Value="#{cboCity}.getValue()" Mode="Raw" />
                                                           <ext:Parameter Name="State" Value="#{cboState}.getValue()" Mode="Raw" />
                                                           <ext:Parameter Name="valid" Value="#{GeneralForm}.isValid()" Mode="Raw" />
                                                        </ExtraParams>
                                                    </Click>
                                                </DirectEvents>
                                            </ext:Button>

    Controller action validates data in uploaded files and returns generic List<>

    [AcceptVerbs(HttpVerbs.Post)]
            public AjaxResult Validate(FormCollection coll, string City, string State, bool valid)
            {
            }
    And i want to display this List in other Tab "Results" How can i fill GridpanelResults in tab results with Generic List?
    Hope this time you could understand problem.
  9. #9
    Hi,

    What list do you want to display? How it should be displayed?

    You can return that list as json object and display it as required via page. Or you can use partial rendering (see http://mvc.ext.net/ example Examples -> Partial Views)
  10. #10
    In controller action am creating Generic List<> and want to display in Gridpanel.
    Can i bind List to store dynamically?
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] Export store data to Excel using HttpProxy
    By ecko in forum 1.x Legacy Premium Help
    Replies: 12
    Last Post: Dec 15, 2011, 11:54 AM
  2. Store HttpProxy with AutoLoad = False
    By mkshields9w57 in forum 1.x Help
    Replies: 5
    Last Post: Oct 12, 2011, 5:07 PM
  3. [CLOSED] Parameters HttpProxy for Store
    By Jean-Pierre Poulin in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 23, 2010, 2:39 PM
  4. [CLOSED] Store error with HttpProxy
    By GmServizi in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Oct 28, 2009, 7:04 AM
  5. Passing parameters with HttpProxy / Store
    By Washburn in forum 1.x Help
    Replies: 1
    Last Post: Jan 12, 2009, 6:18 AM

Tags for this Thread

Posting Permissions