Hi,
How do I change the display name / Type of "q1" to "q2"?
I am also facing issue adding a new question through script.
sample code I am using:
questSections = doc.getQuestionSections();
qSMember = questSections.get(j) ;
questionsColln = qSMember.getQuestions();
newQuestion=questionsColln.get(0);
AttributeTypeType t2 = new AttributeTypeType(728);
newQuestion.setType(t2);
newQuestion.setDisplayName("QuestionXyzAbc");
I can see by throwing an exception that it throws the new display name /type assigned but it does not reflect the change in the system.
throw doc.createApplicationException("",newQuestion.getType().toString());
Thanks,
Mayank