Solved

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

  • 14 March 2022
  • 8 replies
  • 158 views

Userlevel 3
Badge +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

icon

Best answer by Naveen Boga 14 March 2022, 16:05

View original

8 replies

Userlevel 7
Badge +19

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

 

 

Userlevel 3
Badge +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.

 

Userlevel 7
Badge +19

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

Userlevel 3
Badge +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>

 

Userlevel 7
Badge +19

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> { }

 

Userlevel 3
Badge +1

Hi @Naveen Boga  I tried but couldn’t get

Userlevel 7
Badge +19

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

Userlevel 7
Badge

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

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