on 04-14-2008 9:28 AM
Hi everybody,
I've created a java webdynpro application for blackberry. This is done without mobile sales.
I'm working with a blackberry 8820, when I execute the application on the blackberry, tables aren't shown at all.
Why is that & what should I do about it?
Thanks a lot
Allan
Well,
I found out why the tables aren't shown.
When you use "apply template" and do context binding, GroupedColumns are created.
These GroupedColumns are not (yet) supported for mobile devices.
Solution: do it the manual way:
1)Insert child -> table
2)Datasource: map context node
3)Right click on table UI element and choose "insert column" from the context menu
4)Right click on the column & choose "insert table cell editor" from the context menu
5)You can choose eg. an inputfield and bind it to a context attribute.
6)Play a little with the properties
I've done it in the way described above. When I show it in Internet Explorer, everything looks the same as in the past. When I show it in Blackberry, a WML-version of the table is shown.
Only problem remaining is that I should be able to select a column of the row or the row itself to go to the details (via leadselect).
In IE this works like a charm, on blackberry even the little buttons at the side of each row (used for leadselect) aren't shown. Is this possible?
What should I do in order to make it work like on IE?
Thanks & kind regards
Allan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Allan,
Once i also have faced the same problem. For tht we need to use latest black berry version. So tht it would have the same look and feel lik IE. Instead of tht, We can Pocket PC which will have a real look lik IE.
Here, u can select the rows, but tht lead select button is not ther...
GS
Edited by: Sathishkumar GS on Apr 14, 2008 11:03 AM
Hi Sathishkumar,
What do you mean, "we need to use the latest blackberry version"? Do you mean to update the version on the blackberry 8820 to the latest version? Could you go into detail on this?
When I click a column on blackberry the way it is now, the cursor just jumps to the next column instead of triggering the leadselection action.
What should I do? What did you do? We absolutely need to use blackberries as the end-user will use blackberry for this application.
Hi Allan,
I looked into the documents of SAP. There following is written for TABLE UI element to be used in Blackberry:
· Table
Multiple selection is no longer supported. The contents of the first column of a table are
rendered as links. You can only use the UI elements LinkToAction, LinkToURL, and
TextView as table cell editors.
The following properties are ignored: design, enabled, readOnly, tooltip,
width
Regards,
Gopal
Hi Allan,
Latest version means i have suggest you to try it out with Blackberry 8830 or recent versions. And i cant get this line..
"When I click a column on blackberry the way it is now, the cursor just jumps to the next column instead of triggering the leadselection action."
Culd u pls explain it.
GS
Hi Gopal,
Thanks for your reply.
What should I do then to be able to bind the column values to the context? For this I used inputfield and bound it to context attributes. This works, except indeed the readOnly property & the selectable mode.
I also tried to trigger the onLeadSelection action that I implemented by using it as event in "onEnter" of the inputfield. This works with IE, but not with blackberry.
Also adding another tablecelleditor to the column isn't possible (for example if I want to also use a LinkToAction).
Greetz
Allan
Hi Sathishkumar,
Well, when I click a column of the table on the blackberry device, it should trigger a method I implemented in the custom controller which calls the details of the bupa via RFC model. Another screen (with these details) should then be shown.
Right now, when I click a column, the blackberry cursor (~= mouse) jumps from that clicked column to the next without doing anything else. I hope I made it clear. If not, just shout
Kind regards
Allan
Hi Allan,
I am using BlackBerry 7290 Emulator. Table is being displayed with first column as Link. Whatever you want to do can be written in method associated with OnLeadSelect action. On clicking links of first column data, method associated with ONLeadSelect action will be fired.
Regards,
Gopal
Hi Sathishkumar,
I'm not using any button to navigate to next screen.
I have to get the details (for the next screen) based on the values of the selected row.
The scenario is like this:
you have a table with bupa data (bp nr, name etc). You have to be able to click on a particular column, when you do this, the bp nr is retrieved and with that number, the details will be retrieved. Then an outbound plug is fired so the next screen is shown with the gathered details.
I have just tried to do this with a button which uses the onLeadSelect action. In IE, everything works okay, in blackberry you cannot select a particular row/column.. So the button wouldn't help.
Hi Gopal,
What UI elements did you use for the table cells?
I don't have any links in my table.
Kind regards,
Allan
Hi Allan,
I have two attributes in node Employee which are EmployeeID and EmployeeName. I created a table manually, without applying template. I manually added two columns for these two attributes with table cell editor as TextView. I created a action, SelectEmployee which I associated with Event OnLeadSelect. In event handler OnActionSelectEmployee method, I wrote following code:
wdComponentAPI.getMessageManager().reportSuccess(wdContext.currentEmployeeElement().getEmployeeName());
When I ran this application on BlackBerry emulator, values under column Employee ID(which was first column) were displayed as links. On clicking on these links, appropriate Employee Name was displayed as coded using Message Manager.
Regards,
Gopal
Thanks a lot everybody! You really helped me out.
It seems to work now.
Though I've got three last questions before I mark this thread as answered.
1)Gopal, you said this:
I looked into the documents of SAP. There following is written for TABLE UI element to be used in Blackberry:
· Table
Multiple selection is no longer supported. The contents of the first column of a table are
rendered as links. You can only use the UI elements LinkToAction, LinkToURL, and
TextView as table cell editors.
The following properties are ignored: design, enabled, readOnly, tooltip,
width
Where did you find that?
2)Dropdown boxes are converted to radiobuttons in WML (all values from the dropdown are displayed as radiobuttons). Is there any way to keep them as dropdown?
3)Property readOnly is ignored. Any way to make sure some elements (eg. inputfield) are readOnly in blackberry?
Thanks again
Kind regards
Allan
Hi Alan,
Here is the link which you will find useful:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/b2b0c072-0901-0010-ec93-ad7df... [original link is broken]
Under that there one link for Mobile Web Dynpro Online . There I read the things.
For other two problems, I don't have any solution to offer. Sorry for that.
Regards,
Gopal
Hello,
we just released a Product Availability Matrix von SAP NetWeaver Mobile 7.0 - always connected.
[PAM - Mobile Always Connected|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0eb6547-f7e6-2a10-c18f-882f72f7e363]
I hope this helps.I will also create a blog regarding this topic within the next week.
Best Regards,
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Allan,
Instaed of table, did u get any exception in your output view in blakberry window?
GS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.