You need to sign in to do that
Don't have an account?
Geoff D
Technique to select 2nd Opportunity and pass that ID to a custom controller
I'm new to Visualforce and APEX coding but managed to create a working cloning VF page and controller for a custom object called Internal_Conversation_log. Each record is created by an agent as a notes field when they're done speaking with an Opportunity. I needed the ability to clone these notes because sometimes we intentially clone a secondary Opportunity off the origional for process reasons. Irrelevant to explain.
The cloning (and also moving) part works great but I'm using the URL to pass in parameters which I manually pasted in the IDs. Example: https://c.cs12.visual.force.com/apex/MoveConvLogtoNewOpp?Oldid=006V0000004AHT9&FROMname=Test2&id=006V0000003nbnY&TOname=TEST+123
What I'd like to do is create a VF page where you can search and select 2 Opportunities that will be used as TO and FROM clones. Once both are selected the user is then directed to my cloning page which shows Opp 1's records in a top table, Opp 2's records at the bottom.
I'm not even sure where to start. I searched around for anything similar but couldn't find the right code to try and break down for my purpose. Any ideas out there? I can certainly use the current opp the user is in as Opp1 and just pass in that ID. Any ideas on how to go about this would be much appreciated.
Thanks in advance.
The cloning (and also moving) part works great but I'm using the URL to pass in parameters which I manually pasted in the IDs. Example: https://c.cs12.visual.force.com/apex/MoveConvLogtoNewOpp?Oldid=006V0000004AHT9&FROMname=Test2&id=006V0000003nbnY&TOname=TEST+123
What I'd like to do is create a VF page where you can search and select 2 Opportunities that will be used as TO and FROM clones. Once both are selected the user is then directed to my cloning page which shows Opp 1's records in a top table, Opp 2's records at the bottom.
I'm not even sure where to start. I searched around for anything similar but couldn't find the right code to try and break down for my purpose. Any ideas out there? I can certainly use the current opp the user is in as Opp1 and just pass in that ID. Any ideas on how to go about this would be much appreciated.
Thanks in advance.
This should be possible using Wrapper Class.
Wrapper class gives you the ability to put together an object with custom fields(which can be a checkbox)
What I would suggest is for you to club Opportunity object with two checkboxes: Marked To and FROM
Then use the wrapper as mentioned in the sample in the below link:
http://wiki.developerforce.com/page/Wrapper_Class
All Answers
This should be possible using Wrapper Class.
Wrapper class gives you the ability to put together an object with custom fields(which can be a checkbox)
What I would suggest is for you to club Opportunity object with two checkboxes: Marked To and FROM
Then use the wrapper as mentioned in the sample in the below link:
http://wiki.developerforce.com/page/Wrapper_Class