I want to just state change when the data set are called in GridItemRenderer

I have a GridItemRenderer here, however when the user mouse over it the States returns to criticism, I want only state change when the data value is called

<? XML version = "1.0" encoding = "utf-8"? >

" < = xmlns:fx s:GridItemRenderer ' http://ns.Adobe.com/MXML/2009 "

xmlns:s = "library://ns.adobe.com/flex/spark".

xmlns:MX = "library://ns.adobe.com/flex/mx".

clipAndEnableScrolling = 'true' currentState 'critical' = >

< fx:Script >

<! [CDATA]

import of utils. UsefulConstants;

override public function set data(value:Object):void

{

Super.Data = value;

put the text in red to indicate the old value

{if (Data)}

{if (!) Data.dateAcknowledged)}

this.currentState = "critical";

}

ElseIf (data.dateReceived.time - data.dateReceived.time > UsefulConstants.oneDay) {}

this.currentState = "warning";

}

ElseIf (data.dateReceived.time - data.dateReceived.time < UsefulConstants.oneDay) {}

this.currentState = 'safe '.

}

Else if (data.status == 'CLOSED') {}

this.currentState = 'safe '.

}

else {}

throw new Error ("unexpected conditions for data.dateReceived.time - data.dateReceived.time'");

}

}

}

[]] >

< / fx:Script >

< s: states >

< name s: State = "critical" / >

< name s: State = "WARNING" / >

< name s: State = "safe" / >

< / s: states >

< s:HGroup x = "-1" y = "-1" width = "100%" horizontalAlign = "center" verticalAlign = "middle" height = "100%" >

< s:Graphic id = "icon" includeIn = "criticism, warning" x = "-1" = "5" width = "16" height = "20".

version = "2.0" viewHeight = "600" viewWidth = "200" >

< s:Ellipse width = "88" height = "401" = "58" x y = "37" >

< s:fill >

< s:SolidColor alpha = "1" color = "#FE4744".

Color.Warning = "#Ff7f45" / >

< / s:fill >

< s:stroke >

< s:SolidColorStroke color = "#FE3D44" alpha = weight '1' = '1' / >

< / s:stroke >

< / s:Ellipse >

< s:Ellipse width = "51" height = '97' x '79' = y = '478' >

< s:fill >

< s:SolidColor alpha = "1" color = "#FD8E9E".

Color.Warning = "#f69240" / >

< / s:fill >

< s:stroke >

< s:SolidColorStroke color = "#942EC8" alpha = "0.62" / >

< / s:stroke >

< / s:Ellipse >

< s:Ellipse width = "31" height = "147" x = "72" y = "122" >

< s:fill >

< s:SolidColor alpha = "1" color = "#FD8E9E".

Color.Warning = "#f69240" / >

< / s:fill >

< s:stroke >

< s:SolidColorStroke color = "#942EC8" alpha = "0.62" / >

< / s:stroke >

< / s:Ellipse >

< / s:Graphic >

< s:Graphic

includeIn = "safe" width = "20" height = "20" version = "2.0".

viewHeight = "600" viewWidth = "600" >

< s:Path data = "M49, 294 L245, 410 L 551, 116 C 551, 116 259 519 257, 516 L 49 of the 294Z" winding = "not null" x = "-13,5" y = "-57.3" = "1.051689863204956" scaleY scaleX = "1.122194528579712" >

< s:fill >

< s:LinearGradient = "49" x = "115.95" scaleX = "402.4029386075604" rotation = "18.660078428615776" >

< s:GradientEntry color = ' #359F66 ' ratio = "0.006535947712418301" / >

< s:GradientEntry color = ' #7EFA4A ' ratio = "0.9803921568627451" / >

< / s:LinearGradient >

< / s:fill >

< s:stroke >

< s:SolidColorStroke color = "#C6A470" alpha = weight '1' = '1' / >

< / s:stroke >

< / s:Path >

< / s:Graphic >

< / s:HGroup >

