Hi I have already tried with some code successfully but it is of single value of true false type('Y'/'N'), but with the following code
just vanishes the field stating the following tomcat log error.
next problem is that when I try to assign some value like "Objective Numeric Answer", each word is taken for each txtArrOuter[k] as above.
If I try to assign value like "ObjectiveNumericAnswer" single word, it takes the whole word and repeats just three times and gives the error as above.
OK, so the problem is in getHdnObjectiveNumericalIdArr. That makes me believe the problem lies in the handling of hdnObjectiveNumericalIdArr. So I check that part of your query:
In line 2 I see hdnObjectiveNumericalIdArr with value 0%2C0txtObjectiveNumerical=MultiChoiceAnswer. In line 4 I again see hdnObjectiveNumericalIdArr, this time with value 0%2C0. I think you've made a little mistake here.
the first thing is I don't want to put any default value. But if I do not put any value in to it as in code bellow and marked in comments as"//value put here unnecessarily", then the ArrayIndexOutOfBoundsException comes for all the values in a whole.
The values "0%2C0" are taken from no where in the block bellow the commented line as "//else if(gblQueCat == "ON")" (from the prepareUrl() method of the whole js code). Except for the case all other blocks where no such error occurs. So the changed format in that block is because of this error.
Chitta Ranjan Mishra
posted 9 years ago
Thanks a lot I have got the error. The variable defined to assigned default is same as array variable.
I am still confused Can I use the code without using any default value?