Page 1 of 1
nuHasNewRecordID Wiki
Posted: Sun Aug 30, 2020 6:53 am
by kev1n
Steven,
Regarding
nuHasNewRecordID()'s
Description
So that the user can tell if a record is being cloned or saved for the first time.
To tell if the record is saved for the first time, nuHasNewRecordID() doesn't seem to work for me.
I use
instead (which is undocumented)
Re: nuHasNewRecordID Wiki
Posted: Mon Aug 31, 2020 12:27 am
by admin
Re: nuHasNewRecordID Wiki
Posted: Mon Aug 31, 2020 6:47 am
by kev1n
Perfect!
As for nuHasNewRecordID():
In
BS, nuHasNewRecordID() always returns false (Situation when cloning and then saving a record)
Code: Select all
nuDebug("PREVIOUS_RECORD_ID: #PREVIOUS_RECORD_ID# / RECORD_ID: #RECORD_ID#");
nuDebug Results:
[0] : PREVIOUS_RECORD_ID: -1 / RECORD_ID: -1
But in AS, nuHasNewRecordID() returns true (which is correct)
nuDebug Results:
[0] : PREVIOUS_RECORD_ID: -1 / RECORD_ID: 5f4c7fc510f45ca
Re: nuHasNewRecordID Wiki
Posted: Tue Sep 01, 2020 5:51 am
by admin
kev1n,
I have also changed the description of nuHasNewRecordID().
Steven
Re: nuHasNewRecordID Wiki
Posted: Tue Sep 01, 2020 6:10 am
by kev1n
admin wrote:kev1n,
I have also changed the description of nuHasNewRecordID().
Steven
I can't see an updated description from today. At least it should be mentioned that nuHasNewRecordID() does only return a correct result in AS and not BS. (see my explanation above)
Of course it would be nice if it could also be used in BS