I have a custom gate pass form with two data source first called gate pass table and the other one is driver table. Table gate pass has a foreign key relation with driver table on a national ID. It means national Id is in the both tables. In the form, we have also three fields driver national ID, driver name and driver contact number. I want to enable user to select national ID by lookup and also she can add new national ID by writing it in the national Id field. if national Id is exist in driver table the related name and contact should load. other wise user should enter those as well and new record should be added to the driver table.
I can easily implement this requirement(by code). However I want to meet this requirement by using Dynamic 365 features. I wonder whether I can use join data source property or not?
I have set join source property of the driver data source to gate pass data source with Active link type. there are two problems:
1) When I select national Id in the main form the name field and contact field are load automatically but I should refresh data source to see the update.
2) If user enter new national Id error comes "The value 'xxxxx' in field 'Driver nationalId' is not found in the related table 'DriverDetails'."