Skip to main content
Solved

Selector can not inserting data in In the field. Why it is ?


Forum|alt.badge.img+1

Hello guys 

One of my selector field can’t inserting data in the field. when I selected data it’s disappearing from the field. 

suggest me guys

Thanks

Best answer by Naveen Boga

Hi @ShahidaValiSyed04  Not sure about in your case, and for me, the same code is working fine.

View original
Did this topic help you find an answer to your question?

8 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3382 replies
  • March 14, 2022

Hi, @ShahidaValiSyed04  TO INSERT a value in the selector field, that should be a KEY field.

Here is the example.

 #region IntegrationID

        [PXDBString(30, IsKey = true, IsUnicode = true, InputMask = "")]
        [PXDefault()]
        [PXUIField(DisplayName = "Integration ID", Required = true)]
        [PXSelector(typeof(Search<SOAMSetup.integrationID>), typeof(SOAMSetup.integrationID), typeof(SOAMSetup.description), typeof(SOAMSetup.integrationType))]
        public virtual string IntegrationID { get; set; }
        public abstract class integrationID : IBqlField { }

        #endregion

 

And also, it seems Auto-Numbering field, which means value will be auto-generated, you no need to enter any value.

If you wanted to enter the value manually, then you need to change the configuration to the Manual Numbering checkbox in the Numbering Sequences screen.

 

For more info: here is the article for your reference.

https://asiablog.acumatica.com/2018/05/auto-numbering-customization.html

 

 


Forum|alt.badge.img+1

Hi @Naveen Boga  Yes it is auto numbering but I need to select existing data through Inspection number

when I selecting existing number it’s not settle down.

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3382 replies
  • March 14, 2022

@ShahidaValiSyed04  Can you please share the DAC field and .aspx control for this field.


Forum|alt.badge.img+1

Hi @Naveen Boga 

Dac field here we go

[PXDBString(15, IsKey = true, IsUnicode = true, InputMask = "")]
        [PXUIField(DisplayName = "Inspection", Required = true)]
        [PXDefault()]
        [AutoNumber(typeof(SSPSetup.inspectionNumberingID), typeof(AccessInfo.businessDate))]
        [PXSelector(typeof(Search<SSPInspect.inspNbr>),
                    typeof(SSPInspect.inspNbr),
                    typeof(SSPInspect.inspCode),
                 SubstituteKey = typeof(SSPInspect.inspNbr),
                 DescriptionField = typeof(SSPInspect.inspCode))]
        public virtual string InspNbr { get; set; }
        public abstract class inspNbr : PX.Data.BQL.BqlString.Field<inspNbr> { }
<px:PXFormView ID="form" runat="server" DataSourceID="ds" DataMember="Inspection" Width="100%" Height="100px">
		<Template>

			<px:PXLayoutRule ID="PXLayoutRule1" runat="server" StartRow="True"></px:PXLayoutRule>
			<px:PXLayoutRule runat="server" ID="CstPXLayoutRule53" StartColumn="True" ></px:PXLayoutRule>
			<px:PXSelector CommitChanges="True" runat="server" ID="CstPXSelector61" DataField="InspNbr" ></px:PXSelector>
			<px:PXSelector CommitChanges="True" runat="server" ID="CstPXSelector60" DataField="InspCode" ></px:PXSelector>

	</px:PXFormView>

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3382 replies
  • March 14, 2022

Hi @ShahidaValiSyed04  Code looks good to me, but I just modified the DAC field. Can you please try with this?

[PXDBString(15, IsKey = true, IsUnicode = true, InputMask = "")]
        [PXUIField(DisplayName = "Inspection", Required = true)] 
        [AutoNumber(typeof(SSPSetup.inspectionNumberingID), typeof(AccessInfo.businessDate))]
        [PXSelector(typeof(SSPInspect.inspNbr),
                    typeof(SSPInspect.inspCode))]
        public virtual string InspNbr { get; set; }
        public abstract class inspNbr : PX.Data.BQL.BqlString.Field<inspNbr> { }

 


Forum|alt.badge.img+1

Hi @Naveen Boga  I tried but couldn’t get


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3382 replies
  • Answer
  • March 14, 2022

Hi @ShahidaValiSyed04  Not sure about in your case, and for me, the same code is working fine.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • 2679 replies
  • April 25, 2022

Hi @ShahidaValiSyed04 were you able to resolve this issue? Thank you!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings