Forums › Forums › SIMPOL Programming › Reading the value of recid_ro_internal
- This topic has 5 replies, 2 voices, and was last updated 7 years, 9 months ago by Michael.
- AuthorPosts
- June 6, 2016 at 1:23 am #3381Dan JinksParticipant
If I want to see the value of the unique record ID within a detail block, how can that be achieved?
For detail blocks, I usually start with this statement:
csrc =@ f.getfieldandtable(sFieldname, “NOTESUBSET”)
Unfortunately, when I use sFieldname = “recid_ro_internal”, I get a null result.June 6, 2016 at 9:10 pm #3382Dan JinksParticipantI am trying a different approach to get the recid_ro_internal key. I have established an onmouse event function for the detailblock text controls and I can retrieve the detailblock row number. I thought I could then get to the associated record. The detailblock has functions getrowdata and setrowdata. The setrowdata returns a recordset but I do not see how to get from that information to the actual table record behind the clicked detailblock row.
Any suggestions?
June 8, 2016 at 1:46 am #3383Dan JinksParticipantHmmm.
dataform1control.getrecord()
This looks promising.June 8, 2016 at 4:59 am #3384Dan JinksParticipantSuccess!
{dataform1control.getrecord() was the key)June 8, 2016 at 8:14 pm #3385Dan JinksParticipantI also know why I could not access recid_ro_internal from the Volatable.
It seems that this function in db1util.sma:
function copy_db1rec_to_db1rec(type(db1record) fr, type(db1record) tr, integer iErrnum)intentionally does not copy the recid_ro_internal field.
Good to know.
July 15, 2016 at 7:10 pm #3397MichaelKeymasterHi Dan,
I’m sorry you had to track all that down on your own. I have now installed a notification extension so that I get emailed when a topic is posted.
As for vola1base, that is correct, it won’t copy the internal record id (it may well be creating one of its own actually – though I would have to check to be sure).
- AuthorPosts
- You must be logged in to reply to this topic.