Skip to Content

How can I edit/update/add questions in a Question Section in RFx through script?

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers