Apr 29, 2011, 12:54 PM
[CLOSED] After update from SVN: "Cannot read property 'success' of undefined"
So after updating from SVN I get the following error when I search in a ComboBox:
There is no problem with the code as it worked before SVN update.
The ComboBox looks like this:
Cannot read property 'success' of undefined
See this picture:There is no problem with the code as it worked before SVN update.
The ComboBox looks like this:
<ext:ComboBox runat="server" AutoWidth="true" EmptyText="Search" Icon="User" FieldLabel="Search"
ID="ComboBox_Customer_Search"
DisplayField="CustomerName"
ValueField="CustomerId"
TypeAhead = "false"
HideTrigger = "false"
EnableKeyEvents = "true"
MinChars = "1"
LoadingText="Searching..."
ForceSelection="false"
ItemSelector="tr.list-item">
<Template ID="Template1" runat="server">
<Html>
<tpl for=".">
<tpl if="[xindex] == 1">
<table class="cbStates-list">
<tr>
<th>Searchstring</th>
<th>CustomerName</th>
<th>ID</th>
</tr>
</tpl>
<tr class="list-item">
<td style="padding:3px 0px;">{SearchText}</td>
<td>{CustomerName}</td>
<td>{CustomerPnr}</td>
</tr>
<tpl if="[xcount-xindex]==0">
</table>
</tpl>
</tpl>
</Html>
</Template>
<Store>
<ext:Store ID="Store_Customer_Search" runat="server" AutoLoad="false" OnRefreshData="Store_Customer_Search_Refresh">
<Proxy>
<ext:PageProxy />
</Proxy>
<Reader>
<ext:ArrayReader>
<Fields>
<ext:RecordField Name="CustomerId" />
<ext:RecordField Name="SearchText" />
<ext:RecordField Name="CustomerName" />
<ext:RecordField Name="CustomerPnr" />
</Fields>
</ext:ArrayReader>
</Reader>
</ext:Store>
</Store>
<Listeners>
<Select Handler="Ext.net.DirectMethods.CustomerSelected()" />
</Listeners>
</ext:ComboBox>
I do not Select anything, so the CustomerSelected() is not called.
Last edited by Daniil; May 01, 2011 at 9:16 PM.
Reason: [CLOSED]