Skip to main content
Published: October 09 2006, 10:24:00 AMUpdated: July 27 2022, 9:57:00 PM

My item's subtitle is not removed after a ReviseItem call. This following codes is used for removing the subtitle :
ModifiedFieldType[] list = new ModifiedFieldType[1];
list[0] = new ModifiedFieldType();
list[0].setField("item.SubTitle");
Unfortunately,it failed without any exception.

Detailed Description

In general, you should use DeleteField to remove from an item's property. Below is the sample code for deleting an item's SubTitle:

           ReliseItemCall rtc = new ReliseItemCall(apiContext);
           ItemIDType id = new  ItemIDType(itemId);
           ItemType item = new ItemType();
           item.setItemID(id);
           rtc.setItemToBeRevised(item);
           String[] deleteFields = {"Item.SubTitle"};
           rtc.setDeletedField(deleteFields);
           FeesType fee = rtc.reviseItem();


Additional Resource

 

Attachments
How well did this answer your question?
Answers others found helpful