I'm wondering if is possible use the Id of the
Lookup Field for obtain a custom column created in the
I have two lists called Books and Authors.
Here, Authors has a
LookUp field to Books and Books has a Column called NumberOfPages (which is NOT part of the View that I’m using
View has all columns of the Authors List and only this two columns of the Books (Id and Title) the default ones for a
What I tried:
- Update the
List Settingsof the Authors List for edit the NumberOfPages Column and in the section called Add a column to show each of these additional fields I checked the NumberOfPages field.
However, is NOT a option have visible this column NumberOfPages, but I need the info that this column contains, there’s a way to accomplish it?
A possible solution is add the NumberOfPages column in the
View and after in the
OnPostRender method dissapear this column from the
- Get the value of the NumberOfPages column.
- Save the obtained value in a
- After make some calculations which aren't part of my question, remove the column NumberOfPages from the
The following code this that I get at the moment editing the code provided in the links metioned before for try hide the NumberOfPages column, but the column stills visible in the
Code added inside
Web-Page which has a
Script Editor component instead in a
script file separately and a
View with the columns described at the beginning of the question.
I'm still reading and trying to understand this "new logic" of rendering info in SharePoint and I read some blogs for get informed, but there's not info about what I'm trying to get.