Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Computed value: entry as a function of other entries #2072

Open
tobiasBora opened this issue Sep 17, 2024 · 2 comments
Open

Computed value: entry as a function of other entries #2072

tobiasBora opened this issue Sep 17, 2024 · 2 comments

Comments

@tobiasBora
Copy link
Contributor

I'd like to create an excel-like app, where in each cell I can write a formula, computing its value from other cells (the exact list of cells depends on the formula). But I don't know how to do this efficiently with Dexie.js. Would you consider adding a "computed value" functionality, where an entry in the database can be specified as a function of other entries? In the meantime, what workaround would you recommend?

@dfahlander
Copy link
Collaborator

Sorry I missed this issue. This functionality would be a bit too complex to fit within the scope of dexie but it could equally well be implemented outside or possibly as an addon registering its own dbcore middleware. Need to detect circular dependencies. But if I was the one building this kind of application I would probably create some layer on top of dexie to request and update cell data.

@tobiasBora
Copy link
Contributor Author

Ok thanks for your answer, I can understand your point. I'll try to see how to make this in a reasonably efficient way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants