The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
34 views

Command button display control

I have two command buttons (say A , B). I want when A is clicked then only B would be shown. When B clicked then it would be hidden again. Is this achievable ? Please find my page below. Page ...
0
votes
1answer
28 views

multiple function call to apex methods from javascript issue

I am trying to call three action functions from one javascript method and then trying to render some blocks after each action function completes. Some times it calls all the methods and sometimes it ...
0
votes
3answers
36 views

Call two controller method from a single comandbutton click

what is the best practice to call two controller method from a single commandbutton click. I have a requirement that on single buttonclick, page will navigate to first page and also call add new ...
1
vote
1answer
43 views

Call VF remoting based on action function result

I am trying to create a Case creation form along with drag n drop file attachment to the case. Case creation happens using Action of command button and what I want is if there is any attachment that ...
1
vote
1answer
29 views

Inline editing last updated field is not getting saved

I have a pageblock table where i can do some inline editing. But the last editd field is not getting saved. I need to explicitely click elsewhere after editing the field and then click on save and it ...
1
vote
1answer
58 views

How to use ActionSupport, ActionREgion, ActionFunction all together

I have a requirement, where I have a dropdown fiter. On change of dropdown value, Pageblocktable will be updated. Dropdown field has no Button to excute the event, so it has to be ActionFunction. ...
1
vote
1answer
34 views

Action Function not working

I have to upload a file using HTML input file and create a case and attach it to file. I am ablt to acomplish this using Javascript. Now I want to send the case Id to the controller. But I am not ...
0
votes
1answer
24 views

Action support rerender not showing Outputpanel

Switching between Radio Option should show and hide Outputpanel. I got this working with following code: <apex:selectRadio id="benefitradioid" required="True" value="{!selectedTargetBenefit}" ...
0
votes
1answer
51 views

Open new Page preference in new window

i want to open new page as new window... in the beginning i used apex:CommandLink and target="_blank" and it worked well. But i want to add validation in java-script so i used in ...
3
votes
1answer
41 views

ActionFunction rerender messing with Pagereference

I have a javascript method on my vf page which is called by a save button. This method does come calculation, collects some data and sends them to the save method in my controller as parameters using ...
1
vote
1answer
78 views

How to create tabs for an apex:tabPanel dynamically with apex:repeat and rerender?

I have an inputfield in my form which is a lookup. When I select a record from the list of lookup records (clicking the small magnifying glass) I am reading the id of that record and querying the ...
4
votes
1answer
35 views

Solving Race conditions with ActionFunctions

I have had a big problem with race conditions in ActionFunctions corrupting my viewstate. When I call an AF to update one thing, and then click a button to do another, if the second finishes first, ...
2
votes
1answer
167 views

XMLHttpRequest cannot load visual.force.com as requested origin is mydomainname.my.salesforce.com

XMLHttpRequest cannot load https://mydomainname--c.eu1.visual.force.com/apex/OpportunityOneClickUpdate?id=006D000000ZRwtx. No 'Access-Control-Allow-Origin' header is present on the requested ...
0
votes
1answer
48 views

trouble with actionFunction

I am using a wrapper class to combine an sObject with a checkbox, then iterating over the wrappers in my list. The first column displays the checkbox, then a repeat tag iterates over a list of strings ...
0
votes
1answer
79 views

JavaScript executing before controller method finishes

So I have an action function which calls an apex controller method. I call this action function within some javascript at the top of my page and after that call I want to send some information to ...
2
votes
1answer
160 views

Uncheck checkbox using javascript after JS onload

I am pasting a complete code for anyone reference if they like to resolve it.(Just incase they want to know what i could be missing.) NOTE: CaseOwnerChanged__c = Checkbox field type <apex:page ...
1
vote
1answer
479 views

Do not VisualForce JavaScript onChange and actionSupport work together?

It seems like you can't use VisualForce JavaScript onChange and actionSupport together, because if you use onChange property on inputField then actionSupport onChange wouldn't work. There is here my ...
1
vote
1answer
145 views

pressing enter on inputText does not trigger commandButton

<apex:form styleClass="container"> <apex:actionRegion > <div class="col-md-3 col-sm-5 col-xs-5 input-group"> <apex:inputText value="{!searchString}" ...
2
votes
1answer
179 views

Upload a file using <apex:actionFunction> integrated with JQuery

I have an html form that contains a file input, so I want to upload the selected file from this form using <apex:actionFunction> The problem is that I don't know how to pass the file to the ...
3
votes
1answer
278 views

commandbutton not running action function after reRender

So I have commandButtons being displayed through a apex:repeat and being given a variable value in the repeat. When the button it clicked, I have it going to the controller and assigning the values ...
3
votes
4answers
143 views

Page does not redirect when using the action param

I am getting the error when am redirecting from the javascript it show the cross domain issue.
1
vote
2answers
63 views

Get the SObjectType of a record in Visualforce - is it possible?

I have a generic VF component that renders Action Links for records of arbitrary SObject types. Iterating over SObjects in variable record I would like to use such a generic expression in my page: ...
0
votes
2answers
390 views

How to call action function method in the test class

How do I call a method in my test class which is basically been called from the action function on the vf page? VF page: <button type="button" onclick="myJSMethod();">my button</button> ...
3
votes
2answers
165 views

apex:actionFunction with apex:param Param not setting

I'm trying to set a controller property, using apex:param in an actionFunction but the properties aren't being set. This is my actionFunction: <apex:actionFunction action="{!setStartEndDates}" ...
1
vote
2answers
428 views

Javascript action function not working after Summer 14 release

I have a VF page with a command button. It calls a javascript function, and then an actionFunction to call a method in the apex class. Everything was working fine until summer'14 release. Now, when ...
1
vote
0answers
61 views

apex:actionFunction stopping previous button to show previous screen

i have a visualforce page <apex:page controller="ActionFunctionDemoController"> <flow:interview name="Calculator" rerender="ddff" /> <apex:outputPanel ...
2
votes
2answers
389 views

Hide and show pageblock section

i created a visualforce page.here is small snippet from that <apex:form id="form"> <apex:outputPanel id="flowPanel"> <apex:pageBlock title="Dynamic Flow" id="pageblock" > ...
0
votes
1answer
284 views

actionfunction is returning null parameter value

i created a visualforce page in which actionfunction definition is <apex:actionFunction name="setAttachment" action="{!setAttachment}" > <apex:param name="attachmentBody" value=""/> ...
0
votes
1answer
747 views

selectList onchange not working

I have a VF page in which Im displaying set of records in pageblocktable. There is a dropdown List (Sort By) with values. Name, Program and a commandButton named 'Reverse Order'. So, when I ...
2
votes
0answers
91 views

Viewstate not updated with actionFunction render?

I need to refresh viewstate on a page to show the latest query results based on user entry, but it's not working. I have an inputText on the page for the user to enter a filter value. When that ...
2
votes
0answers
205 views

apex:actionFunction action doesn't seem to work the same as apex:commandButton action

I am trying to override a custom object new and edit actions with a simple visualforce page. The desire is to not need a custom controller and just use the standard controller methods. <apex:page ...
6
votes
2answers
8k 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
135 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
287 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" ...
4
votes
2answers
8k 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
210 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" ...
6
votes
1answer
1k 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
191 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
2k 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
26 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
4k 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
364 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
647 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
207 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
2k 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
327 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
105 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
182 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
102 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
2k 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 ...