You need to sign in to do that
Don't have an account?
KSusan Cox
Can we Refresh standard page using Controller?
Hi,
I have created one Apex Controller, from which I am controlling the standard visualforce page. Now the problem is that I want to refresh the page within the class. I don’t have any visualforce pages I want to refresh the standard page of Salesforce from class. So, if anybody knows please let me know that.
Thanks,
Susan
I have created one Apex Controller, from which I am controlling the standard visualforce page. Now the problem is that I want to refresh the page within the class. I don’t have any visualforce pages I want to refresh the standard page of Salesforce from class. So, if anybody knows please let me know that.
Thanks,
Susan
Could you give a bit more context around what you are trying to do?
Its a bit confusing, as you say you are using a controller to control a visualforce page, then go on to say that you don't have any visualforce pages...
Thanks
Shyam
Sorry for my Language i am controlling Standard Page using trigger not VF Page,I don't have any VF Pages, and i want to referesh that standard page
There is no way to refresh the standard page from the the trigger.
Is the trigger based on the same object as the standard page? If so, when you do a save after an edit, the standard page should refresh by it self.
The trigger is same based on the object, but it is not refershing by itself
Cheers
Trigger event is "Afer Event ", and Yes,the trigger kicked of from the page i want to refresh.
What is not refreshing on your page?
Thanks for your quick reply, I am trying to delete chatter post but problem is when I manually refresh a page post is deleted automatically so I want to refresh a page from my controller
Let me clarify, are you deleteing chatter posts from the chatter feed on the chatter tab or from the chatter feed on the records?
Is your trigger on the chatter feed?
Whats the purpose of your trigger?
Thanks for your response.
I am deleting posts form chatter post, not from feed on the record.
I have 'after insert' trigger on FeedItem, let's say T1. I am deleting some post based on our business requirement from apex class, C1. We are calling one method of class C1 from Trigger T1 to delete the FeedPost. The class C1 is performing delete process.
Now suppose if I delete some post using class C1, content are getting posted on the feed immediately and I am getting a pop-up message from system saying 'post has been removed' but the chatter page is not getting refreshed. When I manually refresh the page, the post is disappearing.
I want something to refresh the page automatically after that pop-up message. I had tried another trigger on FeedItem (after delete) and called one method that returns Pagerefence to refresh the chatter standard page but this did't work.
Please help me for this.
Thanks
As you have tried already, there is no way to refresh a page from a trigger.
Is there any way to open another vf page from trigger?
Thanks,
Are you trying to delete newly inserted feeditems or exisiting ones?
Thanks for your reply. We have inserted the feed item first for some reason and after inserting we need to delete that post based on some condition. The delete process is also performed by apex class as I described in previous comment. Is there any other solution to delete the post and auto refresh the page once deleting is completed
Is there a reason why you need to have the record inserted before you delete it?
I have already tried before insert trigger. It is preventing the feed item from being inserting and gives error message to User But, Problem is when I do this I am not able to save the data which I prevent from being post.
Thanks,
Where do you want to save the data? by data are you talking about the actual content of the feed item?
Could you elaborate a bit more context around what you are trying to say?