Timeline for Combining 2 sObject List's and calculating a new value then displaying it on a VF page
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 1, 2016 at 16:18 | vote | accept | Jsjjharp | ||
Jul 29, 2016 at 20:48 | comment | added | Jsjjharp | Ok, this is close but the lineitemwrapper is coming back empty. Id the assignment obj.objQuoteLineItem = qlitm; correct given that qlitem is a list and not just an sobject | |
Jul 28, 2016 at 18:56 | comment | added | Abhijeet | Suppose qlitm and pbitm are the two objects which have the same product id(Assuming that you can create the logic of identifying qlitm and pbitm which have same product id being referred to in them). Now: lineitemwrapper obj = new lineitemwrapper(); obj.objPricinginfo = pbitm; obj.objQuoteLineItem = objQuoteLineItem; obj.value1 = calculation1;//put ur formula here obj.value2 = calculation2;//put ur formula here For better clarity, visit: developer.salesforce.com/page/Wrapper_Class | |
Jul 28, 2016 at 18:38 | comment | added | Jsjjharp | Yes but how do i feed it the other two objects assuming they are called qlitm and pbitm. It's this that has been confusing me and also does salesforce determine what the key is on it's own or do i have to define it? | |
Jul 28, 2016 at 18:14 | comment | added | Abhijeet | Request you to mark this answer as the solution if it works fr you, in order to help other guys :) | |
Jul 28, 2016 at 18:03 | comment | added | Abhijeet | Referencing the wrapper class right?? It's similar to instantiating an object.So say ur class name is same as above( line item wrapper) do it like LineItemWrapper obj = new LineItemWrapper() | |
Jul 28, 2016 at 17:27 | comment | added | Jsjjharp | Ok, this makes a ton more sense to me now. Last question, what is the syntax for referencing the class? | |
Jul 28, 2016 at 16:55 | comment | added | Abhijeet | Request you to mark this as the correct answer if it helps you in solving your problem :) | |
Jul 28, 2016 at 16:51 | history | edited | Abhijeet | CC BY-SA 3.0 |
[Edit removed during grace period]
|
Jul 28, 2016 at 16:49 | history | edited | Adrian Larson♦ | CC BY-SA 3.0 |
added 47 characters in body
|
Jul 28, 2016 at 16:49 | history | answered | Abhijeet | CC BY-SA 3.0 |