Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Drop Down By Key as Table Cell Editor

Hi Experts,

I got a problem with a DropDownByKey selector as table cell editor.

First of all I have an atribute Value as modifiableValueSet in a method like this:

public void initTimeTypes()
{
   IWDAttributeInfo catsRecordsAttribInfo = wdContext.nodeCatsRecordsFiltered().getNodeInfo().getAttribute("timeType");
   ISimpleTypeModifiable catsRecordsSimpleType = catsRecordsAttribInfo.getModifiableSimpleType();
   IModifiableSimpleValueSet catsRecordsSet = catsRecordsSimpleType.getSVServices().getModifiableSimpleValueSet();

   catsRecordsSet.clear();

   for (int i = 0; i<wdContext.nodeTimeTypes().size(); i++)
   {
	TimeType elem = wdContext.nodeTimeTypes().getTimeTypesElementAt(i).modelObject();			
	catsRecordsSet.put(elem.getTimeType(), elem.getTimeTypeText());
   }			
}

Now this attribute I can bind to an inputfield, and I will get an evs, or I bind this one to an DropDownByKey.

With the evs I can use it in forms AND tables but when I choose the DropDownByKey (I prefer this one) I can ONLY use it in forms.

Using the DropDownByKey I got an ClassCastException.

java.lang.ClassCastException

at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.TableColumn.getTable(TableColumn.java:2222)

at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.DropDownByKeyAdapter.getWidth(DropDownByKeyAdapter.java:624)

at com.sap.tc.ur.renderer.ie6.ComboBoxRenderer.render(ComboBoxRenderer.java:53)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)

at com.sap.tc.ur.renderer.ie6.SapTableCellRenderer.renderSapTableGenericCellFragment(SapTableCellRenderer.java:1143)

at com.sap.tc.ur.renderer.ie6.SapTableCellRenderer.renderSapTableCellFragment(SapTableCellRenderer.java:205)

.

.

.

Any Ideas?

By the Way, the system is NW04's SP 10

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question