How to get the VShipTermsID from a vendor location record when you are in PO Entry?PXSelector for custom table not changing records when selecting different recordHow to get created entry after PXRedirectRequiredException callInsert Customer Location from an actionAutomation Notfications when delete recordGeneric Inquiry fails with DAC Extension field with PXDBCalced or custom attributeUnable to create Sales Order via API with items from Inactive VendorHow do I prevent SOLineSplit and INItemPlan from deleting when Qty = 0?Acumatica - get the last displayed recordAcumatica - error when trying to copy vendor attributeavoid getting duplicate records from SOLine and SOLineSplit

"The" for the first time only

Is (manual) feature extraction outdated?

Was Tim's reaction to the electric fence realistic?

What is the type of English used in the King James Bible Called?

How can you castle legally in Chess960 when the castling rook is on the king's destination square?

How to deal with a 6 year old who was "caught" cheating?

Which companions can I recruit into my crew?

Equivalent of !$A.util.isEmpty() in LWC

How do I complete the "A Brilliant Smile" triumph?

Why did Google not use an NP problem for their quantum supremacy experiment?

What is the impact of divergent tectonic plates on old mountain ranges?

How to control the padding below a BarLegend?

I was mistakenly identified as a criminal, and this has caused rumors. How can I convince my friends that it is all a mistake?

Instant coffee melts like chocolate

Do dead weight 'components' exist?

Body swap, then building it back to health

How do I prevent against authentication side-channel attacks?

Is this bible in Koine Greek?

Is putting money in a 401(k) plan risky?

Log user out after change of IP address?

Tapping 3 times on one leg and 4 times on another leg in 4 beats. What is it called and how to do it?

Is it worth delving deep outside my field to revise a paper?

English equivalent of the Malayalam saying "don't stab/poke the dead body"?

How likely are you to be injured by falling shot from a game shoot?



How to get the VShipTermsID from a vendor location record when you are in PO Entry?


PXSelector for custom table not changing records when selecting different recordHow to get created entry after PXRedirectRequiredException callInsert Customer Location from an actionAutomation Notfications when delete recordGeneric Inquiry fails with DAC Extension field with PXDBCalced or custom attributeUnable to create Sales Order via API with items from Inactive VendorHow do I prevent SOLineSplit and INItemPlan from deleting when Qty = 0?Acumatica - get the last displayed recordAcumatica - error when trying to copy vendor attributeavoid getting duplicate records from SOLine and SOLineSplit






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0

















Our customer is requiring us to add a Shipping Terms field to the PO Entry Screen. Looking at the source code it appears that the Ship Via field is set in the POOrder_VendorLocaition_FieldUpdated event.



 protected virtual void POOrder_VendorLocationID_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)
