Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Stock Levels in transformations View modes: 
User avatar
Member
Member
mikemoorfield-gmail - 6/26/2012 10:08:46 AM
   
Stock Levels in transformations
hi all.

I need to display stock levels in a transformation, how can I do this??

User avatar
Member
Member
mikemoorfield-gmail - 6/26/2012 10:53:21 AM
   
RE:Stock Levels in transformations
ah found it:

<%# HTMLEncode(ResHelper.LocalizeString(Convert.ToString(Eval("SKUAvailableItems")))) %>


Next question - how can i do a simple if else statement on this value?

User avatar
Member
Member
mikemoorfield-gmail - 6/27/2012 4:48:04 AM
   
RE:Stock Levels in transformations
muddled through and got this to work

<%# Convert.ToInt32(Eval("SKUAvailableItems")) >= 50 ? "Do this..." : "Else do this..."%>


Thought it might help someone else sometime...