Share

Roadsend PHP SiteManager

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

column filters on an entity grid

You are viewing a single message from this topic. View all messages.

  1. 2004-10-08 07:58:23 UTC
    Greetings!

    [ SM v2.4.2 ]

    I have an entity grid used for editing a single row in a table of datas. Each row of the grid has a single submit button. The grid also has several column filters.

    I need to the filters to run only to the row being submitted. But on submit, the filters get applied to every row, not just the submitted row.

    The current code is (essentially) the pretty standard setup:

    // previous code has already instantiated and
    // configured the form, and the entities and filters
    // have been add()'ed.
    $form->run();

    if (!$form->dataVerified()){
    // output the form
    } else {
    // determine the row being submitted
    // do db writes, etc.
    }

    I guess the issue is that $form->run() checks the ftl flag and invokes the column filters on *all* the rows.

    Any suggestions on how to apply filters only to the row being submitted?

    Thanks!
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.