Hey Adam,
@Adam KeeverI am trying to implement this by creating a new child record from the parent table. Then going to the record in edit mode.
I couldn't get Don's solution to work and was able to make some progress with your solution, but I have hit a hurdle.
Here is my code:
var text Token = "abcdef";
"<a class='Vibrant Success' style=\" text-align: center; border:1px solid #6BBD57; background-color:#6BBD57; \"href='"
& URLRoot() & "db/" & [_DBID_COMMUNICATION_LOG] & "?act=API_AddRecord&apptoken=" & $Token
& "&rdr=" & URLEncode(URLRoot() & "db/" & [_DBID_COMMUNICATION_LOG] & "?a=er&rid=" & ([Maximum Record ID#]+1) & "")
& "'>YOUR_BUTTON_NAME_GOES_HERE</a>"
From the Stakeholder table I am trying to create a Communication Log record. The first issue I am hitting is that the newly created record is not tied back to the Parent record. I have even tried altering the code but it says the function doesn't exist (assume there is no apptoken):
var text Token = "abcdef";
"<a class='Vibrant Success' style=\" text-align: center; border:1px solid #6BBD57; background-color:#6BBD57; \"href='"
& URLRoot() & "db/" & [_DBID_COMMUNICATION_LOG] & "?a=API_GenAddRecordForm&_fid_12=" & URLEncode ([Record ID#]) & "&z=" & Rurl()
& "&rdr=" & URLEncode(URLRoot() & "db/" & [_DBID_COMMUNICATION_LOG] & "?a=er&rid=" & ([Maximum Record ID#]+1) & "")
& "'>YOUR_BUTTON_NAME_GOES_HERE</a>"
Now assuming we solve this, the next issue I have is that the Summary field for Maximum Record ID # is only summarizing the records associated with the parent. So the Max +1 becomes invalid as soon as another parent creates a child record.
So my 2nd question is: Is there a way to make the summary field summarize ALL child records and not just the related ones?
Thank you,
------------------------------
Curtis Middleton
------------------------------