Here is the source code: using System;using PX.Data;using System.Collections.Specialized;using Customization;using System.Web.Security;using System.IO;using PX.Common;using PX.Web.Customization;namespace ChangeWebConfig{ //Customization plugin is used to execute custom actions after customization project was published public class MyPlugIn : CustomizationPlugin { //This method executed right after website files were updated, but before website was restarted //Method invoked on each cluster node in cluster environment //Method invoked only if runtimecompilation is enabled //Do not access custom code published to bin folder, it may not be loaded yet public override void OnPublished() { this.WriteLog("OnPublished Event"); String file = File.ReadAllText(Path.Combine(PX.Data.Update.PXInstanceHelper.RootFolder, "packages.config")); file = webconfig.Replace("<activeDirectory enabled=\"false\" path = \"\"
Hi @Raj Gopinathan Thanks for the replies.I have received an response from Acumatica team, that AlternateID is a Key so that we need to delete and insert the record instead of updating.Here is the example. Base.itemxrefrecords.Current = Base.itemxrefrecords.Search<INItemXRef.inventoryID, INItemXRef.subItemID, INItemXRef.alternateType, INItemXRef.bAccountID, INItemXRef.alternateID> (objINItemXRef.InventoryID, objINItemXRef.SubItemID, objINItemXRef.AlternateType, objINItemXRef.BAccountID, objINItemXRef.AlternateID); INItemXRef newCrossRef = new INItemXRef(); newCrossRef.InventoryID = Base.itemxrefrecords.Current.InventoryID; newCrossRef.AlternateType = Base.itemxrefrecords.Current.AlternateType; newCrossRef.SubItemID = Base.itemxrefrecords.Current.SubItemID; newCrossRef.AlternateID = "1217"; newCrossRe
Hi @Raj Gopinathan As suggested, I have tried with the below code and it is also behaving the same. It is creating a new record instead of updating. INItemXRef objINItemXRef = Base.itemxrefrecords.Search<INItemXRef.inventoryID, INItemXRefCExt.usrCAltIDExists, INItemXRef.alternateType>(row.InventoryID, true, INAlternateType.Global); if (objINItemXRef != null) { INItemXRefCExt refExt = objINItemXRef.GetExtension<INItemXRefCExt>(); if (objINItemXRef.InventoryID == row.InventoryID && refExt.UsrCAltIDExists == true && objINItemXRef.AlternateType == INAlternateType.Global) { objINItemXRef.AlternateID = objCSAnswers.Value.Trim(); Base.itemxrefrecords.Cache.Update(objINItemXRef); } }
Hi @Raj Gopinathan Is it possible to share the sample code?
Hi Everyone,Can anyone help me on this? CC: @nmansinha @Dmitrii Naumov @Dhiren Chhapgar
Hi @jinin Thanks for sharing the update. I have done this step earlier.I have figured out the problem that we need to add the wiki with name as “HelpRoot_WikiName”, due to this link was not established.
Hi @Dhiren Chhapgar Thanks a lot, it is working great.
Hi @Dhiren Chhapgar I took your code from below GIT Hub (https://github.com/Acumatica/Acumatica-PricingAnalysis/tree/2020 ) and created on top of customization and tried all the possible ways to avoid the Zero cost items in the Pricing Analysis grid. Below is sample code which I have tried to override the view delegate and added this ( if (orgLine.CuryExtCost > 0m)) condition, but still not working. :( Could you please help me on this?using PX.Data;using PX.Objects.IN;using PX.PricingAnalysis.Ext;using System.Collections;using System.Collections.Generic;using System.Linq;namespace PricingAnalysisExt{ public abstract class PricingAnalysisGraphExt<TGraph, TPrimary> : PricingAnalysisGraph<TGraph, TPrimary> where TGraph : PXGraph where TPrimary : class, IBqlTable, new() { [PXOverride] public override void InitializePreviewData() { int iRecordCounter = 0; foreach (DocumentLine orgLine in DocumentLineData.S
Hi @ChandrasekharM With that filter, it will filter only non zero unit cost items, but we need to avoid the Unit Cost 0 items, because these items are getting involved in the average pricing calculations.
Hello Everyone,Looking for an update. Can you please help me on this. CC: @Irina @community-admin
Hello Everyone, Looking for an update.Can anyone please provide your thoughts on this requirement. CC: @community-admin @Gabriel Michaud @dnaumov @nmansinha @Dhiren Chhapgar
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.