Skip to Content
0
Former Member
May 03, 2013 at 02:48 AM

How to read Rfx Response Question tab using Scripts

48 Views

Hi,

I'm having a challenge reading the Rfx Response Question tab by scripts. Currently I'm using the getCollectionMetadata() method to read the Rfx Response collection table & did not find a collection name which holds the question & the answer for specific question section name.

For example :-

If I want to read all question & answers mapped under Question section name BCM(as attached). How do I have to read using scripts?

Below is the code snippet

collnMetaData = doc.getCollectionMetadata("COLLN:1:905"); // this will give me handle to Rfx Response obj

if(hasValue(collnMetaData)) {

collnMetaDoc = collnMetaData.get(doc); // this will give me handle to Rfx Response Ibean collection doc obj

if(hasValue(collnMetaDoc)) {

collnMetaItr = collnMetaDoc.iterator();

while(collnMetaItr.hasNext()) {

rfxResponseDocRef= collnMetaItr.next(); // this will give me instance of Rfx response Ibean doc obj

rfxRespDocList = rfxResponseDocRef.getResponseDocList(); // this will give me the list of questions associated with Rfx response

printLogMessage(CAQMSG+" Response Doc Ref List - "+(rfxRespDocList),"1");

printLogMessage(CAQMSG+" Response Doc Ref List Size - "+(rfxRespDocList.size()),"1");

printLogMessage(CAQMSG+" Response Doc Ref List Index 1 - "+(rfxRespDocList.get(0)),"1"); // this will just give me the first question section i.e. BCM. The console printed Attribute property as [Not fetched]

}

}

}

Please advise accordingly!

Regards,

Vinod

Attachments

Image 1.jpg (32.0 kB)
Image 2.jpg (39.1 kB)
Image 3.jpg (35.8 kB)