menu touch event fired several times on the PlayBook
Hello
I see a problem on my Tablet (OS 2.0) that I don't see in the 2.0.0 Simulator. I have a menu bar that has two buttons: "export" and "import". When I click on the button "import" on my tablet, it triggers the method linked five times. In the Simulator, it does raise the method once. Any ideas on what could be the cause?
I use this code to link the method:
$('#buttonImport').click(function (evt) { menuImport(); }); // end .click
Here is the code of the method itself:
function menuImport() { hideMenuBar(); var oOptions = { title : "Confirmation", size : blackberry.ui.dialog.SIZE_SMALL, position : blackberry.ui.dialog.CENTER }; var iConfirm = blackberry.ui.dialog.standardAskAsync("Do you want to overwrite all current data?", blackberry.ui.dialog.D_YES_NO, function (index) { if (index == 0) { dbChecklistOpen.importDatabase(); }; // end if }, oOptions); // end customAskAsync }; // end menuImport()
Any help would be appreciated.
Thank you
I just figured that it is not a problem of "event-fire. It is a problem of menu display. When I slide down, the menu is not displayed correctly. I had spent five times already before the menu that is displayed. Then when I hit the button, he shot all five instances of the button.
I'll close this thread and reformulate my description of the problem in a new thread.
Thank you
Tags: BlackBerry Developers
Similar Questions
-
touch events for several fields in the Manager of several
In my application... I have a vertical field (VFM) Manager in the screen.
In this optimization of resources, I inserted 3 manaagers:
(1) District Manager hfmHeader horizontal (in which I added 1 label (NON_FOCUSABLE) and 1-2 Btns according to the conidtion (tuochEvent FOCUSABLE and overrried all in initlilsing it).)
(2) District Manager vertical ListField container or TextField or LabelField vfmManager in accordance with the condition.
((3) District Manager horizontal hfmButtons containing 6 btns... all tuochEvent FOCUSABLE and overrried initlilsing while the).
public int getFieldAtLocation (int x, int y)
{
XYRect rect = new XYRect();
int index = getFieldCount()-1;
While (index > = 0)
{
getField (index) .getExtent (rect);
If (rect.contains (x, y))
break;
-the index;
}
return to index.
}Second, the click event try something like:
protected boolean touchEvent(TouchEvent event) { switch( event.getEvent() ) { case TouchEvent.CLICK: int index = getFieldAtLocation(event.getX(1), event.getY(1)); // Ignore click events outside any fields if (index == -1)return true; Field field = getField(index); if(field.equals(bitmapField)) { System.out.println("Bitmap Clicked"); } return true; } return super.touchEvent(event); }
Even when I am using above solution, can't scroll. and click event of the hfmButtons buttons aren't the gt performed.
Second... If I don't stand... I am able to scroll and executed at least the first 3 buttons click event.
How can I implement for each button click event in any Manager? Is this possible...
Can someone please help in this regard. Any suggestion or if possible code snippet will be appreciable.
Thank you
Use the snippet for each manager of...
case TouchEvent.CLICK:
India = getFieldAtLocation (event.getX (1),)
event.getY (1));
If (India! = - 1) {}
Field fm = getField (India);
{if (FM. Equals (vfmMain))}
int index1 = vfmMain.getFieldAtLocation (event.getX (1),)
event.getY (1));If (index1 >-1) {}
Field = vfmMain.getField (index1);
check field is instance of the field you want
{if (Field.Equals (footerManager))}
Container.isFooterManager = true;
int index2 = footerManager.getFieldAtLocation (event.getX (1), event.getY (1));Search fields in the Manager of this...
} ElseIf... {
go on the same cehcking
} ElseIf {}
... like this, go to the control...
}
}
-
I use JavaScript coding in LiveCycle and development of dependent drop-down areas, but I find it difficult to write correct code. See the example below. I'm trying to use a multiple box function that refers to an option that is listed several times in the previous pull-down menu. The problem I am running into is that when I refer to any color or Nissan and Chevy, it returns the results of the color in the "Ford" column only. I'll always see color (blue, black, green and purple) options in my second drop-down list and it seems fine, but then the third drop reference only the options and colors 'Ford '. (I don't have the code for the third menu list drop-down).
I want the client to choose Chevy or Nissan and have her drop downs (based on the color they chose)-dependent, but I can't seem to make this work.
I hope it is clear enough (probably as mud...). I would appreciate help!
Form1. #subform [0]. #subform [1]. cboModels::exit - (JavaScript, client)
cboColor.clearItems ();
{Switch (this.) RawValue)}
case "Ford":
cboColor.addItem ("Blue");
cboColor.addItem ("Black");
cboColor.addItem ("Green");
cboColor.addItem ("Purple");
break;
case 'Chevy ':
cboColor.addItem ("Blue");
cboColor.addItem ("Black");
cboColor.addItem ("Green");
cboColor.addItem ("Purple");
break;
case "Nissan":
cboColor.addItem ("Blue");
cboColor.addItem ("Black");
cboColor.addItem ("Green");
cboColor.addItem ("Purple");
break;
}
Form1. #subform [0]. #subform [1]. cboColor::exit - (JavaScript, client)
cboPrice.clearItems ();
{Switch (this.) RawValue)}
case "Ford":
case "green":
cboPrice.addItem ("blah");
cboPrice.addItem ("blah");
cboPrice.addItem ("blah");
cboPrice.addItem ("blah");
break;
case 'Chevy ':
case "green":
cboPrice.addItem ("blah");
cboPrice.addItem ("blah");
cboPrice.addItem ("blah");
cboPrice.addItem ("blah");
break;
case "Nissan":
case "green":
cboPrice.addItem ("blah");
cboPrice.addItem ("blah");
cboPrice.addItem ("blah");
cboPrice.addItem ("blah");
break;
}
You can use '\n' for newline in a string, so
"Option 1, \nOption 2, \nOption 3;
Put each on its own line.
Bruce
-
IOM 9.2 Child Table appears several times in the mappings of reconciliation
Hello.
I encounter this problem:
Imported a resource from one computer to another,
The resource has only one child form UD_PROFILES
When I m generating maps of reconciliation in the seating process definition shows UD_PROFILES more than 10 times.
When I map the table to one of those events of Reconciliación say MULTIPLE MATCHES table CHILD and does lie not the event are not linket to the user.
I think there must be some kind of database problem (the definition girl line is several times in the database), but don't know where to look, and then remove them.
Any ideas?
Thank you.Check in the table in the SDH. Should not have more than one entry.
Published by: Rajiv Dewan
-
How to get the phone to ring several times before the voicemail picks up
Is there a setting to let the phone ring several times before the voicemail picks up
This option will be controlled by your wireless operator. Contact them to determine whether it is possible to change the response time of voicemail.
-
I install security updates and important. Sometimes in the same day, I wonder to install the same updates. When I check the history I see that they are already installed. This can happen several times in the same day.
Troubleshooting Windows Update or Microsoft Update when you are repeatedly offered an update
UTC/GMT is 00:34 Sunday, March 11, 2012
-
I use Internet Explorer as my search engine and internet as my default msn.ca. The web page freezes several times during the operation, recovers after about 3-20 minutes, freezes again. Also, lately, the screen lights up and flashes in a pink/purple one color recovers to normal in 30 seconds approximately. I had an attempt of technician paid for help but couldn't. Can anyone help? Thank you
Go to start / Control Panel / Internet Options / Advanced section then check the top box rendered = software use instead of gpu rendering / apply then OK.
Restart all open windows ie11.
For memory, Bing is a search engine ie11 is a browser and msn... is a home page.
Any other number symbol use Gear and manage add-ons and toolbars and extensions and disable Adobe Shockwave element
-
When I try to start lightroom 6 it opens only the first window, but nothing more. ligthroom closed several times, restarted the computer, update system, nothing. What can I do?, when I try to start lightroom 6 it opens only the first.
Hi silvers.
Please make sure that your graphics card and Lightroom 6 are up-to-date. Latest version of Lightroom is 6.4.
Please check the FAQ and troubleshooting of Adobe Lightroom GPU and disable the use of the GPU in Lightroom.
What is your operating system?
Kind regards
Assani
-
Creative suite 4 master collection of error installation will not install Premiere Pro, indesign, flash, Photoshop and AfterEffects. He was installing everything. Have tried reinstalling several times. The firewall turned off and no other programs running. Running windows 7 64 bit. Had no problem with installation on my last computer 64-bit windows 7
It seems that everything is installed now. Don't know how, but I think that I opened it as administrator.
Thank you
Corey
-
I filled out a form on the page 8 and he saved several times along the way, and now when I open this file, the form is empty? How can I save my work so I can open the form later and it contains all my data?
Hi Eileen97933052,
The PDF form must be extended drive in order to have this feature to save & print the form data.
Please confirm by the PDF Creator is the PDF reader or not extended.
Otherwise, if you have Acrobat installed on your system, you can reader extend PDF form yourself.
Kind regards
Nicos
-
I've uninstalled and reinstalled the drive several times with the same result, my problem is when I download the drive icons for my browsers and changing most of my the desktop icons for the adobe logo, so when I click on them Adobe tries to open them, of course, he does not format because it's not an adobe application , so I tried to restore the computer to an earlier date and it wont let me as long as Adobe reader is installed, so I need to uninstall and now I have nothing to open files and downloads of Adobe, someone had this problem and if so, did you get it resolved? Thank you Tommy...
This may help: Application, file icons change in Acrobat/Reader icon
-
don't forget the select result of a statement to be used several times in the procedure
Hi all
I'm sorry for this kind of question, I'm not newbie, but still need your help.
My need is remember the select result of a statement to be used several times in the procedure.
My first guess is to use a temporary table, but I think there's better decisions.
For example, I should make a heavy request
Select the code from table_function (param1)
Then, this query is used to insert a list of the id in table1, delete table2 and update in table 3.
Help me please do not use if possible temporary tables.
If there is more than one column, you need to create an object type at the database level. Create a collection of this type of object in the procedure.
Example:
CREATE OR REPLACE TYPE "OBJ1" as OBJECT( column1 varchar2(256 CHAR), column2 varchar2(35 CHAR) ); CREATE OR REPLACE TYPE "nt_obj1" as table of OBJ1; -- this could be done at procedure level as well DECLARE t_employee_ids nt_obj1; BEGIN SELECT OBJ1(column1,column2) BULK COLLECT INTO t_employee_ids FROM table1 WHERE column3 = NNN ............. .....
-
I opened this morning with no problems, went to my g-mail account, pulled upwards an e-mail, click on answer, typed my respons, but when I hit send, everything went completely empty.
I have not compressed, without... menu bars anything other than firefox upper-left logo and reduce it, full-screen/small screen and close / x buttons in the upper left corner... it's she.
I uninstalled and reinstalled several times, but nothing works.
What now?
COR - el,
Wow... that was well above my head... at least tonight. Laughing out loud
After my last post, I did a little research and figured out how to import my favorites in IE8... so I uninstalled firefox again... but this time I had checked the "delete my personal Firefox and customizations" in the wizard, who did remove two addons (Ghosery and Ad Block Plus)... the relocation was different this time and the first time you start firefox He asked if I wanted to import my IE Favorites, which I did... I now added Ghosery and Ad Block... and if so far everything goes well... seems I got this back up and running.
The mention of the malware in a madperson add-on has been helpful to my solve my problem.
Thanks for the help...
-
Milestone auto reboot several times after the update to froyo
first of all, please excuse my bad English.
I have my milestone (Thailand) update froyo a few days ago. After the update is complete. Most everything is OK, but I have an extremely important problem.
Auto restart Miestone several times a day (3 - 4 times) then I try factory Autozero my device, but the problem did not go.
Please top me how I can slove this problem.
Thank you.
Try to turn off your phone and holding the X button and the button of the camera on the keyboard when turning on/off.
A road sign (triangle with "!") should appear, then press volume up button and camera button at the same time.
A menu should appear, choose factory reset and then wipe cache partition.
Then, restart the phone.
It worked perfectly for me - but I have a European stage - so there is no guarantee I can give to you.
-
Original title: XP start help please...
... are to be turned off & on several times before monitor lights. Comp seems to start OK but the problem is with the screen. Do I have to make a boot disk & if so - HOW?
Hello
· What is the brand and model of the computer?
· You get the error message?
· Did you check the connection of the cable to the monitor?
· Have you tried to update to the latest graphics card and motherboard chipset drivers?
First, try to connect your monitor to a well known PC, maybe the old laptop that you use now. If the monitor works, the problem is with the video card in your PC. If the monitor does not light, the monitor. It is usually cheaper to buy a new monitor that in order to be an old repaired, unless the monitor is still under warranty.
Try connecting a monitor well known to your PC. If the monitor works, your old monitor is fried and needs to be replaced.
If your monitor works when connected to another PC, the problem could be your video card. First, and then you turn on your PC, the power and cooling case fans run they. If they do not, it could be the power supply.
Then, open the computer case. Before you do anything inside, unplug the power supply.
IMPORTANT! Touch any metal part of the computer case to connect to the PC. A single static spark can destroy computer circuits.
If the video card is the type of card that plugs into a slot on the motherboard, remove the screws or attached at the top of the card, remove the card, to manipulate the card by the edges to avoid disturbing the circuits on the card, carefully and re - install the card. Sometimes simply reinstalling the card corrects the problem.
If this does not work, replace the video card with a card of similar type. Perhaps now is the right time for an update of video card.
If the video card is integrated into the motherboard, you can install a new card in one of the PCI slots on the motherboard. When the PC starts for the first time, go into the bios and disable the onboard video.
Resources for troubleshooting problems in Windows XP
Maybe you are looking for
-
Compaq cq58: bios administrator password
Nice dayI have a compaq cq58.I need the bios administrator password.The error code is 70769099.Please help.Thank you
-
I'm trying to connect a meter and tachometer to Labview. How can I do these two things so the labview can just read the value of these two devices? The tachometer is brand 47100 during
-
Pavilion p6-2070sc: the upgrade of processor on a p6-2070sc
According to the page of specifications of product for my Pavilion p6 2070sc (), I can upgrade the processor. I have 3 questions then: 1: if I want to switch to an i7 processor, this one would agree: http://www.proshop.dk/CPU/Intel-Core-i7-2600-Sandy
-
HP Officejet 6700 Premium - printhead seems to be missing
Seems to be a common problem with these printers - me too I got the error message "the print head seems to be missing, not detected or badly installed"-I tried all the suggestions of troubleshooting with no results. I have never had any problems with
-
MSDcode.dll is in my download file must be moved?
Windows & do not know whether it is installed or activated do not know what it does