cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with RadioButtonGroupByIndex

Former Member
0 Kudos

Hi all!<br>

<br>

I am developing a Web Dynpro application forJava based on SAP NetWeaver Mobile 7.1. Furthermore, this project is created as a handheld project.<br>

For 2 days now, I have been trying to insert a radio button group into my view. There is no icon to insert it per drag&drop or when I want to insert it into the root element.<br>

I have imported an example project and there, I realized that there are several elements included which I can't use in my NWDS. I wanted to try to copy the RadioGroupByIndex from the example project into my project, but then, NWDS throws the following exception:<br>

<br>

-


<br>

org.eclipse.swt.SWTException: Failed to execute runnable (DataStateInvalidException: Attempt to access invalid object: //WebDynpro/View:com.sap.demo.mia_ui.mia_ui_component.MIA_UI_04_Origin!)

at org.eclipse.swt.SWT.error(SWT.java:3563)

at org.eclipse.swt.SWT.error(SWT.java:3481)

at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126)

at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)

at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)

at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)

at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)

at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)

at org.eclipse.equinox.launcher.Main.run(Main.java:1169)

at org.eclipse.equinox.launcher.Main.main(Main.java:1144)

Caused by: DataStateInvalidException: Attempt to access invalid object: //WebDynpro/View:com.sap.demo.mia_ui.mia_ui_component.MIA_UI_04_Origin!

at com.sap.ide.metamodel.core.DevelopmentObjectProxy._prepareForRead(DevelopmentObjectProxy.java:443)

at com.sap.ide.metamodel.webdynpro.implementation.ViewProxy.getComponent(ViewProxy.java:197)

at com.sap.ide.mmservices.wd.eclipse.view.ViewServiceEclipse.getAllowedLibraries(ViewServiceEclipse.java:82)

at com.sap.ide.mmservices.wd.eclipse.view.ViewServiceEclipse.getAllowedViewElementDefinitions(ViewServiceEclipse.java:121)

at com.sap.ide.webdynpro.viewdesigner.ViewElementHistory.getAllowedDefinitions(ViewElementHistory.java:110)

at com.sap.ide.webdynpro.viewdesigner.ViewElementHistory.getHistoryElements(ViewElementHistory.java:101)

at com.sap.ide.webdynpro.viewdesigner.ViewElementHistory$1.run(ViewElementHistory.java:146)

at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)

... 23 more

-


<br>

<br>

Could anyone explain to me how I can insert a RadioButtonGroup into my project? Is there an error in the NWDS or is the project created in a wrong way?<br>

<br>

Thanks in advance and best regards,<br>

<br>

Christoph

Edited by: Christoph Kurtz on Sep 30, 2009 3:28 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Christoph

RadioButtonGroup is not supported in Mobile Applications for Handhelds perspective. Only radio button UI element is supported.

Also from where did you import the sample project? I think it is a WebDynpro Laptop application.

Regards

Vidyadhar

Former Member
0 Kudos

Hi Vidyadhar!<br>

<br>

First of all thank you for your suggestion.<br>

<br>

The imported project can be found in http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/00b64d9f-fea2-2910-c988-ee2544047f8c">this [original link is broken] [original link is broken] in the section "Designing User Interfaces -> Designing User Interfaces with Web Dynpro".<br>

<br>

Just another question: are dropdowns supported for mobile applications?<br>

<br>

Best regards<br>

<br>

Christoph<br>

Former Member
0 Kudos

Hi Christoph

The sample application is a webdynpro java application. So you can import the application in WebDynpro java perspective in NWDS, but not in Mobile perspective.

WebDnpro Java application: Browser based rendering....Uses SAP Java Application Server, Can be run in any browser. We can run the applications in mobile browsers also.

Mobile Application for Laptop and Mobile Application for Handhelds: Specifically for running mobile applications in laptop and handhelds. Uses a separate client. Uses DOE which comes under ABAP stack.

Both these perpectives have similar modelling as webdynpro, but support different set of UI elements and have different API's.

Yes, dropdowns are supported for mobile applications.

Regards

Vidyadhar

Former Member
0 Kudos

Hi Vidyadhar!<br>

<br>

Thanks for your great support!<br>

<br>

Best regards,<br>

<br>

Christoph<br>

Answers (0)