Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

AX Datagrid Control - Edit Purchase Requistion Line Details - Purchase Order column error - Enterprise Portal

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Whenever I edit the Purchase Order detail, it errors with The value 'xyz'' in field 'Purchase order' is not found in the related table 'Purchase orders'.

This works wonderfully in the ax client but not in the Enterprise Portal.

<dynamics:AxGridView ID="VendGridView" runat="server" AllowEdit="True" 
DataKeyNames="RecId,InventDim!inventDimId,PurchReqBusJustificationLine!RefRecId,PurchReqBusJustificationLine!RefTableId"
DataMember="PurchReqLine"
DataSourceID="PurchReqLineDS" EnableModelValidation="True" UpdateOnPostBack="True"
AllowPaging="False" AllowSorting="False"
ConcreteTypePromptManagedContentItem=""
DataSetCachingKey="3613b97d-720e-412d-8c70-2543d0afe636" Height="25px">
<Columns>

<dynamics:AxBoundField DataField="VendAccount" DataSet="PurchReqLine"
DataSetView="PurchReqLine" LookupButtonDisplaySettings="Always"
SortExpression="VendAccount">
</dynamics:AxBoundField>

<dynamics:AxBoundField DataField="vendName**" DataSet="PurchReqLine"
DataSetView="PurchReqLine" LookupButtonDisplaySettings="Always"
AutoPostBack="True">
</dynamics:AxBoundField>

<dynamics:AxBoundField DataField="PurchId" DataSet="PurchReqLine"
DataSetView="PurchReqLine"
SortExpression="PurchId" LookupButtonDisplaySettings="Always"
HtmlEncodeFormatString="True">
</dynamics:AxBoundField>

<dynamics:AxBoundField DataField="vendStatus**" DataSet="PurchReqLine"
DataSetView="PurchReqLine" AutoPostBack="True">
</dynamics:AxBoundField>

<dynamics:AxDropDownBoundField DataField="RFQRequirement"
DataSet="PurchReqLine" DataSetView="PurchReqLine"
SortExpression="RFQRequirement" ValidationEnabled="True">
</dynamics:AxDropDownBoundField>

<dynamics:AxDropDownBoundField DataField="getOrderStatus**"
DataSet="PurchReqLine" DataSetView="PurchReqLine"
ValidationEnabled="True">
</dynamics:AxDropDownBoundField>

<dynamics:AxDropDownBoundField DataField="purchLineStatus**"
DataSet="PurchReqLine" DataSetView="PurchReqLine"
ValidationEnabled="True">
</dynamics:AxDropDownBoundField>

</Columns>
</dynamics:AxGridView>

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans