I have a requirement where in I need to read all the Names of OpportunityLineItems and then proceed with the logic.
{!REQUIRESCRIPT("/soap/ajax/18.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/18.0/apex.js")}
var value1 ={!Opportunity.Probability};
alert(value1);
/* Alerts opportunity probability **/
Now what does this return ?
{!OpportunityLineItem.ProductName__c}
Is it an array of OLI names?
Should i read the result as like shown below?
var myArray = new Array();
myArray = {!OpportunityLineItem.ProductName__c} ;
ProductName__c is a formula field populated with Product name.
Am confused and i get error as undefined; Please suggest a better way to read oli names !! Thank you .