Get view value


Hi All,


There is a CP View page which contains a text box and a search button part of the page.

While clicking the search button ,text box value (For Example: incident id)should be passed as parameter to database then

execute the ROQL query against the textbox value.Result of the value display on same view page (For example :subject,email id).

Finally i have to submit the page along with additional values.


That view page has been extended Submit button functionality already.

Could anyone tell me how to pass the value from view to controller.



If you are using simple HTML form inputs, you'll need to create your own endpoint that handles the form POST data (use AJAX to stay on the same page). I'd recommend, as a prerequisite, researching MVC architecture and the CodeIgniter framework (which CP is built upon).

Zircon - This is a contributing Drupal Theme
Design by WeebPal.