Skip to main content

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

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


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


Hi @Naveen Boga  I tried but couldn’t get


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

 


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>

 


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


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.

 


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

 

 


Reply