How do I search a record's unique 'serverrecordid' as a searchable field?

How do I search a record’s unique ‘serverrecordid’ as a searchable field and select one?

info(“serverrecordid”) function

The Panorama X info(“serverrecordid”) function returns the unique ID number for the current record.

How can I select a record in a database for a specific ‘server record ID’ for that record?

In the past I had a field that contained a uniqueID number created when the record was created.

Jim advised against that with the current state of Panorama.

Can I avoid having to populate the serverrecordid( into a field in the database and then select the serverrecordid( I want?

My initial need is quite simple. I want to only select the active record. For printing, as an example. Not all that satisfied my selection criteria.

How do I treat a record’s unique ‘serverrecordid’ as a searchable field?

If you just want to return to a previously saved record it’s straightforward:

let savedRecordId=info("serverrecordid")
//...
//Do some other stuff that changes the current record
//...
find savedRecordId=info("serverrecordid")

I realize maybe you’re trying to use the server record id for something more elaborate.

let thisRecord = info("serverrecordid")
select info("serverrecordid") = thisRecord

If your reason for doing this is to print just the current record, then you might want to checkout the printonerecord statement, and the onerecord option of the printtopdf statement.

Thanks Gents. And Bill, at this point I was not trying to do something different.

Dave, so often, you save my bacon.

Thanks again!