Show/hide items in list component possible?

Hi all,
I'm quite a newbie in Flash, and more so in components.
Currently, I'm working on a project that works in this way:
I've got a combo box with 5 items, and a list with 10 items. The
combo box works like a filter and when selected on an item, the
list should only show items pertaining to the selection. For eg, my
5 items in the combo box are the alphabets A,B,C,D,E. My 50 items
in the list are some country names. So when "C" in the combo box is
selected, the list should display countries starting with C, like
Canada, China, and so on..
Let's say my indexes for C in the list are 10-15, is it
possible to hide items with index 0-9, and 16-49? I tried searching
but it seems there isn't a show/hide function for list
components.

quote:
Originally posted by:
NedWebs
What you can probably do is rewrite the list each time a
combo box selection is made. Have the full list as an array, so
that when a combo box selection is made, its change function clears
the list and then rewrites it based on matching the combo box label
to the first character of each array element.
Thanks, your comments helped!

Similar Messages

  • Cannot get more than 8 item in list component

    Hi,
    I can't get more than 8 items in list component using getItemAt(), it returns null. I will search more for this but no result.
    Please Help me here to move to next step.
    Thanks
    Sureshkumar G

    If you're asking if you can overall, yes you can:
    http://help.adobe.com/en_US/as3/components/WS5b3ccc516d4fbf351e63e3d118a9c65b32-7f41.html
    If you're asking if you can do this in the same context, off-screen, no you still get the same error as the .enabled property.
    I hate to throw a hunch but I feel as though Adobe is employing something I'm used to in native iOS programming (Apple Devices). In lists they have something called "dequeue". It's the reason an extremely long list scrolls smoothly. What it does is render ONLY the rows that are in view. When a row is about to scroll off view it deallocates it from memory and then recreates the next row. They do this so you only ever have the current amount of viewable rows in memory and it speeds up scrolling. Although, I can make property changes to items in an iOS list that's off-screen so they don't have this issue ;(.  Just food for thought.
    I'd submit it to the bugbase and see what Adobe states. They may say they intend you to get the item in view, alter it and then go back to your previous position. That would be silly but at most I can tell you I definitely get errors trying to access an element outside my view. They're probably not used to items needing visual toggles when you can't even see them.
    edit:
    On a further note I tried the scrollToIndex() method, tried to disable, that much worked fine. The second I then scrolled back to the previously selected index the list screwed up.
    I even daisy chained functions a second apart (30 frames worth of wait). I scrolled down and that worked so I waited 1 second. I disabled the visible item I wanted to and that worked so I waited another second. I scrollToIndex(0) to get back to the top of the list, the list blew up. Random items (several items) were disabled and the one that I explicitly disabled was enabled.

  • Show/hide item not working

    Hi,
    I've designed a relatively detailed survey with multiple show/hide items, and all of a sudden they're not working despite all of the show/hide criteria being correct. Items are being shown for no reason.
    Can someone help me?
    Thanks.

    After looking at the form I have concluded that the show/hide logic is inverted.  You have fields set to be hidden if the answer to a drop down is  not 0%. The problem is that the default value of the field is null, not 0%.  The condition is met, so the fields are displayed.  The fix is to switch the show/hide logic to Show is the answer is 5%, 10%, 15% etc.
    Jeff Canepa
    Software Quality Engineer
    Adobe Systems, Inc.
    [email protected]

  • JavaScript Show Hide Items (Shuttle) (Denes Kubicek)

    Hello
    I was looking at a great example from Denes Kubicek on this link (http://htmldb.oracle.com/pls/otn/f?p=31517:129:495210338999346::NO:::) Guest Apex_demo and have managed to get it to work.
    However, I would like to show/hide a shuttle item. Any ideas how I could achieve this? It only seems to hide the selected values part of the shuttle and not the buttons/LOV.
    Thank you in advance

    Hello,
    In case of a shuttle item you need to use a label with ID, and use that ID as the parameter to the $x_HideItemRow() or $x_ShowItemRow().
    The following post describe how to create a proper template for that purpose: Re: Hide and show item as per the value of select list .
    Regards,
    Arie.

  • Highlighted default item in list component???

    I can't seem to find how to have an item in a list component
    highlighted by default. I'm sure its right there in the docs
    staring me down, but I dont see it.
    I've found scrollToIndex method, but that doesnt seem to
    actually highlight the index item. How do I highlight an index item
    in a list in as3?
    Thanks,
    Matt

    Oh, I forgot to mention that I am using ActionScript 3.

  • Scroll one item in List component

    Hello!
    I use List component for song list in my flash music player. Everything works ok except for one problem - when the name of the song is too long, user can't read the full name of the song. One solution would be to use the horizontal scroll bar, but I have a better solution on mind: would like the current song automatically scroll (go around like in mp3 players). I guess I have to get current song's DisplayObject, to change it's x coordinate, but how? Maybe there are other solutions?
    Thanks in advance,
    elvman

    Oh, I forgot to mention that I am using ActionScript 3.

  • Removing items from List Component

    Below is a function set that's used to get info from an XML
    source(s) and populate a List Component (videoList). Works great.
    The second function loads data from a separate XML source and
    populates the SAME List Component. When the second function is
    called it loads the data in addition to the existing data into the
    List Component. I want it to REPLACE the data. How would I
    accomplish this?
    public function getXMLdata(event:Event):void {
    var campXML:XML = new XML(xmlLoader.data);
    var vid:XML;
    for each(vid in campXML.vid) {
    videoList.addItem({label:vid.attribute("desc").toXMLString(),
    data:vid.attribute("src").toXMLString(),
    text:vid.attribute("text").toXMLString()});;
    videoList.selectedIndex = 0;
    videoList.addEventListener(Event.CHANGE, playnewvid);
    FLVPlayer.source = videoList.selectedItem.data;
    FLVPlayer.pause();
    clipText.text = videoList.selectedItem.text;
    public function getXMLdata2(event:Event):void {
    var nflXML:XML = new XML(xmlLoader2.data);
    var vid:XML;
    for each(vid in nflXML.vid) {
    videoList.addItem({label:vid.attribute("desc").toXMLString(),
    data:vid.attribute("src").toXMLString(),
    text:vid.attribute("text").toXMLString()});;
    videoList.selectedIndex = 0;
    videoList.addEventListener(Event.CHANGE, playnewvid);
    FLVPlayer.source = videoList.selectedItem.data;
    FLVPlayer.pause();
    clipText.text = videoList.selectedItem.text;
    }

    That took 2 minutes! Works like a charm Manno. Thank you for
    your response.
    For those curious, here's the solution:
    public function getXMLdata(event:MouseEvent):void {
    videoList.removeAll();
    var campXML:XML = new XML(xmlLoader.data);
    var vid:XML;
    for each(vid in campXML.vid) {
    videoList.addItem({label:vid.attribute("desc").toXMLString(),
    data:vid.attribute("src").toXMLString(),
    text:vid.attribute("text").toXMLString()});;
    videoList.selectedIndex = 0;
    videoList.addEventListener(Event.CHANGE, playnewvid);
    FLVPlayer.source = videoList.selectedItem.data;
    FLVPlayer.pause();
    clipText.text = videoList.selectedItem.text;
    public function getXMLdata2(event:MouseEvent):void {
    videoList.removeAll();
    var nflXML:XML = new XML(xmlLoader2.data);
    var vid:XML;
    for each(vid in nflXML.vid) {
    videoList.addItem({label:vid.attribute("desc").toXMLString(),
    data:vid.attribute("src").toXMLString(),
    text:vid.attribute("text").toXMLString()});;
    videoList.selectedIndex = 0;
    videoList.addEventListener(Event.CHANGE, playnewvid);
    FLVPlayer.source = videoList.selectedItem.data;
    FLVPlayer.pause();
    clipText.text = videoList.selectedItem.text;
    }

  • POST all items from list component

    I've got an "List-component". Within this component I have an
    x amounth of data-values liked to a "label". I would like to POST
    those data-values to my server (in this case PHP, but thats not
    important). I would like to do this together with
    "TextInput-component".
    To be clear. I don't want to post just the selected values,
    but all de values in the List-component. Who can help me?

    Loop over the dataProvider, and build whatever data transport
    structure you like, then POST that.
    I am partial to XML.

  • Show/Hide Regions using list (Button List Template)

    Hi,
    I have a page on which i'm using list (Button list - Template). Below lists, I have multiple form regions. When a user opens that page, all regions should be visible and the focus should be on 'Show All' list. However, Region 'Terms' should only be visible when list 'Terms' is selected. The same functionality should apply to other regions and lists. I have seen that Oracle has used a similar functionality when an Item on a page is clicked or opened.
    Does anybody know how to do it?

    I'm trying to use the hide/show region in the posting to hide a button region when I click the button.
    When I click my button it calls SubmitCmd(sCmd) and hits the alert popup "Here we go!" but then all the AJAX inserts happen and THEN the region hides.
    I guess the alert is Async and the $x_Hide(l_Item); is not or something like that??
    How can I hide the region and then process the rest with the same button click?
    Or how can I hide just a normal button when I click it.. same thing though, need to do it before processing of AJAX inserts.
    function SubmitCmd(sCmd){
    var lQuesID;
    var elmName;
    var elm;
    lcontinue = true;
    showMessage('');
    alert('Here we go!');
    $x_Hide(l_Item);
    var lAdtUseID =html_GetElement('P3_AUDIT_USE_ID').value;
    etc.. a bunch of AJAX inserts, etc..

  • APEX4: Is it possible to show/hide a field on form based on Radio selection

    Hi,
    On a form, I've a radio group (with two values) and two select list. Based on the selection in radio group, I want to show/hide the select list.
    Like, when the user clicks Radio Group Value - RG_A, SL_A has to be visible, and when user clicks Radio Group Value - RG_G, SL_B has to be visible.
    Is this possible in APEX 4? How can I do it?
    Thanks for the help.
    --Hozy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    Yes, you can do it using Dynamic Actions.
    See this thread as well. APEX4: Populating fields from database based on the SelectList value
    In Radio Group you will need to identify the button clicked from its ID and / or value. Thats because the Radio Group Item creates as many IDs / Items as there are options P1_ITEM_0, P1_ITEM1_1, etc.
    Regards,

  • ISearchComponent Show/Hide Options

    Hi all,
    I have created my own Search component, I have put it in new Search Component Set with standard_search_input component and now I want to display my component only after "Show Options" is clicked. Now I can see it always, independently on Show/Hide Option.
    Is it possible?
    Thanks,
    Iva

    Hi Iva,
    here a coding example for how to retrieve the 'show otions info' within method 'setSearchParamsMap':
    Get back the interchange map from parent search dialog control.
    Relevant information can be read out (eg. display of options state).
    @see com.sapportals.wcm.control.util.search.ISearchComponent#setSearchParamsMap(com.sapportals.wcm.control.util.search.SearchParamsMap)
      public void setSearchParamsMap(SearchParamsMap map) {
        // info about just searched
        if (map.containsKey(SearchParamConst.PARAM_JUST_SEARCHED)) {
          // search hast just been executed, might be helpfull to know
          boolean justSearched = ((Boolean)map.get(SearchParamConst.PARAM_JUST_SEARCHED)).booleanValue();
        // advanced mode
        if (map.containsKey(SearchParamConst.PARAM_DISPLAY_SEARCH_OPTIONS)) {
          // flag that states if search options are display or not
          boolean advanced = ((Boolean)map.get(SearchParamConst.PARAM_DISPLAY_SEARCH_OPTIONS)).booleanValue();
          this.persMap.put("CBX",new Boolean(advanced).toString());
    This is also in the "Developing a Search Component for KM Search iView"  example of Thilo Brandt:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/41cbcb56-0701-0010-43b4-fbc138ea2b6a
    Regards Matthias Röbig-Landau

  • Recent Items in custom component.

    Hi Experts,
    Please provide me the necessary steps for showing  Recent Items in custom component.
    Thanks and Regards
      Raja

    Hi Raja
    Please refer the link:
    [Recent items - Tips to Customize |http://wiki.sdn.sap.com/wiki/display/CRM/Recentitems-Tipsto+Customize]
    This will help you.
    Regards
    Leon

  • Remove "(More Links...)" from List View Webpart if the list view shows all items

    Hi, I currently have 5 links lists out of which 4 links lists have around 30 odd list items and the rest 1 have just 3 list items. All of this links list are added as ListViewWebPart on a wiki page. All these listview web parts are configured for "Summary
    Toolbar"  and show all the items within the list. 
    My question is, even if the listview web parts are configured to show "All Items" why is it that the ListViewWebPart shows "More Links" on the bottom of the web parts? Is there any OOB way to remove it. I don't want to customize using SPD nor i want to export
    web parts. 
    Thanks, Mayur Joshi

    This, right here, is an example of one of the most annoying things about Microsoft. On the one hand, Microsoft keeps pushing code-free solutions; they want to make it easier and easier for "Content Managers" to manage their own SharePoint sites, Excel spreadsheets,
    etc. etc. without having to bother developers. I am with them on this, to a point. However, they also want to HARD-CODE their options so you HAVE TO USE an OOTB solution to hide it! What is wrong with letting us change the settings of the Web Part, or the
    View, to turn off "More Links"? Why do I have to go to JQuery, or SharePoint Designer? WHY??? Give us an OOTB solution for things like this!
    UPDATE: Here is a fix, but it does require CSS. Add a Content Editor Web Part with this code. The (More Links...) and (More Announcements...) tags both use the id "onetidMoreAnn". You can then export the CEWB as a Web Part and drop it on every page. 
    Again, I would like an OOTB solution, but this will have to do.
    <style>
    #onetidMoreAnn
    DISPLAY: none
    </style>

  • Items on ipod that do not show up on Device list, want to remove them

    A pod cast and a video I downloaded from itunes and copied to my ipod are on my ipod but when I connect the ipod they do not show up on the lists of items on the device. I can see and play them on the ipod, but cannot find them on the list of items on the ipod when I connect to itunes...
    I want to remove them and can't
    baffled....

    They should be able to help you. You must have the iPod set to manually managed. Podcasts generally work best when set to auto-sync.
    To find these files it is easiest to create a smart playlist on the iPod itself with the right rules to find the files while it is set to manually manage. To delete files through a smart playlist you will need to hold the "Alt" key on the keyboard then hit the Delete key. Atl/Delete is for Mac but may be a combination of Delete and Shift, Control, or Windows key on Windows PCs.

  • How to show all items in the reading list? I think this option has been removed in Safari Version 7.0.2

    How to show all items in the reading list? I think this option has been removed in Safari Version 7.0.2

    Thanks. That solved it. I had my doubts since I wasn't concerned about my lost bookmarks. I was concerned about the broken functionality. In any event, restoring from a backup solved both the functionality and the lost bookmarks. I appreciate the response!

Maybe you are looking for

  • Transparent smoke text after effects CS5.5

    Hello all, Need some help here.  I'm sure this has been asked but as you search there's a million posts that come up and to read through all is, lets just say time consuming.  I wish I had more time to learn AE but I've been working with tutorials un

  • Unable to login to AppsLogin.jsp page.

    Hi group, I have just completed a migration of the database from 32 bits to 64 bits in a Windows 2003 environment, after that I am trying to login to the Application, but I am unable to do that (Just a blanck page is displayed). F:\ORAEBS_APPS\inst\a

  • Write to text file problem

    I have a write to 'text file' in a sub vi. It is a popup where user can change his program. For some reason, only the first time it is called, it actually writes to the text file. As long as the sub vi is in memory, and I call it again and press ok t

  • HAS ANYONE ELSE NOTICED THIS WITH MAVERICKS

    I can't help but notice since I loaded Mavericks, that my Mac is running way too much. It runs and rattles away like I'm calculating the postion of each star in the galaxie. I have never heard it work so hard, and It's not even doing anything. It's l

  • Creating Query view

    Hi All, Can you please help me to provide some document related to creating the Query View. Also how can we apply security to Query view. Thanks vishal