What is Lookup dialog ?
All parent relationship field which is of type lookup can be changed using the standard inputField tag on them.
How can we take action after the Lookup ?
When user selects some value for the parent relationship, we may need to take some action, perhaps a validation (or) confirmation action to the user.
Where it will be useful ?
We could use this for validation purposes or rendering different section of the page based on the value selected, etc.
Where is the Code ?
The code will illustrate how to take action after the lookup value changed & update different section of the page based on the new selected value.
Any Screenshots ?
When loaded
After lookup
After value changed
Walk through in a video ?
VIDEO
I am getting this issue
ReplyDeleteAttempt to de-reference a null object
Error is in expression '{!changeAccount}' in page rapidorderentry: Class.ProductController.changeAccount: line 11, column 1