Skip to Content
avatar image
Former Member

strange problem with Drop Down by Index

Hi

I have a very strange problem with Drop Down by Index I am executing a web service and get one internal table from it one field from it i have bind to Drop Down and I get one blank record in drop down which is not returned by the web service and not present in the attribute to which i bound the combo i am not getting how it is comming and how to remove it so can anyone tell me about this

Thanks

Ninad

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Sep 05, 2006 at 10:54 AM

    Hi

    Check the Cardinality of the node to 1..n

    Kind Regards

    Mukesh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Valery,

      I am new to webdynpro, I designed a view at design time with some drop down by key. Now at run time it displays an error as

      java.lang.ClassCastException at com.sap.tc.webdynpro.progmodel.context.Paths.getAttributeInfoFor(Paths.java:202)

      when I remove this drop down there is no error.

      Actually I want to bind this drop down with a bapi table with 2 fields (key,value), how can I do that.

      Thanks & Regards,

      Sai Krishna.

  • avatar image
    Former Member
    Sep 05, 2006 at 10:59 AM

    Hi Ninad,

    That null value is added by default. because the selection cardinality of the node which is bound with that dropdown 0..n. change the selection property to 1..n

    regards

    Karthik

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 05, 2006 at 10:59 AM

    Hai ninad,

    You bind webservices node to dropdownindex. the node may be with cradinality 0..n , changen it to 1..n , it may solve your problem.

    regards,

    Add comment
    10|10000 characters needed characters exceeded