Code sample session fix 4

Hey everybody,

I was wondering if someone could explain why when trying to remove the first url added to the FeedManager, causes a crash saying that CurrentItem is a null object? It makes no sense, since all other URLS added are detected and act as they should, with the exception of the first.

See you soon,.

DECIBELL

Hey decibell,.

There is a 'mistake' in the code. apparently when the drop down menu is created the value of selectedIndex is set to zero. This means that when you go to the page manage flows and see the drop nothing is "selected". and when you click on the selected power button Delete you can obviously see that the first item on the list is "selected", but technically to the system nothing is selected initially. That's why you can delete subsequental on the list without cause problem you actually select these items in the list before deleting. workaround for this problem is:

Scroll down in your FullRSSReader.as class file to where it creates the drop (dp):

(...)

var dp:DropDown = new DropDown();
dp.rowHeight = 30;
dp.width = 250;
dp.x = 700;
dp.y = 40;
dp.dataProvider = feedManager.getSharedData();

(...)

at the end of this block of code, you must add the line in bold below:

var dp:DropDown = new DropDown();dp.rowHeight = 30;dp.width = 250;dp.x = 700;dp.y = 40;dp.dataProvider = feedManager.getSharedData();dp.selectedIndex = 0;

now when the drop-down list is created on the default screen on the first item on the list as the selected item. and now the error shouldn't appear anymore. hope that helps!

Tags: BlackBerry Developers

