Groups | Blog | Home
all groups > macromedia flash flash remoting > september 2004 >

macromedia flash flash remoting : When to use # or "or [ in bindFormatStrings


feiloiram
9/14/2004 9:52:43 AM
Hi,

This is the code I have :

var RecordName_str:String = ComboBoxName_str + "_rec";
var ItemNameLabel_str:String =
ComboBoxName_str.substring(0,length(ComboBoxName_str)-1);
var ItemIDLabel_str:String = ItemNameLabel_str + "ID";
DataGlue.bindFormatStrings(this[ComboBoxName_str], _global[RecordName_str],
"#[ItemNameLabel_str]#", "#this[ItemIDLabel_str]#");


ComboBoxName_str is a string that holds a name of a combobox to which data has
to be binded. From this string I can derice the name of the recordset that
holds the data(line 1) and the name of columnheadings in this recordset that
will be used as label and data in the combobox (line 2 and 3)

The problem is in the last line

I don't know how I have to explain to the bindFormatStrings-method that
ItemNameLabel_str and ItemIDLabel_str are two variables that hold a
string to the columnheadings of the recordset.
When I play around with the signs like this
"#[ItemNameLabel_str]#" or "[ItemNameLabel_str]" or #[ItemNameLabel_str]#


I eather get an error, undefined or the exact string from my code.

What is the exact way to do this?

THX
feiloiram
9/15/2004 9:41:04 AM
Boys and girls,

don't tell me nobody of you know the answer to this,
feiloiram
9/21/2004 7:32:55 AM
I have posted this topic on the "actionscript"-forum also.
Nobody answered my question.


Can I conclude that adressing the labelstring and datastring in a
bindFormatSTrings- method is inpossible by means of a string-variable that
holds the name of the label.
Fine by me but how is it than possible to do the same for the recordname??

It must be a bug than no???

Please, if it is a bug let me know. That way I know I will have to work
further with a workaround I have already builded.

THX
AddThis Social Bookmark Button