You need to sign in to do that
Don't have an account?
Sohan Rawat 5
Accept a Input from end user.
Hi,
Can someone give me a little guidance here to understand how taking a input from user works here is Salesforce.
I was going through Apex developer's guide and I'vea almost read half of the book, but still didn't see any example to take a input from user. Like in Java we can use a DataInput stream or scanner class to take a input from user, but I've not seen anything like in Apex.
Can someone point me to the documentation which can help me to understand how apex lets your customer to input the data in Salesforce.
Any help will be highly appreciated.
Thanks
Can someone give me a little guidance here to understand how taking a input from user works here is Salesforce.
I was going through Apex developer's guide and I'vea almost read half of the book, but still didn't see any example to take a input from user. Like in Java we can use a DataInput stream or scanner class to take a input from user, but I've not seen anything like in Apex.
Can someone point me to the documentation which can help me to understand how apex lets your customer to input the data in Salesforce.
Any help will be highly appreciated.
Thanks
In apex there are no need DataInput stream or scanner class to take a input like JAVA. You need only create a variable in controller & connect with apex inputText value in VF Page.
Regards
Tej Pal Kumawat
Skype : tejpalkumawat1991
If this answers your question mark Best Answer it as solution and then hit Like!
Tej Pal Kumawat
Skype : tejpalkumawat1991
If this answers your question mark Best Answer it as solution and then hit Like!
Salesfore platform allows 3 different types of methods below to link VF page to a custom controller happens
Setter - Passes the user-specified values from a VF page to a controller
Getter - Returns the values from a controlle
Action - Performs logic
Getter & Action - Will be prompted when you create a new VF page
Setter - You need to create manually
If this answers your question mark Best Answer it as solution and then hit Like!
Reference - https://developer.salesforce.com/docs/atlas.en-us.198.0.pages.meta/pages/pages_controller_methods.htm
Reference - (James Loghry) https://developer.salesforce.com/forums/ForumsMain?id=906F00000005KCMIA2
If this answers your question mark Best Answer it as solution and then hit Like! (https://developer.salesforce.com/docs/atlas.en-us.198.0.pages.meta/pages/pages_controller_methods.htm)
Please try the example below. FYI, Some part it is still incomplete, but you will get the picture.
Custom VF Page
Custom Controller