Feature Request: Reference attribute for ID field #134
Replies: 3 comments 1 reply
-
Not sure if I follow, can you provide the AutoQuery C# API example and the screenshot of what currently doesn't work? |
Beta Was this translation helpful? Give feedback.
-
ID values always have to be manually entered. Image above shows the id field for update request. But on the company id field if I click it then a window pops up and I can select the company. It would be nice to have the selector on the ID field also. |
Beta Was this translation helpful? Give feedback.
-
Ok you mean you want it for API Explorer as the Locode CRUD UI already auto populates the Id in Update forms. The /ui API Explorer is just a generic UI for exploring and Invoking APIs which uses the standard AutoForm components. The Id field just uses a standard text input field where as CompanyId would be a lookup field for a foreign key field. It's not an opinionated behavior we'd add to all AutoForm components. We do have support for defining and using Custom Input Components but ModalLookup isn't a standard input component and requires additional metadata to work, i'll leave this feature request open for looking at creating a custom ModalLookup Input Component that could be added on standard properties. |
Beta Was this translation helpful? Give feedback.
-
Right now in the
/ui
API explorer foreign keys are represented as a popup entity selector.This is really handy as it saves you having to look up the IDs of entities in your account.
For some reason though it doesn't work on ID fields. So if you go to an
IUpdateDb
endpoint you can have properties that trigger the selector but you cant trigger it on the main ID which would be nice.I know this isn't needed as it's autofilled in the locode dashboard but I am keeping locode for internal use only and providing the api explorer as a public playground so would be nice to have this selection behaviour consistent.
Edit: corrected my assumption of how it was working
Beta Was this translation helpful? Give feedback.
All reactions