PHP filter list from other list's selection

I want to filter one list from the selection of the first list. The second list will use a recordset to find the records to display that match an integer field with the number value of the first list.
This seems like it should simply work by using a simple mode of the recordset that compares the value of the the field in this recordset with the Form Variable that equals "lstLevel", the name of the first list. The form action = the current page. Then I have a submit button on the form, but when I press it nothing happens. What am I missing?

I tried doing the same thing when going to another page and it works. So my question is now, how do I get the same result on the same page so I can filter severl lists on one page before proceeding to the next page?

Similar Messages

  • Retrieving lists from other layer into a JSP page - Design Question

    Hi all,
    What should be a good design technique in order to allow a JSP page to present some list obtained from other layer of my application. I intend to leave only presentation logic in the JSP layer, while all data access will be in other layer.
    For example, I have a JSP page that will show the results of a SQL query originated from an entry form in other JSP page. Let's name them 'search.jsp' and 'result.jsp'
    I want that all JDBC access be done in some other layer.
    Question 1:
    What would be better for this task? A servlet or a bean? (A bean, I suppose?)
    Then this bean (?) would have to find some way to pass all the result set into this 'result.jsp'. I think it would be very poor design if I used some Data Object, because it would have to store all rows and pass them at once.
    I don't want, either, that the presentation (JSP) layer access directly the data access layer (JDBC, files...). This way, I don't want any JSP page accessing the Resultset object directly.
    Question 2:
    What do you think could be a good design technique?
    I thought of some intermediate layer that provided data objects and data access interfaces. I mean, as my data will come from different sources, like some database (JDBC), some Electronic Document Manager, I thought of having a common access interface, that would provide methods for accessing the resultsets. This could be even a java.util.Enumeration that has a hasMoreElements() method that could be implemented as the next() method from JDBC result sets and the nextElement() method that would actually bring the next row of data.
    This way the JSP layer would see only hasMoreElements() and nextElement() methods from the middle layer. On the other hand, the data layer would provide as many different implementations to this access interface (Enumeration?) as there were data sources (JDBC, Files, ...)
    Question 3:
    What do you think of this design?
    Question 4:
    Is there any flaw in my approach? Which?
    Question 5:
    Could you suggest other designs?
    I really thank you all, for any kind of answer. I actually use this design for development, however I've never seriously discussed it with someone... this is going to be of great value for me.
    Regards,
    Filipe Fedalto

    Well I saw you question and I'll tell you what I do.
    I have JSP's which post form data to servlets.
    The servlet then calls a factory to produce a ResultContainer (analagous to your lists) which is generated
    via JDBC, and/or request parameters etc...
    this provides a single point of reference and a "group" of containers (functions really) that can be produced and reused (same container different amount of data)
    I also have other static classes which can manipulate the data in the containers
    (such as add additional info to the items in the containers) before I forward the container (request attribute)
    to the JSP page
    Additionally I use Type safe constants for all my HTML form tag names (easier to change and ensure the same name is used everywhere when reading parameters) and again for item statuses
    and any other info I need to send along with the page (using Javascript to update the
    status to another type safe constant).
    I've found that using factories for ResultContainers is very worthwhile and allows you to implement additional servlets extremely quickly (mostly reusing containers that exist) and since the
    container is the same for all my JSPs (this may not be the case with you) I can implement JSP's
    very quickly as well (just change the view)
    btw I refrain from calling my ResultContainer a bean because it is not serializable
    I don't know if this will help but at least it gives me a forum to test my ideas
    Thanks

  • Rollover on one list effects other list

    I have two lists. Both have ArrayCollection dataproviders. One list contains categories and the other list contains elements of that category. I want to be able to rollover items in the category list and have that effect items in the elements list. For instance, if I rollover 'Dogs,' in the category list, I want all the different types of dogs to then become bold in the elements list. How could I make this happen?
    Categories list contains name:String objects.
    <mx:List id="lstAllCategories" dataProvider="{ApplicationModel.instance.categoryList}" />
    Elements list has elementName:String, categoryName:String objects
    <mx:TileList  id="lstAllCategoryElements"  dataProvider="{ApplicationModel.instance.lessonList}">
    categoryName:String corresponds to the name:String object in the categoryList.

    Hi Sudip,
    Please see below the screenshot. Instead of ID column, I now tried to compare the unique "request name" column in both the lists.
    I use the condition: "if any value equals value"
    In the above condition, for the first value I select the current item - RequestName (i.e from list 2), I can do so very easily using a workflow variable and I get first screen, but for the second
    value or for that matter, when I try to navigate to different list then the second screen appears below.
    My only question is in the second screen below, what is the significance of the two fields below, in addition to the first two fields at the top. I select the source list and corresponding column, but again It asks me to select a Field and value in the bottom
    two fields. (Please refer fig 2). What is this for? Can you clarify?
    Thank you!

  • Component to allow the user to build a list from another list's items

    Hello everybody,
    I'm looking for a widget that allows the user to create a list by choosing from items from another list.
    Something like the tool to customize the button bar in MS Office or MS Explorer. You can see an example of what I'm talking about:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/databoundcomponents/displayedcolumns.gif
    It would be easy to program a component like this (and I've already found some piece of code by Googling), but I'd like to know if someone made a stable Swing component of it to avoid reinventing the wheel.
    Thanks in advance.

    There is one here
    http://www.geocities.com/nirajkagarwal/html/ListSelect
    or.htmlThanks, I already found this one via Google but I was looking for something more "professional".
    It seems the apache project team made a utility to
    control elements in a list...it seems very generic
    (maybe over-flexible if there is such a thing...) and
    really needs a tutorial !!!
    http://incubator.apache.org/uima/apidocs/org/apache/ui
    ma/tools/util/gui/ListSelector.htmlYes, it really looks like a work in progress.
    I'll wait some more to see if other readers come with links, then I'll start coding my own ListSelector ;-)
    NB: another example of what I want to accomplish is shown in figure http://java.sun.com/products/jlf/ed2/book/images/SelectableList1.gif

  • Is it possible to create a new List from another List's template and NOT carry over the associated Workflow?

    Related to
    this post, in cases where it's desirable to have two different workflows for two different Lists—is it possible to NOT bring forward a hardwired workflow when creating a new List from a saved template?
    I.e. List #2 still has the workflow from List #1 hardwired in.  List #1 still needs its workflow but List #2 wants to have a separate Workflow.

    More importantly, because it's relatively easy for most folks to just start from scratch with a new Workflow—how does one disassociate a carried-over Workflow from the new List?
    Use the web-GUI. (List Settings > Workflow Settings)
    From Designer, there's a shortcut button at the top of the page in the Workflows tab: "Administration Web Page".

  • Item send a list to other list

    AOA! how send an list items to any other list (All and one by one both)

    [email protected] wrote:
    AOA! how send an list items to any other list (All and one by one both)XVW! Are we talking PL/SQL here? What do you mean by List items here?

  • Populating Web List from database Based on Selected Field

    Hi,
    I'm really new to this so pardon my ignorance on the following.
    At my company, we have developed a web site using Oracle
    Application Server using PL*SQL cartridge, i.e. all the
    rendering of forms and processing of data are done using PL*Sql
    commands.
    I have a list field where I'd like the values populated from the
    database using a value specified by a user in another field.
    Example:
    State ____ City ____________________
    When user selects a state, I'd like to be able to dynamically
    populate the city field with values from the database.
    Does anyone have an example of how to do this? I'm guessing it
    can be done using thin JDBC.
    Any help would be appreciated.
    Thanks
    J Mathew
    null

    Hi Ram
    for the first time when the page loads i want the trailing list to be empty ....
    so in the processRequest itself i call invokeMethod and append the whereclause in the voImpl .....if a do a System.out.println("Trailing List VO ::ROW COUNT IS : "+getRowCount()); immediately after executeQuery it returns 0 ...
    but some how on the page i get to see some records in the list....
    Let me know if anyother info is required ...
    Regards
    Sunny

  • How to filter data from dropdown list in sharepoint 2010

    hi,
    we have one requirement for filtering data from drop down list , we have 4 drop down  lists, in that  drop drown, we  can select any drop down that related data bind to grid view ,  

    Try using "relationshipWebURL"
    property
    Ref:
    http://spservices.codeplex.com/discussions/348401
    Another option is by using Infopath forms
    Ref:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/9a84eae9-515f-4bef-921f-5ede5819f8df/filtering-a-cascade-dropdown-list-to-use-in-another-site
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer :)

  • Auto-generate table or list from other data

    Hello,
    I'm trying to figure out how to get Numbers (if it can) to generate and display a list. I'm not sure how to explain it well, so let me just give you an example.
    I have a table that looks like this:
    A 0
    B 1
    C 0
    D 0
    E 1
    F 1
    Where A through F are strings, and the 0 and 1s are determined by a formula based on other data in the spreadsheet. The point of the second column is to indicate if the corresponding item in the first column is "available" and can be chosen by the user, 1 meaning yes, 0 meaning no. So, for the example, all the requirements for "E" are met, and it can be chosen by the user; not so for "A." There are about 200 rows of data, so I'd rather have a formula or function than do it all manually.
    I would like all the items (and only those items) in the first column that are available (as indicated by the second column) to be displayed in a table on a different sheet that the user is expected to interface with.
    Hence, ideally that table would look like this:
    B
    E
    F
    and not like this:
    (blank)
    B
    (blank)
    (blank)
    E
    F
    The goal is to then allow the user to select some or all of those available options (using check boxes in the next column). For what its worth, there's actually already a column before the string column that is a simple enumeration of rows; it's occurred to me that multiplying the "available" column by the enumeration will give a unique number for each available option and the same number, 0, for each unavailable option.
    I really appreciate any advice you could give me!
    Thanks!

    Tstedman,
    You have to remember that checkboxes are just a pretty way of stating TRUE or FALSE. There is no mechanism other than to click on them to change them. They are not controlled by formula.
    Knowing nothing about how you are using the checkbox in you tables, the following is offered as a possible workaround. In this scenario you may change the checkbox setting in table 1 and the change will be reflected in Table 2. But the down side is that the reverse will not work and that a check "mark",not a check "box", appears in Table 2. Column B of Table 2 contains the formula:
    =IF(ISBLANK(A2),"",IF(LOOKUP(ROW()-1,Table 1 :: C,Table 1 :: D),"√",""))
    If this works for you, Great! If not, others may come up with a different workaround. The checkbox can be useful in cases where formulas in other cells refer to it ... but, it cannot refer to other cells.
    pw

  • Order list from purchasing list item

    Hi All Retail expert,
    I have created purchasing list item. Now when i am releasing purchasing list thru wrfapc12, no order list created . only message comes ..please purchase list .
    Kindly suggest. I am really stuck where i am missing.
    With Thanks & Regards,
    Santosh

    Hi Kewin,
    Thanks for your replay.
    Yes. i am releasing pourchasing list in wrfapco2.
    afterthat when i am using wrfapc12 to create order list,below message is coming--
    There is no purchase list in selection.
    Kindly suggest.
    With Regards,
    Santosh

  • PHP-substract array from other array

    That should be simple, yet I can't find a simple solution...
    I have two multidimensional arrays, for example:
    FIRST ARRAY:
    Array
    [0] => Array
    [0] => Ring
    [1] => 20.00
    [1] => Array
    [0] => Bracelet
    [1] => 75.00
    [2] => Array
    [0] => Bracelet
    [1] => 75.00
    and SECOND ARRAY:
    Array
    [0] => Array
    [0] => Bracelet
    [1] => 75.00
    Note that in the first array, [1] and [2] are the same, and
    in the second array, [0] is equivalent
    to both [1] and [2] in the first array.
    Basically I want to SUBSTRACT second array from first array,
    regadless of key order, that is, i want
    to remove ONE
    [0] => Bracelet
    [1] => 75.00
    from first array.
    So that the resulting array will be:
    Array
    [0] => Array
    [0] => Ring
    [1] => 20.00
    [1] => Array
    [0] => Bracelet
    [1] => 75.00
    I have looked the array functions at php.net, but I have not
    seen a function that does that, or did
    not realize i saw it if i did.
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    An Ingenious WebSite Builder:
    http://sitelander.com

    ok i did what i wanted it with a foreach loop and a little
    trickery...
    still curious to know if there is a one-line ready-made php
    function for that though...
    (_seb_) wrote:
    > That should be simple, yet I can't find a simple
    solution...
    >
    > I have two multidimensional arrays, for example:
    >
    > FIRST ARRAY:
    > Array
    > (
    > [0] => Array
    > (
    > [0] => Ring
    > [1] => 20.00
    > )
    >
    > [1] => Array
    > (
    > [0] => Bracelet
    > [1] => 75.00
    > )
    > [2] => Array
    > (
    > [0] => Bracelet
    > [1] => 75.00
    > )
    > )
    >
    > and SECOND ARRAY:
    > Array
    > (
    > [0] => Array
    > (
    > [0] => Bracelet
    > [1] => 75.00
    > )
    >
    > )
    >
    > Note that in the first array, [1] and [2] are the same,
    and in the
    > second array, [0] is equivalent to both [1] and [2] in
    the first array.
    >
    > Basically I want to SUBSTRACT second array from first
    array, regadless
    > of key order, that is, i want to remove ONE
    >
    > [0] => Bracelet
    > [1] => 75.00
    >
    > from first array.
    >
    > So that the resulting array will be:
    >
    > Array
    > (
    > [0] => Array
    > (
    > [0] => Ring
    > [1] => 20.00
    > )
    >
    > [1] => Array
    > (
    > [0] => Bracelet
    > [1] => 75.00
    > )
    > )
    >
    > I have looked the array functions at php.net, but I have
    not seen a
    > function that does that, or did not realize i saw it if
    i did.
    >
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    An Ingenious WebSite Builder:
    http://sitelander.com

  • How to move items from one list to other

    hi all,
    in jsp page i have twolist boxes. i want to move item from one list to other list on click of add or move button. can u plz suggest me an answer for the above. thank u
    Regards sangeet

    This link should help. Remove from one list and add to the other using Javascript.
    http://www.mredkj.com/tutorials/tutorial006.html

  • Call list from Campaign

    How can you create call list from Campaign for a selected target group ? Can anyone help me in this.

    Hi ,
    To generate a call list from the campaign all you need to do is to create your campign and then choose the send target group to channel option the call list will get generated. Please refer the campaign execution link for detials
    http://help.sap.com/saphelp_crm50/helpdata/en/4e/ac6f422f91c153e10000000a1550b0/frameset.htm
    Regards,
    Anita

  • Is there an easy way of creating a distribution list from an email with multiple addresses? Those addresses are not in your contacts already, and don't need to be.

    I want to be able to take all the email addresses someone else has used to distribute an email and create the same distribution list for myself for future use.  I don't want to add all those people to anywhere in my contacts list.  I just want them to be in my "new distribution list", like "soccer families", etc.  I tried to copy and paste, but didn't get anywhere. Maybe I was close, or maybe it isn't possible.  Thoughts?

    Ed on iPad wrote:
    I don't want them in contacts because they are simply a related group (like my sons current soccer team).  People I may never need to email again after a sports season.  I don't want to have to have these people in my contacts permanently. 
    You don't. When the season is over, delete them.
    But, the text clipping should work.
    The next IOS should have a feature "create mailing list from distribution list".  A fast and simple way to retain a distribution list from an email you received.  People get copied all the time using distribution lists they may want to reuse easily, like school, sports or work groups.  Oh well.
    How is that any different from adding them to Contacts? Here's the feedback page: http://www.apple.com/feedback/
    There is a set of Mail Scripts that has a function to Add Addresses from an email to any group. But, it doesn't work with Mountain Lion.

  • How can I create a list from the e-mail addresses "To:" field of an e-mail?

    Is there a way to automatically create a mailing list from a list of people who have received an e-mail? I know how to create a list manually, but there are a lot of e-mail addresses, so this would be an incredibly tedious process.
    Thanks!

    https://getsatisfaction.com/mozilla_messaging/topics/how_to_create_a_mailing_list_from_a_list_of_email_recipients
    Install the add-on and right-click any recipient in the To: field in the Header Pane.

Maybe you are looking for