Skip to Content
0

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

Nov 10, 2016 at 08:49 AM

39

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers