Yes you can update opportunity stage picklist value on pageload using Action attribute of page tag call function from apex which will update.Note you can not perform this in constructor.
@Ajay This code update Opportunity record Stage value, but my requirment is update the Stage picklist value. I replace Stage picklis value with custom value.
This error is comming in line no 5 , i try to find out a way to assign this value but did not find any function or code to do so.As it is an ordered list you can try assigning this value using index of list in line no 5.
Try this code.
This error is comming in line no 5 , i try to find out a way to assign this value but did not find any function or code to do so.As it is an ordered list you can try assigning this value using index of list in line no 5.
Thanks
Ajay