Hey all,
I'm in a bit of pinch where I am depending on a dynamically-generated value list to match a dynamically-generated valueID list. The problem is that FM writes out the text values in Alphabetical order and writes out the IDs in ascending order. Here's the code and what I am seeing:
var feature_list = new Array(
"-No Selection-",[FMP-ValueList: ID, List=FeatureCategories] "[FMP-ValueListItem]",[/FMP-ValueList]" ");
var id_list = new Array(
"",[FMP-ValueList: ID, List=FeatureCategoryIDs]
"[FMP-ValueListItem]",[/FMP-ValueList]" ");
The "FeatureCategories" come out:
"a", "b", "c"
The "FeatureCategoryIDs" come out:
"1", "2", "3"
The problem is that the ID of FeatureCategory "b" is "3." This appears sorted properly in FM, but not in the HTML. Is there anyway to specify a sort when writing out a valuelist?