Blues selector...

After having had my problem solved here previous selector perfectly unfortunately chanced upon another with the selector. I have a simple selector that allows you to select a date (shameleslly stolen in the examples API). I integrated it into a new class. It displays very well and you can select a date. Now, I need reeive this return date. So I added a new feature for my selector class that gets the indices, adds a few numbers and POPs in an arrray he returned to the main program. Then all hell breaks loose. somehow, it returns the numbers added to the picker itself. I added 1900 to the year index it as crasches it wil only go up to 249 (representing in 2050). How is it done? I was under the impression that the getIndices method could send me all indices and not always send to the selector as well. Is this another bug in the selector or I'm doing something wrong here? Code pasted below. Part where it won't is the GetDate() function I call the main program.

package classes
{
    import flash.display.Sprite;
    import flash.events.Event;

    import qnx.ui.data.DataProvider;
    import qnx.ui.picker.Picker;
    import qnx.ui.text.Label;

    [SWF(height="600", width="1024", frameRate="30", backgroundColor="#BBBBBB")]
    public class ClsDatePicker extends Sprite
    {

        public var picker:Picker;

        public function ClsDatePicker()
        {
            // Create three arrays to handle days, months, years.

            var arrDay:Array=[];
            var arrMonth:Array=[];
            var arrYear:Array=[];

            // Populate the month array and create the
            // day DataProvider 

            for (var i:int=1; i<32; i++) {
                arrDay.push({label: i.toString()});
            }

            var dayDP:DataProvider=new DataProvider(arrDay);

            // Populate and month array and create the month
            // DataProvider

            arrMonth.push({label: "January"});
            arrMonth.push({label: "February"});
            arrMonth.push({label: "March"});
            arrMonth.push({label: "April"});
            arrMonth.push({label: "May"});
            arrMonth.push({label: "June"});
            arrMonth.push({label: "July"});
            arrMonth.push({label: "August"});
            arrMonth.push({label: "September"});
            arrMonth.push({label: "October"});
            arrMonth.push({label: "November"});
            arrMonth.push({label: "December"});

            var monthDP:DataProvider=new DataProvider(arrMonth);

            // Create the year DataProvider

            for (var l:int=1900; l<2050; l++) {
                arrYear.push({label: l.toString()});
            }

            var yearDP:DataProvider=new DataProvider(arrYear);

            // Add the day, month and year DataProviders to the main
            // array

            var dpp:Array = new Array();

            dpp.push(dayDP);
            dpp.push(monthDP);
            dpp.push(yearDP);

            // Create the picker and add the main DataProvider

            picker = new Picker();

            picker.width=400;
            picker.height=31;
            picker.x=picker.y=300;
            picker.dataProvider=new DataProvider(dpp);
            addChild(picker);

            // To customize column widths,
            // all widths are added up and then used for
            // a ratio against the component set width

            picker.setListWidth(0,100);
            picker.setListWidth(1,300);
            picker.setListWidth(2,200);

            // Set to Jan 1, 2010

            picker.selectedIndices=[0,0,110];

            // Add listeners for open, close and select events

            picker.addEventListener(Event.OPEN,handleOpen);
            picker.addEventListener(Event.CLOSE,handleClose);
            picker.addEventListener(Event.SELECT,handleSelect);
            picker.addEventListener(Event.CHANGE,handleChange);

            // A simple function that displays currently selected
            // item information in the console. 

            traceItems();

            function traceItems():void
            {
                for (var j:int = 0; j  
         
        

Hey cyriel,.

how tables work in AS3 is a little weird. When you make the table array1 = array2 it simply copy the reference to the old Bay. so when you make changes in your new table and it makes changes in the first table. work around this is to create a "copy" of the array1 in this case the picker.selectedIndices. Try the following code to your method GETDATE():

public function getDate():Array{    var arrDate:Array = new Array();    arrDate = picker.selectedIndices.concat();    trace(arrDate[0] + ", "  + arrDate[1] + ", "  + arrDate[2]);

    arrDate[0] += 1;    arrDate[1] += 1;    arrDate[2] += 1900;

    return arrDate;}

I also changed your layout line because your an original had crushed together numbers. I have OCD

hope that helps. Good luck!

Tags: BlackBerry Developers

Similar Questions

  • (tag div selector in mode live view in Dreamwear CC2015) usually appears with a light blue box and selector in a blue box in the upper left corner.

    (tag div selector in mode live view in Dreamwear CC2015) is usually a blue box with the selector in a blue box in the upper left corner. Who discovers is no longer present.

    Mac OS in Preferences, how can I get these to appear again?

    Your screenshot shows affinity CSS file of the project seven is selected in the tabs.

    Try clicking on the Source Code tab.

    Nancy O.

  • How to make links in Pages are displayed in blue

    How to make links in the Pages appear in blue?

    Select the first instance of the text with a hyperlink. Then Format menu: fonts: display fonts. On police Panel, there is a button for the underline. At the bottom of this associated menu is a color menu item. Click on that and a color picker appears. Find the shade of blue that you want for your link, and when you do, your selected hyperlink will change a black! highlight your blue color.

    Don't deselect this hyperlink which now has blue underscore. You will notice that the character Styles shows Link (black) in the selector. Click on and then click on the "BOLD" symbol to add a new style for your hyperlink Blue + Blue. You can be creative and just call it a blue link. This new character style is only valid in your current document. In the Format menu, select the Style of copy, and then select each black underlined hyperlink, you can select menu Format: Style block to date each other.

    Not yet done. If you want a permanent blue hyperlink in the v5.6.2, Pages then you will need to get it into a model for re-use. I suggest that you create a document by using the empty template, add your desired character, paragraphs and list styles and then save it under your own custom template empty.

  • SKY BLUE TO USING THE SMART BRUSH?

    I'm trying to blue sky-wash using the Smart brush to 13 items. Despite what I believe to be the correct procedure (i.e. open the image in Photo Editor, click on the smart brush, smart brush tool, choose the effect of sky blue (top-left) in the effect selector, select the adjustment brush and clicking on the photo selected area Sky does any change.) Can someone advise please?

    Thank you very much in anticipation.

    On the layer of blue sky 1 mix 'Normal' mode or 'darken '. It works for you?

  • How to completely replace my links turning blue in all cases?

    Hello

    I'm sure this topic has been covered by a million times, but I did a search and can't really find an answer to my problem.

    I want to completely replace DW turning my blue links and pointing out their.

    BUT I don't want to set a final color for the links to be.

    I mean DW to just leave them alone and let me re-branded, a color and a style with a separate css.

    All the solutions, I can see using the ' a: link a: visited a: hover one: active' allows you to set a color which then replaces my other styles still require.

    This example...

    "menu_basic" is the style I want the > cv < appear in and the link is on my cv page "... / cv_p1.html".

    <span class="menu_basic"><a href="../cv_p1.html">cv</a></span></div>
    

    This is my css menu_basic style...

    .menu_basic {
              font-family: Helvetica, Arial, sans-serif;
              font-size: 0.9em;
              line-height: 1.5em;
              color: #666666;
              font-weight: normal;
    }
    
    

    and these are the css styles, I put in place to try to substitute, that I found on this forum

    }
    a:link {
              text-decoration: none;
    }
    a:visited {
              text-decoration: none;
    }
    a:hover {
              text-decoration: none;
    }
    a:active {
              text-decoration: none;
    }
    
    

    But my link is blue!
    The underlining disappears so I'm halfway there but it is still blue.

    I know that my selector is correct because if I actually assign a color to the ' a: link ' style css, it works.

    BUT I don't want to assign a color I just want to leave the color completely alone!

    You can ask why don't I just think I give just the color #666666?
    But that would mean that the links are blocked on this color.

    Considering that there are times, I want them to be of different colors.

    Surely, there must be a way to tell just DW to leave completely alone?

    Need help please, I'm pulling my hair out here!

    Thank you

    Dan

    p.s. I am very new to this Yes, you can keep simple to understand explanations!

    You can ask why don't I just think I give just the color #666666?

    But that would mean that the links are blocked on this color.

    No, it wouldn't mean that.  It would be only average links selected by your rule selector would be this color.  It is common to have multiple link rules, for example,

    a {color: red ;}}

    #nav a {color: green ;}}

    #content {color: Heliotrope ;}}

    #footer a {color: polka-dot ;}}

    etc.

  • Blue 'Halo' on the spry in Safari tab

    I have a blue border around my Panel collapsible spry (tab only) in Safari. Is it a rule of default browser that I write too? If so, no clue about CSS selectors target?

    Remove it completely.

    In Code view, change

    tabindex = "0">

    TO

  • BLUE OUTLINE IN SpryCollapsiblePanel.css

    I added successfully to the SpryCollapsiblePanel.css. Once I saw and click on the link on the menu, I get an annoying blue box.

    I looked at the CSS for the Spry menu and there is nothing to indicate that there is a selected border.

    Please can someone help!

    Thanks rhythm...

    Add outline: none; to the . CollapsiblePanelTab css selector.

  • Image without blue area around GIF map

    I tried to get the Dreamweaver 8 image map to work, he action is easy, but how do I remove this blue box surrounding the image that I use as my card. I decided to use an image map, as layers and tables were causing problems with the way in which they rendered differently in IE7 and Firefox 2.
    I got the clickable section the > email to technical support problems< element in the image.

    Feel free to offer advice that you can! It may be a problem with my XHTML or CSS even
    The question page is listed below:
    http://deeps951.I8.com/contact.html

    Thank you for helping me with this dilemma!

    Andrew

    Hi André,.

    You can try adding the following to your CSS file to the body selector:
    border: 0px;

    This will set all borders to zero pixel and then you can add borders to
    the items you need them later.

    Hope that helps.

    Adrian

    > I tried to get the Dreamweaver 8 image map to work to
    > It activates
    > is easy, but how do I remove this blue box surrounding the image I
    > uses
    > like my card. I decided to use an image map, like the two layers and
    > tables were
    > causing problems with the way they have rendered differently in IE7 and
    > Firefox 2.
    > I overcame the clickable section the > email to problems in
    > helpdesk
    < element="" of="" the="">
    > Feel free to offer advice that you can! It may be a problem with my
    > XHTML or
    > same CSS
    > The page with the issue is listed below:
    > http://deeps951.i8.com/contact.html
    > Thank you for helping me with this dilemma!
    >
    > Andrew
    >

  • Is it possible to programmatically control line for a line selector?

    Greetings,

    I have a report that contains the line selector column. I'm processing lines which are activated by the user when he clicks on a button, so I'm already a loop through FOR ii IN 1... Apex_Application.g_f01. COUNTY.

    I need some lines to always be dealt with in the loop, so I would:
    1 have some lines checked automatically. Is this possible?
    2. using the same logic that automatically checks some lines, I also want to make sure they remain activated, or processes in the loop. (You know, I can check automatically certain lines, but the user can disable the). So, even if the user does not check them, I would check a program before the second FOR IN 1... Apex_Application.g_f01. COUNTY loop occurs.
    3. If it is possible to prevent the disabling of a line that is automatically checked it would be great and would mean that requirement 2 is debatable. If possible let me know. That would be sweet. :-)

    I hope that makes sense, and that you understand what I have to do. If this is not the case, let me know.

    Thanks in advance for your help, Tony

    This should work:

    htmldb_item. CheckBox (2, ecn_approval_master_id, Decode (Mandatory, 'Y', 'disabled', null), Decode (Mandatory, 'Y', ecn_approval_master_id, null))

    This should give you something to think about :)

    Off home to watch Chelsea play now, come on the blues. Talk 2mrw

    See you soon

    Shunt

  • Blue screen and bad RAM memory?

    My MBP 2011 early all just stopped working yesterday, it worked very well without any problem of performance for the last 5 years, and then suddenly a blue screen (of death) and it has problems starting.

    He will ring the Bell to start, display the bar loading and Apple, and then there will be a glitch on the big screen (horizontally) 1 inch above the Apple, after that, the fans speed up and all that I see a gray screen, not user interface.

    I zapped the PRAM/MSC and tried the unique memory sticks, I have no spare RAM on hand, but who will order soon.

    Tips to solve this problem?

    AHT says this - 65/4MEM/4000000000: 0x84f6f918

    Google says it is bad memory

    Here is the BSoD:

    I think you have a problem of memory, although if your MacBook Pro 15 or 17 inch, you should consider video issue as well now.

    http://www.Apple.com/support/MacBookPro-videoissues/

  • iTunes blue stars side vs Black Stars Rating

    Since the update for Sierra, I notice that MOST of my song rating stars is blue and a few are black. No idea what's different?

    Blue: you noted, black or dark gray is because you have not noted

  • Blue square with a question mark instead of a picture

    I'm on Messages to use with your Mac - Apple Support.

    Instead of pictures (or), I get a blue square with a question mark in it.

    This does not happen with all Web sites, but I wonder why it's happening with an Apple site, and how I can see the photos.

    It sounds like a broken image link.

    Post a screenshot if you can, so that we can confirm. The page seems OK after a glance. Command + shift + 4 then do slide on the affected area, add the image to the desktop to this site via the camera icon.

    If you have browser extensions, disable them and repeat the test. Also try a different web browser if possible to see if it is the scale of the system or only Safari. Is - this Safari you use?

  • Why the songs in iTunes have now star black and BLUE stars?

    replace the gray stars blue stars? or the Black Stars replace the gray stars? or they mean something else?

    I think its all academics like apple are clearly getting rid of the stars still coast.

    If anyone from apple is listening, enlarge the font doesn't make it easier.

    Why not let stars like black or a point. No Star gray. no blue star. no automatic scoring for albums. and the rating stars BRING BACK on iOS immediately!

    It would be simple and easy, and a lot of people really want to.

    It is a voluntary forum, but you can let apple know about your concerns and your suggestions here.

    Apple.com/Feedback

  • 10 blue screen on iPhone iOS 5

    I have blue screen in 1-2 seconds on my iPhone 5s by force to restart, then my phone starts as it should and works without any problem. Previous versions of iOS didn't have this bug. What is the problem?

    Same here, I had no problem with ios 9.3.5 just updated to ios 10 with itunes I get the same thing on my iphone 5s and I restore factory default and no luck.

  • Can anyone recommend a reliable blu ray software for use with a MacBook?

    Hello world

    I've been watching Blu - Ray software for Mac, but I thought I would check here first of all for the recommendations?

    Can anyone suggest a software reliable blu - ray.

    Thank you

    http://www.macblurayplayer.com/features.htm

Maybe you are looking for