Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8792 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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?

This topic is 8792 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.