[flexcoders] Populating mx:List from xml file

2007-03-28 Thread Thomas Newcomen

I have an xml file with nodes like this:
templates label=Short Subject Report data=ShortSubjectReport /

I have this as the dataprovider of the mx:List:
dataProvider={report_listXML.templates} 

The list appears to be populating, as I can see the coloring as I hover over
the items of the list, but I cannot see any values in the list. I reckon it
has to be something simply stupid and easy...  The code is very similar to :
http://livedocs.adobe.com/flex/201/langref/mx/controls/List.html#includeExamplesSummary

help me obi wan.


Re: [flexcoders] Re: Posting XML with httpservice

2007-03-26 Thread Thomas Newcomen

That does work (thanks), except for the fact that when I convert my string
to XML, it seems to remove my ? xml ... declaration... it has to be passed
to the server.. as well.  any ideas on that?

Crit

On 25 Mar 2007 12:15:46 -0700, nathanpdaniel [EMAIL PROTECTED] wrote:


  When you call the httpservice.send() function, try httpservice.send
(xmlDocument) - and remove the mx:request tag from the MXML :D

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Thomas
Newcomen [EMAIL PROTECTED]

wrote:

 If I have contenttype of my httpservice set to application/xml
and I have
 a variable that contains an xml document (?xml ?
blah.../blah)
 How do I just post that the service?

 this doesn't seem to work:

 mx:request
 {xmlDocument}
 /mx:request


 Any ideas?

 'preciate it.

 Crit


 



[flexcoders] Posting XML with httpservice

2007-03-24 Thread Thomas Newcomen

If I have contenttype of my httpservice set to application/xml  and I have
a variable that contains an xml document (?xml ?blah.../blah)
How do I just post that the service?

this doesn't seem to work:

mx:request
{xmlDocument}
/mx:request


Any ideas?

'preciate it.

Crit


[flexcoders] Trimming a request sent using mx:httpservice /

2007-03-23 Thread Thomas Newcomen

I have an application that is to post XML to a url and return a resultset as
XML. When using a html form to post the xml, it has to be in a formfield
named xml.

When I attempt to debug the service call, it /looks/ as if the xml being
sent contains nothing extra, but I keep getting the response listed below
from the server...

any suggestions?


RESPONSE_GROUPRESPONDING_PARTY /RESPOND_TO_PARTY _Name= /RESPONSE
InternalAccountIdentifier= ResponseDateTime=03-23-2007 07:12:39
_JobIdentifier=RESPONSE_DATAPROPERTY_INFORMATION_RESPONSESTATUS
_Code=0005 _Description=XML IS NOT WELL-FORMED OR IS INVALID. ERROR ON
LINE 1: CONTENT IS NOT ALLOWED IN PROLOG. _Condition=FAILURE   
//PROPERTY_INFORMATION_RESPONSE/RESPONSE_DATA/RESPONSE/RESPONSE_GROUP


Crit


[flexcoders] Non-Required attributes in a class..

2007-02-25 Thread Thomas Newcomen

I am attempting to build a class file for use in flex and I have it as

Products.as

There are several attributes that can be passed in, but are not required.
How do I write the class file for arguments that are not required. I
currently have 50 arguments, but do not need to use all of them..

Do I have to default all the unused variables... or is there a way to ignore
arguments that are not passed in.. ?


http://codeshare.ulatu.com/feb34120

Thanks...