Search

Friday 11 October 2013

1)Create an EDT: UB_CompMaster
2)Go to the Module Table:smmParametersTable
Create a method:
public client server static NumberSequenceReference numRefUB_CompMasterId()
{;
    return NumberSeqReference::findReference(typeId2ExtendedTypeId(typeid(UB_CompMasterId)));
}
3)Go to the module Class:NumberSeqReference_CRM
Select the LoadModule Method:
//Start
    numRef.DataTypeId              = typeId2ExtendedTypeId(typeid(UB_CompMasterId));
    numRef.ConfigurationKeyId      = configurationkeynum(SmmCRM);
    numRef.ReferenceHelp           = literalstr("CompetitorMasterId"); // Unique key for CompetitorMasterId
    numRef.WizardContinuous        = false;
    numRef.WizardManual            = NoYes::No;
    numRef.WizardAllowChangeDown   = NoYes::No;
    numRef.WizardAllowChangeUp     = NoYes::No;
    numRef.SortField               = 13;
    numRef.WizardHighest           = 999999;
    this.create(numRef);
//End
4)Go to the Table:Override initVale Method
public void initValue()
{
    NumberSeq       NumSeq;
    ;
    super();
    NumSeq =  NumberSeq::newGetNum(smmParametersTable::numRefUB_CompMasterId(),true);
    this.CompetitorMasterId = NumSeq.num();
}
OR
    this.CompetitorMasterId = smmParametersTable::numRefUB_CompMasterId().NumberSequence;
5. Finally, in CRM Module -> Set up -> parammeters -> Number sequence Tab, assign the number Sequence for the EDT you have created ... Thats it... Very simple ......

Tuesday 8 October 2013

Hello to All,


          Hello Friends, May the Almighty God Help us all for a Happy AXing.