Try change
 if (allSpeakers.dataProvider[allSpeakers.selectedIndex]['speakerPhoneNo']
!= 'null')
to
if (allSpeakers.dataProvider[allSpeakers.selectedIndex]['speakerPhoneNo']
!= 'undefined')
or you can use tha short if sintax in the bind like this:
bind="{(allSpeakers.selectedItem.speakerPhoneNo != undefined) ?
allSpeakers.selectedItem.speakerPhoneNo}"

Felipe

On 8/9/05, Ida Chen <[EMAIL PROTECTED]> wrote:
> I am having trouble with grid binding in a flash form. When an item is 
> selected in the grid, Detailed info will show up in the panel below the grid. 
> The binding is working, but I am not sure how to put conditions in the 
> binding so that null content will not display in the panel. I tried something 
> like:
> 
> <cfsavecontent variable="bindData">
> if (allSpeakers.dataProvider[allSpeakers.selectedIndex]['speakerPhoneNo'] != 
> 'null')
> {
> allSpeakers.dataProvider[allSpeakers.selectedIndex]['speakerPhoneNo']
> };
> </cfsavecontent>
> 
> and call it with:
> 
> <cfformitem type="html" bind="#bindData#"></cfformitem>
> 
> But it didn't work. What should I do to remove null contents then? Thanks a 
> lot.
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214234
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to