The use of Itemrenderer to do the simple things

Hi all

For simple stuff like concat (for example {data.author}: {data.title}), it is preferable to use labelFunction. The problem is that this kind of feature is not available on all labels. For example the columns of the DataGrid, I can only clarify dataField, which will cause the grid to make a search like [dataField] data to determine the value. My main problem is internationalization. When I have a number, date, etc. in my RAW files, I need to convert these to display. I don't want to change the table itself, since it is in my model layer. I found using of point converters and the functions of the label to be the fastest solution. However, simple things like the (convertDate) call data, an element sounds heavy weight converter. Is there another way or is this a legitimate use of element converter?

Hi armalocak,

You can do the following by using the labelFunction, itemrenderer.

private void healthTotalLabelFunction(item:Object,_column:DataGridColumn):String
{
ConvertDate (item.date) return;
}

private void convertDate(date:Date):String
{
var dateString:String = //write your logic here;
return dateString;
}


  
   
   
  

 

Note: You can even display the data in a column by using labelFunction without specifying the property dataField for the DataGridColumn.

If you observe well, I haven't specified the property dataField for the second column... but still it must display data... due to labelFunction.

If this post answers your question or assistance, please mark it as such.

Thank you

Jean Claude Chari

Tags: Flex

Similar Questions

  • Liquid filtration - what is the SIMPLE thing I'm * wrong?

    So I am just now jumping into the liquid and creating test to learn about applications.  I know that my question is elementary and most certainly a result of my knowledge of novice liquid.

    I have two web applications.

    Web App 1 = assignments with a field of a data source "In the direction" (Web App ID 30967)

    Web App 2 = assignment of publishers (Web App ID 32100)

    I followed this article http://docs.businesscatalyst.com/developers#! / how tos/liquid/list-and-filter- and modified samples to fit my webapps (or so I thought)

    Version 1 (works fine)

    Page layout:

    < head >

    < title > all

    < /title >

    < name meta = "description" content = "" / > < / head > "

    < body >

    {module_webapps make = "collection" template="/layouts/custom/all.tpl" id = "30976" filter = "all"} < / body >

    < / html >

    Custom template (all.tpl)

    < table >

    < thead >

    Name < th > < /th >

    Editor of assigning < /th > < th >

    < th > end < /th >

    < /Th > < th > correspondent

    < / thead >

    < tbody >

    {% for item in items %}

    < b >

    < td > {{item.name}} < table >

    < td > {{point. {{[' Editor assignment ']}} < table >

    < td > {{point. {{[' due date ']}} < table >

    < td > {{item.correspondant}} < table >

    < /tr >

    {% endfor %} < / tbody >}

    < /table >

    Version 2 with filtering: does not

    Page layout

    < html >

    < head >

    Karen < /title > < title > assignments

    < name meta = "description" content = "" / > "

    < / head >

    < body >

    {module_webapps make = "collection" template="/layouts/custom/test.tpl" id = "30967" filter = "all"}

    < / body >

    < / html >

    Custom template

    < table class = "test" >

    < thead >

    Name < th > < /th >

    Editor of assigning < /th > < th >

    < th > end < /th >

    < /Th > < th > correspondent

    < / thead >

    < tbody >

    {% for item in items %}

    {% If item.} [' Editor assignment '] = "Karen Jordan" %} <-what I screwed up?

    < b >

    < td > {{item.name}} < table >

    < td > {{point. {{[' Editor assignment ']}}

    < table >

    < td > {{point. {{[' due date ']}} < table >

    < td > {{item.correspondant}} < table >

    < /tr >

    {% endif %}

    {% endfor %} < / tbody >}

    I tried

    {% If the element.} ["assignment editor"] = ["Karen Jordan"] %}

    {% If the element.} ["assignment editor"]  ["Karen Jordan"} %}]

    {% If the element.} ["assignment editor"]  "Karen Jordan" %}

    {% If the element.} ["assignment editor"]  Karen Jordan %}

    {% If the element.} ["assignment editor"] contains "Karen Jordan" %}


    I can't make it work. Everything I tried out "no items found".



    Thanks in advance for the answers.

    I think you need is in your IF statement, not =

    See:

    The developer reference

  • How can I transfer photos from my iPod touch 6th generation for my macbook pro WITHOUT using iCloud, please? It's simple with another camera but not the case, it seems, for the Apple iPod

    How can I transfer photos from my iPod touch 6th generation for my macbook pro WITHOUT using iCloud, please? It's simple with another camera but not the case, it seems, for the iPod Touch from Apple.

    Use import option from your Mac:

    Import photos and videos from your iPhone, iPad or iPod touch - Apple Support

  • Using Vista Home Premium 64 x. In Windows Explorer how to group by name to display with the simple letters like A, B, C, D, etc. instead of A - H, P, Q - Z?

    Original title: group Windows Explorer by name

    Using Vista Home Premium 64 x.  In Windows Explorer how to group by name to display with the simple letters like A, B, C, D, etc. instead of A - H, P, Q - Z?  In XP, it could be sorted by simple letter, which makes it easier in a folder with many files.  Thanks in advance.

    Hi kmcmi,

     

    Welcome to Microsoft Answers Forums.

    Well this feature is not available in Windows Vista.

    It only works on Windows XP.

    I've added a useful link

    Behavior and change folder views

    http://windowshelp.Microsoft.com/Windows/en-us/help/3a3bfe59-5268-4FB3-81c5-7972c28939cd1033.mspx

    Hope this information is useful.

    Let me know if it worked.

    All the best!

    Thanks and greetings

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • to choose the simple click instead of double click for selection using the mouse is no longer seen in Win 7 Pro

    possibility to choose the simple click instead of double click for selection using the mouse is not seen more in Win 7 Pro.

    where you can select the option, please? Thank you

    Hello

    You do not tell us where you are looking for it.

    "Click or double-click to open an item".

    http://www.SevenForums.com/tutorials/10117-single-click-double-click-Open-item.html

    See you soon.

  • Surface RT - password simple features are disabled after mail to office 365 activesync / Exchange with a strong policy cannot use the simple password on device after removing

    I have synced to office365 using mail app and clicking next without letting go I would turn off the simple password feature to connect to surface RT.

    Now I get guest password windows live to connect to my device of surface. (before I used a simple PIN password function)

    I deleted the account office365 from the device and rebooted.

    However, under accounts - sign in options. time characteristics of simple password:

    • Password PIN
    • Picture password

    are both greyed out

    And I can't re enable them, even if the ActiveSync account is no longer connected.

    I also modified the device policy mobile office365 to allow simple passwords. and I tried to connect and you reconnect to the e-mail account in the hope that less stringent policy would somehow find its way to the peripheral surface of RT.

    However, the peripheral surface RT does not restore the original settings.

    How can I reset the surface RT have a simple PIN password again?

    Hello

    -What version of Office 365 is installed on the computer?

    I suggest you to reset the security policies and check if that helps.

    1. press on the Windows key + X.

    2. click on the control of security for the family and Panel\User accounts-user accounts

    3. on the left side, you will see "reset security policies" link.

    4. click on reset security policies , and then click OK in the confirmation box.

    You should now be able to install Picture passwords or password PIN again.

    Please, an update of the results. We will be happy to help you further.

  • I need the simple installation mode of firefox 5.0 on my eeepc 900 (default Xandros Linux) - I used to install 3.0, but is now obsolete

    the ed-meister has provided an excellent simple mode for the installation of version 3.0 of firefox and I did it correctly, but then when I looked at the edits, he said that I need to upgrade to firefox 5.0 and I need the simple mode for linux and I don't know what to type in the terminal/console

    Thanks for your help if necessary

    Check with the EeeUser forum to see what they have to say.

    http://Forum.EeeUser.com/

    I don't see Installing a browser 2011 in a 2007 operating system. I replaced Xandros with Easy Peasy 1.6 some time ago, 3.0 and 3.5 were too darn slow on Xandros even with the GTK update. A 900MHx processor will never be a speed demon, but you I have to give him a chance with a better than Xandros OS.
    Personally, I stay with 3.6.x until the end of the support. I don't see the need to upgrade to the latest version of Firefox now, especially on Linux.

    http://www.geteasypeasy.com/

  • Use the Simple Contact form

    How can I access the comments sent in the «simple contact form» I get an email which reads:

    "Contact us" has a new form submission.

    Automated email http://www.edmundrice.org

    {_formsummary tag}

    Privacy
    Adobe Business Catalyst® is committed to protecting your privacy. You have received this email because you are a user of the Adobe Business Catalyst® system. If you want to stop receiving this e-mail please contact your system administrator.

    Adobe business Catalyst 2004-2015, all rights reserved® ©

    I guess that this should have a summary form. The tag does not work.

    If I click on the small cross (above the tag) I get a Web page:

    http://cbop2.BusinessCatalyst.com/utilities/BCToolboxPanel.aspx?ObjectID=18 & ObjectType = 200 01 & Tabs = 6

    who has a 'DATA' section and a message "no data available for this page.

    Can someone tell me what I am doing wrong?

    Form summary includes the form field values that the user has submitted through front end, it should work properly.

    Please let me know if you are still having the same problem.

    Thank you

    Sanjit

  • I can't open the simple attachments such as MS Word documents.

    I can't open the simple attachments such as MS Word documents. I use Yahoo to access my mail.

    This has happened

    Each time Firefox opened

    == Today, may 4, is the first time that I noticed it

    problem started there about 2 months-only can not open attachments doc, need help.

  • I have a laptop hp envy dv7 - 3723cl, the simple pass does not work

    My simple pass does not work. I have check the biometric device, the software is up-to-date, and it gives me an error code 19.

    On my installed programs I do not see the simple pass program is no longer.  How can I get the correct software to reinstall?

    Help, please

    Hi @GStefanakis ,

    Welcome to the HP Forums!

    It's a great place to find answers and information!

    You have the best experience in the HP forum, I would like to draw your attention to the Guide of the HP Forums Learn how Post and more

    I was unable to locate specific information about a desire dv7 - 3723 cl.

    How can I find my model number or product number?

    Here is a link on technet.microsoft.com that can help.   Code 19: Windows cannot start this hardware device because its information of configuration (in the registry) is incomplete or damaged

    You can try a system restore to a date well known.  Using Microsoft System Restore (Windows 8)

    If the above did not help, I uninstall and reinstall the software Simplepass.  Using the Recovery Manager to restore the software and drivers (Windows 8)

    I hope this helps!

  • Open the simple file and then CANCEL example

    Hello

    Can someone please send a simple file open then cancel example VI?  I am trying to open a file to write ASCII text.  I have this job.  Now, I want to take the option "CANCEL" and do NOT write the file, but do the other things I've done.

    Thank you

    Jim

    Well, the dialogue file Express VI has a "canceled" exit - then just use it. You can simply drive a deal structure around your file entries.

    Also, what in the world you try to do with the feedback node, and that inner while loop?

    In addition, pleeeease read the Guide of Style of LabVIEW.

  • need the simple way to set the computer back to factory settings, and already saved safe data

    need the simple way to set the computer back to factory settings, and already saved safe data

    Vista recovery media obtain and/or use the Partition Recovery Vista on your computer to the factory settings .

    There is no Vista free download legal available.

    Contact your computer manufacturer and ask them to send a recovery disk/s Vista set.

    Normally, they do this for a cost of $ small.

    In addition, ask them if you have a recovery Partition on your computer/laptop to restore it to factory settings.

    See if a manual provided with the computer or go to the manufacturer's website, email or you can call for information on how to make a recovery.

    Normally, you have to press F10 or F11 at startup to start the recovery process...

    Another way I've seen on some models is press F8 and go to a list of startup options, and launch a recovery of standards of plant with it, by selecting the repair option.

    Also ask them if it is possible to do the recovery disk/s for the recovery Partition in case of a system Crash or hard drive failure.

    They will tell you how to do this.

    Every computer manufacturer has their own way of making recovery disk/s.

    Or borrow a good Microsoft Vista DVD (not Dell, HP, etc).
    A good Vista DVD contains all versions of Vista.
    The product key determines which version of Vista is installed.

    There are 2 disks of Vista: one for 32-bit operating system, and one for 64-bit operating system.

    If install a cleaning is required with a good DVD of Vista (not HP, Dell recovery disks):

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu

    http://support.Microsoft.com/default.aspx/KB/918884

    MS advice on the conduct of clean install.

    http://www.theeldergeekvista.com/vista_clean_installation.htm

    A tutorial on the use of a clean install

    http://www.winsupersite.com/showcase/winvista_install_03.asp

    Super Guide Windows Vista Installation

    After installation > go to the website of the manufacturer of your computer/notebook > drivers and downloads Section > key in your model number > get latest Vista drivers for it > download/install them.

    Save all data, because it will be lost during a clean installation.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://support.Microsoft.com/default.aspx/KB/326246

    'How to replace Microsoft software or hardware, order service packs and upgrades, and replace product manuals'

    See you soon.

    Mick Murphy - Microsoft partner

  • I went in lightroom today and it can't find my photos. I bought an external hard drive and copied some elements but did not cut their.  I did a back up on my external hard drive but didn't budge them. I did the simple troubleshooting and I

    I went in lightroom and can't find my photos. I lost the link before and did the right click to find and they have been found, but it's different.

    I bought an external hard drive and copied some elements but did not cut their.  I did a back up on my external hard drive, but even once did not move them. I did the simple troubleshooting and it doesn't work.  I'm trying to find the original by right clicking the? on the folder LR and once I find the file it tells me that Lightroom has this file already in the catalog - and I want to merge. I tried one and it disappeared or moved. Help!

    Use the file Explorer to see if the images are still in their original location. I suspect that move instead of copy them. This can happen if you drag you the.

    I found that it is best to use either right click on a file or folder name and select copy then right click on the drive-destination folder and select Paste or use keyboard shortcuts to copy and paste folder and files from one disk to another. The keyboard shortcuts are the CTRL + key C to copy and Ctrl + V to paste in the selected destination folder-drive.

  • the simple contact form widget does not allow the user to submit. the lunch box turns red. What should I do?

    the simple contact form widget does not allow the user to submit. the lunch box turns red. What should I do?

    Hello

    You have used a form of e-mail field to create 'Appetite' section. This is the reason for which form registers an error as its not able to recognize an e-mail here entry.

    email form field is a required field for form of Muse. Please rename back to e-mail and also to create another field in form in the widget forum (go to the Option to form and enter a single-line text field) and it should work properly.

    Concerning

    Vivek

  • Why the simple task of transferring photos that should be done drag and drop such a hassle from my phone to the computer

    Why the simple task of transferring photos that should be done drag and drop from my phone to computer such a chore... It is a success or a failure... open iphotos sometimes sometimes it doesn't.

    < published by host >

    Drag and drop is not supported from iPhone to computer.

    Sync with iTunes or iCloud > keep your photos safely stored and updated on all your devices - Apple Support

Maybe you are looking for

  • How to restore deleted files

    Is it possible to restore the photo files that I deleted by mistake from the trash can yesterday. I have not used the safe emptying of the bin under the Apple icon.

  • Need driver Sound WXP for Satellite A100 (PSAARH)

    My Satellite A100 is shipped with the version of Vista, when I downgrade to XP, the audio driver may install correctly but there is no sound. (I check software and hardware button).do you know that drivers will work on windows xp?

  • Why FCPX hang when I select youtube sharing destination?

    I tried to add youtube as a destination, so I can export my videos directly to my youtube channel and whenever I select youtube to add a destination, it crashes! Not had this problem until I upgraded to El Capitan. Help, please! I have to get this vi

  • Why microsoft has so many technical problems with the Gaming area?

    The site is down a few times more than 72 hours in a row.  There was opportunities, that the site went down every other day for a week.   The page that opens after the servers have been can be improved.  Error messages its users the impression that t

  • Automatic Updates does not not for Windows XP

    Try to update my Windows XP from SP2 to SP3 but keep getting error code 0 x 80240036 and can't figure out what to do?  I cannot set up automatic updates website.  Help, please!