Questions tagged [oncomplete]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
54 views

attachment pdf loop not working

I have a problem with a oncomplete button. The goal is to do a loop throughout all my custom object and to generate a pdf and attach it to my custom object. I manage with the following loop to attach ...
0
votes
1answer
31 views

Action Function On Complete Event

I have a VF Page where one link is to generate email of current detail page content. Once the email has been triggered to the user we need to show pop-up msg that the email has been sent. So i have a ...
0
votes
1answer
21 views

How do I cancel a 'window.open' from a commandbutton?

I have the following CommandButton: <apex:commandButton value="View Statement" action="{!openInvestmentStatement}" title="View Statement" oncomplete="window....
0
votes
1answer
34 views

How Do I Use The “oncomplete” Function To Refresh A Different Visualforce Page?

Is it possible to update a different visualforce page using the "oncomplete" function? I have a visualforce page that I would like to have the ability to refresh various other Visualforce pages when ...
0
votes
1answer
202 views

Prevent reloading of Page on oncomplete of actionfunction

I have below code where I want to do an action to apex action function and oncomplete of it want to call a javascript function. Unfortunately instead of calling the action the action function in my ...
0
votes
1answer
189 views

Oncomplete event in not calling jquery function

I'm using jquery pagination in VF page. So when I re-render the table then jquery pagination functionality is not showing. Reference link. So I've to call the jquery function addDataTable from ...
0
votes
1answer
393 views

Save and close VF page Pop Up on Single Click [duplicate]

I am trying to save and close a VF page on clicking 'Save' command button.Here's my code <script type="text/javascript"> function closewindow(){ window.close(); geopointe....
2
votes
1answer
2k views

how to stop firing oncomplete if save action has errors

My requirement is to stop oncomplete call if save action has errors. I know I am doing some silly mistake. Here I am unable to stop calling oncomplete function. Requirement is, from VFP save method,...
2
votes
1answer
2k views

CommandButton oncomplete JS function not firing [duplicate]

I have run into an issue with an apex:command button, where the oncomplete part of the process is not being called, and prevents the button from completing its action. The VF page is a component on a ...
2
votes
2answers
1k views

error message on oncomplete in visualforce page

I would Like to add Error message on visualfocepage if save button logic has error. this part is working ,but i need to show popup if there are no error messages.how to add condition to show popup ...
0
votes
0answers
777 views

CommandButton: conditional oncomplete

My command button inserts a new record into the page. When I integrate oncomplete="formReset()", the page reloads and I can see the new record on the page. function formReset(){window.location.href='/...
0
votes
2answers
1k views

Call a method on completion of save action on button click?

I am trying to call a method on completion of action on buttonclick Button Code: <apex:commandButton action="{!save}" id="saveButton" status="actStatusId" title="{!$Label.ahm__Save}...
0
votes
2answers
246 views

apex:repeat var not getting recognized inside button

I have this button inside an apex repeat that it's iterating over a list from my extension controller: <apex:page standardController="Visit_Report__c" extensions="AddTopicsController" showHeader="...
1
vote
3answers
499 views

JQuery Datatable renders nested Datatable on Visualforce rerender

I've just recently started incorporating jQuery into my Visualforce pages in form of the Datatable plugin. It's worked very well so far, but I'm running into a problem when I need to rerender the ...
2
votes
1answer
1k views

Apex PageMessages are not displayed when using OnComplete JS for CommandButton

I have VF page shown in the service console. When Apex command button is clicked it is invoking controller action method. OnComplete on the command button executes the JS function which refreshes the ...
0
votes
1answer
246 views

oncomplete function is not working [duplicate]

I am refreshing the primary tab after clicking on the update button.i am using the oncomplete function. on the command button oncomplete action is not working. i have tried in the following way: &...
0
votes
0answers
340 views

Use onComplete and page redirection of action function

I have a simple question. Can I use action function to redirect to a new page using controller code and also at the same time use onComplete of the action function so that onComplete gets called ...