resolvido, ou seja, solucionado.... On Nov 10, 9:32 am, Principe borodin <[email protected]> wrote: > aos erros deve ser pq eu to usando o flash builder 4.5.1 alem de ter a > flexlib e outros componentes meus ae...um > remoteobject....etc...basicamente funciona assim: > > eh um form de cadastro em 2 etapas...mas na hora q vai editar, um > botao no datagrid dispara um evento que chama este form ja com os > dados preenchendo-o, porem tem 4 combobox ae, 1 na primeira tela e > outros 3 na segunda tela, esses 3 sao selecionados, mas o da primeira > tela nao...ao editar, esse eh o problema... > > On Nov 9, 6:36 pm, Raphaell Dyego <[email protected]> wrote: > > > > > > > > > cara, deu varios erros aqui isso =x > > > Em 09/11/11, Stefan Horochovec<[email protected]> escreveu: > > > > Na verdade não tem uma regra, por isso eu coloquei que era uma dica, > > > > Vc concorda que estava FODA pra ler tudo aquilo né? :P > > > > Abraco > > > > Stefan Horochovec > > > Engenheiro de Software > > > Blog:http://www.horochovec.com.br/ > > > Twitter:http://twitter.com/horochovec > > > > Em 9 de novembro de 2011 18:01, Principe borodin > > > <[email protected] > > >> escreveu: > > > >> desculpe, aqui vai (eu nao sabia q era pra usar isso, nao tem link pra > > >> regras ou algo do tipo...) > > > >>http://pastebin.com/VDNBAyyU > > > >> On 9 nov, 17:42, Principe borodin <[email protected]> wrote: > > >> > estou com 4 combobox, send q o primeiro nao eh selecionado, os outros > > >> > 3 sim...ja tentei varias formas q deram aqui no grupo ( na busca) e > > >> > nada... > > > >> > <?xml version="1.0" encoding="utf-8"?> > > >> > <ns:MDIWindow xmlns:fx="http://ns.adobe.com/mxml/2009" > > >> > xmlns:s="library://ns.adobe.com/flex/spark" > > >> > xmlns:mx="library://ns.adobe.com/flex/mx" > > >> > xmlns:ns="http://code.google.com/p/flexlib/" > > >> > width="800" height="596" > > >> dropShadowVisible="true" > > >> > resizable="false" fontFamily="Cambria" fontSize="10" > > >> > titleStyleNameFocus="Titulo" > > >> > layout="absolute" title="CAVALEIROS > > >> COMUNICAÇÃO - CRUSADE | > > >> > ADICIONANDO CLIENTE" creationComplete="init()" showControls="false" > > > >> > <fx:Declarations> > > >> > <s:RemoteObject id="Clientes" destination="zendamf" > > >> > source="Clientes"> > > >> > <s:method name="salvar" > > >> fault="faultCadastra(event)" > > >> > showBusyCursor="true" result="resultCadastra(event)"/> > > >> > </s:RemoteObject> > > >> > <s:RemoteObject id="Estados" destination="zendamf" > > >> source="Estados"> > > >> > <s:method name="getEstados" > > >> fault="faultGetEstados(event)" > > >> > showBusyCursor="true" result="resultGetEstados(event)"/> > > >> > </s:RemoteObject> > > >> > <mx:EmailValidator id="emailvalidator" source="{email}" > > >> > property="text" required="true" requiredFieldError="Digite um e-mail > > >> > válido!"/> > > >> > <mx:StringValidator id="endv" source="{endereco}" > > >> property="text" > > >> > required="true" requiredFieldError="Digite um endereço!"/> > > >> > <mx:StringValidator id="responsavelv" property="text" > > >> > source="{responsavel}" required="true" requiredFieldError="Digite o > > >> > nome de um responsável!" minLength="4" tooShortError="Digite pelo > > >> > menos 4 caracteres!" /> > > >> > <mx:StringValidator id="cepv" property="text" > > >> source="{cepcli}" > > >> > required="true" requiredFieldError="Digite um CEP!" tooLongError="A > > >> > quantiadde de caracteres é de 13, incluindo pontos e traços!" > > >> > tooShortError="A quantiadde de caracteres é de 13, incluindo pontos e > > >> > traços!" minLength="10" maxLength="10" /> > > >> > <mx:StringValidator id="tel1" property="text" > > >> source="{telefone}" > > >> > required="true" requiredFieldError="Digite um número de telefone no > > >> > formato '(xx)xxxx-xxxx' !" tooLongError="A quantidade de caracteres é > > >> > de 13, incluindo parênteses e traços!" tooShortError="A quantidade de > > >> > caracteres é de 13, incluindo parênteses e traços!" /> > > >> > <mx:StringValidator id="numdoc" property="text" > > >> > source="{numdocumento}" required="true" requiredFieldError="Digite o > > >> > número de um documento do cliente!" minLength="11" tooShortError="A > > >> > quantidade mínima é de 11 algarismos!"/> > > >> > <mx:StringValidator id="escolha" > > >> > property="selectedValue" > > >> > invalid="Alert.show('Escolha um tipo de documento do cliente:\nCPF ou > > >> > CNPJ!','CUIDADO',0,this.parentApplication as Sprite)" source="{tipo}" > > >> > required="true" requiredFieldError="Escolha um tipo de cliente!" /> > > >> > <mx:StringValidator id="estadocli" > > >> property="selectedIndex" > > >> > source="{estadocl}" invalid="Alert.show('Escolha um estado!','CUIDADO', > > >> > 0,this.parentApplication as Sprite)" required="true" > > >> > requiredFieldError="Escolha um estado!" /> > > > >> > </fx:Declarations> > > > >> > <fx:Script> > > >> > <![CDATA[ > > >> > import Events.ClienteEvent; > > > >> > import flexlib.mdi.events.MDIWindowEvent; > > > >> > import lib.Mascara; > > > >> > import mx.collections.ArrayCollection; > > >> > import mx.controls.Alert; > > >> > import mx.core.FlexGlobals; > > >> > import mx.events.ValidationResultEvent; > > >> > import mx.rpc.events.FaultEvent; > > >> > import mx.rpc.events.ResultEvent; > > >> > import mx.validators.ValidationResult; > > > >> > import vo.ClienteVO; > > >> > import vo.EnderecosClientesVO; > > >> > [Bindable] > > >> > private var _cliente:ClienteVO = new ClienteVO; > > > >> > private var em:ValidationResultEvent; > > >> > private var re:ValidationResultEvent; > > >> > private var en:ValidationResultEvent; > > >> > private var cep:ValidationResultEvent; > > >> > private var numdocv:ValidationResultEvent; > > >> > private var tel:ValidationResultEvent; > > >> > private var es:ValidationResultEvent; > > >> > private var escli:ValidationResultEvent; > > >> > [Bindable] private var co:EnderecosClientesVO = > > >> new > > >> > EnderecosClientesVO; > > >> > [Bindable] private var > > >> entrega:EnderecosClientesVO = new > > >> > EnderecosClientesVO; > > >> > [Bindable] private var cl:EnderecosClientesVO = > > >> new > > >> > EnderecosClientesVO; > > >> > [Bindable] private var nt:EnderecosClientesVO = > > >> new > > >> > EnderecosClientesVO; > > >> > [Bindable] private var estados:ArrayCollection; > > > >> > private function init():void > > >> > { > > >> > Estados.getEstados(); > > >> > var _telefone1:Mascara = new Mascara; > > >> > _telefone1.campoTexto = telefone; > > >> > _telefone1.pattern = "(00)0000-0000"; > > >> > _telefone1.setMascara(); > > >> > var _telefone3:Mascara = new Mascara; > > >> > _telefone3.campoTexto = celular; > > >> > _telefone3.pattern = "(00)0000-0000"; > > >> > _telefone3.setMascara(); > > > >> addEventListener("clienteEdit",clienteEdit); > > >> > } > > > >> > private function > > >> faultGetEstados(f:FaultEvent):void > > >> > { > > > >> Alert.show(f.fault.message,f.fault.faultDetail, > > >> > 0,this.parentApplication as Sprite); > > >> > } > > > >> > private function > > >> resultGetEstados(e:ResultEvent):void > > >> > { > > >> > estados = new ArrayCollection(e.result > > >> as Array); > > >> > } > > > >> > private function > > >> clienteEdit(ce:ClienteEvent):void > > >> > { > > >> > _cliente.idCliente = ce.data.idCliente; > > >> > _cliente.razaosocial = > > >> ce.data.razaosocial; > > >> > _cliente.tipo = ce.data.tipocliente; > > >> > _cliente.numdocumento = > > >> ce.data.numdocumento; > > >> > > > ... > > read more »
-- Você recebeu esta mensagem porque está inscrito na lista "flexdev" Para enviar uma mensagem, envie um e-mail para [email protected] Para sair da lista, envie um email em branco para [email protected] Mais opções estão disponíveis em http://groups.google.com/group/flexdev
