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

[FR]: Enhance the error message regarding the javascript views #1078

Open
Djyp opened this issue Oct 3, 2024 · 0 comments
Open

[FR]: Enhance the error message regarding the javascript views #1078

Djyp opened this issue Oct 3, 2024 · 0 comments
Labels
enhancement New feature or request triage Issue not tagged yet. talking to the user

Comments

@Djyp
Copy link

Djyp commented Oct 3, 2024

Contact Details

No response

Present your request

I had the same issue as the one described in #457 but I had a hard time figuring out how it works and what was happening.

My problems :

  • The message [ERROR] Error loading formulas. See check your {file name} js file code ReferenceError: {var name} is not defined could be more precise
  • The documentation does not explain how the javascript formulas work. I used to think I had to enable the Javascript Formulas to use formulas in a Database Folder
  • The settings don't explain they set things for new database folders

Possible solutions :

  • Enhance the message : [ERROR] Error loading formulas in {file name} js file. ReferenceError: {var name} is not defined. If you have the several issues, see documentation under Javascript Formulas
    The idea here is to have a shorter and clearer message on the first part and help users on the documentation
  • Add more details in the documentation.
    I would like the documentation to explain how the settings work, and suggest solutions. I would add a bit more details regarding how to add javascript files
  • Actually, the term Formulas seems to refer to the global behavior of Formulas and mostly in a Formula column. The term Javascript Formulas seems to refer to Javascript files. Formulas are written in Javascript. The confusion, to me, is that I thought I had to activate Javascript Formulas to use formulas. I suggest that any occurence of "Javascript Formulas" in the settings and the documentation is replaced with "Javascript File Formulas" to explain a clearer intent on what it enables.

I volunteer to create pull requests if you like the my suggestion. I suppose three PR are coming

  • enhancing the error message
  • changing Javascript Formulas for Javascript File Formulas
  • adding details in the documentation

What do you think ?

For which platform do you request this request??

Cross

@Djyp Djyp added enhancement New feature or request triage Issue not tagged yet. talking to the user labels Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage Issue not tagged yet. talking to the user
Projects
None yet
Development

No branches or pull requests

1 participant