ADG custom sort and icons

I've got flat of data from AMFPHP as a collection of array of objects with properties such as

type
grade
day_number
Object
...

Some of the data is special, marked as a "Viper" (Adder = 1). The Adder must appear at the top of the list and have a specific icon (sign more or something). All other entries should be sorted alphabetically, under the Adder and have another icon (trash).

When the user clicks on the "adder", they revise their new entry, once completed, the entry is added to the list and the Adder is maintained. A similar behavior in powerpoint when creating bullets (a temporary entry waiting a tool for editing, when it exists, a new entry is created).

I read until I can't stand more... people talk about the custom item renders, subclassing etc. I understand that, however, I have no idea of what I need to do (what functions of overload) to achieve this behavior.

In addition, the data are grouped through a group collection, so that the user can navigate to a specific day, grade and then the class to add/change. Again, I would change the icons for folders according to their function.


In summary:
1. what should I do to customize the sorting of data in the ADG (first take an element of the kind and everything).
2. what should I do to change the icons of specific so that some icons will be trash and other nodes will be signs more.
3. what should I do to change the behavior of itemClick so that if the user clicks on an element with a recycle bin, the item is deleted, but not if the user clicks on an element with a sign more.
4. what should I do to change folder icon based on the item type and depth of the order of the day (so that each level has a different icon).

If it's simple, I apologize. Everything seems easy for people in flex, and yet I've worked dozens of hours on this stupid problem and can not solve. Flex could be great if I could understand this shit... Go to PHP! : o).

"MacGyverMan" wrote in message
News:gd0so7$2u5$1@forums. Macromedia.com...
> I've got flat of data from AMFPHP as a collection of array of objects
> with
> properties such as
>
> type
> grade
> day_number
> topic
> ...
>
> Some data is special, marked as a "Viper" (Adder = 1). The Adder
> must
> appears at the top of the list and have a specific icon (sign more or less)
(> something). All other entries should be sorted alphabetically under the
> Adder and
> have a different icon (trash).
>
> When the user clicks on the "adder", they are revising their new entry, on
> completion.
> the entry is added to the list and the Adder is maintained. A behavior
> similar
> to powerpoint when creating bullets (a temporary entrance waiting for a change, if)
> It
(> is one, a new entry is created).
>
> I read until I can't... do the people speak
> custom
> point renders, etc. the subclassing. I understand that, however, I have no idea
> what
> I do (what functions of overload) to achieve this behavior.
>
> In addition, the data are grouped through a group collection, so that the user can
> go to a specific day, grade and then the class to add/change. Again, I got
> as
> change the icons for folders according to their function.
>
>
> In summary:
> 1. What should I do to customize the sorting of data in the ADG (take an element
> out
(> sorting and put everything first).

According to me, is the only type of hierarchical Collection, you can do it with one
GroupingCollection. You will need to use a compareFunction on the Group
and/or GroupingField to always return-1 for that particular item.

> 2. What should I do to change the icons of specific end-nodes as well as some
> icons
> will be trash and some signs will be more.

Watch iconFunction.
http://livedocs.Adobe.com/Flex/3/langref/MX/controls/listclasses/AdvancedListBase.html#ICO nFunction

Despite what say the docs for AdvancedDataGrid, he _does_ support the
iconFunction property.

> 3. What should I do to change the itemClick behavior so that the user case
> click on
> an article with a trash can, the item is deleted but not if the user clicks
> a
> point with a sign more.

The ListEvent you get from itemClick will have a property called
currentTarget. If you look at currentTarget.data, it will be the
information on the entire line. Check what property you used in your
iconFunction show trash vs the sign, to the
different features.

> 4. What should I do to change based on the type of element folder icon and the
> article
> depth (so that each level has a different icon).

Look at the docs for groupIconFunction.
http://livedocs.Adobe.com/Flex/3/HTML/advdatagrid_06.html

> If it's simple, I apologize. Everything seems simple for people to
> flex,.
> and still I've worked dozens of hours on this stupid problem and cannot
> solve
> it. Flex could be great if I could understand this shit... Go to PHP!
> :o)

It all takes a long time to understand what is happening in Flex, but
Once you do, it's amazing :-).

I did an example with a GroupingCollection you can or can not find
useful, since I deliberately _not_ use it for an ADG.
http://flexdiary.blogspot.com/2008/09/GroupingCollection-example-featuring.html

I also have a demo here that shows using an iconFunction, although, once again, do not
with an ADG
http://flexdiary.blogspot.com/2008/08/TileList-with-stylefunction.html

HTH;

Amy

Tags: Flex

