Solved

CstPXSegmentMask field empty when I select a row in new dialog


Userlevel 3
Badge

Hello expert.

I create a CstPXSegmentMask field. I query data succes for it, but when I select a row in dialog, textbox still empty.

Can you help me? Thank you so much.

 

icon

Best answer by thanhaim 15 March 2023, 07:49

View original

12 replies

Userlevel 7
Badge +17

Hi @thanhaim  Can you please share the DAC field for the Shipment Via field?

Userlevel 3
Badge

@Naveen Boga this is DAC Field. Thankyou

        #region UsrShipVia1

        [PXDBString(100, IsUnicode = true, InputMask = "")]

        [PXSelector(typeof(Search<Carrier.carrierID>),

            typeof(Carrier.description))]

        [PXDefault()]

        [PXMergeAttributes(Method = MergeMethod.Merge)]

        [PXUIField(DisplayName = "Ship Via 1", Visibility = PXUIVisibility.SelectorVisible)]

        public virtual string UsrShipVia1 { get; set; }

        public abstract class usrShipVia1 : PX.Data.BQL.BqlString.Field<usrShipVia1> { }

        #endregion

Userlevel 7
Badge +17

@thanhaim  Thanks for sharing!

 

Can you please change it to PXSelector control instead of PXSegmentMask? As per you DAC, it will work with the PXSelector control.

Userlevel 3
Badge

@Naveen Boga I not found where declare PXSelector. Can you guid me?

 

Userlevel 7
Badge +17

@thanhaim  Click on the Control, it will open a dropdown field and there you select the SELECTOR instead SEGEMENT MASK.

Now, it seems you already selected the Selector control (which is nothing but PXSelector in the design page). Please publish the package and check.

 

Userlevel 3
Badge

@Naveen Boga I published project but it still empty.

 

Userlevel 7
Badge +17

@thanhaim  Can you please share the customization package here?

Userlevel 3
Badge

@Naveen Boga here is my SO package, thank you so much.

 

Userlevel 7
Badge +17

@thanhaim Thanks for sharing, I will check this couple of hours and get back to you.

Userlevel 7
Badge +17

@thanhaim You have not added the DLL or DAC files to the customization package.

However, I have changed the Control from PXSegmentMask to PXSelector and attached the package here.

Please deploy and verify.

 

Userlevel 3
Badge

@Naveen Boga while you find the solution. I try delete this field and backup old version SO, later I add it again, well succes 😁😁😁.  I think I miss some step or my local environment error. Very Thank you so much, hope you helthy. @Naveen Boga

Userlevel 7
Badge +17

@thanhaim  Awesome, thanks for sharing the update!!

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved