getDPidfromItem method

dynamic getDPidfromItem(
  1. dynamic item
)

Implementation

getDPidfromItem(item) {
  myLogAll('getDPidfromItem');
  if (item[gType] == gAddress) {
    return gDpAddress;
  } else if (item[gType] == gIcon) {
    return gDpIcon;
  }
  var droplist = item[gDroplist];
  if (droplist != null && droplist.indexOf("[") > 0) {
    return droplist.substring(0, droplist.indexOf("["));
  }

  return droplist;
}