2013-11-25 54 views

回答

1

hybris中的每個布爾實體,如果通過它在items.xml中的聲明是可選的,則在hmc/cmscockpit中查看時呈現n/a單選按鈕。

要刪除這一點,你需要做以下更改

  • 轉到items.xml您的擴展
  • 編輯布爾屬性如下的:

<attribute qualifier="active" type="java.lang.Boolean"> 
 
    <modifiers read="true" write="true" optional="false" /> 
 
    <defaultvalue>java.lang.Boolean.TRUE</defaultvalue> 
 
    <persistence type="property" /> 
 
</attribute>

  • 轉到hmc.xml您的自定義擴展,使下面的條目(如果你只想要是/否出現,不想一個複選框)

<attribute name="active"> 
 
    <advancedbooleaneditor truename="true" falsename="false" /> 
 
</attribute>

  • 螞蟻清理所有並啓動hybris服務器
  • 轉到hmc /駕駛艙並立即查看屬性。該屬性如下所示。 enter image description here

希望這有助於

相關問題