Skip to main content
Question

Mobile button save and add

  • November 1, 2021
  • 0 replies
  • 148 views

Forum|alt.badge.img+5
I have an add record form for a barcoding application.

I have one receipt to many objects.

Users would enter a receipt then add object records to take a picture of each object and assign a barcode.

The button works great in desk top but the record id from the parent doesn't  go to the child in the mobile app. any ideas here?

code for the button: 
var text STYLE =
"background: green;" & //button color
"color: white;" & //text color
"text-align: center;" & //text alignment
"text-decoration: none;" & //none, underline, line-through
"font: 18px Calibri, sans-serif;" & //text size, font, & style
"border: 3px solid #505050;" & //border width, style, & color
"border-radius: 5px;" & //roundness of button corners
"width:100px;"& //button width
"padding: 5px 50px;"; //space between text & button

var text RID = If(IsNull([Record ID#]),"%%rid%%",ToText([Record ID#]));

var text URL = URLRoot() & "db/" & [_DBID_OBJECT_PICS]&
"?a=API_GenAddRecordForm" &
"&_fid_9='"& $RID &
"'&z=" & Rurl();

------------------------------
Dan McLaughlin
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+22
  • Quickbase Alumni
  • November 1, 2021
I suggest you just try using the Native Add Child URL that the relationship created as the URL to see if that works.

var text URL = URLRoot() & "db/" & [_DBID_OBJECT_PICS]&
"?a=API_GenAddRecordForm" &
"&_fid_9='"& [Record ID#]
"'&z=" & Rurl();

------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------