locked
How can I set facet.showInFilter to true? RRS feed

  • Question

  • Hi,

    I tried the following PS script. As you can see the property "showInFilter" is not changed to True.

    PS C:\Program Files (x86)\Zentity\PowerShell scripts\en> $x = Get-ZentityResourceTypeConfiguration Osthus.Model MoleculeProperty
    PS C:\Program Files (x86)\Zentity\PowerShell scripts\en> foreach($f in $x.facets)
    >> {
    >>     if($f.propertyName.Equals("TextValue"))
    >>     {
    >>         $f.showInFilter = $TRUE
    >>         echo $f
    >>     }
    >> }
    >> Set-ZentityResourceTypeConfiguration Osthus.Model MoleculeProperty $x
    >> $x = Get-ZentityResourceTypeConfiguration Osthus.Model MoleculeProperty
    >> foreach($f in $x.facets)
    >> {
    >>     if($f.propertyName.Equals("TextValue"))
    >>     {
    >>         echo $f
    >>     }
    >> }
    >>
    ExtensionData  : System.Runtime.Serialization.ExtensionDataObject
    dataType       : LongString
    delimiter      :
    displayName    : TextValue
    format         :
    keywordSearch  : True
    propertyName   : TextValue
    showInFilter   : True
    showInInfoPane : True
    True
    ExtensionData  : System.Runtime.Serialization.ExtensionDataObject
    dataType       : LongString
    delimiter      :
    displayName    : TextValue
    format         :
    keywordSearch  : True
    propertyName   : TextValue
    showInFilter   : False
    showInInfoPane : True

    Any idea how this can be done?


    Saturday, November 3, 2012 11:22 PM

All replies

  • Did you get True as response from the server when you run the command

    Set-ZentityResourceTypeConfiguration Osthus.Model MoleculeProperty $x.

    If it returns true means the updates are succesfull. Apart from this your steps are right. Please let me know.

    • Proposed as answer by Kalnemi Friday, November 9, 2012 7:54 AM
    Monday, November 5, 2012 12:45 PM
  • Any updates? Still facing the issue?
    Thursday, November 8, 2012 12:07 PM