alexlow
2nd September 2008, 13:01
hi,

i want to add an order number using the first free number, initial when i try it was ok, after selecting the pre-fix, whenever i click the save button, number will be generated automatically.

but now is not working and i can't figure out what is going on.
i set the field to zoom session of tcmcs0150m000 to return the series.
add the following code to make it pick from the correct number group and find point to the main table.


field.whxxx300.iono:
before.zoom:
if choice = def.find then
|* when using def.find, other zoom session applies:
attr.zoomsession$ = "whxxx3100m000"
attr.zoomreturn$ = "whxxx300.iono"
else
tcmcs050.nrgr = "W17"
endif
after.zoom:
whxxx300.iono = shiftr$(whxxx300.iono)

now when i click save, it doesn't generate IO000001, IO000002...
instead it just show IO

please advice. thanks

Kees de Jong
10th September 2008, 03:18
You can create a new order number using the first free numbers by calling the tcmcs.dll0050.fix.default.number() function.

alexlow
14th September 2008, 19:48
hi de jong,

i tried out the function you mention but can't work, do i need to #include any file first?
or do you have any sample

thanks

regards
Lex