question

ania3-2971 avatar image
0 Votes"
ania3-2971 asked ania3-2971 answered

Retrieving information from a single cell in a list and embedding it into a SPO site

Hi all,

I'm fairly new to using sharepoint and I've been trying to figure out this one thing for a while. I have a sharepoint list and I'd like to present it in a SPO page, to make it look a bit more user friendly (the list is long and contains a lot of information). Essentially, I'm looking for a way to take the content of a single cell in that list, and post it on the page. I want to be able to choose which cell's content to post, and do some basic formatting, like changing the size and so on. Is there a way to do this?

I realise I'm not good at explaining what I mean, so I have prepared a very advanced and beautiful concept sketch, hoping it will help understand what I'm trying to achieve:

202619-spopage.png


office-sharepoint-online
spopage.png (21.2 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ania3-2971,

I am currently doing some research on this issue, will let you know as soon as possible.

1 Vote 1 ·
TongZhangMSFT-7548 avatar image
0 Votes"
TongZhangMSFT-7548 answered

Hi @ania3-2971,

According to my research and testing, you can use JSOM to get the value of the listitem and then display it on the site. Here is an example of my test , you can following the code:

( In my test, I get the contents of the cell and display it on the site, and you can add css style to change the size etc.)

Code (please see attachment)

My test result:
203966-image.png
204052-image.png


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.





test-2.txt (1.4 KiB)
image.png (7.4 KiB)
image.png (14.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ania3-2971 avatar image
0 Votes"
ania3-2971 answered

Thank you, this is exactly what I needed!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.