For full functionality of this site it is necessary to enable JavaScript.
Here are the instructions how to enable JavaScript in your web browser.

Knowledge base

Find the answer to your question

Advanced Search PView

Search terms
Search Type
Product
Category
Language
Format
SDK
Sort by
Direction

Java SDK Sample: Remove item's properties using RelistItem

  • Answer ID 737
  • Published 10/09/2006 10:24 AM
  • Updated 10/20/2013 06:41 AM
  • Permalink https://ebaydts.com/eBayKBDetails?KBid=737
Product
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

How well did this answer your question?

Answers others found helpful

Print Email This Page Delicious Digg Facebook Reddit StumbleUpon Twitter