+ Reply to Thread
Results 1 to 5 of 5

Issue clearing previous selection

  1. #1
    Registered User
    Join Date
    10-18-2006
    Posts
    5

    (Resolved) Issue clearing previous selection

    I am having a small problem, that is giving me a headache

    I have a form with 2 comboboxes on it, the option appearing in the second being dependent on the selection from box 1.

    during the initial pass then no problems, and box two only shows the correct items, but if the user realises that they have chosen the wrong selection in box 1, then when displaying the avaialble options for box 2, it is showing the originals options (ie from the first selection) as well as the options for the new selection.

    How to clear the options from cache or memory when the user goes back to reselect an option from box 1

    As an example

    Box 1 has 2 selections being 1,2. Correct values for box two based on box 1 would be

    Box1 = 1 a,b,c,d
    Box2 = e,f,g,h

    when on the second pass then box2 would show a,b,c,d,e,f,g,h


    Thanks to all in advance
    Last edited by nmutimer; 10-25-2006 at 05:39 AM.

  2. #2
    Forum Contributor
    Join Date
    11-11-2005
    Posts
    267
    Timer,

    May be I am obtuse. Your problem wasn't very well sold to me and came across as a bit addled. Could you kindly post the code you have thus far, so what you are describing could be gleaned from it.
    HTH
    Myles

    ...constantly looking for the smoother pebble while the whole ocean of truth lies before me.

  3. #3
    Registered User
    Join Date
    10-18-2006
    Posts
    5
    Myles, sorry about the apparent lack of description, will try and make it clearer this time.

    There are two comboboxes on the form, the first control a series of zones, the second a series of places within each zone.

    On initially entering the form, if the user selects a zone, then the places box will only display the places within that zone, so far everything is ok.

    The user realises that they have selected the wrong zone, goes back to the zone box and selects the correct zone, but when entering the places box, then instead of seeing just the places existing wthin the new selected zone, they see the selection from both the first and the new zone choice.

    The available places form choice one are being left in cache or meory or whatever, they are not being discarded.

    Hope this makes it clearer for you, not sure how to post code here.

  4. #4
    Registered User
    Join Date
    10-18-2006
    Posts
    5
    Issue is resolved now, i just needed to set the control on the second combobox to .Clear when exiting the first combobox.

  5. #5
    Forum Contributor
    Join Date
    11-11-2005
    Posts
    267
    Many thanks Timer. Yor 2nd rendition of the problem is as lucid as it can get.
    I am glad the issue is resolved with CLEARING on exit. Sounds the right thing to do.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1