How to insert the records in new line

Hi,

How to insert records already exist in the form into a new line of the same form.

and the new line should generate a next number sequence id(which was fetching using

number sequence format).

please send some coding

numberSeq::newGetNum(NumberSequenceReference);

before use this function you must have a method in table to create a new numbersequence

Example:

i had one table “RMResourceReqLine” in that table i had the below method (it used to return created new numbersequence)

static client server NumberSequenceReference numRefId()

{

return NumberSeqReference::findReference(typeId2ExtendedTypeId(typeId(RMLineID)));

}

RMLineId - EDT for that numberSequence.

now call this method like this

numberSeq::newGetNum(RMResourceReqLine::numRefId).num();

now this method return the newly created numbersequence…

inserting thing…i hope you know…

numberSequenceReference = smmParametersTable::numRefCaseId();
if (numberSequenceReference)
{
numberSeq = NumberSeq::newGetNum(numberSequenceReference, false,true);
}
if (numberSeq)
{
caseidlocal = numberSeq.num();
}
issueTrackerLocal1.CaseID = caseidlocal;

smmparameter-module name

caseidlocal - field variable

issueTrackerLocal1 - new line table variable

Hi everybody,

thank u very much for urs help…

Regards,

smiley