Skip to main content
Solved

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

  • Mar 14, 2022 11:18 AM UTC
  • 8 replies
  • 251 views
  • Translate All

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

8 replies

Naveen Boga
Captain II
Forum|alt.badge.img+20
  • Captain II
  • Mar 14, 2022 12:18 PM UTC

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

 

 

Translate

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.

 

Translate

Naveen Boga
Captain II
Forum|alt.badge.img+20
  • Captain II
  • Mar 14, 2022 1:25 PM UTC

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

Translate

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>

 

Translate

Naveen Boga
Captain II
Forum|alt.badge.img+20
  • Captain II
  • Mar 14, 2022 1:51 PM UTC

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

 

Translate

Forum|alt.badge.img+1

Hi @Naveen Boga  I tried but couldn’t get

Translate

Naveen Boga
Captain II
Forum|alt.badge.img+20
  • Captain II
  • Answer
  • Mar 14, 2022 3:05 PM UTC

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

Translate

Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • Apr 25, 2022 10:44 PM UTC

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

Translate