Where u need this Requirement Let me know visualforce page or somewhere else if in visual force page 1- U need a javaScript function window.onload in that function u have to pass your controller value using actionFunction it a little bit tricky but first explain me your complete requirement so that I can resolve it
I would like to use a list button for this,the code what i have written is not throughing any error but it's not filling any value in the quote name field.
After i changed to name to Name it worked. Other question i have is how can i pass count() function value in the url from javascript list button ? I mean select count() from opportunity value
Where u need this Requirement Let me know visualforce page or somewhere else
if in visual force page
1- U need a javaScript function window.onload in that function u have to pass your controller value using actionFunction it a little bit tricky but first explain me your complete requirement so that I can resolve it
Thank you
Avaneesh Singh
So What is your exact problem are you getting any error or what?
put your code here and let me examine it
{!REQUIRESCRIPT("/soap/ajax/39.0/apex.js")}
window.location.href = '/0Q0/e?retURL=%2F{!Opportunity.Id}&oppid={!Opportunity.Id}&name={!Opportunity.Name}';
Is the logic i'm using in the button, it's not throughing any error but value is not grtting filled.
Other question i have is how can i pass count() function value in the url from javascript list button ?
I mean select count() from opportunity value