cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

java.lang.IllegalArgumentException: Attribute name 'DateStart' not defined

Former Member
0 Likes
2,013

When I tried to do this:

wdContext.currentCheck_Material_PriceElement().setDateStart("2009-04-27");

It gives the error:

java.lang.IllegalArgumentException: Attribute name 'DateStart' not defined

What could be the error?

View Entire Topic
Former Member
0 Likes

Jackson,

check the type of 'DateStart'?

if it is of type Date, then you cannot pass a string in the argument as "2009-04-27".

you need to pass a 'Date' Parameter!

regards,

Former Member
0 Likes

try to do the following:

java.sql.Date startDate = new java.sql.Date(2009-04-27); 
wdContext.currentCheck_Material_PriceElement().setDateStart(startDate);

regards,

Former Member
0 Likes

Yep it is a string.. that's why I pass in a string.. but I wonder why it says parameter undefined?! -_-

Former Member
0 Likes

Can't set that.. cos startDate is a string..