Oct 30, 2013, 1:44 PM
[CLOSED] HttpWriteProxy sending parameters in querystring
Hi guys, i'm having some trouble with the HttpWriteProxy.
I have set it to use the method POST.
But when i save the store, the store data is sent via the querystring instead in the request body.
Any help about this?
This is my code:
I have set it to use the method POST.
But when i save the store, the store data is sent via the querystring instead in the request body.
Any help about this?
This is my code:
<ext:Store ID="storeEventos" runat="server">
<Reader>
<ext:JsonReader IDProperty="IdTelecontrolEvento">
<Fields>
<ext:RecordField Name="IdTelecontrolEvento" Type="Int" />
<ext:RecordField Name="IdEventoAnterior" Type="Int" />
<ext:RecordField Name="IdVariante" Type="Int" />
<ext:RecordField Name="VarianteNombre" Type="String" />
<ext:RecordField Name="IdMaterial" Type="Int" />
<ext:RecordField Name="MaterialNombre" Type="String" />
<ext:RecordField Name="IdTipoEventoTelecontrol" Type="Int" />
<ext:RecordField Name="TipoEventoTelecontrolNombre" Type="String" />
<ext:RecordField Name="IdProducto" Type="Int" />
<ext:RecordField Name="ProductoNombre" Type="String" />
<ext:RecordField Name="IdAnunciante" Type="Int" />
<ext:RecordField Name="AnuncianteNombre" Type="String" />
<ext:RecordField Name="IdTipoAviso" Type="Int" />
<ext:RecordField Name="TipoAvisoNombre" Type="String" />
<ext:RecordField Name="IdCategoriaPNT" Type="Int" />
<ext:RecordField Name="CategoriaPNTNombre" Type="String" />
<ext:RecordField Name="IdResultadoTelecontrol" Type="Int" />
<ext:RecordField Name="ResultadoTelecontrolNombre" Type="String" />
<ext:RecordField Name="Duracion" Type="Int" />
<ext:RecordField Name="HoraEmision" Type="String" />
<ext:RecordField Name="Observaciones" Type="String" />
<ext:RecordField Name="Multiple" IsComplex="true" />
</Fields>
</ext:JsonReader>
</Reader>
<UpdateProxy>
<ext:HttpWriteProxy Json="true" Url="TelecontrolHandler.ashx?Operation=CreateEventos" Method="POST">
</ext:HttpWriteProxy>
</UpdateProxy>
</ext:Store>
And this is the function that executes the save in the store: var evento = self.hydrate();
self.clear();
self.Stores.Eventos.addRecord(evento, false);
if (autoCommit) {
self.Stores.Eventos.save();
}
Last edited by Baidaly; Nov 01, 2013 at 9:53 PM.
Reason: [CLOSED]