List custom itemRenderer disabled state

Is there a way to implement a disabled state on a (Spark) List ItemRenderer? I'm developing a List that has a counter on each of it's items. When a user drops that item, the counter decreases. When the item counter reaches 0 the item becomes disabled and the item image becomes black and white.
I have the disabled state in my custom item renderer but it doens't work. It's state should become "disabled" when I set the enabled property to false.  I've tried to manually set the itemRenderer.currentState to "disabeld" and it becomes "normal" after I click on the list or if I resize the window.
This is how it should look like (notice that only the orange item is enabled and has colors because his counter still has 9 items):
I have no idea what's going in the background, can you please point me into the right direction?
Here's the SWF (source enabled )
http://dl.dropbox.com/u/6767802/Examples/ListItemDisabledIssue/Flex4ListIssue.html

I would suggest you to go through the LifeCycle of a component. Those methods will help you manage this.
In your case you would need a property in you dataProvider that provides the quantity. This property should set a custom property of your component. The custom property should have a setter. Call invalidateProperties() and invalidateDisplayList() to do what you are trying to do in the setter.
You will have to override commitProperties() and updateDisplayList().

Similar Messages

  • Poor performance horizontal List (TileLayout) with custom ItemRenderer containing a vertical Scroll

    I'm having performance issues with a mobile application layout approach that consists of the following.
    Pseudo code: (based on http://blogs.adobe.com/jasonsj/2011/11/mobile-list-paging-with-page-indicator-skin.html )
    VIEW:
    <View>
         <script>
              function getItemRenderer(data):IFactory {
                   return new ClassFactory(data.itemClass);
         </script>
         <List id="pageList" width="100%" height="100% itemRendererFunction="getItemRenderer">
              <layout>
                   <TileLayout numRows="1" width="pageList.width" height="pageList.height" />
              </layout>
         </List>
    </View>
    ItemRenderer example:
    <Scrollerwidth="100%"
              height="100%">
         <VGroup>
                  <s:Label fontWeight="bold" text="Name 1:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 2:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 3:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 4:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 5:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 6:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 7:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 8:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 9:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 10:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 11:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 12:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 13:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 14:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 15:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 16:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 17:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 18:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 19:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 20:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 21:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 22:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 23:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 24:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 25:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 26:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 27:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 28:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 29:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
                   <s:Label fontWeight="bold" text="Name 30:" />
                         <s:HGroup paddingLeft="50" width="100%">
                         <s:TextInput width="100%"  />
                    </s:HGroup>
              </VGroup>
    </Scroller>
    Basically, I have a lot of input fields, eventually also date choosers, and textareas in each of those item renderers.
    Is there a reason this is not performing well ?
    Is there something I can do to improve the performance ?

    Thanks for the hints.
    Regarding TileLayout vs HorizontalLayout, I haven't seen much difference in performance.
    But I did manage to make everything go faster **.
      1st: not using the StageText on the TextInput's (changed that).
      2nd: there was a font using CFF on the Label fields, which wasn't supported (changed that).
    I'm not sure if those are what made the diff, but I'm happier!
    **: Might be almost viable like this.
    In all, I'm going to have about 7 custom item renderers in the List, but only 1 is visible at the time on screen (taking the whole visible area of the List). Some of the pages (i call them pages in such a case) will have some components that will be more elaborate, like permitting someone to do simple drawing within a region.
    Yes, I'm imagining that the List component still will have them in memory and maybe recycle them if he's smart, thus making it heavy whenever it creates them. Would be interesting to see if I can optmize the creation of the itemrenderer instances. I'm still not that keen about using this approach of using a List to support such a user experience.
    It  would have loved it if the ViewNagivator could better support sliding between Views, but I understand it would require the ViewNavigator to know which View will be the next View, etc.. Maybe something like a ListNavigatorView or something like that
    Details for now.
    Regarding using a Edit mode, I'll keep that in mind and see if it makes sense in this app and how the user experience will be with such a mode.
    Regarding using the HGroup for padding of the TextInput vs using a custom layout or custom component. You probably have a point. I'm kind of new to the Spark world, been using MX since Flex 2 and kind of got scared of the Spark world... No I'm diving head first. Thus, thanks for the hint on that. I'll digg and find some docs about the details on that!
    Thanks again!

  • Items in Tree control move around when data is submitted using custom ItemRenderer

    I'm working on a Tree control with an XMLListCollection as
    its dataProvider.
    The dataProvider has information looking like this :
    quote:
    <?xml version='1.0' encoding='utf-8'?>
    <INFO>
    <FIELD label="STR_USER_NAME"
    type="text"
    value=""
    >
    </FIELD>
    <FIELD label="STR_USER_EMAIL"
    type="text"
    value=""
    >
    </FIELD>
    <FIELD label="STR_OPTIONAL"
    type="branch"
    value="0"
    >
    <FIELD label="STR_USER_ADDRESS"
    type="text"
    value=""
    >
    </FIELD>
    <FIELD label="STR_USER_POSTAL_CODE"
    type="text"
    value=""
    >
    </FIELD>
    </FIELD>
    </INFO>
    So in the Tree control I'd like the information to show up
    with a label and
    an
    editable textbox for each item :
    [Label] [textbox]
    To do this I made a tree like this :
    quote:
    <mx:Tree id="userTree"
    editable="true"
    rendererIsEditor="true"
    editorDataField="curVal"
    itemRenderer="{new ClassFactory(ItemRendererUser)}"
    itemEditEnd="e_ProcessData(event);"
    dataDescriptor="{new DataDescriptorUsers()}"
    showRoot="false"
    verticalScrollPolicy="{ScrollPolicy.AUTO}"
    />
    where the e_ProcessData() function looks like this (I used
    http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/js/html/wwhelp.htm?href=c
    elleditor_073_16.html#202105 as a guide) :
    quote:
    public function e_ProcessData(event:ListEvent):void
    event.preventDefault();
    userTree.editedItemRenderer.data.@value =
    ItemRendererUsers(event.currentTarget.itemEditorInstance).curVal;
    userTree.destroyItemEditor();
    userTree.dataProvider.notifyItemUpdate(userTree.editedItemRenderer);
    } // END OF e_ProcessData()
    I attached the rest of the files because they're a little
    bit longer.
    When I run the program, the data shows up fine when it is
    initialized the
    very
    first time, and I made a test button that just dumps the
    contents of the
    dataProvider in a trace statement to verify that the data has
    been set
    properly.
    The problem I've run into is whenever the textfield is
    edited, the item
    that
    I've selected jumps around the list.
    For example, if I edit the item "STR_USER_NAME" after I
    finish the edit, it
    will move from the very first position in the Tree to the
    bottom of the
    Tree.
    I traced the contents of the dataProvider and the
    dataProvider structure
    stays
    the same, with the "STR_USER_NAME" at the top, but if I look
    at the flex app
    in
    the web browser, its position is at the bottom of the Tree.
    This happens for every other item I try to edit... I read in
    the
    documentation
    that the ItemRenderers are recycled, so it means I should be
    checking to
    make
    sure the initial states are covered, but I'm not sure how
    this affects my
    application.
    Can anyone help me out with this ? Its very confusing - I've
    tried making
    an
    ItemRenderer using pure actionscript, mxml and the
    combination you see in
    this
    example and I always end up with the same behaviour - So I
    must be missing
    something critical...
    // ItemRendererUsers.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    verticalScrollPolicy="{ScrollPolicy.OFF}"
    horizontalScrollPolicy="{ScrollPolicy.OFF}"
    creationComplete="initItemRendererUsers();"
    >
    From my FAQ:
    Q: I've created a custom itemRenderer component to use in a
    List
    based component (Datagrid, TileList, HorizontalList, etc.).
    When my List
    first displays, everything looks fine, but when I scroll it
    or change the
    dataProvider, some of the itemRenderers show values or
    formatting that
    aren't right. How do I fix this?
    A: List-based components don't draw a renderer for every item
    in the
    dataProvider. Instead, they create enough to display what is
    on screen now,
    plus one or two more waiting in the wings. This means they
    recycle the
    renderers rather than creating new ones when you change
    dataProvider or
    scroll up and down. When you use a creationComplete event to
    set up the
    itemRenderer, that event doesn't happen again when the
    renderer is used for
    a different set of data. The solution to this is to override
    the set data
    protected function that most components have.
    For more information, check out the following resources:
    http://www.adobe.com/devnet/flex/articles/itemrenderers_pt1.html?devcon=f1
    http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html
    Please note, I post this FAQ weekly, and you can find a
    permanent copy of it
    here
    http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf

    "peterh8234" <[email protected]> wrote in
    message
    news:gaqttd$kft$[email protected]..
    > Yes - the set and get functions are listed down below.
    But the quirky
    > behaviour
    > is the same regardless of whether I override the set and
    get functions or
    > not.
    >
    > I noticed there was another variable called listData -
    should I be using
    > that
    > one or the data variable to read and write to the
    dataProvider ?
    >
    > // _data
    > [Bindable] public var _data:Object;
    > [Bindable("dataChange")]
    > //
    > override public function get data():Object
    > {
    > trace('[ItemRendererDefault.GET data()] called for {' +
    > _data.attribute("label") + '}.');
    > return _data;
    > } // END OF get data()
    >
    > //
    > override public function set data(value:Object):void
    > {
    > _data.@value = inputText.text;
    > trace('[ItemRendererDefault.SET data()] called for {' +
    > _data.attribute("label") + '}.');
    >
    > invalidateProperties();
    > } // END OF set data()
    Your set data needs to set a flag that gets picked up in
    commitProperties()
    and does your thing that you were doing before in
    creationComplete. You
    should see examples of this in the links I posted. Instead of
    this:
    _data.@value = inputText.text;
    you should look at implementing IDropInListItemRenderer,
    which will allow
    you to dynamically determine which field to look at, instead
    of hardcoding
    it. You also might wind up overwriting the stored value with
    a null value
    when the List passes the stored value in. I'd encourage you
    to really go
    through those links I posted and make sure you understand
    what they're
    saying. The itemRenderer life cycle is one of the hardest
    things to
    understand, but once you understand it, it makes many things
    in Flex much
    easier. It's worth investing the time.

  • Spark List alternating ItemRenderer

    Hello,
    lets say that I what a Spark List display its content like the following:
    [Picture]  text
    text  [Picture]
    Is there a way to define two (or even more,e.g: as  template) custom ItemRenderer and toggle between them?
    How is that solved in the DataGrid for example, where the background color is alternating.
    Best regards
    Marc

    You can try to build a custom ItemRenderer and determine the color,
    state, etc. based on the itemIndex property. For example you
    can use something like:
    if (itemIndex % 2 == 0)
         setStyle("backgroundColor", 0xFF0000);
    In your case I would try adding custom states to the ItemRenderer. You can read more about this in this post:
    http://forums.adobe.com/message/2082895

  • Customer Report or Statement

    Hi All,
    My client have a cstom program for generating Customer payment due list (payments to customer list - displays credit balance). This list uses the tables or hits the following tables: KNA1, KNB1, KNKK, T042Z, BSID.
    Now my question, is there a standard report or statement which generates this information. Basically, it should give customer master data, credit master data and customer open items. (I think these info would hit the above tables).
    Please help me with this. Does SAP offer anything?
    regards,
    Satya

    Thank you everyone for all your responses. probably, I have deviated you all from my actual requirement.
    The client has a typical scenario. They generate payment due list of customers every week - open items due till that date of the week based on customer number, accounting clerk, credit control area and risk category. Once the list is generated, the accounting clerk analyzes the total amount of open items due (may be credit or debit balance) with the total obligation (amount due in next few weeks - may be credit or debit balance) and decides whether to pay or not to the customer. Usually, client ends up paying 3 in 4 times (these are for warranties and incentives).
    Client has custom program for these which i have to replace with standard SAP. I do not have to send this payment due list to customer nor the statements (the customer views the list from a dealer portal online). So, I do not see the need of using SAP scripts or smart forms.
    Can I still use correspondence types to generate payment due list with the use of SAP08 or SAP13 and standard program RFDOR...
    Are there any other options of generating this list? Please advice me and share your thoughts. This is very critical as I have to provide the solution in couple of days.
    I really appreciate evryone for your help.
    Regards,
    Satya

  • DataGrid tooltip doesn't work for customized itemRenderer

    I have a DataGrid with one column is a customized renderer,
    when I try to use the dataTripFunc, it is not showing tooltips,
    same function works for the other non-customized column, here is
    the code:
    <mx:DataGrid id="myDataGrid" dataProvider="{dataContent}"
    width="100%" height="100%">
    <mx:columns>
    <mx:DataGridColumn dataField="name" headerText=""/>
    <mx:DataGridColumn dataField="DateTime"
    headerText="DateTime" showDataTips="true"
    dataTipFunction="cellDataTipFunc"/>
    <mx:DataGridColumn dataField="ImgBar" headerText="ImgBar"
    itemRenderer="ImgBarCell" minWidth="40" showDataTips="true"
    dataTipFunction="cellDataTipFunc"/>
    </mx:columns>
    </mx:DataGrid>
    public function cellDataTipFunc(item:Object):String {
    return "hello world";
    Where the itemRenderer -- "ImgBarCell" is a customized HBox
    component with a label and image on it.
    The tooltip -- "helloworld" shows up for column "DateTime",
    but not for customized ImgBar.
    Does this one have anything to do with event generation for
    customized itemRenderer? Or a bug in flex2?

    Hi
    The TREX server (service) must started and be contactable by RFC - this can be checked by carrying out the actions listed above. (Refer OSS Note - 866547 Error when accessing TREX server for more details )
    <b>Please have a look at the following SAP OSS Note, which will help -></b>
    Note 851106 - Search in catalog from SRM leads to "Service not reachable"
    <u>Other related OSS Notes</u>
    Note 973594 Cross Catalog Search - Configuration
    Note 894717 Items from Cross Catalogs Result does not appears in step 2
    Note 803731 Cross-category search returns no result
    Note 847137 OCI, cross-catalog search: detail display
    Note 996885 Cross Catalog Search - Timeout while accessing MDM Catalog
    1023487 cross-catalog-serach in portal opens up a duplicate window
    1020025 Item detail display in Cross Catalog Search
    1027352 Item detail display in Cross Catalog Search
    Note 866547 - Error when accessing TREX server
    Note 988427 - Update to TREX 6.1 Rev 27
    Note 994623 - Hierarchy Buffer and BIA
    Note 1030056 - Improvement in the Search within Results feature of CSE
    Note 798988 CCM/CSE: Sorting sometimes returns no results
    Note 778688 TREX_INDEX_MANAGER unit test update_view(): incorrect search
    Note 808754 Display sequence of the characteristics is not changeable
    Note 794325 - Error in OCI transfer in the BAdI /CCM/OCI_SCALEPRI
    Note 745235 Search ability changes to cross-catalog characteristics
    Note 724097 - Search of the comp. in case of structured characteristics
    Note 743643 Search ability change in cross-catalog characteristics
    Note 847551 Displaying date, time, and timestamp in the CSE
    Note 750756 Program for the deletion/clean up of TREX indexes
    Do update me as well.
    Regards
    - Atul

  • I am trying to update my billing detail on my IPAD2. However it keep on saying that the country need at least 3 characters long. But the country field is a dropdown list with Malaysia's states all with 2 characters long only! I can't make any purchase now

    I am trying to update my billing detail on my IPAD2. However it keep on saying that the country need at least 3 characters long. But the country field is a dropdown list with Malaysia's states all with 2 characters long only! I can't make any purchase now because I can't verify the billing detail because it just doesn't work! Very frustrating now.

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Missing "disabled" state in skin

    I have a custom component CircleProgress.mxml with two states: "default" and "other", using a skin with the same two states defined. But during compilation, there appears an error in the skin file: The required skin state "disabled" is missing.
    I don't want any "disabled" state because the logic of my application does not include such state. How to get rid of this error? (without adding the "disabled" state)
    Below is the code:
    <s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
                       xmlns:s="library://ns.adobe.com/flex/spark"
                       xmlns:mx="library://ns.adobe.com/flex/mx"
                       skinClass="mylib.progress.circle.skins.SolidSkin"
                       >
        <s:states>
            <s:State name="default"/>
            <s:State name="other"/>
        </s:states>
        <fx:Script>
            <![CDATA[
                import mx.events.FlexEvent;
                import spark.components.supportClasses.SkinnableComponent;
                import spark.primitives.Ellipse;
                [SkinState("default")]
                [SkinState("other")]
                [SkinPart(required="true")]
                public var skinCircle:Ellipse;
            ]]>
        </fx:Script>
    </s:BorderContainer>
    And the skin:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/mx">
        <fx:Metadata>
            [HostComponent("mylib.progress.circle.CircleProgress")]
        </fx:Metadata>
        <s:states>
            <s:State name="default" />
            <s:State name="other" />
        </s:states>
        <s:Ellipse id="skinCircle" width="100%" height="100%"    >
            <s:stroke>
                <s:SolidColorStroke color="blue"/>
            </s:stroke>
        </s:Ellipse>
    </s:Skin>

    I think you're right. It is even written in Adobe documentation of the BorderContainer under the Skin States section, I just didn't notice it before, Bordercontainer inherits "disabled" and "normal" skin states.

  • Calling function in tilelist custom itemrenderer

    Hi,
    I have a tilelist with a custom item renderer (a canvas if it
    matters).
    When another event on the form occurs, I want to call a
    function on one of the items in the tilelist.
    How do I call a function in a custom itemrenderer of an item
    in a tilelist from the parent application?
    thanks!
    Paul

    Hi SujitG, thanks for the reply.
    My understanding of event bubbling is that an event only
    bubbles up the parent's chain of ancestors in the display list.
    Siblings, such as two controls inside the same container, do not
    intercept each other's events.
    So, the item renderer could not intercept the event from the
    sibling control (in this case it's a videodisplay).
    But your answer is on the right track, if only part of the
    way there.
    The way I have solved it so far, is to have the videodisplay
    dispatch a custom event. I added an event listener to the canvas
    that contains the tilelist and the videodisplay. Since the canvas
    is a parent to the videodisplay, it has no trouble capturing the
    event that is bubbled up to it. The next step is to then have the
    event handler located in the parent canvas call the function in the
    item renderer.
    The answer that I am looking for is, How do I call a function
    in the itemrenderer of the tilelist from the parent container?
    I expect the answer will be something like:
    myTileList.ItemRenderer
    .somePublicFunction();
    Regards,
    Paul

  • A report to show 2008 Customer Sales by State.

    My customer needs a report to show 2008 Customer Sales by State.  I don't see any SAP reports that will do this.  Is the state held in any of the document files that I could use to create a query??  Or does anyone have a query that reports this information?

    Try using following query:
    SELECT T0.CardCode, T0.CardName, T0.DocNum, T0.DocDate, T0.DocTotal, T1.State
    FROM OINV T0
    INNER JOIN CRD1 T1 ON T0.CardCode = T1.CardCode
    AND T0.ShipToCode = T1.Address
    Though A/R Invoice, does not store the state code separately, it does store the addresscode, which was used for shipping, which could be linked to the Addresses table. Though if the user changes the address manually, than there is no other way, but to do some programming and find the address name, though it will be pretty difficult, because users might not always be correct with their spellings.
    Rahul

  • How do I make a Custom DataTip with Custom ItemRenderer

    I can't seem to find any documentation or examples of
    displaying a dataTip (similar to those used with charting) with my
    custom itemRenderer (mxml component). This is for use in a
    dataGridColumn. I Could someone give me an example? The closest
    I've been able to find is
    http://www.mail-archive.com/[email protected]/msg61624.html,
    which doesn't say how to do it.
    Thanks!

    http://blog.bigfatstogie.com/?p=42
    run the example towards the end of the page

  • Fields are in disable state

    Hi,
    I am getting all my fields in disable state......
    please help me why i am getting in disable state
    Thanks& Regards
    Ravi Shnkar B

    Hi Ravi,
    May be the attributes which you may have binded with the input feilds is under a node of carinality 0:n. If it is so then <b>change it to 1:n</b>.
    Actually what happens is even if you have mapped the attribute <i>there is no element yet created for that particular attribute</i> if the cardinality of the node is <b>0:n</b>. Hence the feild will be displayed as <b>Disable</b>. When you make it as <b>1:n</b> then a element of that attribute under that node is created. Hence you can see the feilds enabled.
    I hope this solves the problem.
    Regards
    Pravesh
    PS: Kindly consider rewarding points if helpful and solved.
    Message was edited by: Pravesh Verma

  • Campus Manager report - Ports in error Disabled state

    Hi,
    I have LMS 3.2 and I wonder how Campus Manager collects information from the switch to generate a report of discrepancies, namely a report of "Ports in Error Disabled state"??
    I find that I have ports in errDisabled state but Campus Manger doesn´t show this information in "Ports in Error Dissabled state" report. What could be the problem?
    Thanks.

    Hi,
    Campus Manager do snmpwalk on the ciscoErrDisableMIB to get the status of the error disabled ports.
    Thanks,
    Gaganjeet Singh

  • How to change train step from visited state to disabled state

    Hi all,
    I like to change visited train step into disable state again.
    Is there anyway to do this?
    With Regards,
    WP

    Hi M.Jabr,
    Thanks for your reply.
    It works.
    i like to know one more thing about train.
    is there anyway to change visited state to unvisited state?
    With Regards,
    WP

  • Can't focus on custom itemRenderer?

    I have made a custom itemRenderer doubling as an itemEditor
    following the guidelines in the documentation.
    However, even though I have set the rendererIsEditor="true",
    when tabbing amongst other editable fields, the controls inside the
    itemRenderer do not receive focus. I can't help but think this is
    an oversight/bug but is there any way to jury-rig the itemRenderer
    to focus properly? At the moment my component is simply a CheckBox
    inside an HBox.
    Anyway, here is my code so you can see for yourself (I have
    included a CheckBox as itemRenderer so you can see the *desired*
    effect.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical">
    <mx:Script>
    <![CDATA[
    import mx.controls.dataGridClasses.DataGridListData;
    import mx.controls.Alert;
    [Bindable]
    public var dp:Array = [{num:2, bool:true}, {num:3,
    bool:false}];
    ]]>
    </mx:Script>
    <mx:DataGrid id="test" editable="true"
    dataProvider="{dp}">
    <mx:columns>
    <mx:DataGridColumn dataField="num" headerText="num" />
    <mx:DataGridColumn dataField="bool"
    headerText="Sent"
    itemRenderer="mx.controls.CheckBox"
    rendererIsEditor="true" editorDataField="selected" />
    <mx:DataGridColumn dataField="num" headerText="num"
    editable="true" />
    <mx:DataGridColumn dataField="bool" headerText="Sent"
    rendererIsEditor="true" editorDataField="blorch">
    <mx:itemRenderer>
    <mx:Component>
    <mx:HBox horizontalAlign="center">
    <mx:Boolean id="blorch" />
    <mx:CheckBox id="check" selected="{data.bool}"
    change="blorch=check.selected" />
    </mx:HBox>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    <mx:DataGridColumn dataField="num" headerText="num"
    editable="true" />
    </mx:columns>
    </mx:DataGrid>
    </mx:Application>

    nevermind... I found the answer a few pages later in the
    docs...
    you have to implement the IFocusManagerComponent interface
    and then override drawFocus as below to set the focus on the
    checkBox... hope it works for multiple controls...
    <mx:HBox horizontalAlign="center"
    backgroundColor="#9933EE"
    implements="mx.managers.IFocusManagerComponent">
    <mx:Script>
    <![CDATA[
    override public function drawFocus(focused:Boolean):void {
    check.setFocus();
    ]]>
    </mx:Script>
    <mx:Boolean id="blorch" />
    <mx:CheckBox id="check" selected="{data.bool}"
    change="blorch=check.selected"
    updateComplete="blorch=check.selected" />
    </mx:HBox>

Maybe you are looking for