Forum Discussion

DanMcLaughlin's avatar
DanMcLaughlin
Qrew Trainee
4 years ago

Mobile button save and add

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
------------------------------
  • 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
    ------------------------------
    • DanMcLaughlin's avatar
      DanMcLaughlin
      Qrew Trainee
      No Joy

      The mobile app even asks if i want to save the record and I reply "save"  but it does not associate the parent.

      ------------------------------
      Dan McLaughlin
      ------------------------------
      • TateForgey's avatar
        TateForgey
        Qrew Assistant Captain

        I'm having the same issue here. This seems like it has to work, yet it doesn't. Did you ever find a way to do this?