Discussions

 View Only
  • 1.  Mobile button save and add

    Posted 11-01-2021 12:25
    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
    ------------------------------


  • 2.  RE: Mobile button save and add

    Posted 11-01-2021 12:29
    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
    ------------------------------



  • 3.  RE: Mobile button save and add

    Posted 11-01-2021 14:08
    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
    ------------------------------



  • 4.  RE: Mobile button save and add

    Posted 11-01-2021 15:17
    sorry, I don't have more ideas.  Maybe Evan does.

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