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

Can't populate Nested YAML #1068

Open
LynetteCullens opened this issue Aug 2, 2024 · 1 comment
Open

Can't populate Nested YAML #1068

LynetteCullens opened this issue Aug 2, 2024 · 1 comment

Comments

@LynetteCullens
Copy link

LynetteCullens commented Aug 2, 2024

          > First of all you're not supposed to have spaces in your properties' names

I tested it myself and created test test with value test image

In the DB plugin when adding existing properties i get following recommendations: image

When choosing test-test the corresponding testvalue gets displayed correctly in the DB view test test however would not show anything. image

So even with spaces it's working

How would I go about getting the plugin to read a "-' in the column ID? I'm not allowed to change the ID itself because a plugin is depending on that particular format.
Edit: Specifically the nested columns under the column with a "-" in the title.

Originally posted by @LynetteCullens in #1025 (comment)

### The following does not work:

  • ['mathLink-blocks']MKS
  • mathLink-blocks.MKS
  • [mathLink-blocks]MKS
  • ['mathLink-blocks'].MKS
  • [`\"mathLink-blocks\"`]MKS

The above are syntax from various plugins that uses dataview.

When using: [\"mathLink-blocks\"]MKS
I get:

<p>TypeError: e.trim is not a function
    at ol (plugin:dbfolder:208:4025)
    at zFr (plugin:dbfolder:485:61919)
    at bq (plugin:dbfolder:173:19608)
    at Nxe (plugin:dbfolder:175:44301)
    at Oxe (plugin:dbfolder:175:39992)
    at tQt (plugin:dbfolder:175:39915)
    at GR (plugin:dbfolder:175:39764)
    at z3 (plugin:dbfolder:175:36108)
    at Dxe (plugin:dbfolder:175:35054)
    at D4 (plugin:dbfolder:168:59003)
    at Immediate.w4 [as _onImmediate] (plugin:dbfolder:168:59403)
    at process.processImmediate (node:internal/timers:476:21)</p>
@LynetteCullens
Copy link
Author

LynetteCullens commented Aug 2, 2024

Update:
After using ["mathLink-blocks"]MKS, it reverted back automatically to mathLink-blocks.MKS.
I manually changed the configuration in markdown to

 mathLink-blocks.MKS:
    input: text
    accessorKey: mathLink-blocks
    label: MKS
    position: 100
    skipPersist: false
    isHidden: false
    sortIndex: -1
    nestedKey: MKS
    key: mathLink-blocks
    config:
      enable_media_view: true
      link_alias_enabled: true
      media_width: 100
      media_height: 100
      isInline: false
      task_hide_completed: true
      footer_type: none
      persist_changes: false

The above works
Adding a nested column using the modal produces this format:

mathLink-blocks.FPS:
    input: text
    accessorKey: mathLink-blocks.FPS
    key: mathLink-blocks.FPS
    id: mathLink-blocks.FPS
    label: mathLink-blocks.FPS
    position: 100
    skipPersist: false
    isHidden: false
    sortIndex: -1
    config:
      enable_media_view: true
      link_alias_enabled: true
      media_width: 100
      media_height: 100
      isInline: false
      task_hide_completed: true
      footer_type: none
      persist_changes: false

Which does not work.

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

1 participant