Here is the desktop method I need the same thing for a web based app. Any Ideas would be great. I have tried several different items in the Afterinsertrecord to now avail.

This was the last but have an error.


function AfterInsertRecord as v (e as p)
var j1 = {Grid.object}._rowsInGrid;
var Oldlotnumber = {grid.object}.getvalue('G','Lotnumber',j1);
{grid.Object}.setValue('G''Lotnumber',-1,Oldlotnumber);
end function



DESKTOP THAT WORKS
The .Change_Begin() method indicates that you are about to change the value of a field rule. Use <TBL>.RULES_GET() to create the pointer.

Supported By

Alpha Five Version 5 and Above

Limitations

Desktop applications only.

Examples

dim tbl as P
dim fr as P
tbl = table.open("invoice_header")
fr = tbl.rules_get()
fr.change_begin()
fr.date.skip = "F"
fr.change_end(.t.)
tbl.close()dim tbl as P
dim fr as P
tbl = table.open("invoice_header")
fr = tbl.rules_get()
fr.change_begin()
fr.date.skip = "F"
fr.change_end(.t.)
tbl.close()

Thanks in advance