You need to sign in to do that
Don't have an account?
Abhishek Singh 88
populate some field on visualforce page after clicking on command link button
Hi Developers.
i have a custom button link called "new incident" after clicking on link i am redirected to another vf page.the screen shot is below
After clicking on new incident i am redirectin to below page:
I want to populate client id field with current user,and bussiness unit as PHS:
Plz help me out.
thanks in advance.
i have a custom button link called "new incident" after clicking on link i am redirected to another vf page.the screen shot is below
After clicking on new incident i am redirectin to below page:
I want to populate client id field with current user,and bussiness unit as PHS:
Plz help me out.
thanks in advance.
In your VF Controller constructor add below lines
API name of ClientID = UserInfo.getUserId();
API name of BussinessUnit = 'PHS';
Thanks for your reply.But how it will populate that paticular page,if i update it in constructor.
When you will do something like this below inside your constructor:
objectName__c.ClientIDfieldName__c = UserInfo.getUserId();
objectName__c.BussinessUnitfieldName__c = 'PHS';
When page is loaded, constructor is the first thing that gets invoke so it will automatically take values for these two fields from the constructor and would pe populated in the page.
i will check it.it looks perfect.
i am facing this error.
Expression cannot be assigned at line -1 column -1
Page: