0

Clear Relationship Field

Hi Guys, 
I have a form with date, time and Location. 

Location in a Relationship Field (N:1)

With my Button I can sent everything directly to the table. After that the fields date and time are cleaned.

I try to use the same command for the N:1 field but it wasn't working. Do you have an idea how I can clean the field after I hid the button?

if Datum = null then
    alert("Fehler: Es wurde kein Betrag eingetragen!")
else
    let my := this;
    let i := (create Veranstaltungen);
    do as server
        i.(Datum := my.Datum);
        i.(Uhrzeit := my.Uhrzeit);
        i.(Location := my.Locations);
        my.(Datum := null);
        my.(Uhrzeit := null);
        openRecord(this)
    end
end

2 replies

null
    • Ninox partner
    • RoSoft_Steven.1
    • 10 hrs ago
    • Reported - view

    my.(Location := 0)

      • Christoph_Hintermuller
      • 2 hrs ago
      • Reported - view

       Wow life can be so easy.. I wrote all the time null... Thanks a lot!!!!

Content aside

  • 2 hrs agoLast active
  • 2Replies
  • 17Views
  • 2 Following