The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
532 views

Calling apex:actionFunction on apex:commandButton's onclick event

Can we call apex:actionFunction on apex:commandButton's onclick event? Actually i am trying to do this but controller's method is not being called. i am doing something like below - ...
0
votes
1answer
62 views

problem with actionfunction

I have a page with actionFunction to get a parameter onclick on an outputLink from 3 defined. but this warning appear after loading the page before I click on anything.. ...
3
votes
1answer
51 views

How can I update a field in a VisualForce page Constructor, and have it display on the page?

I have a visual force page where I'm using an action method to mark a "timeStamp" of when the user opens the page for a given object. Page: apex:page standardController="myChart" ...
1
vote
2answers
1k views

Passing method parameters with apex:actionFunction

I have this Visualforce code snippet in a page: <apex:outputLink value="javascript:if (window.confirm('Are you sure?')) DeleteQuoteLineItem('{!LineItem.QuoteLineItem.Id}');"> Del ...
0
votes
1answer
88 views

setting value in action method

Action method is called but Username is null in visualforce VisualForce page: <apex:page controller="exampleCon"> <apex:form > <apex:actionFunction name="sayHello" ...
5
votes
1answer
681 views

Setting controller variables not reliable from apex:commandButton

I'm trying to set a variable inside my controller via an actionFunction, which is called by some Javascript, which is initially called by either by an actionPanel (with styleClass='btn') or a ...
3
votes
1answer
118 views

Highlight a cell with a color when an image within the cell is clicked in a data table

I have a VF page with a datatable in which an image or a flag is placed in a cell for identification. when the flag or image is clicked using mouse event, the particular cell's background color which ...
3
votes
2answers
420 views

Action function chaining onLoad and oncomplete to call a SOQL Query

I have 13 to 14 sections on a page. I want to call them using actionfunction asynchronusly using queue or chaining mechanism. So that only one section is called at a time. And performance of page is ...
1
vote
0answers
23 views

Using URLFOR to delete a CaseContactRole

I readed on the post Token for URL to delete a record on how to use URLFOR, but it doesn't work in my case: Error: Field $Action.CaseContactRole.Delete does not exist. Check Spelling. I know based ...
5
votes
1answer
2k views

Command button and Action Function

I want the action function to be called when command button is clicked which calls an apex class. The debug log is shoing everthing working fine but the page is not redirected. <apex:form > ...
7
votes
1answer
130 views

Is it possible to access the result of an actionfunction from its oncomplete attribute?

I have an <apex:actionfunction> that updates a record based on an ID parameter I send it. <apex:actionfunction action="{!UpdateRecord}" name="UpdateRecord" rerender="Errors" ...
3
votes
1answer
340 views

Processing User Input Without Validation

This seems to be a popular issue because there are related questions all over the place. Rather than asking about this as buggy behavior, I'm trying to figure out best practices for my use-case. I ...
1
vote
0answers
141 views

actionfunction actionstatus IE8/IE9 problem

I have a page like that <apex:form> <apex:actionStatus id="blockInterface" onstop="$.unblockUI();" onstart="$.blockUI();" /> <apex:commandButton status="blockInterface" ...
3
votes
1answer
869 views

Rerender when calling a method from an inputCheckbox

I currently have a pageBlockTable that I am populating using a StandardSetController. The first row of this column is checkboxes that allow the user to select the object for that particular row. ...
1
vote
1answer
180 views

Do apex:actionfunction calls count against the API Requests limit?

I have a Visualforce page containing a table of <apex:inputfield> elements. Each time a field is updated (onchange) an <apex:actionfunction> updates the record using an Apex call. Should ...
1
vote
1answer
93 views

Catching All Errors in VF ActionFunctions

I've been developing some large, complex pages with lots of action functions, and I find myself writing a ton of boilerplate. Since I'm developing for Force.com Sites, any uncaught error appears to ...
0
votes
2answers
113 views

Why actionFunction returns the whole page?

I noticed everytime I use action function it returns the whole page including the viewstate. Why the response has the url to css and javascript files? Is there anyway to limit the size of ajax ...
3
votes
1answer
83 views

Unable to maintain List in same context on visulforce page when updated by actionFunction

Visual force page: In visualforce page I have a javascript for loop which calls a action function according to elements size <apex:form > <apex:actionFunction ...
1
vote
2answers
1k views

Executing javascript asynchronously while waiting for result of action function

I have an <apex:actionFunction> which can take a long while to complete. While the action function is executing, I would like to be able to execute some on page JavaScript to make the users ...
1
vote
1answer
328 views

ActionFunction working in Chrome but not in IE and Moz

So, the page has an action which must be invoked when "enter" is pressed. VISUALFORCE: //script: function pressReturn(e, currOffer) { var keyPressed = e.keyCode; if (keyPressed == 13) { ...
5
votes
2answers
587 views

Problems with salesforce summer'13 Release immediate=“true”

I have written code snippet in Visualforce in using actionFunction with immediate="true", so that validations bypasses the page. but due to upgradation to summer'13 the immediate="true" doesn't work ...
3
votes
1answer
203 views

VisualForce AJAX with actionFunction acts in a strange way, any insight?

I have two picklists in a visualforce page with a controller extension: <apex:actionFunction name="updateModelList" rerender="modelSelect"/> .... <apex:selectList value="{!selectedBrand}" ...
3
votes
2answers
284 views

Complex If condition using regex on visualforce

I'm trying to use REGEX into AND function, but I get this error: Error: Function REGEX may not be used in this type of formula Code: rendered="{!AND(condition1,REGEX(condition2 ...
2
votes
4answers
548 views

actionFunction not working in Customer Portal

I'm using actionFunction in a few Visualforce pages to call a custom save method. Although it works perfectly in regular Salesforce, it does nothing in the customer portal. If I instead call the ...
6
votes
4answers
244 views

Alternatives to using page action for user preferences

Sometimes you have to load user preferences stored in a Hierarchy custom setting when a Visualforce page loads. If the preferences exist, then retrieve them, otherwise create them and insert them. ...
2
votes
1answer
1k views

How can I pass a List of Ids as a parameter using an ActionFunction?

Here's what I have so far. Controller public Id[] SelectedIds {get;set;} public void TestAction() { system.debug(SelectedIds); } Page <apex:outputpanel id="r"></apex:outputpanel> ...
0
votes
3answers
1k views

Can we call actionFunction using outputLink?

<apex:outputLink onClick="test();">Add </apex:outputLink> <apex:actionFunction name="test" action="{!add}" rerender="Panel"/> Am i am doing something wrong because action function ...
4
votes
1answer
143 views

Is there a way to cancel actionFunctions?

With standard AJAX, I can cancel a request-in-progress by using xhr.abort(): var xhr = new XMLHttpRequest(); // set up my xhr // etc... xhr.send(); // Later: realize I don't want the response after ...