vendredi 23 janvier 2015

Hiding Document Library columns used by JS file (JSLink)



Good day,


Currently I have a "schedule" list (document library) which is used to store vessel schedules. Shedules uploaded are Excel files, which have named cells linked to custom properties in order to fill additional columns in the list.


There are 20 of these columns. 5 for port, 5 for ETA, 5 for ETS and 5 for agent. Using the JLink feature, a JS file will save them all 4 corresponding arrays and handle them, returning a string to an empty column called "Status". Status displays where the vessel is located (port), since when (ETA), until when (ETS) and who is the Agent on that port. Otherwise it will Display "at sea" and the next port and ETA, or "update schedule" if it is out of date.


Therefore, for my users the important column is "Status" and the 20 columns mentioned above, are irrelevant to them. But in order for the JS file to get the valid Content from those columns, they have to be checked (and appear) in the current view used, thus are dispayed on the page. This makes the list too long, looks bad and is confusing for some users.


My question is: is there a way to hide those columns from the users, yet still exctract valid information from them?


Thank you in advance!








0 commentaires:

Enregistrer un commentaire