Jan 20, 2012, 2:07 PM
[CLOSED] TextField.getValue()
Hi
I has a store in my GridPanel bind with a WebService, and I pass a parameter 'filter' to my WebService method...
follows the script ... What am I doing wrong?
I has a store in my GridPanel bind with a WebService, and I pass a parameter 'filter' to my WebService method...
<Parameters>
<ext:StoreParameter Name="filter" Value="getDividasFilter()" Mode="Raw" />
</Parameters>
I store the code for my company in a hidden field to be passed in filter StoreParameter<ext:Hidden runat="server" ID="txtIDEmpresa" />
However, in my script function, an error occurs saying that the getValue() is not a txtIDEmpresa method...follows the script ... What am I doing wrong?
<script type="text/javascript" language="javascript">
function getDividasFilter() {
if (txtIDEmpresa.getValue() != "") {
sFilter = "COB_DIVIDAS.IDEmpresa=" + txtIDEmpresa.getValue() + " AND IDSituacaoCobranca>-1 AND SuperaWeb=1";
}
return sFilter;
}
Thanks for any help.
Last edited by Daniil; Jan 20, 2012 at 7:48 PM.
Reason: [CLOSED]