2011-12-03 7 views
0

価格リスト項目の価格リストエンティティにサブグリッドを追加しようとしています。サブグリッドの挿入ダイアログでエンティティのオプションのドロップダウンリストを見ると、価格リスト項目はオプションとして表示されません。さらに調査した結果、リスト内の唯一のオプションは、1:Nの関係がカスタマイズ可能に設定されていること、価格表の項目は表示されていないようです。カスタマイズ可能でないリレーションシップのためにCRM 2011のエンティティにサブグリッドを追加するソリューション

誰でもこの回避策を知っていますか?

+0

これはDynamics CRM 2011オンデマンド展開ですか?また、価格リストアイテムビューのビューIDはありますか? –

+0

オンラインデプロイメントです。 – Chad

答えて

0

"main"フォームのFormXmlには、pricelevel(価格リスト)に関連付けられた製品のサブグリッドがどのように構成されているかを示すセクションがあり、プリンシパルパラメータViewIdがあります。これは、表示/編集したいエンティティのシステムビューIDです。

あなただけproductpricelevelためViewID(価格レベルの詳細)を取得するためにSavedQuery表にデータベースを見ることができますので、私は(オンプレミスオンライン対)の展開の種類について尋ね、私はあなたができると確信していますこれを通常のCRMクエリでも取得します。とにかく、私が "All Price List Items"ビューの記録に残っているViewIDは "AB4877E9-6D01-4D28-84C3-BE7564C1BB09"で、あなたの組織にとっては同じです。

この情報で、pricelevelのFormXmlを変更し、productpricelevelのサブグリッドXMLを以下のように追加することができます。 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 /> 
関連する問題