(current.BAccountID != row.VendorID


When I create a POOrderEntry_Extension and write a POOrder_VendorLocation_FieldUpdated event (without the sender.SetDefaultExt line it fails validation with:



App_RuntimeCodePOOrderEntry.cs(38): error CS1061: 'PX.Objects.PO.POOrderEntry_Extension' does not contain a definition for 'location' and no extension method 'location' accepting a first argument of type 'PX.Objects.PO.POOrderEntry_Extension' could be found (are you missing a using directive or an assembly reference?)



I think once I can lookup the VShipTermsID field I can set my UsrVShipTermsID field in the PO. I've tried to search for the appropriate using directive and have tried to step my way into the vendor record and then the location record. Any guidance would be greatly appreciated.



Here is the DAC Extension for the UsrVShipTermsID field.



[PXDBString(10)]
[PXSelector(typeof(
Search<ShipTerms.shipTermsID>),
DescriptionField = typeof(ShipTerms.description))]
[PXUIField(DisplayName = "Shipping Terms")]


And here is the full POOrderEntry_Extension



using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using PX.Common;
using PX.Data;
using PX.Objects.GL;
using PX.Objects.CM;
using PX.Objects.CS;
using PX.Objects.CR;
using PX.Objects.TX;
using PX.Objects.IN;
using PX.Objects.EP;
using PX.Objects.AP;
using PX.Objects.AR;
using PX.Objects.SO;
using PX.TM;
using SOOrder = PX.Objects.SO.SOOrder;
using SOLine = PX.Objects.SO.SOLine;
using PX.CS.Contracts.Interfaces;
using PX.Data.DependencyInjection;
using PX.LicensePolicy;
using PX.Objects.PM;
using CRLocation = PX.Objects.CR.Standalone.Location;
using PX.Objects.AP.MigrationMode;
using PX.Objects.Common;
using PX.Objects.Common.Discount;
using PX.Objects;
using PX.Objects.PO;
using PX.Objects.AP.Locations;

namespace PX.Objects.PO

public class POOrderEntry_Extension : PXGraphExtension<POOrderEntry>

#region Event Handlers
protected virtual void POOrder_VendorLocationID_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)
(current.BAccountID != row.VendorID
#endregion




Originally I was going to step my way from the PO to the Vendor to the location but I got lost when I tried to find the location record. Has the same using directives.



protected virtual void POOrder_VendorID_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)

var row = e.Row as POOrder;
if (row.VendorID != null)

var vendor = PXSelectorAttribute.Select<POOrder.vendorID>(sender, row) as BAccount;
if (vendor != null)

//var poorderExt = row.GetExtension<POOrderExt>();
//poorderExt.UsrVShipTermsID = vendor.VShipTermsID;
//sender.SetDefaultExt<POOrderExt.usrVShipTermsID>(e.Row);
//sender.SetValueExt<POOrderExt.usrVShipTermsID>(row, VendorClass.shipTermsID);
//poorderExt.UsrVShipTermsID = VendorClass.vendor.GetValue<VendorClass.shipTermsID>(VendorClass.vendor);












share|improve this question




























  • Can you include you graph extension code? Seems like an issue with how it's setup.

    – Brendan
    Mar 29 at 11:47

















0

















Our customer is requiring us to add a Shipping Terms field to the PO Entry Screen. Looking at the source code it appears that the Ship Via field is set in the POOrder_VendorLocaition_FieldUpdated event.



 protected virtual void POOrder_VendorLocationID_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)
(current.BAccountID != row.VendorID


When I create a POOrderEntry_Extension and write a POOrder_VendorLocation_FieldUpdated event (without the sender.SetDefaultExt line it fails validation with:



App_RuntimeCodePOOrderEntry.cs(38): error CS1061: 'PX.Objects.PO.POOrderEntry_Extension' does not contain a definition for 'location' and no extension method 'location' accepting a first argument of type 'PX.Objects.PO.POOrderEntry_Extension' could be found (are you missing a using directive or an assembly reference?)



I think once I can lookup the VShipTermsID field I can set my UsrVShipTermsID field in the PO. I've tried to search for the appropriate using directive and have tried to step my way into the vendor record and then the location record. Any guidance would be greatly appreciated.



Here is the DAC Extension for the UsrVShipTermsID field.



[PXDBString(10)]
[PXSelector(typeof(
Search<ShipTerms.shipTermsID>),
DescriptionField = typeof(ShipTerms.description))]
[PXUIField(DisplayName = "Shipping Terms")]


And here is the full POOrderEntry_Extension



using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using PX.Common;
using PX.Data;
using PX.Objects.GL;
using PX.Objects.CM;
using PX.Objects.CS;
using PX.Objects.CR;
using PX.Objects.TX;
using PX.Objects.IN;
using PX.Objects.EP;
using PX.Objects.AP;
using PX.Objects.AR;
using PX.Objects.SO;
using PX.TM;
using SOOrder = PX.Objects.SO.SOOrder;
using SOLine = PX.Objects.SO.SOLine;
using PX.CS.Contracts.Interfaces;
using PX.Data.DependencyInjection;
using PX.LicensePolicy;
using PX.Objects.PM;
using CRLocation = PX.Objects.CR.Standalone.Location;
using PX.Objects.AP.MigrationMode;
using PX.Objects.Common;
using PX.Objects.Common.Discount;
using PX.Objects;
using PX.Objects.PO;
using PX.Objects.AP.Locations;

namespace PX.Objects.PO

public class POOrderEntry_Extension : PXGraphExtension<POOrderEntry>

#region Event Handlers
protected virtual void POOrder_VendorLocationID_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)
(current.BAccountID != row.VendorID
#endregion




Originally I was going to step my way from the PO to the Vendor to the location but I got lost when I tried to find the location record. Has the same using directives.



protected virtual void POOrder_VendorID_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)

var row = e.Row as POOrder;
if (row.VendorID != null)

var vendor = PXSelectorAttribute.Select<POOrder.vendorID>(sender, row) as BAccount;
if (vendor != null)

//var poorderExt = row.GetExtension<POOrderExt>();
//poorderExt.UsrVShipTermsID = vendor.VShipTermsID;
//sender.SetDefaultExt<POOrderExt.usrVShipTermsID>(e.Row);
//sender.SetValueExt<POOrderExt.usrVShipTermsID>(row, VendorClass.shipTermsID);
//poorderExt.UsrVShipTermsID = VendorClass.vendor.GetValue<VendorClass.shipTermsID>(VendorClass.vendor);












share|improve this question




























  • Can you include you graph extension code? Seems like an issue with how it's setup.

    – Brendan
    Mar 29 at 11:47













0












0








0








Our customer is requiring us to add a Shipping Terms field to the PO Entry Screen. Looking at the source code it appears that the Ship Via field is set in the POOrder_VendorLocaition_FieldUpdated event.



 protected virtual void POOrder_VendorLocationID_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)
