tag:blogger.com,1999:blog-6140199022860280334.post2154351580777620593..comments2024-03-29T06:37:56.706+00:00Comments on Bob Buzzard Blog: Passing Parameters to Apex Method from Visualforce PageBob Buzzardhttp://www.blogger.com/profile/07815472992351343395noreply@blogger.comBlogger38125tag:blogger.com,1999:blog-6140199022860280334.post-8503347934040052242022-03-25T15:51:22.187+00:002022-03-25T15:51:22.187+00:00The fact that this blog post is still relevant and...The fact that this blog post is still relevant and fixing issues in 2022 is amazing. Thanks for this Bruno, you've saved me after hours of articles searches ! Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-9871802288469159922019-03-27T12:15:10.408+00:002019-03-27T12:15:10.408+00:00how can i select multiple record and delete them o...how can i select multiple record and delete them once??<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-7984587889331300362017-01-20T19:34:48.614+00:002017-01-20T19:34:48.614+00:00Thank you Bob. You really saved my bacon with this...Thank you Bob. You really saved my bacon with this article.Sid Vortberahttps://www.blogger.com/profile/10371037286250907557noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-62534766400452775682017-01-03T06:54:25.533+00:002017-01-03T06:54:25.533+00:00Hi Bob,
How to pass id of lookup field from vf pag...Hi Bob,<br />How to pass id of lookup field from vf page to controller in lightningAnonymoushttps://www.blogger.com/profile/09538789967599619693noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-14307844680766463332016-12-15T03:06:28.917+00:002016-12-15T03:06:28.917+00:00Could you use this method in a PageBlockTable retu...Could you use this method in a PageBlockTable returning a list, to filter the items retuned in the list?Anonymoushttps://www.blogger.com/profile/13869748022066934278noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-74800568053787120522015-08-28T11:29:36.137+01:002015-08-28T11:29:36.137+01:00Thanks a lot Bob..It resolve my issue.
Thanks a to...Thanks a lot Bob..It resolve my issue.<br />Thanks a tonAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-84399914515160065032015-06-01T13:38:06.386+01:002015-06-01T13:38:06.386+01:00Hi Bob,
I have a method in my apex class that take...Hi Bob,<br />I have a method in my apex class that takes a string (a destination) and gives me the Average Price for this destination.<br />So, what I want to do, is create a paragraph in the visualforce page to have something like this:<br /> Destination: getAverageDestination(destination) in the paragraph.<br />where getAverageDestination is the name of the method in my apex class.<br />So my question is how can I call the method getAverageDestination in my visualforce page and pass the attribute destination to this method?<br />Thanks a lot for your help.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-71533122100120289862015-05-31T13:58:50.465+01:002015-05-31T13:58:50.465+01:00Hi Bob, thank you very much for this example, it i...Hi Bob, thank you very much for this example, it is very useful! I would also like to pass the parameter to a second page, however I am using one controller for both pages, as I am building a wizard. Do you know if there is a way to pass the parameter like in your example but keeping the single controller? In my code the redirect does not work because of the bug that requires the button rerendering which then breaks the page redirect. Thank you!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-10525565209881703792015-04-02T09:08:20.366+01:002015-04-02T09:08:20.366+01:00This post shows how to pull parameters from the qu...This post shows how to pull parameters from the query string and process them in a controller:<br /><br />http://bobbuzzard.blogspot.co.uk/2011/06/execute-custom-search-when-opening-page.htmlBob Buzzardhttps://www.blogger.com/profile/07815472992351343395noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-14672475965488077522015-04-02T08:34:35.864+01:002015-04-02T08:34:35.864+01:00hi, i want create 2 visualforce page with a contro...hi, i want create 2 visualforce page with a controller using custom object.In the first page i want to select the one record and pass it's id to another visual force page which will show it's details using query string.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-84913254314648367372015-03-27T10:15:36.872+00:002015-03-27T10:15:36.872+00:00I have requirement like this if a customer enter h...I have requirement like this if a customer enter his email id and phone number then only then the valid customer gets popped...Shantanu mahajannoreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-8822376109701371092015-03-16T13:49:57.787+00:002015-03-16T13:49:57.787+00:00Hi Bob!! I have to redirect from one Page to other...Hi Bob!! I have to redirect from one Page to other and pass a parameter to other page. Is it possible to send the value without displaying it in URL? <br /><br />Also, can this be done at the page level as I am using an anchor tag to redirect and don't want to call the controller method SFhttps://www.blogger.com/profile/16181690660787251818noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-62253494376541046152014-12-27T20:44:19.337+00:002014-12-27T20:44:19.337+00:00Used this today! Thanks, Bob!Used this today! Thanks, Bob!Lee Hildebrandhttps://www.blogger.com/profile/04608486536633480795noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-79959430547847228382014-06-03T12:26:37.584+01:002014-06-03T12:26:37.584+01:00Hi Bob Buzzard,
Using wr...Hi Bob Buzzard,<br /> Using wrapper class i displayed all custom objects in my organization through custom controller and i gave delete command link of each object.when i click delete command link,how to delete custom object from database?<br /><br />please help me............Anonymoushttps://www.blogger.com/profile/04484960355070172958noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-5517893485280295782013-08-27T04:22:19.509+01:002013-08-27T04:22:19.509+01:00I have a List (in an Apex extension) of a custom o...I have a List (in an Apex extension) of a custom object called Question Assignments (QA) populated via a SOQL query - we use this to dynamically populate the question text on a visualforce page. <br /><br />In this query, I am also pulling back the Question ID, which we will need to go execute a separate query (at least the way I'm attempting at this point) to pull back a list of select options used in a selectRadio component. <br /><br />I have been attempting to use the apex:param option (currently tied to an output text field used as a label for the radio button group), but have failed at doing this just about every way I've found online.<br /><br />Is what I'm trying to do even possible? Any pointers would be appreciated! Thanks!Anonymoushttps://www.blogger.com/profile/16175733773122619776noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-22355974717745370012013-07-18T13:49:43.053+01:002013-07-18T13:49:43.053+01:00Certainly - its a bug in Visualforce where if you ...Certainly - its a bug in Visualforce where if you don't use a rerender attribute, the parameter doesn't get passed to the controller.<br /><br />My fellow MVP Wes Nolte wrote this up on his blog at: <br /><br />http://th3silverlining.com/2009/06/12/salesforce-bugs-you/Bob Buzzardhttps://www.blogger.com/profile/07815472992351343395noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-85233977267267533012013-07-18T12:36:29.740+01:002013-07-18T12:36:29.740+01:00Hi Bob,
first of all, thanks you for what you are...Hi Bob,<br /><br />first of all, thanks you for what you are doing - I am relatively new to Salesforce and your posts have helped me on numerous occasion.<br /><br />My question is following - in the post above you say: <br />"Note the rerender attribute of the commandbutton - if this attribute is not present, the parameter does not get sent back to the controller."<br /><br />I'm having trouble wrapping my mind around it. From what I understand about rerender attribute it is used to indicate page elements that should be refreshed upon AJAX request. So why does pressence/absence of this attribute affect parameters being passed to the controller? I would really appreciate if you could shed some light on this matter.<br /><br />Cheers<br />IvanAnonymoushttps://www.blogger.com/profile/12846570713577928909noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-31642333240638558382013-05-31T22:45:31.382+01:002013-05-31T22:45:31.382+01:00This comment has been removed by the author.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-53948006632063172212013-05-07T16:52:24.855+01:002013-05-07T16:52:24.855+01:00That sounds like regular visualforce forms. Have ...That sounds like regular visualforce forms. Have you looked at the developer's guide?Bob Buzzardhttps://www.blogger.com/profile/07815472992351343395noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-12058977521426086302013-05-06T16:29:51.878+01:002013-05-06T16:29:51.878+01:00Hi Bob,
I need to get values form vf page what ev...Hi Bob,<br /><br />I need to get values form vf page what ever i entered on vf component example if i enter name="xxx" i should get "xxx" value to my controller.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-28242890831300983452013-04-04T22:29:21.312+01:002013-04-04T22:29:21.312+01:00I'd be interested in hearing what you do in th...I'd be interested in hearing what you do in this situation as well.Michael Welburnhttp://michaelwelburn.comnoreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-74180756844070278672013-03-27T16:48:01.590+00:002013-03-27T16:48:01.590+00:00How to create horizontal scrollbar in the inline v...How to create horizontal scrollbar in the inline visualforce pageAnonymoushttps://www.blogger.com/profile/17545413335817816951noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-28827697537217291102012-12-22T11:37:16.049+00:002012-12-22T11:37:16.049+00:00you have my eternal gratitude. your graciousness i...you have my eternal gratitude. your graciousness is appreciatedAdult High School Diplomahttp://www.stanleyhighschool.com/noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-30015932905871366632012-11-20T09:57:53.948+00:002012-11-20T09:57:53.948+00:00The way around this is to have a hidden input fiel...The way around this is to have a hidden input field and set the value of the parameter into that prior to executing the action method. I've been asked this a few times recently so I think I'll write another blog post explaining how it works. Stay tuned.Bob Buzzardhttps://www.blogger.com/profile/07815472992351343395noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-70529689378622769902012-11-19T19:36:35.543+00:002012-11-19T19:36:35.543+00:00I have an "apex:inputFile" on the same p...I have an "apex:inputFile" on the same page, so using rerender="all" causes the following error:<br />"apex:inputFile can not be used in conjunction with an action component, apex:commandButton or apex:commandLink that specifies a rerender or oncomplete attribute."<br /><br />Any way around this problem? Other than getting rid of the inputFile.Anonymoushttps://www.blogger.com/profile/11325410728822672364noreply@blogger.com