Answer is not getting saved on clicking radio button

Answer is not getting saved on clicking radio button

  

Hi,

I have an application in which i have a set of questions and questions has 3 categories.

The first category contains 3 questions, other has 7 questions, last one has 3 questions.

In the first category I have to save the answers on clicking the radio button:

On applying the logic on the button I got the saved answers of the 2 questions of the first category (last question was left unanswered).

Same happened with 2nd category(last question was left unanswered).

But the 3rd category has all questions answered.

By this logic:

On reviewing the answers i got the output as :

And I am not getting that why the third question is not getting saved.

Please help me with asap.


Thanks in advance.

Ankita

Hi Ankita,

On clicking on radio button I think you firing the onchange of that radio button and in Onchange action you need to debug what is going wrong.


Regards

-SK-

Ankita, 

First of all, try to get your code more clean. It should be more readable for us that way. 

Besides that, debugging the OnChange Logic will help you, like Sashi said.


Give us some more information if you keep getting this problem

Assuming you're using the OnChange, sending the radioButton group as an input (NewStepNumber?), are you absolutely sure you did not send the wrong Id on the 3rd group?
Either the NewStepNumber or the WizardStepId might be assigned wrong, due to copy-pasting.

Cheers,
Pedro

Shashi kant Shukla wrote:

Hi Ankita,

On clicking on radio button I think you firing the onchange of that radio button and in Onchange action you need to debug what is going wrong.


Regards

-SK-


There is no OnChange action on each radio button. 

All answers are getting saved at the last on clicking Next button:


and in next the logic is given: 

Here only the Answer is not getting saved of the first two categories.

the first category's first two answers are getting saved and not the third answer.

I have tried to debug also so in the first loop on;y I checked the same (that answer of third question is not getting saved).


Please help me asap.

Thanks

Ankita

Hi,

Can you please send your oml so that I can look into it.


Regards

-SK-

Shashi kant Shukla wrote:

Hi,

Can you please send your oml so that I can look into it.


Regards

-SK-


I have given you the oml in which when you will debug on Move action at the 4th step (or 4th wizard) then you will find that the 3rd answer is not getting saved and IsAnwer=0.

Please solve my problem.

Thanks in Advance.


Oml is attached here.

Hi Ankita,

I can not debug because I dont have data in Question & Answer table to populate the screen steps.

When page loaded is step3 screen populating.

Can you please debug and check "QuestionTable3" is having data or not.


Regards

-SK-


Shashi kant Shukla wrote:

Hi Ankita,

I can not debug because I dont have data in Question & Answer table to populate the screen steps.

When page loaded is step3 screen populating.

Can you please debug and check "QuestionTable3" is having data or not.


Regards

-SK-


here is the xls file which you have to import in Question entity .

QuestionTable3 is having data.