(current.BAccountID != row.VendorID


When I create a POOrderEntry_Extension and write a POOrder_VendorLocation_FieldUpdated event (without the sender.SetDefaultExt line it fails validation with:



App_RuntimeCodePOOrderEntry.cs(38): error CS1061: 'PX.Objects.PO.POOrderEntry_Extension' does not contain a definition for 'location' and no extension method 'location' accepting a first argument of type 'PX.Objects.PO.POOrderEntry_Extension' could be found (are you missing a using directive or an assembly reference?)



I think once I can lookup the VShipTermsID field I can set my UsrVShipTermsID field in the PO. I've tried to search for the appropriate using directive and have tried to step my way into the vendor record and then the location record. Any guidance would be greatly appreciated.



Here is the DAC Extension for the UsrVShipTermsID field.



[PXDBString(10)]
[PXSelector(typeof(
Search<ShipTerms.shipTermsID>),
DescriptionField = typeof(ShipTerms.description))]
[PXUIField(DisplayName = "Shipping Terms")]


And here is the full POOrderEntry_Extension



using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using PX.Common;
using PX.Data;
using PX.Objects.GL;
using PX.Objects.CM;
using PX.Objects.CS;
using PX.Objects.CR;
using PX.Objects.TX;
using PX.Objects.IN;
using PX.Objects.EP;
using PX.Objects.AP;
using PX.Objects.AR;
using PX.Objects.SO;
using PX.TM;
using SOOrder = PX.Objects.SO.SOOrder;
using SOLine = PX.Objects.SO.SOLine;
using PX.CS.Contracts.Interfaces;
using PX.Data.DependencyInjection;
using PX.LicensePolicy;
using PX.Objects.PM;
using CRLocation = PX.Objects.CR.Standalone.Location;
using PX.Objects.AP.MigrationMode;
using PX.Objects.Common;
using PX.Objects.Common.Discount;
using PX.Objects;
using PX.Objects.PO;
using PX.Objects.AP.Locations;

namespace PX.Objects.PO

public class POOrderEntry_Extension : PXGraphExtension<POOrderEntry>

#region Event Handlers
protected virtual void POOrder_VendorLocationID_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)
(current.BAccountID != row.VendorID
#endregion




Originally I was going to step my way from the PO to the Vendor to the location but I got lost when I tried to find the location record. Has the same using directives.



protected virtual void POOrder_VendorID_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)

var row = e.Row as POOrder;
if (row.VendorID != null)

var vendor = PXSelectorAttribute.Select<POOrder.vendorID>(sender, row) as BAccount;
if (vendor != null)

//var poorderExt = row.GetExtension<POOrderExt>();
//poorderExt.UsrVShipTermsID = vendor.VShipTermsID;
//sender.SetDefaultExt<POOrderExt.usrVShipTermsID>(e.Row);
//sender.SetValueExt<POOrderExt.usrVShipTermsID>(row, VendorClass.shipTermsID);
//poorderExt.UsrVShipTermsID = VendorClass.vendor.GetValue<VendorClass.shipTermsID>(VendorClass.vendor);












share|improve this question

















Our customer is requiring us to add a Shipping Terms field to the PO Entry Screen. Looking at the source code it appears that the Ship Via field is set in the POOrder_VendorLocaition_FieldUpdated event.



 protected virtual void POOrder_VendorLocationID_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)
