Announcement Announcement Module
Collapse
No announcement yet.
Display a form and data ond the same page, before the onSubmit method Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Display a form and data ond the same page, before the onSubmit method

    I'd like to make a sort of an "admin" data page, where I'd be able to search, add or delete data from a database.

    I'd have a simple form (ie to input a name and last name) and a couple of buttons. What I want to do is to have the form at the top, and a table containing data on the bottom of the page.

    My problem is, I can get this to work (more or less) by using SimpleFormController, but it only works when the onSubmit method is called - ie I have a page with a form and only when I actually use the form I can retrieve some data from my database. What I want is to load the page so it immediately display both the form and the current database data, without having to first submit something.

    Any help will do... thanks

  • #2
    got it to work using referenceData in the controller that renders the form view

    Comment

    Working...
    X