Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
Jas

Senior Veteran
Registered:
Posts: 429
Reply with quote  #1 
Hi All

I have a list control on a form and want to use a local form variable to create the options list once the form has loaded. I thought the list control's list options just needed to be comma seperated values but when I assign "aaa,bbb,ccc" to the form varibale this is exactly how it gets diplayed in the list control rather than a list. Am I missing something?

Thanks
Jas
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #2 
You need a List, not a comma-delimited string.

You can create a List using the ListItems() function:
ListItems(1,2,3)

If you need a name/value pair list, each item should be created with the Pair() function:
ListItems(Pair("One",1),Pair("Two",2),Pair("Three",3))

Note that you cannot store this in a variable, it should be in the options itself.

__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
Jas

Senior Veteran
Registered:
Posts: 429
Reply with quote  #3 
Just to clarify ...

On the List control for the list options you have the option to select Business Object and then specify the variable (you can also create name and value pairs). I would have thought when rendered the List control would show the contents of the variable as the list options. When my form gets rendered it shows the contents of the variable as a single list item.

The variable itself is getting popultaed from a select statement (for now, later I need to add some more items based on user data entry). I tried using the .List option but that did not work either!

I would have thought the contents of the variable would need to be a comma seperated list?

Thanks
Jas
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #4 
If, as it appears, you are using a variable to populate the list options, you have a problem. That problem is that the list type cannot be 'saved' to a variable. This is a bit of an oversight, to say the least. We have considered a couple of methods to de-serialise and build lists so they can be stored in strings, but have not done so to date.

In a more general answer, lists actually translate to tab delimited strings. I believe, however, that if you have a name / value pair, it may be a list of lists. I have not been too far into it, and it seems to change fairly often (a good indicator that relying on the underlying functionality, as always, is a bad idea).

__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!