(current.BAccountID != row.VendorID


When I create a POOrderEntry_Extension and write a POOrder_VendorLocation_FieldUpdated event (without the sender.SetDefaultExt line it fails validation with:



App_RuntimeCodePOOrderEntry.cs(38): error CS1061: 'PX.Objects.PO.POOrderEntry_Extension' does not contain a definition for 'location' and no extension method 'location' accepting a first argument of type 'PX.Objects.PO.POOrderEntry_Extension' could be found (are you missing a using directive or an assembly reference?)



I think once I can lookup the VShipTermsID field I can set my UsrVShipTermsID field in the PO. I've tried to search for the appropriate using directive and have tried to step my way into the vendor record and then the location record. Any guidance would be greatly appreciated.



Here is the DAC Extension for the UsrVShipTermsID field.



[PXDBString(10)]
[PXSelector(typeof(
Search<ShipTerms.shipTermsID>),
DescriptionField = typeof(ShipTerms.description))]
[PXUIField(DisplayName = "Shipping Terms")]


And here is the full POOrderEntry_Extension



using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using PX.Common;
using PX.Data;
using PX.Objects.GL;
using PX.Objects.CM;
using PX.Objects.CS;
using PX.Objects.CR;
using PX.Objects.TX;
using PX.Objects.IN;
using PX.Objects.EP;
using PX.Objects.AP;
using PX.Objects.AR;
using PX.Objects.SO;
using PX.TM;
using SOOrder = PX.Objects.SO.SOOrder;
using SOLine = PX.Objects.SO.SOLine;
using PX.CS.Contracts.Interfaces;
using PX.Data.DependencyInjection;
using PX.LicensePolicy;
using PX.Objects.PM;
using CRLocation = PX.Objects.CR.Standalone.Location;
using PX.Objects.AP.MigrationMode;
using PX.Objects.Common;
using PX.Objects.Common.Discount;
using PX.Objects;
using PX.Objects.PO;
using PX.Objects.AP.Locations;

namespace PX.Objects.PO

public class POOrderEntry_Extension : PXGraphExtension<POOrderEntry>

#region Event Handlers
protected virtual void POOrder_VendorLocationID_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)
(current.BAccountID != row.VendorID
#endregion




Originally I was going to step my way from the PO to the Vendor to the location but I got lost when I tried to find the location record. Has the same using directives.



protected virtual void POOrder_VendorID_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)

var row = e.Row as POOrder;
if (row.VendorID != null)

var vendor = PXSelectorAttribute.Select<POOrder.vendorID>(sender, row) as BAccount;
if (vendor != null)

//var poorderExt = row.GetExtension<POOrderExt>();
//poorderExt.UsrVShipTermsID = vendor.VShipTermsID;
//sender.SetDefaultExt<POOrderExt.usrVShipTermsID>(e.Row);
//sender.SetValueExt<POOrderExt.usrVShipTermsID>(row, VendorClass.shipTermsID);
//poorderExt.UsrVShipTermsID = VendorClass.vendor.GetValue<VendorClass.shipTermsID>(VendorClass.vendor);









acumatica






share|improve this question
















share|improve this question













share|improve this question




share|improve this question








edited Mar 29 at 20:31







John Wiles

















asked Mar 28 at 21:30









John WilesJohn Wiles

11 bronze badge




11 bronze badge















  • Can you include you graph extension code? Seems like an issue with how it's setup.

    – Brendan
    Mar 29 at 11:47

















  • Can you include you graph extension code? Seems like an issue with how it's setup.

    – Brendan
    Mar 29 at 11:47
















Can you include you graph extension code? Seems like an issue with how it's setup.

– Brendan
Mar 29 at 11:47





Can you include you graph extension code? Seems like an issue with how it's setup.

– Brendan
Mar 29 at 11:47












2 Answers
2






active

oldest

votes


















0


















If you need to access a property or method of the base Graph from an extension, use Base rather than this. For example, the line of code that is in the base graph



Location current = (Location)this.location.Current;


would be



Location current = (Location)Base.location.Current;


in the graph extension.






share|improve this answer


























  • When I change this to Base I get the following error: App_RuntimeCodePOOrderEntry.cs(30): error CS0234: The type or namespace name 'Locations' does not exist in the namespace 'PX.Objects.AP' (are you missing an assembly reference?)

    – John Wiles
    Mar 29 at 20:16












  • What is the line that is throwing the error? Can you update your code? Typically, classes are singular in Acumatica, and that error looks like you are referring to a class/type.

    – KRichardson
    Mar 30 at 14:46


















0


















A colleague provided the answer.



protected void POOrder_VendorLocationID_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)

