Subir Fichero en SharePoint Online desde SPFx via JSOM (React + Typescript)

Podemos subir un fichero (Hasta un máximo de 2Mb) desde nuestro Client WebPart en SharePoint Framework a través de JSOM. Para ello debemos añadir un fichero, procesarlo e incluirlo en la librería, siguiendo estos pasos:   Debemos obtener el fichero que queremos subir, ya sea mediante alguna librería de terceros (como dropzone.js) o con un …

Sigue leyendo Subir Fichero en SharePoint Online desde SPFx via JSOM (React + Typescript)

Subir Fichero a una Carpeta en SharePoint Online desde SPFx via JSOM (React + Typescript)

Para saber como subir un fichero a una librería de SharePoint podéis seguir el anterior post donde se explica paso a paso: Subir Fichero en SharePoint Online desde SPFx (React + Typescript) Para subirlo al Root Folder hacemos: let fileToUpload = docs.get_rootFolder().get_files().add(fci); Si queremos subirlo a una carpeta, podemos simplemente navegar hasta ella antes de añadir …

Sigue leyendo Subir Fichero a una Carpeta en SharePoint Online desde SPFx via JSOM (React + Typescript)

Hide elements in Modal Dialog (SharePoint PopUp)

When a page is loaded in a Modal Dialog, its URL ends with "IsDlg=1", that means that it's being opened in a SharePoint PopUp. If you need to hide some elements when that happens (e.g. hide master page elements) you need to add a new class to these elements: Adding class "ms-dialogHidden" to an element …

Sigue leyendo Hide elements in Modal Dialog (SharePoint PopUp)

Hide «div» that contains a specific «div» in one of its children (at any level)

We want to hide "Level1" div that contains inside any "Level3" div in this code: <div class="level1"> Level 1A <div class="level2"> Level 2A <div class="level3"> Level 3A </div> </div> </div> <div class="level1"> Level1B <div class="level2"> Level2B </div> </div> We can do it by JQuery, once the page is loaded, that way: <script type="text/javascript"> $(document).ready(function(){ hideLevelOne(); …

Sigue leyendo Hide «div» that contains a specific «div» in one of its children (at any level)