Thanks Chamil that code worked. I just can't seem to get my table to rerender after creating a new item. Below is the code I am using, can anyone tell me what I am doing wrong?
Use this scenario. call the method that retrieve data to the table in action method(after insert)
public void getTableData(){
//here is the code for retrieve data to the table
}
public PageReference Button(){
YourObject obj = new YouObject();
obj.field1 = 'abc';
obj.field2 = 'def;
//set your values here as above
insert obj;
getTableData();
return null;
}
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.
Hi,
write a VFpage, where create a buuton with command button tag provide value={!Button}
in Controller:
create a method like
public PageReference Button(){
//control button logic here
}
Rerds,
Buss(Certified Developer)
right, but I need help with the control button logic.
Hi,
http://salesforceworld.blogspot.com/2011/06/save-attachment-in-apex.html
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.
Chamil's Blog
Thanks Chamil that code worked. I just can't seem to get my table to rerender after creating a new item. Below is the code I am using, can anyone tell me what I am doing wrong?
Hi,
Use this scenario. call the method that retrieve data to the table in action method(after insert)
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.
Chamil's Blog