POOrder row = (POOrder)e.Row;
if (row == null)
return;
POOrderExt rowExt = PXCache<POOrder>.GetExtension<POOrderExt>(row);

//retrieve LocVend Data
LocationExtAddress location = PXSelect<LocationExtAddress,
Where<LocationExtAddress.bAccountID, Equal<Current<POOrder.vendorID>>,
And<LocationExtAddress.locationID, Equal<Current<POOrder.vendorLocationID>>>>>.Select(Base, row);
rowExt.UsrVShipTermsID = location.VShipTermsID;




Thanks for the support and help.






share|improve this answer



























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );














    draft saved

    draft discarded
















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55407139%2fhow-to-get-the-vshiptermsid-from-a-vendor-location-record-when-you-are-in-po-ent%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown


























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0


















    If you need to access a property or method of the base Graph from an extension, use Base rather than this. For example, the line of code that is in the base graph



    Location current = (Location)this.location.Current;


    would be



    Location current = (Location)Base.location.Current;


    in the graph extension.






    share|improve this answer


























    • When I change this to Base I get the following error: App_RuntimeCodePOOrderEntry.cs(30): error CS0234: The type or namespace name 'Locations' does not exist in the namespace 'PX.Objects.AP' (are you missing an assembly reference?)

      – John Wiles
      Mar 29 at 20:16












    • What is the line that is throwing the error? Can you update your code? Typically, classes are singular in Acumatica, and that error looks like you are referring to a class/type.

      – KRichardson
      Mar 30 at 14:46















    0


















    If you need to access a property or method of the base Graph from an extension, use Base rather than this. For example, the line of code that is in the base graph



    Location current = (Location)this.location.Current;


    would be



    Location current = (Location)Base.location.Current;


    in the graph extension.






    share|improve this answer


























    • When I change this to Base I get the following error: App_RuntimeCodePOOrderEntry.cs(30): error CS0234: The type or namespace name 'Locations' does not exist in the namespace 'PX.Objects.AP' (are you missing an assembly reference?)

      – John Wiles
      Mar 29 at 20:16












    • What is the line that is throwing the error? Can you update your code? Typically, classes are singular in Acumatica, and that error looks like you are referring to a class/type.

      – KRichardson
      Mar 30 at 14:46













    0














    0










    0









    If you need to access a property or method of the base Graph from an extension, use Base rather than this. For example, the line of code that is in the base graph



    Location current = (Location)this.location.Current;


    would be



    Location current = (Location)Base.location.Current;


    in the graph extension.






    share|improve this answer














    If you need to access a property or method of the base Graph from an extension, use Base rather than this. For example, the line of code that is in the base graph



    Location current = (Location)this.location.Current;


    would be



    Location current = (Location)Base.location.Current;


    in the graph extension.







    share|improve this answer













    share|improve this answer




    share|improve this answer










    answered Mar 29 at 12:38









    KRichardsonKRichardson

    7025 silver badges11 bronze badges




    7025 silver badges11 bronze badges















    • When I change this to Base I get the following error: App_RuntimeCodePOOrderEntry.cs(30): error CS0234: The type or namespace name 'Locations' does not exist in the namespace 'PX.Objects.AP' (are you missing an assembly reference?)

      – John Wiles
      Mar 29 at 20:16












    • What is the line that is throwing the error? Can you update your code? Typically, classes are singular in Acumatica, and that error looks like you are referring to a class/type.

      – KRichardson
      Mar 30 at 14:46

















    • When I change this to Base I get the following error: App_RuntimeCodePOOrderEntry.cs(30): error CS0234: The type or namespace name 'Locations' does not exist in the namespace 'PX.Objects.AP' (are you missing an assembly reference?)

      – John Wiles
      Mar 29 at 20:16












    • What is the line that is throwing the error? Can you update your code? Typically, classes are singular in Acumatica, and that error looks like you are referring to a class/type.

      – KRichardson
      Mar 30 at 14:46
















    When I change this to Base I get the following error: App_RuntimeCodePOOrderEntry.cs(30): error CS0234: The type or namespace name 'Locations' does not exist in the namespace 'PX.Objects.AP' (are you missing an assembly reference?)

    – John Wiles
    Mar 29 at 20:16






    When I change this to Base I get the following error: App_RuntimeCodePOOrderEntry.cs(30): error CS0234: The type or namespace name 'Locations' does not exist in the namespace 'PX.Objects.AP' (are you missing an assembly reference?)

    – John Wiles
    Mar 29 at 20:16














    What is the line that is throwing the error? Can you update your code? Typically, classes are singular in Acumatica, and that error looks like you are referring to a class/type.

    – KRichardson
    Mar 30 at 14:46





    What is the line that is throwing the error? Can you update your code? Typically, classes are singular in Acumatica, and that error looks like you are referring to a class/type.

    – KRichardson
    Mar 30 at 14:46













    0


















    A colleague provided the answer.



    protected void POOrder_VendorLocationID_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)

    POOrder row = (POOrder)e.Row;
    if (row == null)
    return;
    POOrderExt rowExt = PXCache<POOrder>.GetExtension<POOrderExt>(row);

    //retrieve LocVend Data
    LocationExtAddress location = PXSelect<LocationExtAddress,
    Where<LocationExtAddress.bAccountID, Equal<Current<POOrder.vendorID>>,
    And<LocationExtAddress.locationID, Equal<Current<POOrder.vendorLocationID>>>>>.Select(Base, row);
    rowExt.UsrVShipTermsID = location.VShipTermsID;




    Thanks for the support and help.






    share|improve this answer






























      0


















      A colleague provided the answer.



      protected void POOrder_VendorLocationID_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)

      POOrder row = (POOrder)e.Row;
      if (row == null)
      return;
      POOrderExt rowExt = PXCache<POOrder>.GetExtension<POOrderExt>(row);

      //retrieve LocVend Data
      LocationExtAddress location = PXSelect<LocationExtAddress,
      Where<LocationExtAddress.bAccountID, Equal<Current<POOrder.vendorID>>,
      And<LocationExtAddress.locationID, Equal<Current<POOrder.vendorLocationID>>>>>.Select(Base, row);
      rowExt.UsrVShipTermsID = location.VShipTermsID;




      Thanks for the support and help.






      share|improve this answer




























        0














        0










        0









        A colleague provided the answer.



        protected void POOrder_VendorLocationID_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)

        POOrder row = (POOrder)e.Row;
        if (row == null)
        return;
        POOrderExt rowExt = PXCache<POOrder>.GetExtension<POOrderExt>(row);

        //retrieve LocVend Data
        LocationExtAddress location = PXSelect<LocationExtAddress,
        Where<LocationExtAddress.bAccountID, Equal<Current<POOrder.vendorID>>,
        And<LocationExtAddress.locationID, Equal<Current<POOrder.vendorLocationID>>>>>.Select(Base, row);
        rowExt.UsrVShipTermsID = location.VShipTermsID;




        Thanks for the support and help.






        share|improve this answer














        A colleague provided the answer.



        protected void POOrder_VendorLocationID_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)

        POOrder row = (POOrder)e.Row;
        if (row == null)
        return;
        POOrderExt rowExt = PXCache<POOrder>.GetExtension<POOrderExt>(row);

        //retrieve LocVend Data
        LocationExtAddress location = PXSelect<LocationExtAddress,
        Where<LocationExtAddress.bAccountID, Equal<Current<POOrder.vendorID>>,
        And<LocationExtAddress.locationID, Equal<Current<POOrder.vendorLocationID>>>>>.Select(Base, row);
        rowExt.UsrVShipTermsID = location.VShipTermsID;




        Thanks for the support and help.







        share|improve this answer













        share|improve this answer




        share|improve this answer










        answered Apr 4 at 13:34









        John WilesJohn Wiles

        11 bronze badge




        11 bronze badge































            draft saved

            draft discarded















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55407139%2fhow-to-get-the-vshiptermsid-from-a-vendor-location-record-when-you-are-in-po-ent%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown









            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript