Schnell veröffentlichte Artikel enthalten Informationen direkt aus der Microsoft-Supportorganisation. Die hierin enthaltenen Informationen werden als Reaktion auf neue oder eindeutige Themen erstellt oder sollen andere Informationen der Wissensdatenbank ergänzen.
Symptome
Wenn Sie in Microsoft Dynamics AX 2009 mit der rechten Maustaste auf das Dialogfeld Routenkartenjournal klicken und dann auf Setup klicken, um der Registerkarte Übersicht die Spalte Konfiguration hinzuzufügen, wird die Konfiguration einer Stückliste (BoM) im Dialogfeld Routenkartenjournal nicht ordnungsgemäß angezeigt.
Ursache
Dieses Problem tritt auf, weil Microsoft Dynamics AX nicht unterstützt, dass Sie einem Rastersteuerelement eine verzögerte verknüpfte Datenquelle hinzufügen.
Lösung
Hotfixinformationen
Ein unterstützter Hotfix ist jetzt bei Microsoft verfügbar. Es dient jedoch nur zur Behebung des problems, das in diesem Artikel beschrieben wird. Wenden Sie sie nur auf Systeme an, bei denen dieses spezifische Problem auftritt. Dieser Hotfix erhält möglicherweise zusätzliche Tests. Wenn Sie von diesem Problem nicht stark betroffen sind, empfiehlt es sich daher, auf das nächste Microsoft Dynamics AX 2009 Service Pack oder die nächste Version zu warten, die diesen Hotfix enthält.
Hinweis In besonderen Fällen können Gebühren, die normalerweise für Supportanrufe anfallen, storniert werden, wenn ein Technischer Supportmitarbeiter für Microsoft Dynamics und zugehörige Produkte feststellt, dass ihr Problem durch ein bestimmtes Update behoben wird. PLEASE DO NOT TRANSLATE. DOES NOT APPLY TO GERMAN.
Dieser Hotfix soll in Service Pack 2 für Microsoft Dynamics AX 2009 enthalten sein.
Informationen zur Installation
Vergewissern Sie sich vor der Installation dieses Hotfixes, dass die Microsoft Dynamics AX-Clientbenutzer vom System abgemeldet sind. Sie sollten der einzige Clientbenutzer sein, der angemeldet ist, wenn Sie diesen Hotfix implementieren.
Um diesen Hotfix implementieren zu können, benötigen Sie eine Entwicklerlizenz.
Hinweis Es wird empfohlen, dass das Benutzerkonto im Fenster Windows-Anmeldungen oder im Fenster Datenbankanmeldungen Mitglied der Benutzergruppe Administratoren in Microsoft Dynamics AX ist.
Codeänderungen
Microsoft stellt Programmierbeispiele nur zur Veranschaulichung zur Verfügung, ohne ausdrückliche oder stillschweigende Garantie. Dies schließt die stillschweigende Gewährleistung der Marktgängigkeit oder der Eignung für einen bestimmten Zweck ein, ist aber nicht darauf beschränkt. In diesem Artikel wird davon ausgegangen, dass Sie mit der vorgestellten Programmiersprache und den Werkzeugen zum Erstellen und Debuggen von Prozeduren vertraut sind. Die Support-Techniker von Microsoft können Ihnen die Funktionalität eines bestimmten Verfahrens erklären. Sie werden diese Beispiele jedoch nicht ändern, um zusätzliche Funktionen bereitzustellen oder Verfahren zu konstruieren, die Ihren speziellen Anforderungen entsprechen. Testen Sie Codefixes immer in einer kontrollierten Umgebung, bevor Sie die Korrekturen auf Ihre Produktionscomputer anwenden.
Führen Sie die folgenden Schritte aus, um diesen Hotfix anzuwenden:
Ändern Sie den Code in der datasourceWritePre-Methode in der ProdJournalFormTransRoute-Klasse wie folgt:
Vorhandener Codevoid datasourceWritePre() { ; if (prodJournalRoute.ProdPickList && prodJournalRoute.OprPriority && !prodJournalRoute.ProdPickListJournalId) prodJournalRoute.ProdPickList = NoYes::No; if (prodJournalRoute.ProdReportFinished) prodJournalRoute.ProdInventDimId = InventDim::findOrCreate(inventDim).InventDimId; else // Modify the following line. prodJournalRoute.ProdInventDimId = ''; prodJournalRoute.ProdInventDimId = ''; super(); }Ersetzungscode
void datasourceWritePre() { ; if (prodJournalRoute.ProdPickList && prodJournalRoute.OprPriority && !prodJournalRoute.ProdPickListJournalId) prodJournalRoute.ProdPickList = NoYes::No; if (prodJournalRoute.ProdReportFinished) prodJournalRoute.ProdInventDimId = InventDim::findOrCreate(inventDim).InventDimId; else // The following line is modified. prodJournalRoute.ProdInventDimId = InventDim::inventDimIdBlank(); prodJournalRoute.ProdInventDimId = ''; super(); }Ändern Sie den Code in der fieldModifiedProdReportFinishedPost-Methode in der ProdJournalFormTransRoute-Klasse wie folgt:
Vorhandener Codevoid fieldModifiedProdReportFinishedPost() { InventDim emptyInventDim; ; if (prodJournalRoute.ProdReportFinished) { if (! prodJournalRoute.ProdInventDimId) inventDim_ds.create(); inventDim.data(InventDim::find(ProdTable::find(prodJournalRoute.ProdId).InventDimId)); } else inventDim.data(emptyInventDim); inventDim_ds.setCurrent(); }Ersetzungscode
void fieldModifiedProdReportFinishedPost() { // Add the following line. InventDim emptyInventDim = InventDim::find(InventDim::inventDimIdBlank()); InventDim emptyInventDim; ; if (prodJournalRoute.ProdReportFinished) { if (! prodJournalRoute.ProdInventDimId) inventDim_ds.create(); inventDim.data(InventDim::find(ProdTable::find(prodJournalRoute.ProdId).InventDimId)); } else inventDim.data(emptyInventDim); inventDim_ds.setCurrent(); }Ändern Sie den Code in der enableFieldsActive-Methode im ProdJournalTransRoute-Formular wie folgt:
Vorhandener Codevoid enableFieldsActive() { prodJournalRoute_ds.object(fieldnum(ProdJournalRoute,EmplId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRoute_ds.object(fieldnum(ProdJournalRoute,CategoryHoursId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRoute_ds.object(fieldnum(ProdJournalRoute,CategoryQtyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); projectHour.visible(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjHour_ds.object(fieldnum(ProdJournalRouteProj,ProjId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjHour_ds.object(fieldnum(ProdJournalRouteProj,ProjLinePropertyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjHour_ds.object(fieldnum(ProdJournalRouteProj,ProjSalesCurrencyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); projectQuantity.visible(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjQuantity_ds.object(fieldnum(ProdJournalRouteProj,ProjId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjQuantity_ds.object(fieldnum(ProdJournalRouteProj,ProjLinePropertyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjQuantity_ds.object(fieldnum(ProdJournalRouteProj,ProjSalesCurrencyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); }Ersetzungscode
void enableFieldsActive() { // Add the following lines. int i; container enabledDimFields = InventDim::dimEnabledFieldList(); container dimFields = InventDim::dimFieldList(); ; prodJournalRoute_ds.object(fieldnum(ProdJournalRoute,EmplId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRoute_ds.object(fieldnum(ProdJournalRoute,CategoryHoursId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRoute_ds.object(fieldnum(ProdJournalRoute,CategoryQtyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); projectHour.visible(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjHour_ds.object(fieldnum(ProdJournalRouteProj,ProjId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjHour_ds.object(fieldnum(ProdJournalRouteProj,ProjLinePropertyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjHour_ds.object(fieldnum(ProdJournalRouteProj,ProjSalesCurrencyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); projectQuantity.visible(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjQuantity_ds.object(fieldnum(ProdJournalRouteProj,ProjId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjQuantity_ds.object(fieldnum(ProdJournalRouteProj,ProjLinePropertyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjQuantity_ds.object(fieldnum(ProdJournalRouteProj,ProjSalesCurrencyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); // Add the following lines. for(i = 0; i < conlen(dimFields) ; i++) { if (inventDim_DS.object(conpeek(dimFields, i))) { if (prodJournalRoute.ProdInventDimId == InventDim::inventDimIdBlank()) { inventDim_DS.object(conpeek(dimFields,i)).enabled(false); } else { inventDim_DS.object(conpeek(dimFields,i)).enabled(confind(enabledDimeFields,i) != 0); } } } }Ändern Sie den Wert der Eigenschaften des InventDim-Datenquellenobjekts im ProdJournalTransRoute-Formular wie folgt:
- Ändern Sie den Wert der LinkType-Eigenschaft in InnerJoin.
- Ändern Sie den Wert der DelayActive-Eigenschaft in Nein.
Fügen Sie den folgenden Code im Objekt "\Forms\ProdJournalTransRoute\DataSources\InventDim\Methods\ validateWrite" hinzu.
public boolean validateWrite() { boolean ret; ; if (inventDim.inventDimId == InventDim::inventDimIdBlank()) return true; ret = super(); return ret; }Ändern Sie den Code im Objekt "\Forms\ProdJournalTransRoute\DataSources\InventDim\Methods\write" wie folgt:
Vorhandener Codevoid write() { ; prodJournalRoute_ds.write(); }Ersetzungscode
void write() { ; prodJournalRoute_ds.write(); // Add the following line. element.enableFieldsActive(); }Ändern Sie den Code in "\Forms\ProdJournalTransRoute\DataSources\ProdJournalRoute\Methods\active" wie folgt:
Vorhandener Codeint active() { int ret; ret = super(); journalFormTrans.datasourceActivePost(); if (prodJournalRoute.isProjMethodConsumed()) { skipWrite = true; prodJournalRouteProjHour_ds.executeQuery(); prodJournalRouteProjQuantity_ds.executeQuery(); skipWrite = false; } element.enableFieldsActive(); return ret; }Ersetzungscode
int active() { int ret; // Add the following lines. ; journalFormTrans.updateDesign(InventDimFormDesignUpdate::Init); ret = super(); journalFormTrans.datasourceActivePost(); if (prodJournalRoute.isProjMethodConsumed()) { skipWrite = true; prodJournalRouteProjHour_ds.executeQuery(); prodJournalRouteProjQuantity_ds.executeQuery(); skipWrite = false; } element.enableFieldsActive(); return ret; }Ändern Sie den Code in der enableFieldsActive-Methode im ProdJournalTransJob-Formular wie folgt:
Vorhandener Codevoid enableFieldsActive() { prodJournalRoute_ds.object(fieldnum(ProdJournalRoute,EmplId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRoute_ds.object(fieldnum(ProdJournalRoute,CategoryHoursId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRoute_ds.object(fieldnum(ProdJournalRoute,CategoryQtyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); projectHour.visible(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjHour_ds.object(fieldnum(ProdJournalRouteProj,ProjId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjHour_ds.object(fieldnum(ProdJournalRouteProj,ProjLinePropertyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjHour_ds.object(fieldnum(ProdJournalRouteProj,ProjSalesCurrencyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); projectQuantity.visible(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjQuantity_ds.object(fieldnum(ProdJournalRouteProj,ProjId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjQuantity_ds.object(fieldnum(ProdJournalRouteProj,ProjLinePropertyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjQuantity_ds.object(fieldnum(ProdJournalRouteProj,ProjSalesCurrencyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); }Ersetzungscode
void enableFieldsActive() { // Add the following lines. int i; container enabledDimFields = InventDim::dimEnabledFieldList(); container dimFields = InventDim::dimFieldList(); ; prodJournalRoute_ds.object(fieldnum(ProdJournalRoute,EmplId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRoute_ds.object(fieldnum(ProdJournalRoute,CategoryHoursId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRoute_ds.object(fieldnum(ProdJournalRoute,CategoryQtyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); projectHour.visible(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjHour_ds.object(fieldnum(ProdJournalRouteProj,ProjId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjHour_ds.object(fieldnum(ProdJournalRouteProj,ProjLinePropertyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjHour_ds.object(fieldnum(ProdJournalRouteProj,ProjSalesCurrencyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); projectQuantity.visible(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjQuantity_ds.object(fieldnum(ProdJournalRouteProj,ProjId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjQuantity_ds.object(fieldnum(ProdJournalRouteProj,ProjLinePropertyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); prodJournalRouteProjQuantity_ds.object(fieldnum(ProdJournalRouteProj,ProjSalesCurrencyId)).mandatory(prodJournalRoute.isProjMethodConsumed()); // Add the following lines. for(i = 0; i < conlen(dimFields) ; i++) { if (inventDim_DS.object(conpeek(dimFields, i))) { if (prodJournalRoute.ProdInventDimId == InventDim::inventDimIdBlank()) { inventDim_DS.object(conpeek(dimFields,i)).enabled(false); } else { inventDim_DS.object(conpeek(dimFields,i)).enabled(confind(enabledDimeFields,i) != 0); } } } }Ändern Sie den Wert der Eigenschaften des InventDim-Datenquellenobjekts im ProdJournalTransJob-Formular wie folgt:
- Ändern Sie den Wert der LinkType-Eigenschaft in InnerJoin.
- Ändern Sie den Wert der DelayActive-Eigenschaft in Nein.
Fügen Sie den folgenden Code im Objekt "\Forms\ProdJournalTransJob\DataSources\InventDim\Methods\ validateWrite" hinzu.
public boolean validateWrite() { boolean ret; ; if (inventDim.inventDimId == InventDim::inventDimIdBlank()) return true; ret = super(); return ret; }Ändern Sie den Code im Objekt "\Forms\ProdJournalTransJob\DataSources\InventDim\Methods\write" wie folgt:
Vorhandener Codevoid write() { ; prodJournalRoute_ds.write(); }Ersetzungscode
void write() { ; prodJournalRoute_ds.write(); // Add the following line. element.enableFieldsActive(); }Ändern Sie den Code in "\Forms\ProdJournalTransJob\DataSources\ProdJournalRoute\Methods\active" wie folgt:
Vorhandener Codeint active() { int ret; ret = super(); journalFormTrans.datasourceActivePost(); if (prodJournalRoute.isProjMethodConsumed()) { skipWrite = true; prodJournalRouteProjHour_ds.executeQuery(); prodJournalRouteProjQuantity_ds.executeQuery(); skipWrite = false; } element.enableFieldsActive(); return ret; }Ersetzungscode
int active() { int ret; // Add the following lines. ; journalFormTrans.updateDesign(InventDimFormDesignUpdate::Init); ret = super(); journalFormTrans.datasourceActivePost(); if (prodJournalRoute.isProjMethodConsumed()) { skipWrite = true; prodJournalRouteProjHour_ds.executeQuery(); prodJournalRouteProjQuantity_ds.executeQuery(); skipWrite = false; } element.enableFieldsActive(); return ret; }Ändern Sie den Code in der insert-Methode in der ProdJournalRoute-Tabelle wie folgt:
Vorhandener Codevoid insert() { ttsbegin; if (! this.LineNum) this.LineNum = ProdJournalRoute::lastLineNum(this.JournalId) + 1; if (this.OprFinished) this.JobFinished = NoYes::Yes; this.updateRouteConstantRelease(); super(); ttscommit; }Ersetzungscode
void insert() { ttsbegin; if (! this.LineNum) this.LineNum = ProdJournalRoute::lastLineNum(this.JournalId) + 1; if (this.OprFinished) this.JobFinished = NoYes::Yes; // Add the following lines. if(!this.ProdInventDimId) this.ProdInventDimId = InventDim::inventDimIdBlank(); this.updateRouteConstantRelease(); super(); ttscommit; }Ändern Sie den Code in der initValue-Methode in der ProdJournalRoute-Tabelle wie folgt:
Vorhandener Codevoid initValue() { super(); this.TransDate= systemdateget(); }Ersetzungscode
void initValue() { super(); this.TransDate= systemdateget(); // Add the following line. this.ProdInventDimId = InventDim::inventDimIdBlank(); }
Voraussetzungen
Zum Anwenden dieses Hotfixes sind keine Voraussetzungen erforderlich.
Neustartanforderung
Sie müssen den Computer nicht neu starten, nachdem Sie diesen Hotfix angewendet haben.
Status
Microsoft hat bestätigt, dass dies ein Problem bei den Microsoft-Produkten ist, die im Abschnitt „Gilt für“ aufgeführt sind.
MICROSOFT UND/ODER SEINE LIEFERANTEN GEBEN KEINE ZUSICHERUNGEN ODER GEWÄHRLEISTUNGEN HINSICHTLICH DER EIGNUNG, DER ZUVERLÄSSIGKEIT ODER DER GENAUIGKEIT DER INFORMATIONEN, DIE IN DEN DOKUMENTEN UND DEN ZUGEHÖRIGEN GRAFIKEN ENTHALTEN SIND, DIE AUF DIESER WEBSITE VERÖFFENTLICHT WERDEN (DIE "MATERIALIEN") FÜR IRGENDEINEN ZWECK.
DIE MATERIALIEN ENTHALTEN MÖGLICHERWEISE UNGENAUE ANGABEN ODER TYPOGRAFISCHE FEHLER UND KÖNNEN JEDERZEIT OHNE ANKÜNDIGUNG GEÄNDERT WERDEN. MICROSOFT UND/ODER SEINE LIEFERANTEN LEHNEN ALLE AUSDRÜCKLICHEN, STILLSCHWEIGENDEN ODER GESETZLICHEN ZUSICHERUNGEN, GEWÄHRLEISTUNGEN UND BEDINGUNGEN AB, EINSCHLIEßLICH, ABER NICHT BESCHRÄNKT AUF ZUSICHERUNGEN, GEWÄHRLEISTUNGEN ODER EIGENTUMSBEDINGUNGEN, NICHTVERLETZUNG, ZUFRIEDENSTELLENDER ZUSTAND ODER QUALITÄT, HANDELSÜBLICHKEIT UND EIGNUNG FÜR EINEN BESTIMMTEN ZWECK IN BEZUG AUF DIE MATERIALIEN.