Hi ChrisMa, Please don't be frustrated. Like any new tool, it will take some blood, sweat, and tears to make this work,
so take a deep breath and do this in order:
1) In the default value of the data card for the JobId on the notes entry form, place the instruction "Gallery1.Selected.ID" you will need to rename the gallery if it is not Gallery1 in this case. This tells the form to refer to the "Job gallery ID" as the default value for the text box on the data card fior the JobID on your notes form. You will probably have to unlock it and use the advanced editor feature of the data card to find the default attribute.
2) If this is a no go, and you want to try the patch method to create the record before the notes edit form pops, I want you to do a little bit of homework and then I will give you the command right below this for a patch. Read the example of patch to create a record for the notes list. It is on this link, look for "strawberry" and read the formula, description and result columns for the most basic example listed here: https://powerapps.microsoft.com/en-us/tutorials/function-patch/
3) This is a plot spoiler, but if you put this command on your first form for job data entry, on a button called "make notes" it should work just fine. You will have to supply the unique key field name for the notes list, but this should do it for JobID number 1 in your list. It's hard coded to insert a note for JobID 1 in other words, then you play with it to make it work in the next step.
Patch( tblJobNotes, Defaults( TblJobNotes ), { JobId: 1 },{TypeOverYourUniqueKeyForTheNotesListHere: "My New Job Note"} )
4) If you do it this way, then all you need to do is supply the JobID field, which your notes seem to indicate is
JobDetailsForm.SelectedJob.Text, so the syntax would be:
Patch( tblJobNotes, Defaults( TblJobNotes ), { JobId: JobDetailsForm.SelectedJob.Text },{TypeOverYourUniqueKeyForTheNotesListHere: "My New Job Note"} )
This gets us to the core of the issue, your JobId seems to be hidden somehow. Here is what I always do at this frustration point: If you put a text box on the Job Entry form to display what you suspect is the jobID, you can see what it is before the code drives you nuts. It will be an integer like 7 if you are just starting to put data into your list objects. Try displaying (on your edit job form) the gallery1.Selected.ID field, and see if that is not indeed your job id for the job record. I think it will make sense then.
The data type jibberish on my other patch command, was because my ID in the example, was a complex lookup field in Sharepooint, so I needed to pass the schema name of the table that the ID came from. It's ugly, and even I don't like that Odata typing stuff! Add to that the data source contains some letters that were masked by a bleep, and it looks very strange, even to me! Sorry bout that.
Try to have fun with it, and best wishes to you!
SmartMeter.