select properties tag

Help
kingczar
2009-12-09
2013-04-29
  • kingczar
    kingczar
    2009-12-09

    Hi,

    I tried the selectProperties tag… and it adds to all dimensions an extra property named "$name". Does anybody know how to avoid this or fix?

    Thanks for any suggestion, kingczar

     
  • kingczar
    kingczar
    2009-12-31

    Didn't you have this problem? When I look in to the Patch with SelectProperties, and I analyse the screen - there isn't any "$name" property.

    I added a filter line to the code of SelectProperty class and it seems works fine now:

        for (int i = 0; i < availablePropertiesColumns.length; i++) {
    for (Iterator it = availablePropertiesColumns_.iterator(); it.hasNext();) {
    MemberPropertyMeta mpm = (MemberPropertyMeta) it.next();

    //remove all metas that denote inline properties
    if(PropertyUtils.isInline(mpm.getName()))
    continue;

    if(!scopeMap.containsKey(mpm.getScope()))
    scopeMap.put(mpm.getScope(), new Integer(index++));

    MpmItem mpmItem = new MpmItem(mpm);
    if(visiblePropertyMetas == null) {
    itemListVisible.add(mpmItem);
    } else if(!existsInList(visiblePropertyMetas, mpmItem)) {
    itemListAvailable.add(mpmItem);
    }
    }
    }

    But it's only me who has this problem?

    _

     
  • kingczar
    kingczar
    2009-12-31

    I also changed one more line - the method request in OkHandler class:

        if(cs.getItems().size()==0)
      visiblePropertyMetas = new ArrayList();

    If set as null - you can't remove all the properties from visibles, am I right?