cancel
Showing results for 
Search instead for 
Did you mean: 

Java webdynpro tables are not shown on blackberry 8820

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Satishkumar,

I did not get any exception. But I solved that in the way described in the post above.

Only problem is that the selection of columns should be possible. How to proceed?

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Allen,

Basically,BlackBery doesnt support some of the UI in WD. In table,which button u r using to navigate to next window.?

GS

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Gopal,

Thanks for the explanation. This could work. How did you bind your textview elements to your context attributes?

For inputfields there is a property value; but I don't see anything for textview elements...? Could you go into detail please?

Thanks a lot!

KR

Allan

Former Member
0 Kudos

Hi Allan,

For "TextView" UI Element you can bind the Context Attributes to "Text" Property.

Regards,

Alka.

Former Member
0 Kudos

Hi Allan,

Sorry for late reply. Got stuck in some other work. Hope you have followed Alka's advice and solved the problem.

Regards,

Gopal

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Allen,

I have tried u r scenario. Here also the same problem,.radio buttons in dropdown..I think we may get some idea when we use dynamic programming.

GS

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Allan,

Instaed of table, did u get any exception in your output view in blakberry window?

GS