Hi Deliverance, I am facing one issue, I injected FieldValue in spring config file as follows,
x-shedular.xml
CActivityGenerationScheduledJob.javaCode:<bean id="fieldValue" class="com….FieldValue"/> <bean id="activityGenerationJob" class="com….CActivityGenerationScheduledJob" p:fieldValue-ref="fieldValue" />
Code:When I tired to override two columns fieldValue[0].setIdentifier("0"); fieldValue[0].setName("FirstDate"); fieldValue[0].setValue(updated_FirstDate); fieldValue[0].setIdentifier("1"); fieldValue[0].setName("SecondDate"); fieldValue[0].setValue(updated_ SecondDate); cAPIClient.addActivityWithOverride(somenumber, “some value”,fieldValue);I can't set size as bellow , becose it is a final valueHTML Code:Constructor Summary 1. FieldValue() 2. FieldValue(java.lang.String identifier, java.lang.String name, java.lang.String value)
addActivityWithOverride() method 3 parameter is type of FieldValue, When I tried with HashMap, type cast exception is comming.Code:if(fieldValue.length ==0){ fieldValue.length = 5; }
but my first name and value is overriding/replacing by second value, here how can I initialize the FieldValue with value more than 1 so that I can generate Activity With Override.
Please help.




Reply With Quote