You need to sign in to do that
Don't have an account?
KRay
Using ActionFunction in extension class
Hi everyone, I'm running into a snag accessing a method from the extended the class. I receive the following error message,Error: action="{!setInfo}": Unknown method 'AccountStandardController.setInfo()'.
I exteneded it because I want to be able to use (Account) object publisher action in SF1. Right now, I'm back tracking to find out what's wrong. I've stripped it down to the bare essentials, still errors out. Any help will be greatly appreciated. Thanks in advance.
VFPAGE:
Controller:
I exteneded it because I want to be able to use (Account) object publisher action in SF1. Right now, I'm back tracking to find out what's wrong. I've stripped it down to the bare essentials, still errors out. Any help will be greatly appreciated. Thanks in advance.
VFPAGE:
<apex:page standardController="Account" extensions="MyControllerEXT" > <script type="text/javascript"> function GoToNxtPg(num){ sendDataToController(num); sforce.one.navigateToURL("/apex/NextPage"); } </script> <button onlick="GoToNxtPg('101');">GO</button> <apex:form > <apex:actionFunction action="{!setInfo}" name="sendDataToController" rerender=""> <apex:param name="passInvoice" value="" assignTo="{!SelectInvoiceNumber}"/> </apex:actionFunction> </apex:form>
Controller:
global with sharing class MyControllerEXT{ public String SelectInvoiceNumber{get; set;} public MyControllerEXT(ApexPages.StandardController Account){ } public void setInfo(String txt){ } }
VFPAGE
CONTROLER