function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Problem With Lookup field

Hello Everyone..,


I am facing problem with Lookup field. Problem is:


I have one lookup field on page as Employee Name. When i select any value from this i want the table will appear on basis of selected value. and the table values i have to call from different objects. the information in table is all related to selected employee.  i want to calculate his incentives, that are related field in table.


If anyone know hows its possible pls help me for the same.


Thanks In Advance



You'll need to post the form back to your controller so that the new details can be retrieved.  I'd suggest you want an onblur actionhandler for the lookup field so that when the user tabs out of the lookup field you submit the form and rerender the table.


It would be nicer to use an onchange handler, but I don't believe this is possible at the moment.


You can use the sample code given below :


<apex:inputField value="{!vol.Minimum_Age_w_o_adult__c}" onblur="checkme("> then you can invoke javascript method to get the records .


Can you post your code here so that we can suggest the solution?