My Bad... Thank you @igorp. Initally i was trying with just setLineItemValue which did not work and i later selected the item and changed to setCurrentLineItemValue and did not figure out the paramaters. But anyways it works now.. Once again thank you so much @igorp