ShowTable of Contents
Get value
For example, a text list stored in the field "areas" in the profile named "DBConfig". Then, make a string out of the array using "join()".
var doc = database.getProfileDocument("DBConfig", "");
var l = doc.getItemValue("areas");
l.join(",")
Using an Alias with your field values
I found this out today after playing with my formula for several hours.
If you have this type of value in your keyword/profile document field:
radioGroup4 = "Company | C"
this formula won't work:
var procCd = getComponent("radioGroup4").getValue();
if(procCd == "C") {
// do something
}
the reason is that unlike using an alias on the client the returned value is everything past the pipe rather than just the alias value itself.
So, to fix this you can either eliminate the space after the pipe or just do a trim() on the returned value
Dwain A Wuerfel