Similar Questions

  • How to make repeated calls to the reader in the AcqVoltageSamples_IntClkAnalogRef code sample.

    I want to make repeated calls to the reader in the AcqVoltageSamples_IntClkAnalogRef code sample.  A comment in the code says I can do simply by calling the reader. BeginReadMultiSample method of the callback function. I tried this without success using the same settings for the player. Is it possible for the callback function? If Yes, how should I call the reader? I'm programming in c#.

    Thank you

    John

    Doug,

    No problem.  I found the class to which the timeout without much property in safely.  I now have a solution to repeated calls.  The two keys were the infinite time-out setting and the elimination of all the DAQmx objects in the finally section of the callback function before calling the AcquireData() method for the next cycle of reading and processing of data.  The user sets blQuit to false and call AcquireData() by clicking on the Start button.  Repeated calls are then made to 'automatically' until the user clicks the button exit.

    Thanks for your help,

    John

    Private Sub AcquireData()

    This code creates all the objects needed to acquire and store the data of a "sweep."

    {

    slaveTask = new Task();  Double sampleRate = Convert.ToDouble (this.cbxSampleRate.Text);

    Double minVolts = Convert.ToDouble (this.cbxMinVolts.Text);

    Double maxVolts = Convert.ToDouble (this.cbxMaxVolts.Text); int samplesPerChannel = Convert.ToInt32 (this.cbxSamplesPerChannel.Text); slaveTask.AIChannels.CreateVoltageChannel ("Dev1/ai0", "", (AITerminalConfiguration)(-1), minVolts, maxVolts, AIVoltageUnits.Volts);

    Set up sync Specs

    slaveTask.Timing.ConfigureSampleClock ("", sampleRate, SampleClockActiveEdge.Rising, SampleQuantityMode.FiniteSamples, samplesPerChannel);

    Set up the reference trigger. US fires with a level of 1 volt and will record 2 samples of trigger before (the minimum)

    slaveTask.Triggers.ReferenceTrigger.ConfigureAnalogEdgeTrigger ("APFI0", AnalogEdgeReferenceTriggerSlope.Rising, 1.0, 2);

    slaveTask.Stream.Timeout = - 1;

    slaveTask.WaitUntilDone ();

    Check the task

    slaveTask.Control (TaskAction.Verify); InitializeDataTable (slaveTask.AIChannels, ref dataTable);

    acquisitionDataGrid.DataSource = dataTable;

    Reader = new AnalogMultiChannelReader (slaveTask.Stream); drive. SynchronizeCallbacks = true; drive. BeginReadMultiSample (Convert.ToInt32 (cbxSamplesPerChannel.Text), New AsyncCallback (slaveCallBack), null);

    }

    catch (System.exception DaqException)

    {

    MessageBox.Show (exception. (Message);

    slaveTask.Dispose ();

    }

    }

    private void slaveCallBack (IAsyncResult ar)

    {

    Try

    {

    read data from the channel

    data = reader. EndReadMultiSample (ar);

    dataToDataTable (data, Ref dataTable);

    plot the data here, if blKeep also write it to file

    }

    catch (System.exception DaqException)

    {

    MessageBox.Show (exception. (Message);

    }

    Finally

    {

    This. Refresh();

    slaveTask.Dispose ();

    If (! blQuit)

    {

    AcquireData();

    }

    }

    }

  • How can error code 66A I fix this__

    help me solve my computer whenever I try to do my windows updates, I get an error code 66A, how can I fix

    See the Srinivas R response to a previous post about the error code:

    http://social.answers.Microsoft.com/forums/en-us/vistawu/thread/31151006-dfd4-4B93-85EC-26ac470df87c >

  • build error of createUser using the c# code sample

    I get the following build error when you use the c# code for the createUser use method example.

    I use VisualStudio2008 and the Blackberry_Admin_API - 5.0 - US.pdf c# code example.

    Build error States:

    Cannot implicitly convert type 'BESAdmin.BASemailExchangeWebService.EnableBlackBerryUserAttributesType' in 'BESAdmin.BASCoreWebService.EnableBlackBerryUserAttributesType' C:\VS2008\BESAdmin\BESAdmin\Form1.cs 76 488 BESAdmin

    The build error is on this part of the code:

    for (int j = 0; j)< attributes.enableblackberryuserattributes.length;="">

    {

    userEnableBBAttributes.enableBlackBerryUserAttributes [j] = attributes.enableBlackBerryUserAttributes [j];

    }

    Everyone has this same problem and found the solution?  It seems that there is something missing or incorrect in the sample code around type conversion between the EnableBlackberryAttributesType.

    Thank you, Ed

    Hi Ed,

    I tried throwing the code example in a project already created the mine and has not known this error at compile. The two types of objects must be the same, so I don't know why there is no conflict with assignment.

    Please try to use the sample code to create a user from the BAA API reference documents:

    http://www.BlackBerry.com/developers/docs/BAA/5.0.0/

    Or the Knowledge Base of the developer section:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/1608023/How_To_-_Get _...

    It can also be a good idea to recreate your proxy to do this.

    Let us know if the problem is still evident with the examples above.

  • Impossible to clone any code sample of BlackBerry of GitHub (on Windows at least)

    GitHub recently brought significant changes to their web site and workflow. It was that you could clone any public repository simply by downloading a ZIP file of the entire project.  It is no longer available, and now the only way to clone a repository must be running a git clone of the command line, or use the new GitHub application, which is much easier to use occasional (and not irritable). Or other method now requires to have an account on GitHub, so I advanced and created a new.

    Generally, the simplest workflow is to launch the GitHub application (not sure if this is true for non-Windows platforms), then use a browser to navigate to the repository on GitHub and drag the token "GitHub Inc." to the far left of the navigation bar of the browser on the GitHub application screen.

    At this point GitHub is supposed to appear a window asking where you want to clone the repository to locally. This happens for ALL the code examples in BlackBerry. Instead, you get a window that displays a message like this:

    The log file is completely useless, since it only contains entries on the GitHub application startup, do not attempt cloning. I pulled my hair for two days trying to solve this, thinking that my GitHub configuration was corrupted somehow, since I hadn't used for cloning any other depositary before the BlackBerry I have tried. For some reason any at 03:00 one morning that all of a sudden, I wondered if all other repositories might work, so I tried a few public ones as a cloning experiment. To my surprise, they were all cloned perfectly. Other tests revealed that ANY non-BlackBerry repository, I tried would be perfectly, clone while NONE of the BlackBerry code those would clone example. I tried since with repositories of the sample of BB at least a dozen, all with the same negative results.

    As I said, the other way to clone a repository with git clone CLI command or use a tool such as TortoiseGit, actually running a git clone under the hood. Anyway, trying to clone a repository of sample BB the command indicates that there is no repository at the specified URL.

    Many of the sample of BlackBerry apps can be downloaded from the home page Momentics, but many less popular are not included and only can be cloned from the GitHub site. Given that it is impossible, it's a show total Cap unless you want to watch one of the most common of the homepage.

    Here are a few deposits NON-BlackBerry which clone perfectly using the two methods I describe above:

    https://github.com/colinsc/Koha/

    https://github.com/pianohacker/Koha

    https://github.com/bendc/Sprint

    https://github.com/mikeflynn/egg.js

    https://github.com/square/keywhiz

    https://github.com/CoderMJLee/MJExtension

    These are all repositories just randomly from several sources with nothing in common except that they are public GitHub repositories. All clone them easily. Now try to clone ANY repository of sample of BlackBerry. This one, for example...

    https://github.com/BlackBerry/Cascades-samples/tree/master/cascadescookbookcpp

    Cloning will fail. Can someone at BlackBerry please look at this?

    IIRC, you need to clone the whole samples, they are not available as individual projects.
    (may be unrelated to your question, I haven't checked it)

  • Signature keys and code updates - bugs fixed and improvements

    Apologies if I put this thread in a wrong forum. Please feel free to move.

    I have a few questions about code signing and approval of the request and I would be really grateful to anyone who could please help me with that.

    1. I bought a single set of keys to sign my .cod files to deploy the portable device of code signing. Should I get an authorization from RIM or BB to deploy my application on a device in the following cases - i) if I want to use BB App store, ii) if I don't want to use BB App store and load the application manually from a PC, iii) if I want to use another installation for deployment outside BB OTA.

    2. for updates in my current application for example bug corrections or improvements, I needed to buy a new set of keys for code signing or those I bought previously would do the job (assuming that I sign my files from the same workstation COD).

    3. If the old code signing keys would be sufficient for the same application, but with some bug fixes and improvements, what all would I need to update either in my camera (if the application is deployed on the device) or on the BB App store.

    4. what happens to jar files? I also need to load jar files in my handheld device to run the application? If so, then I need to update the jar files in the event of bug fixes?

    Please help me on the above questions because my project is in a very critical stage now. I will be really grateful.

    Thanks in advance a ton.

    Your set of keys (files *.csi and sigtool.*) can be used for unlimited applications and for unlimited signatures.

    There is no limitation for you.

    Just make a backup of your key (*.csi and sigtool.* files) and restore JDE/bin folder when necessary.

    This means that all the files of new/updated cod to date could be signed with the same key set?

    You can use the keys that you have already bought for new and updated and you want cod files.

    There is no need to buy these keys again.

  • Code sample of JCA missing src on official link files

    Hello

    I downloaded the following file on the site Web of Oracle contains the JCA (examples of adapters JCA of Tuxedo) sample code:

    Oracle Tuxedo sample code

    After unpacking, I discovered the src folder is empty. During the generation of Ant, it gives an error:

    BUILD FAILED

    /Home/brunno/JCA-samples/build.XML:76: warning: could not find/home/brunno/JCA-Samples/src/tdom/ubb of file to copy.




    Am I missing a step here? Or does not the download link?

    Thank you

    brunno Attorre

    Brunno,

    the archive has been updated on OTN. Let us know if you need anything that anyone else.

    Thank you

    Maurice

  • How to put the code in format fixed

    Hello
    The post of code, report statspack/AWR, plans of execution or trace files, start and end of the article with the tag
     >(lowercase, curly brackets, no spaces) so that the text appears in
    
    fixed format
    If I want to paste the results to txt file or sql * plus which should appear in a fixed format here for the understanding of people, so how can I do this please.

    I tried to put {at the beginning and} at the end and checked by clicking on the preview, but again its all messed up tab.

    Please help with some examples so that I can continue with it.

    Thank you.

    Concerning
    KAM

    Please refer to http://forums.oracle.com/forums/help.jspa

    When you type:

    {noformat}

    select *
    from   dual;
    

    {noformat}

    It appears that:

    select *
    from   dual;
    

    When you post the it.

  • I get the Ox80040154 error code how to fix?

    I have Microsoft program "Microsoft difficulty it Center" whenever I try to execute a solution he gives me an ie error message.

    Error Code Ox80040154

    Hello

     
    I suggest you to ask your question in
     
  • Code sample NFC in the development guide does not

    Hello.

    I just wrote a quick Hello world app for reading and writing NDEF records, based on the code provided in the development Guide.

    I use the MiFare Ultralight tags. However, it does not work.

    I could write NDEF only once during the tests, but after that I was unable to write the tags again or delete them using my application. However, the application of NFC demo included with the BB is able to write.

    Thinking that the tag doesn't have enough space to store the nested NDEF message of the dev guide, I changed the code (reader and writer) use only a title and url records, without success.

    I also tried to change the parameter listener of NDEFRecord.TNF_WELL_KNOW to NDEFRecord.TNF_ANY, so read the labels already written with the demo included in the BB application, but it has no effect. I have read that sporadically with the two types, but most of the time the BB does not detect everything just the tag.

    Now, I know that:

    • The tag is readable and writable, because I read and written in the plain format ISO-14443-3 and the BB demo readings and Scripture in NDEF.
    • The tag is unlocked and able NDEF (inspected a target using DetectionListener object)
    • A few times I was able to write an NDEF tag, but then it is not readable by my application nor by BB demo group.
    • I have read several times, but most of the time it fails.
    • Tried to erase the label before writing, but does not work.

    I use exactly the same code that appears in the development guide and a BB 9360.

    Finally, I solved the problem. It turns out that my tags (Mifare Ultralight) have only 64 bytes of total storage, so the example NDEFMessage in the development Guide (root NDEF Sp record with two folders nested inside) is too big to be stored when the text exceeds a few words.

    With regard to the NDEFTagConnection class, I found that the erase method throws exceptions, and that the append method is problematic. The only method that worked for me was the write method (who wrote the entire tag).

  • Code sample of Bluetooth barcode scanner

    Hi all

    I'm trying to read data from a bluetooth scanner. The BlackBerry BluetoothSerialPortDemo shows how to handle this, I can connect to the scanner, but I never recover data.

    The manufacturer was told by a local software to emulate the keyboard, but I don't see any sense on this. Is it hard just to open a serial port and read what the scanner sends?

    You have some examples of how open the bluetooth serial port and how to get the data from the barcode scanner?

    Thanks in advance.

    You don't need a corner.

    You just need to write your own communication code that will retrieve the barcode scanned the scanner and your fill with data.

  • [Script / Code sample requests] The Total Network Get for a given set of ESXi hosts or natachasery flow

    Hi all

    I asked this question to Luc rooms (@LucD22) via twitter earlier and it offers to post here... good suggestion.

    Scenario:

    We have a set of ESX host running on hardware of blade, currently using double transmission 10 g out to the Top of Rack Juniper EX4500 switches. I offer you with our next design to be used in the chassis MXL Force10 switches and uplink of a distributed Thorn (or Lagg for 10g or 40g). There was some resistance from the network team saying we owe to full speed for all blades, all the time... I have a strong suspicion of our overall throughput for a given frame is much less than 320gbit... but I want to prove that with solid data.

    We had a follow-up, but they all use averages of 5 minutes (at best), so the transient peaks tend to miss (and I want to capture them if possible).

    What I would do:

    Generate a set of data that I can use to create a stacked line chart (each host or Teddy bear would be a line with each other at each point of data in total also). Probably should separate incoming and outgoing...

    I would like to have the data as granular as possible, in order to capture the 20 seconds on average, calculate averages over a period of Maximum would be ideal for each host. Remember to say a data point every 30 minutes, over a period of X (probably the length of time, the script is running allowed to run to?), maybe a failsafe (x, configurable?)

    However, overall, it probably should summarize each collection point, then calc the max of people for each datapoint (way not to capture two vertices that do not occur at the same time, the inclination data.)

    It may be useful to divide into a new CSV file daily / some-other-small-time, so long

    Other ways to do this:

    Get stats levels to get the values of "maximum" in vCenter to the largest. Ideally not... He puts a reasonable amount of strain on the vCenter DB, more it will produce asymmetrical data by combining the maximum values.

    Thoughts?
    Cnidus

    You are welcome, and as long as there is no "code editor" I will continue to make typos

  • Install Code samples to test VIX

    #include "vix.h".

    #include < stdlib.h > to

    #include < stdio.h >

    VixHandle hostHandle = VIX_API_VERSION;

    VixHandle jobHandle = VIX_INVALID_HANDLE;
    VixError err;
    jobHandle = VixHost_Connect (VIX_API_VERSION,
    VIX_SERVICEPROVIDER_VMWARE_SERVER,
    host, / / host name
    0, / / hostPort
    user, / / user name
    password / / password,.
    0, / / options
    VIX_INVALID_HANDLE, / / propertyListHandle
    NULL, / / callbackProc
    (NULL); clientData
    ERR = VixJob_Wait (jobHandle,
    VIX_PROPERTY_JOB_RESULT_HANDLE,
    & hostHandle,
    VIX_PROPERTY_NONE);
    If (VIX_OK! = err) {}
    Handle the error...
    Vix_ReleaseHandle (jobHandle);
    VixHost_Disconnect (hostHandle);
    }
    printf ("connected to the local host. \n") ;
    When I compile the code
    It nootify

    / Home/david/development/area of work/VIXTest/Debug /... /SRC/Connection.c:21: refers to 'VixHost_Connect' the undefined

    / Home/david/development/area of work/VIXTest/Debug /... /SRC/Connection.c:31: refers to 'VixJob_Wait' the undefined

    / Home/david/development/area of work/VIXTest/Debug /... /SRC/Connection.c:37: refers to 'Vix_ReleaseHandle' the undefined

    / Home/david/development/area of work/VIXTest/Debug /... /SRC/Connection.c:38: refers to 'VixHost_Disconnect' the undefined

    I know it's the average of the function is undefined.

    but who should be defined as the api...

    One can tell me how to solve the problem?

    Thank you

    When a user runs the command "vmrun", vmrun checks the location of the library and loads all the necessary libraries in a specific order. The order in which libraries are loaded is specified in a file named "manifest.txt. In your test case, because you are trying to connect to the ESX Server remote end, the location of the est/usr/lib/vmware-vix/Workstation-8.0.0-and-vSphere-5.0.0/64bit library. The manifest.txt is A/usr/lib/vmware-vix/workstation-8.0.0-and-vsphere-5.0.0/64bit/manifest.txt.

    To resolve this problem, you must change the load order of library bit.

    Open the manifest.txt file. The current order to load libraries is as follows:

    ....

    libgobject - 2.0.so.0
    libgthread - 2.0.so.0

    .....

    Change the order to load libgthread front load first the libgobject. New content should be as follows:

    ....

    libgthread - 2.0.so.0
    libgobject - 2.0.so.0

    .....

    Save the manifest.txt. Remember, all you have to do is to just change the order of the gobject and gthread libraries. You don't need to make other changes. Run "vmrun" command. Let us know if it works.

    -Thank you

    Sevin.

  • Where can I get the code sample of the book: Pro Oracle Application Express

    Hello
    I was wondering if it is possible to download the code that is written in the APEX book best price available. It would be more effective than tap into it.
    Hope someone can point me in the right direction.
    Thank you
    Jacob

    its on the last page of the book. One in the front of the inside of the cover back.

  • error code 8000FFFF installed fixit has still not fixed problem

    had to install a new hard drive in my computer. Because of the updates of windows, but always impossible to update this update. Guard's fault.

    Shannon

    http://support.Microsoft.com/kb/2509997

Maybe you are looking for

  • Partitions on Satellite P100-253

    I deleted get the small partition of ~ 250 MB at the end of the partition table when installing a debian linux. What is the use of this partition? Is how important it? Should I restore somehow? Thank youDominique

  • Problem with 'The Witcher Enhanced Addition' with Windows 7

    I recently bought a copy of the witcher. I was able to install it on my computer (windows 7), but when I tried to start the game, it appeared a warning box that says that the minimum requirements were not met. It's hard to believe because it works on

  • Pictures as icons

    It seems that since I downloaded Microsoft Office, everything is going crazy.  When I download an image from the internet in my images in the my documents program they come out as icons instead of the real images.  What should I do to change this bac

  • The mouse buttons didn't * STAY * swapped

    I swapped my left and right mouse buttons by using the properties of the mouse. But the buttons don't * stay * exchanged. Literally between a click and they will return to normal. This can easily happen five or six times per hour. Operating system is

  • I can't uninstall a game...

    even if I did but its still in my list of programs, so I try to uninstall it again and it says I need administrator permissions, I'm the admin WTF...