Similar Questions

  • Could someone tell me how to stop the folders and icons rearrange themselves

    Before I updated to El Capitan I could arrange the files on my desktop or in any folder in the finder, in order that, I opened I wanted and they would REMAIN THAT of the WAY. Now, folders and icons in the folders reorganize themselves, usually in alphabetical order, each time that I add, delete, or move something in a folder. This causes a serious pain for me and make my extremely inefficient workflow.

    I managed to stop the folders on my desk of reorganization by going to view > options > sort by selecting: None (thanks Mac forum) and I can do this in a folder if I want to rearrange things myself, but I seem to need to do this individually for every single folder and there is no guarantee that the next time I turn on my computer it will be always in that order. El Capitan before I could move my files manually on my desk and in a folder and if things got a little messy, or I wanted to start, I simply chose sort > by name and everything would be perfectly back to alphabetical, as a grid, on the right side of my screen, or in a grid at the top of a file. AND... If I wanted to manually move a folder or icon after sorting by name, I could still do it, without having to go to tri: No. Now, if I say sort: None, which seems to be the only way to manually sort the icons or folders, all of a sudden my own grid of files are everywhere in my office or mixed into a folder, unlike before where they would simply stay in a grid in alphabetical order, making it much easier to find things when manually reorganize. In my workflow, I need to be able to fix things and make them stay there, then, how do it works as before. Is could someone please tell me if there is a simple way to get things to work like they used to, when the only time where my files or icons arranged themselves was when I SAID to THEM, keeping in mind I'm not that computer, so if it's code, or go beyond the preferences or settings , you've lost me.

    Click on the desktop, command J > sort by none

  • Why the menu bookmarks will remain sorted after that you sort and close the page?

    Newly added Favorites go to the bottom of the list. The page will sort from A to Z when we click on the sort icon... When you leave the page to sort and go back in the newly added bookmarks back not sorted to the bottom of the page.

    See also:

    Via the menu displays in the library to sort only shows bookmarks in the chosen sort order and constantly changing them (from where the name of views of this menu).

    By clicking on the header did the same thing.

    If you want to sort the bookmarks then you must right-click on a folder and use "Sort by name" to sort this issue.
    You cannot sort the individual bookmarks, only one folder can be sorted like this.

  • Using pictures of Yosemite 1.0.1 I created a 400 photo album. I custom sort them. When I copy a USB to share with friends my custom sort is lost. Is it possible to maintain the current order of photo on a USB?

    Using pictures of Yosemite 1.0.1 I created a 400 photo album. I custom sort them. When I copy a USB to share with friends my custom sort is lost. Is it possible to maintain the current order of photo on a USB?

    Of course, not as the sorting, the viewer sees is defined by them not by you - given the same USB you can use the finder to display in alphabetical order, last updated order etc. size - files have no command - the viewer defines the order

    You can select Photos and export using a file for sequential access to export name so if the Viewer uses an alpha sort they correspond to your order desired - you can facilitate this, but they must define their queue viewer correctly for them to see it as you wish

    LN

  • Custom sort order - creation of new Collection

    I was reading this thread on the creation of a custom sort order - Lightroom - how do change you the order of Images, before you rename? Blog of "Julieanne Kost .

    I work with a collection that contains subfolders, so I selected all the images, then tried to create a new collection. But when I click on the file, I see a choice for a new catalog, but not a 'new Collection '. There is a choice to "save quick Collection.» But when I choose that option, I get an empty folder with the name I have given.

    So, how to create a collection?

    P.S. I noticed I have a lot of empty folders. Is this OK to delete all the? I imported a folder full of subfolders of images, and I'm guessing that subfolders are imported, but the images have been taken out of them.

    Thank you.

    Maybe you should watch this video before worrying about how to order customized your images. Lightroom CC - create custom images - YouTube Collections

  • Custom sort order when you export a catalog

    When I export files of catalog on an external drive, I lose my option "custom sort order".  On the PC when I select the drop-down list next to the "sort order" at the bottom of the screen of the grid 'Command' appears as an option.  However, when I open the catalog on the external hard drive and select the drop-down list next to the "sort order" at the bottom of the grid screen, 'Order' is NOT an option.

    How can I get it to appear as an option?

    I use Lightroom on PC with Windows 10 CC

    The folder structure has changed somehow in the exported catalog?

    ('Order' will not appear if two things are at work - 1) there is a subfolder under the folder the current images and 2) option is set on "display the Photos in folders under.

    (no other answer-sorry)

  • Fonts and icons in Photoshop still too weak in IPR systems high even with the last update!

    Come on Adobe! Autodesk, Google, Piriform, Microsoft, Corel Draw and many others have already set the question put on the scale in high resolution systems.

    Fonts and icons in the entire UI in Photoshop CC are still tiny after the last update, with the exception of drop-down menus. And the 200% scale in the experimental features that makes them too big. When are you going to fix this?

    Someone else knows how to fix this? I noticed there is a setting in preferences-> interface, there is an option to change the user interface fonts, it goes from small to big, but he does nothing...

    If you want to give your Adobe comments please use Adobe Feedback does site not this Photoshop family customer community forum

  • How to propagate a collection in Lightroom Mobile custom sort order?

    I've created several collections in Adobe Lightroom on my desktop in order to show people a few selected images on various subjects and themes on my mobile. I am adding images in the collections that I find in no particular order and then sorting in my desired order and groupings.

    Many of these images on my computer are not in order of date because they are scans of original film or digital photographs of old prints.  It would be difficult to assign an 'original' digital image date because many of these images are difficult to date, it is easier to drag the images in my order of preference.

    On my mobile devices (iPhone and iPad) images displayed in order of addition to the collection not my custom sort order. How can I make sure that the display on my mobile order is identical to the desktop computer please?

    Have you tried to change the options for sorting Lr Mobile to 'order '? -Guido

  • Lightroom Mobile does not recognize my custom sort order

    I can't find a way to get the Mobile with Lightroom app on my iPad to recognize the custom sort order in place for collection on my desk. I'm on the latest version of Lightroom and Lightroom Mobile. The only sorting option that appears in LR mobile is by capture time. The custom sort order is available for collection on the Abobe website, but not on the mobile application.

    You can change the type of sort when you touch the Capture plate. Tab so on time "capture" - label and you will see other sorting options as 'Date modified', 'command' etc.

    Hope that helps.

    -guido

  • The sum of total revenue for each customer unique and graphic it!

    Sunny greetings from Athens!  I walked for 5 hours for an elegant solution to the following:

    I want to add the total amount of revenue for each customer unique and graphic to view what customers bring in most of the species.

    Example of this in it:

    Customers Charged €
    A 100
    B 200
    C 250
    A 130
    A 120
    B 100

    Customers

    Total €
    A 350
    B 300
    C 250

    How this can be implemented by the numbers? As elegantly as possible?

    Hi menick,.

    SUMIF () will do the job.

    the formula in table 2::B2 =.

    SUMIF (table 1::A, A2, table 1::B)

    It is filled down.

    Quinn

  • This will remove all your custom settings and the settings of many extensions.

    Hello

    I was reading this article of knowledge and he says:
    "This will delete all your custom settings and many extensions settings."
    What are the custom settings?

    for example one of these and what else
    bookmarks?
    Add - ons?
    Top toolbar - Customize the toolbar
    Add on the toolbar
    Firefox/preferences
    Authorization Manager settings
    the new page open

    Corrupted preference file
    File preferences may be corrupt, Firefox prevents writing to it. If you delete this file, Firefox will automatically create another when it comes to.

    Here's how to delete the prefs.js file.

    This will remove all your custom settings and the settings of many extensions.
    Open your profile folder:

    In the menu bar, click the Help menu and select troubleshooting information. The troubleshooting information tab will open.

    In the section the Application databases, click view in the Finder. It will open a window with the folder of your profile.
    Note: If you are unable to open or use Firefox, follow the instructions for finding your profile without having to open Firefox.

    In the menu bar, click Firefox and select Quit Firefox

    Locate the prefs.js file (and, if applicable, the prefs.js.moztmp file).
    Delete these files and files prefs - n.js where n is a number (e.g. prefs - 2.js).
    If there is, remove the Invalidprefs.js.
    Restart Firefox. You should now have reset all preferences.

    Based on information from preferences not saved (mozillaZine KB)

    See also http://kb.mozillazine.org/Profile_folder_-_Firefox

    #1: there are too many pref for all kinds of adjustment which will offer a recipe of what you lose and how to keep certain parameters.
    It is possible to copy specific lines of a prefs.js to this file in another profile or restore some settings after deleting this file in the current profile folder.

    All the prefs that show as a user defined and appear in bold on the topic: config page are stored in the prefs.js file.

    This includes the changes you make and data Firefox itself and extensions store as data/parameters in a pref.
    It's

    #2,3: the localstore.rdf file stores the toolbar configuration and other data.

    #4: the current versions of Firefox shows the menu entry "Tabs" at the top menu ' display > toolbars "and" Firefox > Options ' and in the menus toolbar pop-up if the tabs are not in the default position on the top.

    If the notches located on the top and the menu entry is not available and you want to move the tabs under the navigation toolbar, then you have to toggle the pref browser.tabs.onTop false on the subject: config page.

    A restart of Firefox is necessary for updating the menu entry to display or remove.

    Note that this pref will no longer effect when the code Australis lands on the output channel (code Australis will probably land in Firefox 29).

    #5: see https://support.mozilla.org/kb/Clear+Recent+History

    Compensation of the "Site Preferences" clears all exceptions for cookies, images, pop-ups, installing the software, stored passwords in permissions.sqlite and other site specific data stored in content - prefs.sqlite (including zoom on the page).

    Deletion of cookies will delete all specified (selected) cookies, including cookies with an exception allowing you want to keep.

    #6,7: history of search bar is the story of the search bar (Google) on the Navigation toolbar.

    All recorded data to a form on a web page is included in the data in the form, but you can not separate and distinguish the two.

    Browsing history is the history of the web pages you have visited.

    #8: session cookies are always kept in memory and never stored on the disc in cookies.sqlite

    You can only delete specific cookies manually in the Cookie Manager or leave cookies expire when you close Firefox to make them behave like session cookies.

    Cookies of other compensation will include all cookies and don't obey the exceptions that you have made.

    #9
    Data stored in storage DOM is not stored in cookies.sqlite, but it is generally stored in the webappsstore.sqlite file or possibly in the form of data in IndexedDB.

  • Update of Firefox, and now all of the web pages and icons are inflated. How do I put back it as it was?

    Update of Firefox, and now all of the web pages and icons are inflated. How do I put back it as it was?

    Hello

    Firefox on Windows is now after display, scaling options that can make the biggest text on screens at high resolution.
    You can adjust the resolution of your screen.
    To change it follow these steps:

    • Type of topic: config in the Firefox address bar and hit the Enter key.
    • If the warning that this might void your warranty , click I'll be careful, I promised.
    • Search for layout.css.devPixelsPerPx

    • Double-click layout.css.devPixelsPerPx to edit its value. The default value is - 1.0 in Firefox 22 and above. Change it to 1.0 to run as in previous versions of Firefox.

    If necessary, further adjust the value of 0.1 or 0.05. Values between 1.0 and around 0.5 to reduce the size of the elements. Use a value greater than 1.0 to increase the size. For example, a value of 1.25 will increase the font size of the 125% to account for the default DPI setting in Windows 8. Check the value that you enter. Definition of a value that is too small will take everything away and too high will explode things.

    If the web pages should always be adjusted so you can watch the extension Default FullZoom Level or NoSquint .

    To adjust the font size for the user interface, you can use the extension of theme font & size changer .

    This solve your problems? Please report to us!

    Thank you.

  • Restoration of images and icons? None are displayed on web pages.

    I used to have pictures and icons, but now none are not displayed, just text. I deleted Firefox and downloaded but the error persists so I have to have an incorrect setting.

    Is he missing pictures then make sure you are not block images from certain domains.

    • Check the permissions for the domain in the active tab in "tools > Page Info > Permissions.
    • Check that the images are enabled: Tools > Options > content: [X] loading images automatically
    • Check exceptions in "tools > Options > content: Load Images > Exceptions.
    • See the tab "tools > Page Info > media ' for blocked images (scroll all the images with the cursor key).

    If an image in the list is grayed out and there is a check mark in the box "block Images of..." and remove this mark to unlock the images from this area.

    Make sure that you do not block the images of third parties, the pref permissions.default.image must be 1.

    There are also extensions like Adblock Plus (Tools > Modules > Extensions) and security software (firewall, antivirus) that can block the images and other content.

    See also:

  • How to make fonts and icons in the menus for each larger screen?

    How to make larger fonts and icons in the menus on my iMac screen?

    You can change the size of icons, arrange them in a grid and set other preferences for items on your desktop by changing the options to display on your desktop. To change your desktop view options, click on the desktop and then choose the command view > Display Options from the menu bar. You can try different settings to see which ones you like, you will immediately see the effects of your changes.

  • I've hidden the toolbar(file,edit,bookmarks,history...etc.) back, forward arrow and icon of the House too, how to view again? TNX

    I've hidden the toolbar(file,edit,bookmarks,history...etc.) back, forward arrow and icon of the House too, how to view again? TNX

    This has happened

    Just once or twice

    is the last night

    Menu bar (File, Edit, View, history, Favorites, tools, help)

    Press Alt V T M (CTRL + V T M on Mac) on your keyboard. This should restore the menu bar (Firefox 3.6)

    Other toolbars

    View | Toolbars | Select the desired toolbar

    Other measures to try

    Try to restore the default value set by going to display. Toolbars | Customize | Restore the default set. This will put the toolbars in the default slot

    Safe mode

    You may need to reset toolbars and controls through Firefox in Safe Mode troubleshooting questions
    Make sure that completely close Firefox first. When you get to the Safe Mode window, select controls and then make changes and restart and reset toolbars.

    I hope this helps!

Maybe you are looking for