Questions about custom DataGridColumn component converter

Hey guys,.

I am very new to flex, but he really likes.

Part of my task is to display data with the DataGrid control. Sounds very simple, isn't? However, the data themselves are a mess, and he needs a custom code to make it presentable. My problem is the following:

one of the columns is supposed to be a positive number. If the number is less than 0, then do not display or display an empty cell. I tried in several ways:

1 tried to use < mx:Text text = "{((data. TotalGFA < 0)? "": data. " TotalGFA)}"/ >. He complains unmatched ' > '.

2 tried to use a function < mx:Text text = "{getPositiveNumber (data." TotalGFA)}"/ >. He complained of function not defined

3 tried extending mx:Text and the substitution of the text box. But I couldn't find any help.

Is this possible? How to make it work?

Thank you

C

You can simply use the DataGridColumn labelFunction.

You have problems with your second appearance being itemRenderers

scope differently from the parent app.

Tags: Flex

Similar Questions

  • Questions about the accordion component

    I have a few questions about the use of the accordion component:

    1. when my accordion is created it shows the first container child, this child is created at this time and if you go to another child it is also created (but only until it is first accesed). The thing in the first child, I need to access the properties and components located in other children, so it marks an exception to NULL, because I am trying to access the properties or the components that have not yet been created, but I really need to access and transmit values to other children containers at the moment (without their first navigation) , then it is possible to create all the children while creating the accordion although I would'nt need to navigate through its children to create them?

    2. is it possible to disable the functions of click of an accordion, so the only way to change bewteen her children is programmatically? I mean, you can click the buttons on the accordion to navigate through his children, but you can also do this programmatically by using the selectedIndex property, so I'll try to disable accordion buttons so the only way to navigate is programmatically.

    All the ideas of these two questions?

    You can use creationPolicy = "all" on the accordion and it will create all children, not only the first condition. The downside of this is that your application will have a little more time to start. Consider this:

    Child 2:

    If you try to set child2.input = 'something', a better solution would be to use data binding:

    Child 2:
    [Bindable] public var inputValue:String;

    Now you can do: child2.inputValue = 'something '; If the user interface of child2 have not been created, the inputValue parameter has without adverse consequences; as soon as the 2 child controls are created, data binding will assign the value. If child 2 has already been created, the data binding will also affect the value.

    You can disable the click event to the accordion by intercept and stop its spread, but you must do this in ActionScript, you can't do this in MXML.

    myAccordion.addEventListener ('change', accHandler, true); true means to use the capture phase

    private void accHandler (event:flash.events.Event): void
    {
    If (event.target is mx.containers.accordionClasses.AccordionHeader) {}
    Event.stopImmediatePropagation;
    }
    }

    The idea is that intercept you the click event, as it moves down through the components (capture phase). If the target of the event is an AccordionHeader, prevent you the event to go further - it is to reach the AccordionHeader itself.

    You can put this handler on accordion or its parent up to the Application.

  • Question about custom components States

    Hi all.

    I have a question that I can't find an answer to any place.

    I created a screen edition, with two States, "view" and "Edit".  For 'view', the fields are not editable.  If the user presses the button "Edit", all fields become editable, as 'Edit' passes to the State of 'Edit' and all the fields to say "editable.edit = 'true'". "  It works very well.

    My question is a custom component that is contained in this form.  There is also two States, with the same names.  I want to spend the custom also editing mode component.  But I can't seem to do.  If I access the field by "component.state ='edit" "", which generates an error.

    This must be a fairly common thing to do.  I'll use this custom as well as screens component (I hope) so I don't want to lose him if I can avoid it.

    Or maybe that I approach the problem correctly?

    Any help or insight would be appreciated.

    Thank you

    Tom

    You should be able to define the State through the currentState property:

    If your custom component has all the same States as the Application then you may find it useful to link the current component State to the current state of the application:

  • More questions about custom asynchronous device

    I am trying to create a custom asynchronous device for VeriStand and have the following questions:

    (a) at what rate entered in the course of analysis and data channel pushed into the FIFO of the custom device entry? The scanning speed depends on if the input channel is mapped to a control of workspace object or if it is mapped to an output of the simulation model (.dll file)?

    (b) at what rate the VI real-time asynchronous custome device running? Is it at the same rate as the primary control loop rate? Can I change the rate of implementation of a custom device and how?

    (c) I have a quad-core PXI time real platform. How can I connect the device customized to a specific processor, like what you do with a simulation model (.dll file) in the definition of system file?

    Thank you in advance.

    Data FIFO

    The rate at which data are pumped on your meter is static and has nothing to do with the question of whether the workspace is connected, or if a model is mapped to one of your channels. By default, data are pushed in input of your Custom FIFO each iteration of the loop of primary control. If the FIFO is full, the oldest data packet is crushed. In addition, by default, outings THAT FIFO is controlled ever iteration of the loop of primary control. You can, however, use the NI VeriStand - Set custom decimation of device to mark a property on your customized device that will tell the system its decimation expected in the. If you set a decimation of 10, for example, the primary control loop will be send every 10 iterations of new data and check for new data out FIFO only every 10 iterations. This can help reduce the load of the processor in your system if you do not need updates that often.

    Similarly, you can use the NI VeriStand - Set of deep FIFO to control the depths of the FIFO of your entries and exits FIFO respectively. By default, both have depth 1.

    Delivery rate

    The rate at which your custom device runs depends on how set you up. You can for example, having your Custom asynchronous device uses its own schedule and run at a pace totally independent of the system. Your VI could have regular while loop with a 10ms timer, for example, or it could be based off some hardware device timing.

    Alternatively, you can choose yourself closely synchronize with the primary control loop. This by registering using a property that your Custom device has a timed loop that will use the clock of the device. The unit's clock is a source of synchronization that is checked each iteration of the loop of primary regulation after Custom peripheral FIFO have been updated. You sign up for this simply by calling the NI VeriStand - Set loop property Type specifying Timed loop to loop type and use peripheral clock be true. Then, as the VI model, thread just the clock of the camera in your calendar input source for the timed loop. If you have specified a decimation factor, as mentioned above, you should probably also to use this factor as your dt. This means that if you have a decimation of 10, you only run your timed loop 10 all the graduations of the source of synchronization clock of the device.

    Another simple way to synchronize closely with the primary control with a few problems loop is simply base your timing off the coast of the availability of new data in your entries or exits FIFO. To do this, you can simply use regularly to loop and then just wire - 1 for FIFO wait times. Then your custom device will run as soon as the data are produced and consumed by the system.

    Specification of a processor

    There is no property integrated for the allocation of the processor, but it will be very easy for you to implement yourself. You can specify the processor to run on in the Explorer system by creating a custom using NI VeriStand - property set the property of the element. For example, you could define a property of I32 entitled 'Treatment', with-2 meaning auto-affectation and any non-negative value indicating an index of specific processor. Set this property in one of your device in System Explorer configuration pages and then read the property in VI of pilot in the engine using NI VeriStand - get the property of the element. Then just wire up the value of the property at the entrance of affinity processor on your timed loop. However, you should always check that this processor is on target. Otherwise the timed loop will report an error and abort. It's exactly what we do for models in-house.

  • Question about customizing the content form of Check-In Info page

    Is it possible to customize this page outside of a component? I know that the page is auto generated and I was wondering if it was possible to use as iDoc stuff on the rules page.

    as long you have defined to include it in a componet and using the right name to "Include personal use", there should not be any problems.
    what you could try is...
    set include "my_custom_include" as follows...
    <@dynamichtml my_custom_include@="">
    <$if not="" isuploadfieldscript$="">
    My custom label


    <$endif$>
    <@end@>

    Create a check-in and in the content server hcst file containing the following lines of code...


    <$include my_custom_include$="">

    Watch the web rendering of the above check-in and see if the html in your include code is displayed.

    If all good, you can add my_custom_include 'Use Custom include' to your domain in profile rules.

  • Question about custom stores

    I implement a custom in my app Store... I want to welcome the code on a server to show the information dynamically so that I will not need to update the application whenever I need to make a change...

    The Question is... If I want to show the leaflets that are controlled by a server (using a Login and a password) right on my custom sotre, it is possible to do it with the current custom Adobe API or I can show only folios that could purchases on the Apple Store?  I ask this question because a folio that isn't from Apple Store (say an In - App purchase) shows me a sign of error because I control access to it my system of law.

    I enclose a photo if you can help me with this.

    Thanks for your help

    photo.PNG

    Yes, it is possible. You just hide the folios where State = FolioState.INVALID or FolioState.UNAVAILABLE. After that the person logs in, folio.updatedSignal will be triggered if the State has changed. If the State is > FolioState.UNAVAILABLE then show the folio.

  • Question about customizing the OAAttrValException

    I have coded in EO validateEntity() validations.

    They work properly with my custom exceptions message.

    OT validation code:
        if (getObjectCode().length() < 4)
        {
          MessageToken[] ObjectCodetokens = { new MessageToken("DIGIT", "4") };
          throw new OAAttrValException (
                OAException.TYP_ENTITY_OBJECT,
                getEntityDef().getFullName(), // EO name
                getPrimaryKey(), // EO PK
                "ObjectCode", //attribute name
                getObjectCode(), // bad attribute value
                "XX", //message application short name
                "XX_FWK_DIGIT_REQUIRED",
                ObjectCodetokens); // message name
        }
    The exception indicates as follows: at the top of the page, if the entry of object code is less then 4 digits
    Row 1 ObjectCode - 4 digit numeric required.
    My question is, is there a way to get rid of the 'line 1 ObjectCode -' and just show "4-digit digital required."?
    (Note: ' Row 1 ObjectCode - ' is no not part of my custom exception message.)

    Thank you.

    Yes, it's give and take only... :)

    Thank you
    -Anil
    http://oracleanil.blogspot.com/

  • Question about 'Customer of Toshiba online product information'

    Hello
    my computer (Satellite A100) asks me to download "the new version of Toshiba Online product information Client", asks me to follow the www.toshiba-tro.de link but I can't find anything like that here.
    I just have no idea how do it, could you help me please.

    Hello

    Never heard of him, and it doesn't look like it s important for your machine. I think that it s just a piece of software that wants to learn about the new features.

    If you have the opportunity then go to "Add/Remove software" in the "Control Panel", and then delete. Believe me: Don t you need...

    Otherwise, you can also try the [European drivers download page | http://eu.computers.toshiba-europe.com/cgi-bin/ToshibaCSG/download_drivers_bios.jsp] to check if you can get the latest version of this application.

    See you soon

  • question about custom classes

    I am new to AS3, as well as Flash in general, so forgive me if this seems very basic.  All I'm trying to do is create a custom class that extends the MovieClip class and contains a custom property for 'marker '.  I want to be able to use and change the value of the custom property on the timeline of an instance of this class and have it behave exactly like any other (Ex: this.x == > this.marker).

    Then, my main script, I want to launch certain circumstances according to the value of 'marker '.

    EXAMPLE: if (myCustomClassInstance.marker == 'string')

    {

    doSomething();

    }

    In any case, I checked my classpath and my extenal AS file communicates with my FLA; I know that the problem lies in my custom class, I've pasted below:

    package myClasses
    {
    import flash.display.MovieClip;

    SerializableAttribute public class extends MovieClip PageClass
    {
    public var marker: String;

    public void PageClass()
    {
    }
    }
    }

    I would be extremely grateful for any help.  Sorry for my ignorance.

    I may be forgetting the scenario, but I think that my discussion of event expedition was addressing the wrong event.  If I remember correctly, the buttons of your main timeline would generate menu of wedge activities.  Your sections would be enough to release a 'allowMenu' event when they settle in their display frame.

    I'm going on memory here (too lazy to look back), but I think I mentioned that you can use as a conditional currentLabel property to prohibit the use of a button while you are in the section.  And if you use AS3 and real SimpleButton symbols (aka buttons homemade), AS3 allows you to control the States of the buttons, which means that you can assign btn.upState = btn.downState to have the button appears in its inactive state when it is to the top/intact. Previous versions of actionscript has failed to do this.  You don't end up having to do a bit of juggling to make things that whenever a new item is selected, a single shared function can do this for all, function sense resets all buttons to the upState = condition out of town, before to set the newly selected on his downState.

  • Questions about Failver customer and rapid failover

    have some questions about customer and quick Faiolver of Oracle Database HA failover. Before asking these questions, I want to explain my environment. Here are the details.



    -We have two physical locations called "ABC" and "PQR".
    -ABC is the main site.
    -PQR is the backup site.
    -In ABC, we have the database to Oracle RAC (11.2.0.2) with two nodes.
    -In the PQR, we have only one stand-alone server (11.2.0.2) database with ASM. This isn't a RAC.
    -Data Guard has been configured between ABC and PQR and it works as expected.
    -Please note that we have a license for Active Data Guard.
    -We have products of Oracle Identity Management to ABC and PQR and they will use the RAC database as a primary database that is in the CBA.
    -We have not yet set up a Data Guard Broker.

    We want to achieve under objectives:


    Objective 1:
    -------

    Whenever primary CARS down completely, standby database becomes a primary database AUTOMATICALLY and it should allow the read/write operation.
    I guess it's called 'Fast Failover'. Please let me know if I'm wrong.

    Issues related to the:

    -To do this, I need to set up Data Guard Broker so that this standy database becomes primary when CARS go down completely with a power outage, planned or not.
    -Let's say that CARS falls does completely, how long take Data Guard Broker do standby db as primary.
    -What the client application / which is already connected to the CARS.
    -Let's DB standby became as primary and after some time if RAC comes back, keep data automatically becomes the primary role of RAC?


    Objective 2:
    --------

    As I explained above, all products Oracle IDM and applications to speak to the RAC database, what do know only on the RAC database, which is the main. They are not aware of the pending database.

    -Whenever a client session is underway with the primary database of CARS if CARS completely falls down, we would like to wait until the client session should get transferred datbase standby without losing session information. However before that happens, standby database should become primary because the client session can perform write operations.

    -Whenever a client attempts to connect to the primary CARS and assumes that the cab is completely down, we would like to expect from any client connections should are transferred pending database.
    However before that happens, standby database should become primary because the client session can perform write operations.

    According to my knowledge, above scenarios are called "client failver." Please let me know if I'm wrong.



    Issues related to the:
    ----------

    1. Please throw some light to reach above features.
    2. According to my understanding, before customer failover happens, fast failover expected has already occurred and ensure should get the switch for the main role. I guess that all this happens thanks to timeout settings. What are those.


    Could you please help?

    Thank you

    I didn't say that clients cannot reconnect automatically when primary fails: I meant that client sessions can generally reconnect and also keep any session state.

    Yes, they can reconnect but only to keep the session state for a SELECT statement. It is also possible with Data Guard, not only in the CARS I wrote: here's a demo with 10 g
    http://uhesse.WordPress.com/2009/08/19/connect-time-failover-transparent-application-failover-for-Data-Guard/.
    What is not possible is to maintain a session state: (INSERT/UPDATE/DELETE) pending transactions must be cancelled.

    Edited by: P. Forstmann on Dec 8. 2011 20:30

  • Question about the connection of a customer VPN ASA

    Hi guys,.

    I have a question about Tunneling VPN. I have an ASA 5505 with static PPPoE address external and local 192.168.202.0/24 network, operates as an EasyVPN server. On the other side is an another ASA 5505 without dynamic PPPoE outside interface acting as EasyVPN customer in customer ode. The internal network is 192.168.1.0/24

    It works very well! But now, I created another user who uses EasyVPN client software to connect to the EasyVPN server. This works as well.

    But how am I able to connect customer network 192.168.1.0/24 on the connections of the ASA?

    Please give me a hint.

    "But how am I able to connect customer network 192.168.1.0/24 on the connections of the ASA?

    Yes, if you set the ACL of split tunnel correctly you should be able to connect to the remote client ASA.

    Please follow the method of configuration of Cisco doc split tunnel, at the bottom of the link.

    http://www.Cisco.com/en/us/products/HW/vpndevc/ps2030/products_configuration_example09186a00808a61f4.shtml

    Evaluate the useful ticket.

    Thank you

    Rizwan James

  • Various Questions about wireless access controller

    Help me please with these fundamental questions about the role of the access (AC) wireless controller.

    Assume that the access controller and Access Point are connected via IP:

    -Wireless frames sent to AP to acre; include the original MAC header (on the way to wireless access)?  If Yes, is there a Cisco AC gets to fill the WLAN and LAN it is plugged (which means that it outputs as ethernet frames as if they were issued by Mobile Stations).

    -Is the AC necessarily the default gateway for mobile stations? I guess not. But it is possible the default gateway?

    The Cisco AC can function as a DHCP relay?

    The AP creates a tunnel to the controller. All IP traffic from the AP to the controller will address the AP source and dest IP to the interface of the Manager of the AP on the controller. The wireless client traffic is encapsulated inside this tunnel. When it hits the controller the CAPWAP is removed leaving the customer's original package to be sent to the local network through the controller.

    The controller should not be the default gateway for wireless clients because it is not a router. Think of it as a device that converted into wired wireless traffic.

    Normally, the controller acts as a proxy DHCP. Once the customer has joined a WLAN, the controller sends the DHCP packets to the DHCP server on behalf of clients such as the IP address of assistance normally configured on the router for cable customers. You can also configure the controller to act as a DHCP server for wireless clients.

  • Questions about migration on server 1 for win 7 PC temporarily

    Hello, I am charged with moving that customers 2 of our current of 2 to VMware host separate Windows 7 64-bit PCs TEMPORARILY so that I can install for free ESXi 5.1 as the new host (replacing the current host, which is a Standard operating system Windows Server 2003 on a server Dell Poweredge 2950 using VMware Server 1.0.10).  After the ESXi installation on the server, I intend to spend both clients as they exist now to the new ESXi host.

    I have a few questions about this project, and I hope I can pull your knowledge to help me.  My question is:

    (1) is this a feasible plan?

    (2) what methods would you recommend using?

    (3) should what tools I use?

    (4) can what version of VMware (free) I use on the 2 Windows 7 workstations to serve temporary guest?  A customer is our Standard Windows 2003 domain controller, and the 2nd is an email server and Linux-based web.  I intended to put each on a separate office.

    Any help you offer is greatly appreciated!

    Thank you

    D. Pichard

    You can use vmware player as a free virtual machine player.

    Use vmware converter to convert your servers.

    Is not recommneded for convert DCs however, what you might do, it is to build a new one. However, it is possible.

    the dell 2950: your host in the HCL as compatible uses 5.x

  • Many questions about the HP 50 g

    I just ordered a HP 50 g graphic calculator! I have a few questions about this so hang on tight! What is the USB connector on the calculator? Mini-USB, micro USB, or is it a connector owner, "custom". Then, it would be possible to connect a keyboard to the HP 50 g by using the USB Port? Is there a program that would make this possible? (I doubt it would work if you plug it..) I have a Mini-USB to female USB 2.0 connector. So I could just plug the keyboard right, provided that the port on the calculator is a Mini-USB Port. If this is not so that I could use my female to female USB adaptor to connect the keyboard.

    Thanks for your help,

    Zekelegge

    Hi!, zekelegge:

    Welcome to Forum!

    The only printer I use, 50G calculators, 48GII, 39GS and 17BII +, as well as many former models, such as the 48 s/SX/G/G + / GX, 38 G, 39 G, 42, 41 C/CV/CX and 28 C/S, is the infrared printer HP 82240 b. If you can use the emulator HP50G, on the PC, the simulator of the printer, you can download, since... http://www.HPCalc.org/details.php?id=7386

    The printer... HP 82240 B

    The cable series...

    The description... http://www.allenwan.com/hpcalcserialcable/

    The original cable...

  • A Question about debugging...

    Hi all

    I have a question about debugging - specific probes. Is it possible to link and save the values on a wire (with a probe) which is a loop for the loop counter (or even a secondary value)?

    When I'm debugging code to a state machine that I often more easy to wire to the top of the State and the value, I am interested in a cluster, and then use 'generation antenna' and a registry change to add this element to each loop. I could also do this by indexing just out of the loop too.

    Once execution completes etc that I can look at the table (either using an indicator or a problem) to see what has happened to the value to each State/loop. And often, I know exactly where my code was wrong.

    My question is: is there a way to do this using regular probes without having to build an array? So, for example, I probe a digital wire and get a table of responses rather than just the last value on the wire?

    Thank you

    Dave

    I found this nugget that does exactly what I want - it's a custom probe developed by Darren.

    This post on the Exchange of ideas gives to think it should be at least provided with the package LV either integrated in the dev environment. Well worth voting for!

Maybe you are looking for