Hi There,
This is the code i am using , still i am getting errors.
code :
// pipeline
IDataCursor pipelineCursor = pipeline.getCursor();
String month = IDataUtil.getString( pipelineCursor, “month” );
String year = IDataUtil.getString( pipelineCursor, “year” );
pipelineCursor.destroy();
java.util.Calendar calendar = java.util.Calendar.getInstance();
calendar.set(year,month,1);
// pipeline
IDataCursor pipelineCursor_1 = pipeline.getCursor();
//int lastday = calendar.getActualMaximum(Calender.DAY_OF_MONTH);
IDataUtil.put( pipelineCursor_1, “lastDate”, Integer.toString(calendar.getActualMaximum(java.util.Calendar.DAY_OF_MONTH)));
pipelineCursor_1.destroy();
ERRORs:-
C:\webMethods65\IntegrationServer\packages\Rama_Test\code\source\Rama_Test\Utilities.java:51: cannot resolve symbol
symbol : method set (java.lang.String,java.lang.String,int)
location: class java.util.Calendar
calendar.set(year,month,1);
^
1 error
can someone help me?
Thanks
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB