ObjectChoiceField need help!
Hello
I use two filed subject choice form and one is linked with the other as
You must select an option in the first field of choice, then on the basis of the selected value, you need to load the other values in the second field of choice.
Everything works well except a little problem in the second field.
When I select the second field he through exception of null pointer after showing the last element. It is not showing me the first item again when I press the space bar.
You can't understand my problem.
I paste the code here.
' Public Sub fieldChanged (field field, int context)
{
int count = this.getFieldWithFocusIndex ();
int index1 = field.getIndex ();
If (this.getFieldWithFocusIndex () == 1)
{
System.out.println ("control in fieldChanged =" + field);
ObjectChoiceField objField = field (ObjectChoiceField);
selectedAssetTypeId = (objField.getSelectedIndex () + 1;
System.out.println ("selected index =" + selectedAssetTypeId);
VF1 = specificationPanel ();
}
}
I have created objectchoicefield first in the constructor, and then creating 2 choicefield using a method to load the related values, here's this method.
private VerticalFieldManager specificationPanel()
{
System.out.println ("Control in specificationPanel");
vf.deleteAll ();
Vector assetTypeSpecVector;
SpecificationArray String().
assetTypeSpecVector = new Vector();
Try
{
ResultSet rs = dataAccess.ExecuteQuery ("SELECT spec_desc FROM AssetTypeSpecification Where atype_id =" + selectedAssetTypeId);
While (RS. Next
{
assetTypeSpecVector.addElement ("" + rs.getString (0));
System.out.println ("get spec db =" + rs.getString (0));
}
} catch (ULjException uex) {}
System.out.println ("ULjException AssetTypeSpecVector:"+ uex.toString () ');
}
catch (Exception ex) {}
System.out.println ("Exception: in getAssetTypeSpecVector"+ ex.toString () ');
}
specificationArray = new String [assetTypeVector.size ()];
int count = 0;
for (Enumeration e = assetTypeSpecVector.elements (); e.hasMoreElements () ;))
{
specificationArray [count] = (e.nextElement ()) m:System.NET.SocketAddress.ToString ();
Count ++;
}
selectSpecificationObj = new ObjectChoiceField ("Select specification:", specificationArray);
selectSpecificationObj.setChangeListener (this);
selectSpecificationObj.setSelectedIndex (0);
VF1. Add (selectSpecificationObj);
return vf1;
}
"I must use vector -" don't mind the use of the vector, is the enumerator for the vector which is not necessary.
"Vector's y attach another element which is null at the end"-does that mean it is resolved? Can then mark you?
"I don't know why"-null columns in the database?
Tags: BlackBerry Developers
Similar Questions
-
my iphone need help doesent work!
my iphone need help doesent work! 5 minutes ago my iphone 4S felt on the ground and now it doesent start but I can still hear the sound of loading until I can do?
PS: Sorry for my bad English, I'm from the Germany
Try restarting it by maintaining deep-set buttons home and power together. It may take up to 20 seconds. If she does not return to life, better make an appointment at the genius bar to your Apple store.
-
Recently had to withdraw Windows 10 votes against 7, on doing so, iTunes didn't work. I tried to remove iTunes, but get an error not found the path iTunes6464.msi. So I can't uninstall. I tried to download the latest version, but when it comes to uninstall the old version it fails because it cannot find this file. Need help to remove and reinstall so it can connect again my devices.
See this user of ASC. See the section on deleting and reinstalling iTunes. Troubleshooting problems with iTunes for Windows updates
-
NEED HELP Please im having a problem to forget my password and when I plug it it says its locked with a password he tried to put the itunes thing but it says enter password I put in what I rember, then said lokced for five minutes help me pls
Without knowing the password for your iPhone, there is no way to unlock it, bring even you to the Genius Bar. If you continue to enter the wrong password, you will be locked out of your iPhone, and your data will be unaccessable.
-
I need help to recover my iphone
I got my iphone 6 for more than two years know I default to set up factory reset me gives error tha my sim card is not supported, but I've been with you even with the phone sim card before I reset it please need help.the phone imei-* please help me.
< personal information under the direction of the host >
It sounds as if your iPhone may have been hacked for use with the carrier that you used, and now that you have updated, it is locked to the original carrier.
-
Need help to install iTunes v12.4.3.1 Windows 10
I've tried everything to make it work:
1. I tried to disable my antivirus before installing
2. I tried to install as administrator
3. I have tried to uninstall all relevant applications of apple.inc, restart my pc and then install again
4. I tried to update my Windows
I had iTunes installed before on my Pc with Windows 10, but two days ago, I restored my pc and now I can't install it.
Please I need help
The message "an error occurred during the installation of assembly ' Microsoft.VC80.CRT, type ="win32", version ="8.0.50727.6195", publicKeyToken ="1fc8b3b9a1e18e3b", processorArchitecture is...» "may occur because a particular library file is not included in the supplied with iTunes distribution package or will not be installed because some unspecified reason. Install Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package MFC security update before you attempt to reinstall iTunes can help.
There are three files to choose from if you need choose the one that matches the processor architecture of your system, which must be indicated in the error message.
- Vcredist_x86. EXE - 32 bit systems
- vcredist_IA64. EXE - Itanium processors
- VCRedist_x64. EXE - other 64-bit systems
When to reinstall iTunes, right-click on the Setup and run as administrator.
See troubleshoot problems with iTunes for Windows updates for more information if necessary.
TT2
-
photos were deleted from my phone? !!! need help urgent pls
So I'll start from the beginning.
So at the beginning I had 5200 pictures and everything was fine, except that I couldn't take any pictures on Snapchat. So I decided to delete some pictures. Except sometimes just deleted photos would return as 2 seconds. And sometimes I would say 5 photos selected, but I couldn't see anything selected? Or I have to press SELECT again and again.
at least one forward a few hours and I received on my phone, except that now it says I have only 3600 pictures! I lost a few photos, especially those previously on my phone, then some of the pictures I deleted months ago as last year are back. And I have pictures on my recently removed, but not the ones I lost!
I feel that my phone is somehow back in time or something.
And I lost a few photos of a wedding and I regret totally stayed so much (((pls est de toute façon??))
also, I need help using http://www.ipad-converters.org/recover-photos-from-iphone/ this type also.
Hello
When you recharge an iPhone / iPad, it will be saved up to iCloud on wifi you
Restore the original configuration.
When configuring back it will ask you if you want to use iCloud backup say yes
Use the backup of a time where you had all your photos.
See you soon
Brian
-
After I updated my iPod wants a lock to activate I need help ASAP
After I updated my iPod lack of activation I need help ASAP
Help here > If you do not activate your iPad, iPhone or iPod touch after installing iOS 9.3 - Apple Support
-
Hey, need help. I get this in my iPhone that 'there is a problem of billing with a previous purchase. Please update your payment method"anyway I can remove my visa card from iTunes?
You must pay your debt first.
-
I need help I want to retrieve my mac pro book
I need help I want to retrieve my mac pro book and now I can not bcz Yosimoto os is not avilabe what can do?
< object edited by host >
If you have installed Yosemite by downloading it from the App Store, it will be in your App Store purchases tab. If Yosemite is currently installed, when you start in the recovery Partition (command - R on a restart), you can reinstall Yosemite. In the recovery Partition, you can also restore Time machine and disk utility is available.
-
My iPhone's screen is loose and it's almost fall! I need help!
I need help! How can I do? I need help! How can I do? I need help! How can I do? I need help! The screen was pressed by my body, so the screen is loose. And the screen becomes softer and more flexible. But the screen can be used normally, the screen is loose and it's almost fall.
Take your iPhone to an Apple Store or Service Center authorized Apple for an assessment and advice how to proceed.
-
I downloaded the update and I can't open the package I need help?
I downloaded the update and cannotopen software package, why? I need help...
You have a desktop Mac Pro 2009 with OSX 10.6.3?
-
trying to upgrade my version and need help badly
Please need help bad, try to upgrade to a newer version
Please describe the problem in more detail.
-
I can not restore all the missing profile I need help and I want to reinstall my firefox browser
whenever I installed the firefox browser app and once installed it say cannot load the missing profile I do not know what to do and want to installed my firefox evil bowser and I need help please and thank you.
Hi, see How to run Firefox when your profile is missing or inaccessible and let us know how its going
-
The guys that I need help please,
Last night I tried to install the update to alcapitan to my macbook pro, but it does not work it makes me a message (your installation cannot be finshed) and many many things and when I try to strt my macbook still keeps it install the updat and then get the message again...
I need help please
Hello, check if the mac you can use El Capitan. See the information update of OS X El Capitan - Apple Support here
Maybe you are looking for
-
Auto backups? Not that I can find
FCPX just crashed. Happens.Don't know why. Sent the report to Apple. Restart the Mac. Open FCPX. All the work I had done during the last full day, 24 hours, is visible. He went. New projects have disappeared. New events have disappeared. I have about
-
When I download an exe file, I want it to work not be saved, how can I do this?
I click a link to install a program (.exe file). Only option of Firefox is to save the file. I want to be invited for a Run/Save option (same as IE).
-
Operator / Service Provider info
Hi guys,. Is it possible that I can get the operator / Service Provider info when the application is running on the device. BR, Sanket
-
Automatic synchronization of blackBerry 10 BB10 works does not in roaming in the United States
Our Canadian users with Blackberry Z10 devices have reported that when they travel to the United States activesync does not work automatically. They must go in the settings of e-mail, stop pushing and then turn it on again manually synchronize their
-
Problem with deleting the object embedded in the ASA 5580 8.4 code groups (4) 1
Model: Cisco ASA5580-40 Code version: 8.4 (4) 1 Version 6.4 Device Manager (9) I've been running this code since June of 2012 and so far all seems to work fine until recently, when I started a project to clean up some groups of embeded objects I star