cancel
Showing results for 
Search instead for 
Did you mean: 

Problems in a table with OCA SP08

Former Member
0 Kudos

HI,

I am developing an application on Mobile 7.1 with SP08 OCA Webdynpro Java.

My problems are:

1. I insert a table into a view I always inserted a RadioButton selection to the line.

Is there any way to eliminate this RadioButton?

2. I am using a inputfield and when I run the method SetFocus() not work.

Any Idea?

Best Regards

Maria Elena

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Maria

Only radio button selection is supported for the table.

You need to access the input field using InputFieldViewItem fld = view.getInputFieldViewItem() in doModify method and you can set the focus using fld.setFocus();

Regards

Vidyadhar

Former Member
0 Kudos

Hi,

My code exactly is in the method wdDoModifyView:

InputFieldViewItem input = view.getDescripcionViewItem();

input.setFocus();

This not work

Any idea?

Best Regards.

Maria Elena

Former Member
0 Kudos

Hi Maria

Please try this.

In the doModify view put this code:

InputFieldViewItem input = view.getDescripcionViewItem();

Create a button and in the action of button place this code

input.setFocus();

See if thisworks.

Regards

Vidyadhar

former_member206242
Active Participant
0 Kudos

Hi Maria,

Doing a setfocus in wdModifyView event will not work as on view load that focus is implicitly set to the first control.

You need to set the focus on some other action after the view is loaded. As suggested by Vidyadhar like a button action should work.

Thanks

Nipun

Former Member
0 Kudos

@Nipun

What is the order of when the functions get executed?

supplyFunctions first?

wdDoInit second? or wdDoModifyView second?

@ Maria

Depending on how you structured your application. The way we set focus on inputs without an intentional button action or triggered event was to have it executed by the previous view. So after the wdFirePlugTo**** gets executed, do a getInstance of the view with your input and do setFocus.

This only works if the previous view exists and is not destroyed by the time you are loading the view with input.

And it is not the most elegant solution to have code on another view to manipulate the actions of the next view.

former_member206242
Active Participant
0 Kudos

Hi Alan,

The order for a view is :

a) Context Supply functions

b) wdInit

c) wdModifyView

Regards,

Nipun

Answers (0)