DavidLessin
3 years agoQrew Member
How to use GenAddRecordForm and update the child record's multiple fields using data from the parent record
I am trying to add a related record and update the URL code to include updates to the child record with data from one more than one field on the parent record. I have been unable to find any code examples and after several attempts, and not knowing for sure if this is even possible, I find that I need to ask for help! I thought this would be simple (old school SQL guy) but I keep failing. Really appreciate a hand!
Original Code:
URLRoot() & "db/" & [_DBID_ACCESS] & "?a=API_GenAddRecordForm&_fid_21=" & URLEncode ([WAN-Xchange Loc ID])& "&z=" & Rurl()
From the parent record, I want to include:
[Client (Related)] into to child record field ID 9
[Project (Related)] into to child record field ID 11
[Bid (Related)] into the child record field ID 15
URLRoot() & "db/" & [_DBID_ACCESS] & "?a=API_GenAddRecordForm&_fid_21=" & URLEncode ([WAN-Xchange Loc ID])&_fid_11 =& URLEncode [Client (Related)]& "&z=" & Rurl()
------------------------------
David Lessin
------------------------------
Original Code:
URLRoot() & "db/" & [_DBID_ACCESS] & "?a=API_GenAddRecordForm&_fid_21=" & URLEncode ([WAN-Xchange Loc ID])& "&z=" & Rurl()
From the parent record, I want to include:
[Client (Related)] into to child record field ID 9
[Project (Related)] into to child record field ID 11
[Bid (Related)] into the child record field ID 15
URLRoot() & "db/" & [_DBID_ACCESS] & "?a=API_GenAddRecordForm&_fid_21=" & URLEncode ([WAN-Xchange Loc ID])&_fid_11 =& URLEncode [Client (Related)]& "&z=" & Rurl()
------------------------------
David Lessin
------------------------------