2017-02-14 31 views

回答

1

只要你知道你可以在ISML內使用下面的方法上ProductBO從屬性的名稱:

public AttributeValue getAttributeValue(String aName);

店面的應用程序帶有一個方便的雖然不是非常靈活的模塊,該模塊能夠顯示AV-S。它也適用於多個屬性。該模塊的名稱是ISCustomAttribute

使用範例:

<isCustomAttribute 
    attributelabel="#AttributeDescriptor:DisplayName#" 
    attributevalue="#ProductBO:AttributeValue(AttributeDescriptor:ID)#" 
    attributeseparator=",&nbsp;"> 

,如果你使用這個模塊最好是。你可能會看到它的行動。自ProductBO屬性印刷產品詳細信息頁面上的店面作爲下圖像顯示(@see DetailsTab.isml):

enter image description here

如果不適合,你將不得不檢索attribs的東西迭代。我認爲最適合的方式是使用BO擴展BusinessObjectAttributes。您將能夠通過名稱檢索BusinessObjectAttribute並循環查看其值。

<isloop iterator="BusinessObjectAttribute:Value" alias="AValue" counter="counter"> 
    <!--- Do something gorgeous here ---> 
</isloop> 
相關問題