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
kdmrkdmr 

bind input text value to controller

I am using inputtext to get a value and then passing it to the controller, where i am using it to filter some lookup values. Though both the controller and VF page complie properly, i do not see the result appropriately.

Codes related to it

public String getassetval() { return this.assetval; } public void setassetval(String el) { this.assetval = el; } plist = [select Id from Product2 where Id in (Select Product__c from Account_Asset__c where name = :assetval)];

 Would like to know if this is enough for it to caputre the text in the Inputtext and pass it the controller to use it in the query. If yes, how do i findout if the variable has the value or not. If not what is the correct way to proceed.

 

Thanks

KD

mromanimromani

i am trying to do the exact same thing, i'd like to pass whatever was entered ina text box (input) and passing it to a controller where it will do some searching, then maybe pass back results...

so for no luck...