Hi Simon,
looks perfectly fine to me. The data.NamesList demo does it the same
way, and that was written by Martin who created the data binding layer.
Regards,
Daniel
On 09/16/2011 10:04 PM, Simon White wrote:
> Hi
>
> The following seems to work is it "Best Practice"?
>
> this.__navView.__lstView.setLabelOptions({converter:
> function(data,model) {return data+' '+model.getID1();}});
>
>
> Simon
>
>
> On 16/09/2011 3:40 PM, Simon White wrote:
>> Hi
>>
>> When I simply use a single field for the labelPath everything works just
>> fine. I now need to know how to combine several fields for the label
>> Path. I created a converter function which I hoped would combine the
>> "ACCTNO" and "ID1" fields as the test to show in the list's label.
>> However I am having trouble knowing how to reference other fields in the
>> model from the converter. model.ARMaster["ID1"] does not work because
>> model is not defined. Can someone tell me the correct syntax?
>>
>> this.__navView.__lstView.setLabelPath("ACCTNO")
>>
>> this.__navView.__lstView.setLabelOptions({converter: function(data)
>> {return data+' '+model.ARMaster["ID1"];}});
>>
>> this.__dbfARMaster.bind("model.ARMaster",this.__navView.__lstView,"model");
>>
>> Thanks,
>> Simon
>>
>>
>> ------------------------------------------------------------------------------
>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
>> http://p.sf.net/sfu/rim-devcon-copy2
>
>
>
> ------------------------------------------------------------------------------
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> http://p.sf.net/sfu/rim-devcon-copy2
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel