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

Values of columns are not shown in the search result webpart, but are filterable #2242

Closed
FHaslwanter opened this issue Jul 20, 2022 · 6 comments
Labels
bug Something isn't working v4 version 4

Comments

@FHaslwanter
Copy link

Version used
Ex: 4.7

Describe the bug
We currently upgraded from version 4.3 to 4.7 and had already some columns with metadata filled in to test PnP Modern Search. The values filled in before the upgrade are still shown in the columns webpart. Values from new columns are not shown, but filterable like seen in the screenshots.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new column in asharepoint library
  2. Fill in values for this new column and assign them to documents
  3. Select the new properties under "Selected Properties"
  4. Give the new properties a Layout Slot
  5. Manage Columns and create a new column with the respective slot item and layout slot name
  6. Refine the search query and filter a specific value of the newly created column
  7. The right search results are shown, but the values are not shown in the column

Expected behavior
The values of the column "Note" is shown and not only filterable.

Screenshots
image
"Auswahl" is a old column, which already existed before the upgrade. "Note" is the new column, which is filterable but the values are not shown as can be seen in the screenshot

Desktop (please complete the following information):

  • Microsoft Edge

Additional context
We currently upgraded from V4.3 to V4.7. In V4.3 it worked perfectly fine.

@FranckyC FranckyC added the Needs: Triage Needs investigation and repro label Jul 25, 2022
@FranckyC
Copy link
Collaborator

Hi @FHaslwanter, can you ensure the value is correctly saved in the details list column? It may be related to an other issue we have in the 4.7 release. you can also switch to debug layout to see if the value is present in the results.

@FranckyC FranckyC added bug Something isn't working v4 version 4 and removed Needs: Triage Needs investigation and repro labels Jul 26, 2022
@FHaslwanter
Copy link
Author

Hey @FranckyC, I just looked the value up in the debug mode. The value is present in the results like you can see in the screenshot attached.
image

@wobba
Copy link
Collaborator

wobba commented Aug 14, 2022

Does this happen to all columns, or only ones starting with a number? And if you reference the property directly and not via slots, does that work?

@FHaslwanter
Copy link
Author

FHaslwanter commented Aug 17, 2022

If I reference the property directly and not via slots, it's the same behaviour ("2022PnPSuperTestSpalteOWSCHCS" in debug mode and "Note" in the view). So the value is shown in the debug mode but not in another view. I also made a new column ("NiceSpalteOWSTEXT" in debug mode or in the view "TestTestTest") which does not start with a number and there it is working like intended. There I see the value in the search results webpart and also in the debug mode.
image
image

@wobba
Copy link
Collaborator

wobba commented Aug 17, 2022

Ok.. so seems an issue on our end where the mp starts with a number then.

wobba added a commit that referenced this issue May 28, 2023
Optimized objecthelper.bypath
wobba added a commit that referenced this issue May 28, 2023
#2242 Support props starting with a number in slots
@wobba
Copy link
Collaborator

wobba commented May 28, 2023

Fixed with 3034, and you can also use the mp directly with {{item.1234asbs}} instead of slots.

@wobba wobba closed this as completed May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v4 version 4
Projects
None yet
Development

No branches or pull requests

3 participants