-
Notifications
You must be signed in to change notification settings - Fork 8
369 export to share point #374
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
2344b34
save the progress -- does not work yet, the path is still wrong
andrey-katz-systemorph 50e806f
working version of exports to SP
andrey-katz-systemorph 6a0256d
further modifications
andrey-katz-systemorph 51e6ea4
map template test modified
andrey-katz-systemorph 19cc9b9
tests modified
andrey-katz-systemorph 34a180b
Merge remote-tracking branch 'origin/develop' into 369_exportToShareP…
andrey-katz-systemorph 34fdd09
incorporate feedback
andrey-katz-systemorph 6e02f9f
Merge remote-tracking branch 'origin/develop' into 369_exportToShareP…
andrey-katz-systemorph 39d9c3e
refactoring
andrey-katz-systemorph de44f72
address review comments : Sharepoint NB
andrey-katz-systemorph 90d050a
export settings fixed
andrey-katz-systemorph 0963a07
allow import from sharepoint
andrey-katz-systemorph c5b2cda
init base to memory
andrey-katz-systemorph 430a4c8
changed all the imports appropriately,
andrey-katz-systemorph 93e4d07
short verbal explanation added
andrey-katz-systemorph File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| { | ||
| "metadata": { | ||
| "authors": [], | ||
| "id": "FhSOUFpXwkCCDrVeJ6_P0g", | ||
| "kernelspec": { | ||
| "display_name": "Formula Framework", | ||
| "language": "C#", | ||
| "name": "C#" | ||
| }, | ||
| "language_info": { | ||
| "file_extension": ".cs", | ||
| "mimetype": "text/plain", | ||
| "name": "C#" | ||
| } | ||
| }, | ||
| "nbformat": 4, | ||
| "nbformat_minor": 5, | ||
| "cells": [ | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "<p style=\"font-weight:bold;\"> <span style=\"font-size: 36px\"> Sharepoint Settings </span> </p>" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "This notebook allows to enter the details to connect the IFRS 17 calculation engine to your personal sharepoint. This allows the calculation engine to import data directly from your sharepoint and to export reports and other financial documents directly to your sharepoint." | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "public class Sharepoint{", | ||
| "\n public const string Sites = \"sites/XXX\"; //Sharepoint sites", | ||
| "\n public const string Tenant = \"systemorph.sharepoint.com\"; //Sharepoint tenant", | ||
| "\n public const string Root = \"Dev/\"; //Dev main directory", | ||
| "\n public const string PathToExport = Root + \"ExportFilesTest/\" //Target export directory ", | ||
| "\n public const string PathToImport = Root + \"ImportFiles/\"", | ||
| "\n}" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| { | ||
| "metadata": { | ||
| "authors": [], | ||
| "id": "SW5aARBVpEi8-8zKI1xJoQ", | ||
| "kernelspec": { | ||
| "display_name": "Formula Framework", | ||
| "language": "C#", | ||
| "name": "C#" | ||
| }, | ||
| "language_info": { | ||
| "file_extension": ".cs", | ||
| "mimetype": "text/plain", | ||
| "name": "C#" | ||
| } | ||
| }, | ||
| "nbformat": 4, | ||
| "nbformat_minor": 5, | ||
| "cells": [ | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "In order to allow direct export of the files into the sharepoint folder of choice, please comment out the first row of the following code and uncomment the rest of the code." | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "var pathToExport = \"\";", | ||
| "\n//#!import \"../Constants/Sharepoint\"", | ||
| "\n//var fileStorage = SharePoint.Site(Sharepoint.Sites, Sharepoint.Tenant);", | ||
| "\n//var pathToExport = Sharepoint.PathToExport", | ||
| "\n//Export.SetDefaultFileStorage(fileStorage);" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| { | ||
| "metadata": { | ||
| "authors": [], | ||
| "id": "qm1URhtQPEmdOMumfNuQaQ", | ||
| "kernelspec": { | ||
| "display_name": "Formula Framework", | ||
| "language": "C#", | ||
| "name": "C#" | ||
| }, | ||
| "language_info": { | ||
| "file_extension": ".cs", | ||
| "mimetype": "text/plain", | ||
| "name": "C#" | ||
| } | ||
| }, | ||
| "nbformat": 4, | ||
| "nbformat_minor": 5, | ||
| "cells": [ | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "In order to allow direct export of the files into the sharepoint folder of choice, please comment out the first row of the following code and uncomment the rest of the code. In order to ensure that the import proceeds without errors, please make sure that you sharepoint import folder has a structure, similar to the one of the Files folder in our template. " | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "var pathToImport = \"../Files/\";", | ||
| "\n//#!import \"../Constants/Sharepoint\"", | ||
| "\n//var fileStorage = SharePoint.Site(Sharepoint.Sites, Sharepoint.Tenant);", | ||
| "\n//var pathToImport = Sharepoint.PathToImport", | ||
| "\n//Import.SetDefaultFileStorage(fileStorage);" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.