I have a sub table that has a Ref column to a parent table. The user can see and edit this column.
So normally when they create a subtable record the Ref column is populated automatically, which is great. But if they go into the Ref column there is the option to add a new parent record. This is causing mayhem as the users are constantly adding duplicated companies rather than choosing an existing one. Can I turn this โNewโ option off somehow?
Solved! Go to Solution.
New occurs because the referenced table or slice allows adds. Reference a read-only slice of the table instead.
One way is using a Valid_If formula to check the input against your existing list.
To ALWAYS prevent adding new records to the subtable from the parent Ref, use a Valid_If formula in the Ref with your list of subtable keys.
Valid_If
IN([Ref],Subtable[Key])
Or, if you want to only affect this view, try:
IF(CONTEXT(โViewโ)=โVIEW_NAMEโ, IN([Ref],Subtable[Key]), TRUE)
I think this could also be done using the Tableโs 'Are updates allowedโ formula, but I havenโt tried that.
To me this seems more like a process issue on the users end rather than a software issue. Obviously there are use cases when the New function on the drop down list is beneficial.
Users typically want to take the path of least resistance. So in this case I would ask, โWhy are users opting to go through the harder path of entering a company when they could just select it from the list?โ
Answering that will give you some insight as to how to best approach a solution, if you even need to. For exampleโฆMaybe the list to too long, so is there a way to reduce it to give them fewer options to scroll through?
So its got a fairly complicated data structure. Its used by a training company and has 4 tables
Companies
People (a sutable of Companies)
Courses (Which is also a subtable of Companies)
Bookings (Which links each People to one or more Courses)
The main issue is people will create a Company, create a Course, then create a booking. But instead of linking Stephen Smith to the booking, theyโll add a whole new Person called Steven Smith via the Booking[Person] Ref column. So now I have 2 records for the same person. Which messes things up because the users need to go into a Person and see all the Courses theyโve been on
So to simplify this a bit. I want them to be able to add a Person from a Company record, but not add them via the Booking form
Hope this helps
Got it! I understand the dilemma.
@Steve just posted a great solution!
New occurs because the referenced table or slice allows adds. Reference a read-only slice of the table instead.
Is there any way to have the ref just show you the one record from the ref table?
I have the < > icons so the user is able to browse through that file, and I only want them to see the one record
Set Slideshow mode to OFF.
User | Count |
---|---|
38 | |
27 | |
23 | |
23 | |
13 |