Hi all,

I have an automate script that converts a Form to params in both ways:
HTTP or Flex.
So, if you want to pick information from Form to be used in the Flex
application, you simply do var params:Object = form1.getParamObject();
Also, I optimized it to work ok in HTTPServices, do it becomes enabled
to automatically send POST params:
service.send(form1.getParamObject(true)); // the argument is
httpFormat? (default=false)

Maybe there's an easier way to do it without having to define the
<mx:request> params by hand, and I'm interested to listen your
solution regarding this.

By now, my application has two possible implementations in a ComboBox:

<item id="1" label="foo"/>

or

<item>
  <id>1</id>
  <label>foo</label>
</item>


There's no restriction to this yet.
So, my automate script needs to cover both situations. I tried this:

var selection:XML = formItem.selectedItem as XML;
params[formItem.id] = (httpFormat) ? XMLList(selection.id ||
[EMAIL PROTECTED]).toString() : selection;

Without success.

I'm interested to know how to achieve it in a simpler way.


Can you help me with this one?
Thanks in advance


Cheers,

-- 
Guilherme Blanco - Web Developer
CBC - Certified Bindows Consultant
Cell Phone: +55 (16) 9166-6902
MSN: [EMAIL PROTECTED]
URL: http://blog.bisna.com
Rio de Janeiro - RJ/Brazil

Reply via email to