Preventing entry duplication in string

Hello, I have a page of checkboxes.
When each checkbox is clicked I want a unique value entered
into a string. The string should build up as multiple checkboxes
are clicked (the string wil then be submitted to coldfusion for a
database search).
I set up the below, however the "+=" operator duplicates
previous string entries. How can I overcome this duplication ?
...or perhaps I have gone about the wrong way to perform this
Thanks in advance for any help.
RELEVANT CODE SEGMENT:
var selections:String = "";
myCheckboxListener.click = function() {
if (checkbox1.selected) {
selections += "tanks";
if (checkbox2.selected) {
selections += "aircraft";
submitbutton.onRelease = function (){
trace (selections);
}

thank you kindly for helping.
My SWF search page has 30 checkboxes representing photo
categories.
I want to submit a selection of photo category keywords to
coldfusion that will be used to dynamically generate a photo
gallery based on the users checkbox selections.
I thought that coldfusion could accept multiple database
search keywords in a single string ? (perhaps seperated by
commas)

Similar Messages

  • How to prevent number duplication in Java.

    How do i prevent number duplication in this program. Basically so that i don't have to enter the same number again
    here's the code:
    import java.awt.*;
    import hsa.Console;
    public class BubbleSort_Strings
        static Console c;           // The output console
        public static void main (String[] args)
            c = new Console ();
            c.println ("\t\t\tIPOD Downloads\n\n");
            c.print ("Enter the number of songs: ");
            int max = c.readInt ();
            c.println ();
            String song[] = new String [max];
            String tempSong;
            for (int i = 0 ; i <= max - 1 ; i = i + 1)
                c.print ("Enter the name of song " + (i + 1) + ": ");
                song = c.readLine ();
    c.println ();
    } //end for i
    //sort the song names in the array alphabetically
    for (int x = 0 ; x < max - 1 ; x++)
    for (int y = x + 1 ; y < max ; y++)
    if (song [x].compareTo (song [y]) > 0)
    tempSong = song [x];
    song [x] = song [y];
    song [y] = tempSong;
    } //end if
    } //end for y
    } //end for x
    c.println ("Your songs have now been sorted:");
    c.println ();
    for (int z = 0 ; z <= max - 1 ; z = z + 1)
    c.println (song [z]);
    } //end for z
    } // main method
    } // BubbleSort_Strings class

    here how about this:
    // The "BubbleSort_Numbers" class.
    import java.awt.*;
    import hsa.Console;
    public class BubbleSort_Numbers
        static Console c;           // The output console
        public static void main (String[] args)
            c = new Console ();
            c.print ("Enter the number of items: ");
            int max = c.readInt();
            int item[] = new int [max];
            int temp;
            for (int i = 0 ; i <= max - 1 ; i = i + 1)
                c.print ("Enter a number for the array: ");
                item = c.readInt ();
    } //end for i
    for (int x = 0 ; x < max - 1 ; x++)
    for (int y = x + 1 ; y < max ; y++)
    if (item [x] < item [y])
    temp = item [x];
    item [x] = item [y];
    item [y] = temp;
    } //end if
    } //end for y
    } //end for x
    c.println ("The numbers have been sorted.");
    for (int z = 0 ; z <= max - 1 ; z = z + 1)
    c.println (item [z]);
    } //end for z
    } // main method
    } // BubbleSort_Numbers class

  • Preventing IDoc duplication

    Hi,
    Not sure if this question applies to this forum or if it applies to application server issue but we have 1 receiver SAP ECC and 2 SAP ECC senders of same IDocs because we have connected 2 different systems having same data for test purposes. When both the sender systems send the same data and post as IDoc in receiver system, it causes duplication of IDocs with double records. We are using XI as the middle component between the sending and receiving systems.
    My question is, is there any way to prevent this from duplicating the IDocs in receiving system? or What is the best way or how to prevent this duplication of IDocs? Is there a standard function module or BAPI to do this check? Or is there any way to prevent this in XI or sending systems? Does anyone have any other ideas that has worked in this situation?
    Thanks,
    Sangita

    >
    Sangita S wrote:
    > Hi,
    >
    > Not sure if this question applies to this forum or if it applies to application server issue but we have 1 receiver SAP ECC and 2 SAP ECC senders of same IDocs because we have connected 2 different systems having same data for test purposes. When both the sender systems send the same data and post as IDoc in receiver system, it causes duplication of IDocs with double records. We are using XI as the middle component between the sending and receiving systems.
    >
    > My question is, is there any way to prevent this from duplicating the IDocs in receiving system? or What is the best way or how to prevent this duplication of IDocs? Is there a standard function module or BAPI to do this check? Or is there any way to prevent this in XI or sending systems? Does anyone have any other ideas that has worked in this situation?
    >
    > Thanks,
    > Sangita
    OK , let me sum up your case ,
    You have 2 sender systems , which sends the IDOCS
    you have 1 receiver system , which receives the IDOC via XI.
    Now due to some reason both sender system creates exactly the same IDOC ( which may be correct from technology point of view ) but I do not see valid business reason for that, anyway it seems just an odd scenario , but the issue is you want to filter out of those 2 similar IDOCS only 1 should go to Target system.
    If my understanding is correct of above scenario, XI will not be able to distinguish between these 2 IDOCS as duplicate,unless
    You use BPM to collect the IDOCs and remove duplicates before pushing it to Receiver system. This solution may seem too much of a work which is just bcos of testing systems.
    So easiest way would be to remove the business reason as why both system are triggering the IDOCs or they may be completely valid.
    Thanks,

  • I got problem on installing iTunes. When I clicked iTunes out, two windows popped out. One said the procedure entry point CFAttributed String Create Mutable could not be located in the dynamic link library Core Foundation.dll.

    I got problem on installing iTunes. When I clicked iTunes out, two windows popped out. One said the procedure entry point CFAttributed String Create Mutable could not be located in the dynamic link library Core Foundation.dll. and one just said *Itunes was not installed correctly.  Please re install I Tunes Error 7 (windows error 127) . I've tried uninstalling and reinstalling it. But either way cant work. I really need some of your help! PLS HELP ME!

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The error shares a similar pattern to that in the third box, so a similar approach should work. Look for CoreFoundation.dll in C:\Program Files (x86)\Common Files\Apple\Apple Application Support, delete it, then repair Apple Application Support.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • How can I prevent my previous login strings from showing when I starting typing. I'd rather the field stay blank and not start to fill in, based on previous entries.

    I don't know what setting to change so that when I start typing my login (to an email account, etc), the previous entries do not show up. I want the field to start out and stay blank, and have me type the whoe string
    == This happened ==
    Every time Firefox opened
    == has been, all along

    Clear the Search and Form History, under Tools > Clear Recent History.
    And, then turn off the Search and Form History so it won't save it anymore, in Tools > Options >> Privacy - select ''Use custom settings for history'', then un-select Search and Form History

  • Backup assistant entry duplication

         The Backup Assistant app appears to be psychotic.  Regardless of the type of phone (this has happened on three different ones), backing up keeps duplicating the whole Contact list!  What good is a database manager (what BA is) if it cannot recognize when two instances of an item are the same?  I cannot spend my time deleting 4, 5, and 6 copies of the same contact from online.  If I try, it just keeps duplicating them.  I have found no solution for this bug, nor any comments about it happening to others.

        I want to help ensure you get the most out of Backup Assistant Skirbanr! I'm sorry to hear of your difficulties. What make and model is your current device? Backup Assistant is designed to backup your entire contact list. When new entries are added, it will back them up; however, it will also continue to backup the existing entries. Are you only seeing the duplication online? Have you tried just using the app on the phone itself to add new entries and completing the backup? Are the contacts duplicated on the phone as well?
    JonathanK_VZW
    VZW Support
    Follow Us on Twitter@VZWSupport

  • Calendar Entry Duplication

    I am so confused about using iCloud to have my calendar across my iphone and ipad.  I have set them both up with Calendar on iCloud but keep getting duplicate entries.  The first time it happened I went and removed all the entries and they were both perfect.  2 days later I have duplicate entries again, I hadn't made any changes in the Calendar.  I am only using the Calendar on my iphone (so not Outlook or iCal).  Please help me - I can't keep deleting them every couple of days.

    Hello, I wasn't even aware there was a site for this (bit behind the times) but I have logged on and initially it had numerous entries but it has now updated to reflect only one of each which reflects what's on my iphone & ipad.  I had deleted all the duplicates out of my iphone last night and they haven't come back today so maybe just maybe they'll stay away. Thanks

  • Calendar entry duplication on device

    I have had my Tour for 3 months and this issue has just come up in the last couple of days.  I use Outlook 2007 for my calendar and one of my email accounts (the other 3 are Yahoo accounts and a Blackberry account).  When synchronizing my Outlook recently, I found that a duplicate appeared in my Blackberry calendar.  The next day when synchronizing and second duplicate appeared.  The same happened on the 3rd day.  Any thoughts on how to remove the duplicate entries? 

    Hello, I wasn't even aware there was a site for this (bit behind the times) but I have logged on and initially it had numerous entries but it has now updated to reflect only one of each which reflects what's on my iphone & ipad.  I had deleted all the duplicates out of my iphone last night and they haven't come back today so maybe just maybe they'll stay away. Thanks

  • Preventing photo duplication?

    Can someone please tell me how I can insert photos into a site in CS4 but make it so nobody can copy and paste the photo elsewhere?  I am starting a photography web site and want to ensure the photos can't be duplicated.  Thanks for your time.

    If it shows in a browser - it can be captured. So forget about preventing any and all image downloads becuase that's how the web works - a browser sends a request to a server, the server sends back the HTML/CSS/images and other media, the browser puts it together and renders it to the user and thus the images are actually downloaded to that machine!
    But there are some things that you can do to leave your mark on your work:
    Photoshop a watermark on all your photos - relatively easy to do, can be difficult to remove, may mar your pretty photos.
    Use Flash to present your photos - harder to do, can build in features like super high resolution images with zoom capabilities, screen captures only get a screen-resolution quality image, however Flash movies can be decompiled...
    Just live with the fact that this is the way the web works, enjoy your creative life and make great photos (this can work with either option 1 or 2 or even by itself)
    Of course there's the perfectly fine option of not showing your work online...

  • System change option prevents entry in QS41

    Respect Guru,
    in our production system System change options in
    Se06 is set as not modifiable, further client is closed.
    Client role set is Production.
    We are unable to edit entries in QS41, but we edited enties earlier with the same settings mentioned earlier.
    Please help us in this regard.

    Thank you Paul,
    you are right paul, i did changes as per your suggestion.
    Things worked out in Proudction server.
    Thanks and regards,
    Daya.
    Mohan raised this forum for me. Further i am not able to award points for you.
    Please suggest

  • Search log file line entry (date and string)

    I use powershell 4 and I need to search from a text file if it has a line that contains a date like this '2014-02-12' AND the same line contains some text string like
    'execution successful', that line contains something else but those are the important things. I am a bit lost, I managed to parse it with select-string and split commands but it comes quite ugly and long code. Can I just use regex, something
    like this:
     select-string -Pattern '(2014-02-12)(execution successful)' -Path $myfile
    I want a single line output and then I make an IF sentence that checks if it exists and if it does not, then I create an email alert.

    Hi,
    Here's one possibility:
    $strFound = $false
    $dateStr = '2014-02-12'
    $searchStr = 'execution successful'
    Get-Content .\inputFile.txt | ForEach {
    if ($_.Contains($dateStr) -and $_.Contains($searchStr)) { Write-Host "Found - $_" ; $strFound = $true }
    If ($strFound -eq $false) { Send-MailMessage }
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • Calendar entry duplication problem

    Using E72 and latest version of OVI Suite. When syncing' my phone wirelessly with the laptop, (running Outlook 2010),  I end up with duplicate calendar entries on the laptop. Needless to say I have checked settings and cannot figure out why this should be happening. Does anyone know why this might be happening?
    Many thanks

    Have you tried this issue in the latest Nokia Ovi Suite version i.e 3.1.0.86, if not then please download from www.nokia.com/ovisuite
    Please THANK me by clicking on the ****WHITE STAR** ( Giving KUDOS) the big GREEN BOX to your LEFT .
    It will help me to serve you better !!!!!
    Thanking You

  • Calendar entry duplication when trying to copy

    When trying to copy a calendar entry pressing thу Option key, i get three copies of the entry. Any ideas how to fix this?
    Before copying:
    After:

    You are having sync issues with your capture?
    How are you doing the capture?
    MtD

  • Preventing entry into the Cost Center field during PO creation

    I need to ensure that the Cost Center assigned in a PR (with Account Assignment) cannot be changed when creating a PO with reference to the PR. Can anyone tell me how to restrict the Cost Center field in the PO document type to 'display' only?
    Thanks
    Akin

    I think it can be acheived making the Cost center display in the paticular movement type  using program RM07CUFA  ( in Tcode SE38 )
    best regards
    assign points if useful

  • Prevent entry of negative number in input ready field

    Hello,
    In layout, in quantity input-ready fields, planner should not enter any negative number, if he tries to do so or by mistake, system should give error message.
    is this possible in BI-IP planning layout for input-ready fields ??
    thanks,

    Hi Jasmi;
    Sorry the late answer...
    Regarding your first question... you can built a function module to do the same. However, in this area I don't have ABAP knowhow to help you.
    There is no standard way to do it. This means definitions on the query or a formula.
    second question... in SE91 you had create a class message (like my example ZBI_IP) and a message number (in my example 004). Don't forget to add the text "no negative values allowed" to the message.
    I forgot to add (sorry again) the E of E004 means Error. If you want you can put W as warning. If Error the sequence of formulas stops. If Warning it continues (but it's better you double check).
    Reading the code...
    FOREACH ECON, FUND,PROJ.
    IF { YORCINIC, ECON, C_PL,NP_AC} < 0.
    MESSAGE E004(ZBI_IP).
    ENDIF.
    If I have a combination of ECON, FUND and PROJ for KF YORCINIC where the value is less than 0, the system presents the Error message 004 of the class message ZBI_IP.
    Tell me if this is good for you;
    Kind regards;
    Ricardo

Maybe you are looking for

  • When opening in filled PDF form, the data flashes and then blanks.  Adobe  Reader XI

    When opening in filled PDF form, the data flashes and then blanks.  Adobe  Reader XI I filled in this form with important data.  And saved it.  I have since opened it and printed it again.  Now when I open it the fields become blank  I can see them f

  • Crawler time issue

    Dear Experts, I have an issue regarding the custom crawler which I had created for the web repository. System Landscape - EP 2004s SP 14. I have created a custom crawler (System Admin -> System Config -> Knowledge Management -> Global Services -> Cra

  • Several inbound interfaces in intagrated configuration

    Hi all, I want to use an intagrated cnfiguration object for scenario with several inbound interfaces on a receiver side. As for now, I have a usual condition-based interface determination for my receiver system. I've studied all features of "Revceive

  • After effects CS3 crash when importing

    Hello First sorry for my bad English :x For few weeks, my AE CS3 crash when I import something: .avi .mov .jpg ... I can open .aep, make compositions or create solids but importation always crash AE :s I have already uninstall/install AE 10 times and

  • Tables used in Solution Manager

    Hi all, Please let me know the details of the tables used in SolMan. Thanks Anish