Discussions
More java help on item cell template
My variable, item_brokered is a check box and I'm having trouble getting the else ifs to document.write anything...Any suggestions would be very much appreciated. When I shoot the variable to the screen I get a 'Yes' or 'No'...I also tried these elseifs on a string variable and used something to the affect of: item_string.length() > 0 but that also resulted in no document writing...
I'm obviously not a java-master! Thank you in advance! Pete
<script language='Javascript'>
var cantidad= <%=getCurrentAttribute('item','quantityavailable', '1')%>; //quantityavailable
var item_brokered='<%=getCurrentAttribute("item","custitembrokered")%>'; // custitembrokered