on 02-13-2006 2:49 PM
Hi all,
I´m working with MI 2.5 SP 15.
My device is a Symbol MC9060-G.
I have developed my own application but I´m using the standard project from the NWDS.
For navigation I´m using following code:
if (eventName.equals(EVENT_PAGEDOWN))
{
if (start_index + MAX_TABLE_ROWS < tcp.getRowsInDataset())
start_index = start_index + MAX_TABLE_ROWS;
nav = true;
}
I´m able to push the button once on the device (with the pen on the display), but if I push it a second time, nothing happens. I have to refresh the page and then the button works again.
May it be a problem of the Internet Explorer?
Does anyone have an idea how to solve the problem?
Thanks a lot,
Barbara
hello barbara,
>I´m able to push the button once on the device (with the
>pen on the display), but if I push it a second time,
>nothing happens. I have to refresh the page and then the
>button works again.
could you please elaborate more?
do you mean:
1)clicking on the button the second time while
the internet explorer is still posting the request for
your first click?
2) you first click on the button then the page was
properly shown. then on your second click, the page
needs to be refreshed?
for 1, this is sometimes a problem in some devices where
in the button remains clickable while the request for the
first click is still under-process.
for 2, this is the caching of PIE. that when you push
back button of PIE, sometimes that page is not updated.
and you need to refresh it.
regards
jo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Barbara,
What is the operating system on that Symbol device,
and does the application work fine on a laptop
(win32) machine?
Habe you checked the trace file if there are any errors showing?
Whats the rest of the code in method checkNavigationEvents() do you reset the nav to false.
Thanks,
Wael Aoudi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
the OS is Microsoft Pocket PC Version 4.20.0 (Build 14503) and the application works fine on my PC.
The trace file doesn´t show any errors.
The method looks like this:
private boolean checkNavigationEvents(
String eventName,
HttpServletRequest request)
{
boolean nav = false;
// Checking for navigation events
// First Page
if (eventName.equals(EVENT_FIRSTPAGE)) {
start_index = 0;
nav = true;
}
// Last Page
if (eventName.equals(EVENT_LASTPAGE)) {
start_index =((tcp.getRowsInDataset() -1) /MAX_TABLE_ROWS)
MAX_TABLE_ROWS;
nav = true;
}
if (eventName.equals(EVENT_PAGEUP)) {
if (start_index >= MAX_TABLE_ROWS)
start_index = start_index - MAX_TABLE_ROWS;
nav = true;
}
if (eventName.equals(EVENT_PAGEDOWN)) {
if (start_index + MAX_TABLE_ROWS < tcp.getRowsInDataset())
start_index = start_index + MAX_TABLE_ROWS;
nav = true;
}
// The "input" object with type = image in menu.jsp delivers the eventname with .x and .y appended to it
// So we check the beginning of the eventname.
if (eventName.startsWith(EVENT_GOTOPAGE)) {
String inputField = (String) request.getParameter("GOTO_PAGE");
int number = Integer.parseInt(inputField);
setCurrenPage(number);
nav = true;
}
return nav;
}
Thanks,
Barbara
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.