Support for Dynamic Properties on Records #1147
Closed
harshdoesdev
started this conversation in
Ideas & RFCs
Replies: 2 comments 1 reply
-
@harshdoesdev do not open issues for feature requests, open a Discussion in Ideas & RFCs category. Also I do not see any detail about what you want implemented. Share some FTD code you want working. |
Beta Was this translation helpful? Give feedback.
1 reply
-
@harshdoesdev what you are looking for is https://github.com/orgs/fastn-stack/discussions/507. Am closing this. Do re-open if you had something else in mind. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, we are facing a limitation where dynamic properties cannot be set on records, which is essential in various scenarios, particularly when working with Forms and APIs.
During the development of a form, I encountered this issue while creating a model for the KonfHub API (https://docs.konfhub.com/). The "registration_details" field contains an object that holds ticket details with a dynamic key, such as "ticket_id," which varies for each transaction.
Example of the current structure:
We need a way to define dynamic keys on an object, similar to how it is done in JavaScript:
This is what a possible implementation of this could look like in FTD.
Here
[ticket-id]:
indicates that the key of this property is going to be dynamic, and in theevent-registration-details
we are passing theticket-id
with a keyworddynamic
indicating that this is not a normal property/header, but value of a dynamic key that is going to be used by the record itself.To overcome this limitation and enable more flexible data handling, we request the implementation of support for dynamic properties on records. This enhancement will significantly improve the usability and versatility of the platform, especially for scenarios involving dynamic data structures.
Thank you for considering this feature request.
Beta Was this translation helpful? Give feedback.
All reactions