quote:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" >
<mx:WebService id="wsQryProgress"
wsdl="
http://localhost/axis/services/QryProgress?wsdl"
useProxy="false" result="fin(event);"
fault="falla(event);">
<mx:operation name="doQueryWS">
<mx:request>
<in0>for each tblcredencial where chrusername =
'jlrueda@todito.com' no-lock</in0>
<in1>Credenciales</in1>
<in2>Credencial</in2>
<in3>idcredencial,chrusername</in3>
<in4>
http://www.toditocard.com/cgi-bin/tcardB/util/XML/wGenXml.p</in4>
</mx:request>
</mx:operation>
</mx:WebService>
<mx:Panel x="10" y="10" width="400" height="300"
layout="absolute" title="Usuarios tcard">
<mx:TextInput x="10" y="23" id="txtUser"/>
<mx:Button x="198" y="23" label="Enviar" id="btnSend"
click="SendUser();"/>
<mx:DataGrid x="10" y="70" id="dgUsuario"
dataProvider="{wsQryProgress.doQueryWS.lastResult}">
<mx:columns>
<mx:DataGridColumn headerText="idCredencial"
dataField="idcredencial"/>
<mx:DataGridColumn headerText="Username"
dataField="chrusername"/>
</mx:columns>
</mx:DataGrid>
<mx:Label x="10" y="229" text="" ""
id="lblqry"/>
</mx:Panel>
<mx:Script>
<![CDATA[
import mx.utils.ArrayUtil;
import mx.controls.Alert;
public var strQry:String;
public var strUrl:String = "
http://www.toditocard.com/cgi-bin/tcardB/util/XML/wGenXml.p";
public var strRoot:String = "Credenciales";
public var strRow:String = "Credencial";
public var strCampos:String = "chrusername,idcredencial";
[Bindable]
public var credenciales:Array;
public function EnviaQry(strUser:String):void
{
strQry = "for each tblcredencial where chrusername = '" +
strUser + "' no-lock:";
wsQryProgress.doQueryWS.send();
}
public function SendUser():void
{
EnviaQry(txtUser.text);
}
public function fin(e:Object):void{
Alert.show(e.result,"Result
XML",Alert.OK,this,null,null,Alert.OK);
}
public function falla(e:Event):void
{
txtUser.text=e.toString();
}
]]>
</mx:Script>
</mx:Application>
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes