2017-02-14 15 views

答えて

1

限り、あなたはあなたがISML内からProductBOに次のメソッドを使用して属性の名前を知っている:

public AttributeValue getAttributeValue(String aName);

店頭アプリがあり、非常に柔軟性のないモジュールはいえ便利な付属していますAV-sを表示することができます。複数の属性に対しても機能します。モジュール名はISCustomAttributeです。

使用例:

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

あなたは、このモジュールを使用する場合、最良のだろう。あなたは実際にそれを見るかもしれません。カスタムProductBO属性は(DetailsTab.ismlを@see)次の画像が示すように店頭での製品の詳細ページに印刷されています:

enter image description here

これが収まらない場合は、反復可能なものとしてはattribsを取得する必要があります。私が最適と考える方法は、BO拡張子BusinessObjectAttributesを使うことです。名前からBusinessObjectAttributeを取得し、その値をループすることができます。

<isloop iterator="BusinessObjectAttribute:Value" alias="AValue" counter="counter"> 
    <!--- Do something gorgeous here ---> 
</isloop> 
関連する問題