For new registrations we think the best method of accessing the next sequential number (for each of Entry and Membership numbers) would be to use Auto Actions and query the MySQL DB for the current highest number allocated Number (Entry or Membership as appropriate) and add one. Is there a better way? Is this feasible?
That's doable using a Query action on the after registration trigger.
Can you assist with some code guidance please?
We do not provide custom coding assistance here. We only provide simple examples at best of which there are many around the forums. Your query would likely be an update query on _comprofiler setting the value of the field to a subquery. Example as follows.
Code:
UPDATE `#__comprofiler` SET `FIELD_NAME` = ( SUBQUERY_FOR_NEXT_VALUE_HERE ) WHERE `id` = '[user_id]'