I have an XMLList object that I'm using to populate a tree component
in Flex. I'll include the full list at the end of the message.
I have two basic questions. A coldfusion integration question, and a
pure flex question
#1 - if I wanted to create this list in Coldfusion and retrieve it via
remote object, how exactly should it be created in Coldfusion - CAN it
be created in coldfusion?
#2 - Can I dynamically remove nodes from the XMLList object? If so,
how? The list contains categories of fields that can be dropped into
an excel file. Certain users don't have access to certain fields
(like giving details, giving totals, and prospect management).
Here's the whole XMLList object from the MXML.
<mx:XMLList id="treeData1">
<node columnName="xxx" label="Primary/Preferred Biographical
Data">
<node columnName="SORT_NAME" label="Sort Name"/>
<node columnName="SALUTATION" label="Prefix"/>
<node columnName="LASTNAME" label="Last Name"/>
<node columnName="FIRSTNAME" label="First Name"/>
<node columnName="PREFERRED_NAME" label="Mail Name"/>
<node columnName="NICKNAME" label="Goes By"/>
<node columnName="BIRTH_NAME" label="Birth Name"/>
<node columnName="BIRTH_LASTNAME" label="Birth Name -
Last"/>
<node columnName="BIRTH_DATE" label="Birth Date"/>
<node columnName="DEATH_DATE" label="Death Date"/>
<node columnName="SEX" label="Gender"/>
<node columnName="RACE" label="Ethnicity"/>
<node
columnName="PRIMARY_RECORD_TYPE,PRIMARY_RECORD_TYPE_DESC"
label="Record Type"/>
<node columnName="PRIMARY_RECORD_STATUS" label="Record
Status"/>
<node columnName="PREFERRED_SCHOOL,PREFERRED_CLASS"
label="School/Class"/>
<node columnName="AFSOLCTLCD" label="AF Solicitation
Code"/>
<node
columnName="SECONSCH,SECONSCH_NAME,SECONSCH_CITY,SECONSCH_STATE,SECONSCH_COUNTRY"
label="Secondary School"/>
</node>
<node columnName="xxx" label="Spouse Information">
<node columnName="MARRIAGE_STATUS" label="Marital
Status"/>
<node columnName="SPOUSE_NAME" label="Spuse Name"/>
<node columnName="SPOUSE_ID" label="Spouse ID"/>
<node
columnName="SPOUSE_PRIMARY_RECORD_TYPE,SPOUSE_PRIMARY_RECORD_TYPE_DESC"
label="Record Type"/>
<node columnName="SPOUSE_PRIMARY_RECORD_STATUS"
label="Status"/>
<node columnName="SPOUSE_SCHOOL,SPOUSE_CLASS"
label="School/Class"/>
</node>
<node columnName="xxx" label="Lifetime Soft Credit Details">
<node columnName="LIFECREDIT" label="Duke Total"/>
<node columnName="AFLIFECREDIT" label="Annual Fund"/>
<node columnName="OTHLIFECREDIT" label="Other"/>
</node>
<node columnName="xxx" label="Address Information">
<node
columnName="PREFERRED_ADDRESS_TYPE,PRIMARY_ADDRESS_TYPE_DESC"
label="Preferred Address Type"/>
<node columnName="xxx" label="Preferred Address">
<node
columnName="PREFERRED_STREET_1,PREFERRED_STREET_2,PREFERRED_STREET_3,PREFERRED_STREET_4,PREFERRED_CITY_FOREIGN_ST_ZIP,PREFERRED_ZIP_CODE,CITY,STATE,FOREIGN_CODE"
label="Address"/>
<node columnName="PREFERRED_PHONE"
label="Phone"/>
<node columnName="PREFERRED_FAX" label="FAX"/>
</node>
<node columnName="xxx" label="Business Address">
<node
columnName="BUSINESS_STREET_1,BUSINESS_STREET_2,BUSINESS_STREET_3,BUSINESS_STREET_4,BUSINESS_CITY_FOREIGN_ST_ZIP,BUSINESS_ZIP_CODE,BUSINESS_STATE,BUSINESS_FOREIGN_CODE"
label="Address"/>
<node columnName="BUSINESS_PHONE"
label="Phone"/>
<node columnName="BUSINESS_FAX" label="FAX"/>
</node>
<node columnName="EMAIL_ADDRESS" label="Email Address"/>
<node columnName="CLUBS" label="Club Areas"/>
</node>
<node columnName="xxx" label="Prospect Management">
<node columnName="MANAGER_NAME" label="Manager"/>
<node columnName="MGIFTREG,MG_REGION_DESC" label="Major
Gift Region"/>
<node columnName="MG_AREA_NAME" label="Major Gift
Area"/>
<node columnName="ASREG,AS_REGION_DESC" label="A/S
Region"/>
<node columnName="AF_STAFF_NAME" label="AF Staff"/>
<node columnName="AF_VOL_NAME" label="AF Volunteer"/>
<node columnName="RATING_CODE,RATING_CODE_TRANSLATION"
label="Rating"/>
<node columnName="RS_RATING_BASIS_TEXT" label="Basis"/>
<node columnName="REVIEW_DATE" label="PMC Review Date"/>
<node columnName="RESEARCHED" label="Campaign List"/>
<node columnName="MG_STAFF_NAME" label="Major Gift
Staff"/>
<node columnName="MGSTAFF_NAME_2" label="Major Gift
Staff (2)"/>
</node>
<node columnName="xxx" label="Primary employment">
<node columnName="EMPLOYER_NAME,EMPLOYMENT_DESC"
label="Employer"/>
<node columnName="JOB_FIELD_OF_WORK" label="Field of
Work"/>
<node columnName="JOB_TITLE" label="Title"/>
<node
columnName="JOB_FIELD_SPECIALTY,FIELD_SPECIALTY_DESC"
label="Field Specialty"/>
<node columnName="JOB_STATUS" label="Job Status"/>
<node columnName="JOB_LEVEL,JOB_LEVEL_DESC"
label="Level"/>
</node>
<node columnName="xxx" label="Miscellaneous Information">
<node
columnName="SCHOOL_1,CLASS_1,MAJOR_1,MAJOR_1,DEGREE_1,DEGREE_1,SCHOOL_2,CLASS_2,MAJOR_2,MAJOR_2,DEGREE_2,DEGREE_2,SCHOOL_3,CLASS_3,MAJOR_3,MAJOR_3,DEGREE_3,DEGREE_3,SCHOOL_4,CLASS_4,MAJOR_4,MAJOR_4,DEGREE_4,DEGREE_4,SCHOOL_5,CLASS_5,MAJOR_5,MAJOR_5,DEGREE_5,DEGREE_5"
label="All School/Class/Major/Degree"/>
<node
columnName="OTHER_RECORD_TYPE_1,RECORD_TYPE_1_DESC,OTHER_RECORD_TYPE_2,RECORD_TYPE_2_DESC,OTHER_RECORD_TYPE_3,RECORD_TYPE_3_DESC,OTHER_RECORD_TYPE_4,RECORD_TYPE_4_DESC,OTHER_RECORD_TYPE_5,RECORD_TYPE_5_DESC"
label="Secondary Record Types"/>
</node>
<node columnName="" label="Giving Information">
<node columnName="LEGCRAMT" label="Legal Amount"/>
<node columnName="SOFTAMT" label="Soft Amount"/>
<node columnName="ANTICMAT" label="Anticipated Match
Amount"/>
<node columnName="PAID_ON_PLEDGES" label="Paid on
Pledge"/>
<node columnName="AF_SWITCH" label="Annual Fund
Indicator"/>
<node columnName="AF_ENDOWMENTS" label="Annual Fund
Endowments"/>
<node columnName="TRANTYPE" label="Transaction Type"/>
<node columnName="GIFT_ID" label="Gift ID"/>
<node columnName="PLEDGE_ID" label="Pledge ID"/>
<node columnName="CREDTDAT" label="Credit Date"/>
<node columnName="YRGIVING" label="Fiscal Year"/>
<node columnName="PLEDGE_STATUS" label="Pledge Status"/>
<node columnName="BEQ_FLAG" label="Bequest"/>
<node columnName="CAMPAIGN_CODE" label="Campaign"/>
<node columnName="CFAEPURP" label="CFAE Purpose"/>
<node columnName="COMMENT_GFT" label="Comment"/>
<node columnName="DEPTCODE" label="Department"/>
<node columnName="ANON_FLAG" label="Anonymous"/>
<node columnName="PAST_DUE_PL_FLAG" label="Past Due
Pledge"/>
<node columnName="FUNDCODE" label="Fund Code"/>
<node columnName="FUNDNAME" label="Fund Name"/>
<node columnName="FndPurp" label="Fund Purpose"/>
<node columnName="PLANNED_GIVING_CODE" label="Planned
Giving"/>
<node columnName="PROJECT" label="Project"/>
<node columnName="PURPOSE" label="Purpose"/>
<node columnName="SPECHNDL" label="Special Handling"/>
<node columnName="TECHNIQUE_CODE"
label="Technique/Motive"/>
<node columnName="USECODE" label="Use"/>
<node columnName="BENEFITAMT" label="Benefit Amount"/>
<node columnName="PMT_TYPE,PMT_TYPE_DESC"
label="Payment Type"/>
<node columnName="NBI_FLAG" label="NBI"/>
</node>
</mx:XMLList>
--
Rick Root
Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at
www.opensourcecf.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps
Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4629
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37