Skip to main content
Solved

CstPXSegmentMask field empty when I select a row in new dialog

  • March 14, 2023
  • 12 replies
  • 139 views
  • Translate All

Forum|alt.badge.img

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.

 

Best answer by thanhaim

@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

View original

12 replies

Naveen Boga
Captain II
Forum|alt.badge.img+20

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

Translate

Forum|alt.badge.img
  • Author
  • Freshman II
  • March 14, 2023

@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

Translate

Naveen Boga
Captain II
Forum|alt.badge.img+20

@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.

Translate

Forum|alt.badge.img
  • Author
  • Freshman II
  • March 14, 2023

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

 

Translate

Naveen Boga
Captain II
Forum|alt.badge.img+20

@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.

 

Translate

Forum|alt.badge.img
  • Author
  • Freshman II
  • March 14, 2023

@Naveen Boga I published project but it still empty.

 

Translate

Naveen Boga
Captain II
Forum|alt.badge.img+20

@thanhaim  Can you please share the customization package here?

Translate

Forum|alt.badge.img
  • Author
  • Freshman II
  • March 15, 2023

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

 

Translate

Naveen Boga
Captain II
Forum|alt.badge.img+20

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

Translate

Naveen Boga
Captain II
Forum|alt.badge.img+20

@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.

 

Translate

Forum|alt.badge.img
  • Author
  • Freshman II
  • Answer
  • March 15, 2023

@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

Translate

Naveen Boga
Captain II
Forum|alt.badge.img+20

@thanhaim  Awesome, thanks for sharing the update!!

Translate