Forum Discussion
MarkShnier__You
3 years agoQrew Legend
The button to create a new space from the SubEntities table needs to populate the field for Related Entity. Can you post the code for that button?
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------
- ChrisSwirtz33 years agoQrew MemberThis is the code I have been using both on the Entities table and the Sub-Entities table to create new Spaces.
URLRoot() & "db/" & [_DBID_SPACES]
& "?a=API_GenAddRecordForm"
& "&_fid_60=" & URLEncode ([Record ID#])
& "&_fid_12=" & URLEncode("New (Annual) Lease")
& "&z=" & Rurl()
This is the code for the "Add Spaces" button created from the relationship between the the Sub-Entities table and the Spaces table.URLRoot() & "db/" & [_DBID_SPACES]
& "?a=API_GenAddRecordForm&_fid_1318="
& URLEncode ([Record ID#])
& "&z=" & Rurl()
Obviously my code has a couple extra functions added to it. Looks like the "fid_1318" section is the only other difference. But when I tried this button, the Sub-Entity did fill in the box like I wanted it to.
------------------------------
Chris Swirtz
------------------------------- ChrisSwirtz33 years agoQrew MemberI got this figured out, thanks!
------------------------------
Chris Swirtz
------------------------------