Jump to content
Server Maintenance This Week. ×

Getnextserialvalue not working


This topic is 7121 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I am using the design function Getnextserialvalue to place the next serial number from the field serial number in another field. The function is in a set field script step GetNextSerialValue ( Get ( FileName ) ; test::Serial No ). The field Serial no is an auto enter number. The script returns no value!

Any ideas? Thanks in advance.

Stephen.

Link to comment
Share on other sites

I would assume if the quotes are not present, it assumes the field name is contained in the specified field. This is similar to the way GetField(fieldname) uses the value of fieldname to determine which field to get.

Update: I just tested and this is indeed the case. If g is a global text field containing "table::serial", then GetNextSerialValue( Get(FileName); table::g ) returns the next value of table::serial.

Link to comment
Share on other sites

This topic is 7121 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.