Skip to Content
0
Former Member
Apr 19, 2010 at 09:18 AM

Retrieve Multi Value PDF records from MDM

24 Views

Hi

I have to read PDF records from MDM which are Multi Valued.

How to retrieve.

Below is the code sample which I had written to get the multivalues from MDM.

But When I am displaying the value using multiValue[k] I am getting some codes like R5, R6 etc....

MultiValue mut = null;
for(int i=0; i<recordResultSet.getCount(); i++){
mut = (MultiValue)records<i>.getFieldValue(schema.getFieldId("mainTableName","pdfField"));
       if(mut.getValues().length != 0){
    	for(int k =0; k < multiValue.length; k++){						
		wdComponentAPI.getMessageManager().reportSuccess("Retreiv"+multiValue[k]);
	}
}

Is my approach correct? or do I need to change this.?

and

when I trying to append the PDF record to the main table it is overwritting.

I am using ModifyRecordCommand to update the record.

Please suggest me.

Thanks

Sowmya

Edited by: Sowmya on Apr 19, 2010 2:48 PM