価格表アイテムの価格表エンティティにサブグリッドを追加しようとしています。サブグリッドの挿入ダイアログでエンティティのオプションのドロップダウン リストを見ると、オプションとして価格表アイテムが表示されません。詳細な調査の結果、リスト内の唯一のオプションはカスタマイズ可能として設定された 1:N 関係であり、価格表アイテムはそうではないようです。
誰もこれに対する回避策を知っていますか?
価格表アイテムの価格表エンティティにサブグリッドを追加しようとしています。サブグリッドの挿入ダイアログでエンティティのオプションのドロップダウン リストを見ると、オプションとして価格表アイテムが表示されません。詳細な調査の結果、リスト内の唯一のオプションはカスタマイズ可能として設定された 1:N 関係であり、価格表アイテムはそうではないようです。
誰もこれに対する回避策を知っていますか?
pricelevel
「メイン」フォームの FormXml には、 (Price List)に関連付けられた製品のサブグリッドがどのように構築されているかを詳しく説明するセクションがあり、主要なパラメーターは であるため、viewID について尋ねましたViewId
。表示/編集するエンティティのシステム ビュー ID です。
展開のタイプ (オンプレミスかオンラインか) について尋ねたのは、SavedQuery
表のデータベースを見ViewID
てproductpricelevel
(価格レベルの詳細) を取得できるからですが、これは通常の CRM クエリで取得できると確信しています。同じように。とにかく、「すべての価格表アイテム」ビューの記録にある ViewID は「AB4877E9-6D01-4D28-84C3-BE7564C1BB09」であり、あなたの組織でも同じだと思います。
この情報を使用して、次のように FormXml を変更pricelevel
し、サブグリッド XML を追加できproductpricelevel
ます。UI のレイアウトを変更する必要がある場合は、必要なレイアウトを持つ別のエンティティを見て、適切に変更できます。
<row>
<!--cell id: a distinct GUID for this area of the form. Any will do.-->
<cell id="{74e711eb-0eec-119e-8703-ce8b5dbbca94}" showlabel="true" colspan="1" auto="false" rowspan="8">
<labels>
<!--label description: the name (if any) of any label you want to see with the subgrid-->
<label description="Price Level Detail" languagecode="1033" />
</labels>
<!--control id: the name of the subgrid
classid: the type of control (in this case, a subgrid)-->
<control id="CustomPriceLevelItemSubGrid" classid="{E7A81278-8635-4d9e-8D4D-59480B391C5B}">
<parameters>
<!--ViewID: the ID stored in the system for the entity you're interested in (in this case, productpricelevel/Price Level Detail)-->
<ViewId>{AB4877E9-6D01-4D28-84C3-BE7564C1BB09}</ViewId>
<IsUserView>false</IsUserView>
<!--RelationshipName: the name of the relationship that links the two entities (pricelevel to productpricelevel)-->
<RelationshipName>price_level_product_price_levels</RelationshipName>
<!--TargetEntityType: the entity you want to see displayed in the subgrid-->
<TargetEntityType>productpricelevel</TargetEntityType>
<AutoExpand>Fixed</AutoExpand>
<EnableQuickFind>true</EnableQuickFind>
<EnableViewPicker>true</EnableViewPicker>
<ViewIds></ViewIds>
<EnableJumpBar>true</EnableJumpBar>
<ChartGridMode>Grid</ChartGridMode>
<VisualizationId></VisualizationId>
<IsUserChart>false</IsUserChart>
<EnableChartPicker>false</EnableChartPicker>
<RecordsPerPage>4</RecordsPerPage>
</parameters>
</control>
</cell>
</row>
<row />
<row />
<row />
<row />
<row />
<row />
<row />