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

List not getting updated

Hi all,

 I am trying to create a dependent lookup using apex controllers and vf pages. I am using inputtext and apex param to pass the value of one of the lookupfields to the controller and then using that to query other 2 lists. The problem I face is that the value passed to the controller keeps changing to null and does not query the proper list.

 I inserted the debug logs and found out the when I first call the page the queries are all run returing the value for the controlling lookup as null, when i select the value for the controlling lookup field, i can find in the debug logs that the query is executed and the appropriate lists are taken, but before returning the list, the controlling field value returns to null and thus the dependent list is not populating properly.

need some help on this as I am not able to proceed further.

Thanks in advance