< / s:GridItemRenderer >

Override getCurrentRendererState() to return the correct status based on the data.

Tags: Flex

Similar Questions

  • You need to set the drive letter to the USB Ports front before any device has been inserted - that won't change when the device is connected. I have Windows XP Professional with Visual Studio 6 installed

    You need to set the drive letter to the USB Ports front before any device has been inserted - that won't change when the device is connected. I have Windows XP Professional with Visual Studio 6 installed. Thanks for your help

    diana73,

    First of all, make sure that you're connected Administrators account to do.

    How to change a drive letter to change an existing drive letter on a drive, on a partition, or a volume, follow these steps:

    1. Sign in as an administrator or as a member of the Administrators group.
    2. Click Start , click run and type compmgmt.msc .
    3. In the left pane, and then click disk management .
    4. Right click on the drive, the partition, the logical drive or volume that you want to assign a drive letter to and then click change drive letter and paths .
    5. Click change .
    6. Click assign the following drive letter if it is not already selected, click the drive letter that you want to use, and then click OK .
    7. Click Yes when you are prompted to confirm the drive letter change.

    The letter of the drive, partition, or volume that you specified is changed, and the new drive letter is displayed in the appropriate drive, partition, or volume in the disk management tool.

    Good luck! Please rate me upward if you find my post helpful. Thank you!

  • Trying to convert a trial to paid membership, but the payment gateway is showing the location in India and in Indian currency. I am based in the United States have changed in the account setting too but the gateway payment does not seem to be change

    Trying to convert a trial to paid membership, but the payment gateway is showing the location in India and in Indian currency. I am based in the United States have changed in the account setting too but the gateway payment does not seem to change.

    Hi Khushboo,

    On the bottom of the page of Adobe, you will see an option to change the region, make sure that you have the United States he and on the purchase page to change your currency to the U.S. dollar as well.

    Let me know if it helps.

    Concerning

    Sarika

  • How to restrict the scope of the EU change when the input data are not available?

    Hi Experts,

    I have a user enter-able (EU) field in the Section. When the tag input XML contains data for this field, then the value must print in this area and it is not editable.
    If the input data are not available only that one time that the field of the EU must be editable.

    Any thoughts?

    I tried like below,

    Domain name creation: UE_CompName
    Length: 15
    Type: alphanumeric
    Rule: XDD
    Source name:! Transaction/Compname
    under PreEdit,.
    module: DALW32
    Procedure: procedure of desired
    Information: CALL ("UE_CHECK")

    like that, I've updated in the field properties.

    Content of UE_CHECK DAL below,

    CurrFieldName = Fieldname()
    CurrFieldData = @("CurrFieldName")

    IF CurrFieldData! = « »
    SetProtect ("CurrFieldName")
    END
    But it does not work... Pls help me to do this...

    I assume that the 'mapping' occurs during a batch operation (Gendata) through any rule the XDD defined for this field. In the batch, pre and Post Edit calculations do not. This feature is related to the WIP/entry. What you can do is to add a level section - PostImageDAL rule to call your script and protect your land once it was located batch of your operation.

    In FAP that contains that field, add the PostImageDAL rule in the property of the rules in the Section box. In the data box, do call your script.
    Your script is a bit wrong, it seems you were trying to get the 'current' domain name and then check the value of fields. Drop the part and simply name your field in the string in quotation marks in the @ () function and the SetProtect.

  • HP Color Laserjet M277n MFP: How to use the black cartridges only when the color toners are empty

    Hello team HP,

    I recently bought a HP Color Laserjet MFP M277n I printer I print black & white user only and really don't need color prints. How to set the printer options to print only black & white? How can I replace only the black cartridge when the color cartridges are empty? How many prints (approximate), we can take by toner?

    Kind regards

    Christèle

    Hi @Pavumba,

    Welcome to the Forums of HP Support!

    I understand you're wondering how to use black ink only on your HP Color Laserjet M277n MFP printer. I would be glad to help and don't forget to come back to this thread and check "Accept as Solution", if I have successfully helped solve you the problem. If you want to say 'Thank you' to my effort to help, click on the "thumbs up" to give me a Kudos.

    I see that you wonder if you need to replace the color cartridge when it is low. This printer is a printer AIO, therefore, you need to replace the ink cartridge when it becomes too weak to be able to resume printing. However, if you print mostly in black, you can configure a preset black only to print in black and white. This would help reduce the use of the color cartridges.

    NOTE: Composite black - for black and white images and photos, a mix of colors called 'composite black' can be used to achieve the quality significantly improved picture and soft gray tones that can be achieved with only black toner. For users who want to print images using just black toner, many HP printers color customer offer configurable options allowing the client to print using only black toner. For example, by selecting "print in grayscale" in the printer driver Specifies print using black ink only. For more information about the use of the toner cartridges, please see this article: how the Toner is used.

     
  • Photos do not sort by time when the Date and time are adjusted

    I'm the combination of images of my friends with those friends, using Mac Photo of OS X V10.11.4. Because the dates of our cameras vary, I used "Image, set Date and time" to change the dates of the imported pictures. When the dates and times are adjusted, the photos are sorted by date no time. Added photos changed the given date are sorted at the end, regardless of time stamp. The sort options in the pictures leave much to be desired.

    Where are you seeing this? All the photos are sorted by date/time, the photo has been added to the library - Photos (years/collections/moments) are sorted by date/time pictures

    You can select the photos of interest and create your own album of them and then sort but title ascending or descending or by date

    LN

  • Font size set to auto but sounds different when the data are populated compared to typed manually

    I have a form where all the size of the font of fields is set to auto. When data are filled in the form in a custom program the font size appears different to the name and first name fields. When the same names are typed manually in the form (not filled in the custom program) the font size remains uniform. There is no coding in the personalized program to manipulate the fonts or the font settings. What could be the cause of the change in the appearance of the font size. Another interesting is that after the program fills in the data, I can click in the areas affected by this problem and the police will change to what it should be but set in the right size once I have quit the field. I also see that some fields when filled will not be characters fat even if the police is set to a bold font.

    When a font of a field is set to Auto, Acrobat/Reader dynamically adjust the font size to match what is entered. When not using Acrobat/Reader to populate a field, it belongs to the program to properly set the font size based on the value of the field. Adobe does not publish any algorithm they use to determine the exact size (depending on the font used and the coordinates of field), so that a third party should use a better estimate (or not even trying at all), that looks like what is happening in your case. When you click within a field by using Acrobat/Reader, the font size is adjusted dynamically, but because the value of the field does not change, it is not defined when the field loses focus.

    A possible solution would be to use JavaScript to record all the field values, reset the form and then fill in the form using the saved values, this would cause Acrobat correctly define the appearances of field.

  • Help! How to retain the OutputText component status in the browser when the restore operation is called?

    I managed to apply the texts of edtiable as output check the CAPTCHA function by using clientListener and serverListener. a group of texts are displayed using the tags < ad: iterator > in the output page, when you click on a text of output, it is alternated with the status of selected or deselected.

    then click on the button restore to call the application module restore operation, chose these texts out status will be clean in brower he but correspong values on the server side are still in selected state.

    My problem is that how can I retain the OutputText component status in the browser when the restore operation is called?

    I have also some ADF DURATION issues:

    a. when operation rollback is called, will be updated on all the components in the page?

    b. when I set "binding" compenent properties < ad: iterator > related to the backing bean property, why is there only one child to < ad: iterator > compenent: activeOutputText, not a collection of activeOutputText?

    c. when I try to set the property 'id' of activeOutputText with #{terminalItem.AbbrTerminalM} and run and it prompted this invalid id value. real value of this EL is alphabetical.

    JSF page:

    
            <af:resource type="javascript">
                function processTerminalCodeClicked(event){
                   var source = event.getSource();
                   var terminalCode = source.getProperty("terminalCode");
                   var isChecked;
                   if(source.getInlineStyleProperty("background-color")!=""){// selected
                      source.setInlineStyleProperty("background-color","");
                      isChecked = false;
                   }else{// not selected
                      source.setInlineStyleProperty("background-color","#94ff94");
                      isChecked = true;
                   }
                    AdfCustomEvent.queue(source, "terminalCodeClicked",  {'terminalCode' : terminalCode, 'terminalCodeChecked' : isChecked},  false);
                }
               
               
            </af:resource>
    
    ...
    
    
    <af:iterator id="i1" value="#{bindings.TerminalView11.collectionModel}" var="terminalItem" rows="100">
                                                <af:panelGroupLayout id="pgl6">
                                                    <af:activeOutputText  value="#{terminalItem.AbbrTerminalM}"
                                                                         id="aot1" clientComponent="true"
                                                                         inlineStyle="cursor:pointer; ">
                                                         <af:clientListener type="click"
                                                                           method="processTerminalCodeClicked"/>
                                                         <af:clientAttribute name="terminalCode"
                                                                        value="#{terminalItem.TerminalC}"/>
                                                         <af:serverListener type="terminalCodeClicked"
                                                                       method="#{pageFlowScope.yardPlanControllerManagedBean.processTerminalCodeClicked}"/>
                                                     </af:activeOutputText>
                                            </af:panelGroupLayout>
    </af:iterator>
    
    

    Managed bean:

    private List terminalCodeList = new ArrayList();
    ....
    public void processTerminalCodeClicked(ClientEvent clientEvent) {
          String terminalCode = (String)clientEvent.getParameters().get("terminalCode");
          Boolean terminalCodeChecked = (Boolean)clientEvent.getParameters().get("terminalCodeChecked");
    
          if(!terminalCodeChecked.booleanValue()&& terminalCodeList.contains(terminalCode)){
              terminalCodeList.remove(terminalCode);
          } else if(terminalCodeChecked.booleanValue() && !terminalCodeList.contains(terminalCode)){
              terminalCodeList.add(terminalCode);
          }
          if(terminalCodeList!=null && !terminalCodeList.isEmpty()){
             setValueToSession("currentTerminalCodeList", terminalCodeList);
          }else{
               FacesContext ctx2 = FacesContext.getCurrentInstance();
               FacesMessage msg2 = new FacesMessage(FacesMessage.SEVERITY_ERROR,"no terminal is selected!", "Please at least select one terminal!");
               ctx2.addMessage(null, msg2);
          }
    }
    
    

    I managed to reslove parts of the problem and the selected state of the output text can be kept now.

    Remember the State selected in the list in bean managed, trigger refreshing of the page layout group containing all the output text and selected status of the output is determined by inlineStyle = "#{pageFlowScope.yardPlanControllerManagedBean.terminalInlineStyle"} "

    JSF page:

    
                function processTerminalCodeClicked(event){
                   var source = event.getSource();
                   var terminalCode = source.getProperty("terminalCode");
                   var abbrTerminalM = source.getProperty("abbrTerminalM");
                   var isChecked;
                   if(source.getInlineStyleProperty("background-color")!=""){// selected
                      //source.setInlineStyleProperty("background-color","");
                      isChecked = false;
                   }else{// not selected
                      //source.setInlineStyleProperty("background-color","#94ff94");
                      isChecked = true;
                   }
                    AdfCustomEvent.queue(source, "terminalCodeClicked",  {'terminalCode' : terminalCode, 'abbrTerminalM': abbrTerminalM, 'terminalCodeChecked' : isChecked},  false);
                }
    
    
    
     
      
        
        
        
        
       
     
    
    

    Managed bean:

      private List abbrTerminalMList = new ArrayList();
    
        public void processTerminalCodeClicked(ClientEvent clientEvent) {
          String terminalCode = (String)clientEvent.getParameters().get("terminalCode");
          String abbrTerminalM = (String)clientEvent.getParameters().get("abbrTerminalM");
          Boolean terminalCodeChecked = (Boolean)clientEvent.getParameters().get("terminalCodeChecked");
          if(!terminalCodeChecked.booleanValue()&& terminalCodeList.contains(terminalCode)){
              if(terminalCodeList.size()>1){
                  terminalCodeList.remove(terminalCode);
                  abbrTerminalMList.remove(abbrTerminalM);
              }
          } else if(terminalCodeChecked.booleanValue() && !terminalCodeList.contains(terminalCode)){
              terminalCodeList.add(terminalCode);
              abbrTerminalMList.add(abbrTerminalM);
          }
         AdfFacesContext.getCurrentInstance().addPartialTarget(terminalsPanelGroupLayout);
        }
    
        public String getTerminalInlineStyle() {
            String inlineStyle = "cursor:pointer;";
            if(terminalActiveOutputText != null){
                String abbrTerminalM = terminalActiveOutputText.getValue();
                if(abbrTerminalM != null && abbrTerminalMList.contains(abbrTerminalM)){
                   inlineStyle = "cursor:pointer;background-color:#94ff94";
                }
            }
            return inlineStyle;
        }
    
  • Portege M500 cannot start when the USB ports are loaded

    We have a M500 that recently seems to be affected by start-up problems when the USB ports are loaded with things like KB and Wireless Mouse USB external adapter.

    When these ports are occupied at the start, all the usual tools seem do not load and the associated icons do not appear in the toolbar at the bottom of the screen. The machine in question XP Professional and has 2 GB of RAM. The machine software is generally updated. Machine seems to start normally when the USB ports are empty.

    Once completed a successful boot USB ports can be occupied and the machine will then seem to operate normally.

    Any thoughts?

    Thank you.

    Hello!

    In your case, I would do a BIOS update and also the chipset driver.
    The two you can find on the Toshiba site. I m not sure but I think you have a model for Canada:
    http://www.Toshiba.ca

    Have you tested the devices USB on another computer laptop or PC? Maybe the problem is the keyboard and/or the mouse and not the laptop.

    Good bye

  • What happens when the error report are sent to Microsoft from my computer?

    I received a call from a Clayton asked for a Windows Service Center. He called about the error reports that were sent from my computer to Microsoft. He gave his phone number as 91 9008 37 23295 in Calcutta, India. If this has nothing to do with Microsoft or Windows?

    John is correct.  And to answer your direct question: "what happens when the error report are sent to Microsoft from my computer? -Not much.  If these reports are used at all, they are used for the statistical analysis and do not respond to individuals.

  • BlackBerry Smartphones can you change what the external buttons are on a storm?

    Is it possible to change what the external buttons are on a storm? That is to say make the default button of the camera open your address book instead? any help would be appreciated

    Options > keyboard/screen

    Don't forget to save the changes.

  • Display an empty table row of data when the data is not present

    Hello

    Can u please tell me How to display a row of data empty table when the data is not present?

    in my case the column header appears as the code below.

    <? If: SD_Type_Data_ID3 = 'KH '? > <? If: SD_SpecialHandlingCode_SPHD_ID17 = 'H '? > <? for each: Supplemental_Data_S17? > <? end if? >

    can u pls help me.

    Thanks and greetings

    Sylvie Kumar

    You can insert a fictitious line. Have an if condition in it, to show only when condition does not satisfy.

  • Will the virtual machines in the space are automatically deleted when the protected group are removed

    Hi friends,

    Will the virtual machines in the space are automatically deleted when the protected group are removed?

    Thank you.

    Hello

    When you choose to delete the Protection Group, first virtual machines are unprotected and placeholders are deleted.

    Michael.

  • Windows Live Mail error: the authentication setting are may not be wrong for your e-mail [SMTP] Server outgoing.

    The message could not be sent. The authentication setting are may not be wrong for your e-mail [SMTP] Server outgoing. To resolve this issue, go to help, search for "Troubleshoot Windows Live Mail" and read the section "I have problems sending e-mail". If you need help to determine the appropriate server settings, contact your e-mail service provider.

    The rejected e-mail address was * address email is removed from the privacy *'.

    List of topics 'b - day.
    Server error: 554
    Server response: 554 Authentication Failed, must login
    Server: 'smtp.mail.wowway.com '.
    Windows Live Mail error ID: 0x800CCC79
    Protocol: SMTP
    Port: 25
    Secure (SSL): No.

    How can I fix it?

    original title: 554 error when sending email

    View all Windows Live and Hotmail questions in the appropriate forum found here:
    http://windowslivehelp.com/

  • Windows Mail: Message could not be sent. The authentication setting are may not be wrong for your e-mail [SMTP] Server outgoing.

    The message could not be sent. The authentication setting are may not be wrong for your e-mail [SMTP] Server outgoing. To resolve this issue, go to help, search for "Troubleshoot Windows Mail" and read the section "I have problems sending e-mail". If you need help to determine the appropriate server settings, contact your e-mail service provider.

    The rejected e-mail address was * address email is removed from the privacy *'. "Subject 'Welder must build raised bed (Georgetown)', account: 'pop.gmail.com', server: 'smtp.live.com', Protocol: S account: 'pop3', server: 'pop.gmail.com', Protocol: POP3, server response: '-ERR not supported ca5pf6356717vdc.15', Port: 995, secure (SSL): Yes, Server error: 0x800CCC90, error number: 0x800CCC18MTP, server response: ' 530 5.7.0 must issue a STARTTLS command first ', Port: 587, secure (SSL): no, the message could be sent. The authentication setting are may not be wrong for your e-mail [SMTP] Server outgoing. To resolve this issue, go to help, search for "Troubleshoot Windows Mail" and read the section "I have problems sending e-mail". If you need help to determine the appropriate server settings, contact your e-mail service provider.

    The rejected e-mail address was * address email is removed from the privacy *'. Object ' Roadtechs.com post: PIPEFITTERS NEED LOUISIANA ', account: 'pop3', server: 'smtp.gmail.com', Protocol: SMTP, server response: 530 5.7.0 must issue a STARTTLS command first. r5sm16402004vdg.17', Port: 587, secure (SSL): no, Server error: 530, error number: 0x800CCC78Server error: 530, error number: 0x800CCC78

    Ensure that the analysis of the electronic mail is disabled (see www.oehelp.com/OETips.aspx#3).  Then delete the account completely and compact and repair the database (see www.oehelp.com/WMUtil/), and then try to add the account back again.  Also check webmail works fine.

    Steve

Maybe you are looking for

  • upgrade OS on the old iPhone 4

    I have an old iPhone 4 provider Virgin mobile.  I have no use this provider and use the phone as an internet device.  For some reason, I decided to reset there including the content. After he did I realized that he had returned to iOS 7.  I had updat

  • How can I access the webcam on Portege R30 - A - 5-1?

    Hi, I have a Portege R30 - A-1 5 and I can not find any application webcam on my laptop to see if it works (Win 7 Pro. 64 bit op system). I visited the Web site of Toshiba, but I have found no driver for this model of laptop webcam.Can someone help m

  • HP Officejet 7610: Scan of the computer cannot be activated or scan and combine them into a single pdf document.

    I've recently updated to macOS Sierra 10.12 and scanning to HP computer software cannot be located when I open the HP utility. I can't find a further recommended HP software for my device other than El captain in operating system online. If I try to

  • HP PSC 1410: Nonexistent jam

    My printer has taken several pages using both and they stuck at half way through.  I released these carefully and open at the front and the back of the printer to make sure that no paper was blocked. All the lights on the printer are green so printer

  • Save the list of favourites to email to new pc later

    I want to send my list of favorites to my hotmail account so I move the list for my new pc when I get one. Your answer was useful to a point - but Outlook Express will not let me send any mail it has my old address earthlink as my main acct and I can