Can we copy a page from 1 STORY and paste into another one - sap-analytics-cloud

I'm usingSAP ANALYTICS CLOUD and I wanted to know if we can copy a page from 1 STORY and paste into another one ?

Related

Automate saving received files in Teams chat

for any file that is sent to me via Teams chat, is there a way to trigger a flow to save it somewhere (one drive, sharepoint, etc)?
I would like to capture files sent to me from all chats.
Thanks!
Brook
From my experience, you'll find that they're already saved in your OneDrive instance.
When you think about it, they have to exist somewhere.
Try this ... go to your tenant URL but instead of using the main link, use your my link.
https://<your_tenant>-my.sharepoint.com/
If you can't work out what the URL is, go into Teams and find a chat that you know has had files exchanged previously.
From that chat, go to the Files tab.
Click on the three dots next to any file and select Copy Link, in there, you'll find the base URL that will give you the folder where all of the your files are stored.

cURL download a file on a page where the URL changes but the link text does not

Kind of a newbie to cURL, trying to create a script that downloads a file provided on a webpage. The link to the file changes periodically, for example:
Day 1:
url-path-to-my-file-access_files.pl?id=82wxyy2rn4k2houeupymgk4ptvdw67sa
Day 2:
url-path-to-my-file-access_files.pl?id=jeqbreoazj6ys5mek375ujscp4hqmt92
However the link on the actual page is always "file.db" unfortunately the link also doesn't have a unique id or another tag to specify it.
Is there a way to tell cURL or another program to look for the link text "file.db" and grab the associated link in the href tag? Currently I have the script working where I can log in and download the file if I have the exact url (the ?id= part) but I need to find a way to determine that before I download the file.

Best practice for multiple (single) file uploads in JSF 2.2

Our JSF 2.2 web application may have the situation, that users have to fill in a formular where they have to upload multiple files.
Example
First Name: [ John ]
Last Name: [ Doe ]
Photo: [ choose File ] (no file chosen)
Passport: [ choose File ] (no file chosen)
I know that there is multiple upload forms like Primefaces but this doesn't fit to my requirement, since I want to know which file is either the photo or passport, and I need to validate the input, because the files are mandatory.
Option 1: Multiple single file uploads
The first option would be like in the example above. Just use multiple single <h:inputFile> tags.
Pros:
users select files when they are asked for
users know this kind of file uploads
Cons:
since there are more <h:inputFile> tags, every file upload will be processed during the form submit: so we might have to limit filesizes so that users won't run into problems
I did not try this: is it even possible to use multiple single file uploads in the same <h:form>?
Option 2: Upload in popup + callback
I have seen this sometimes and wondered why it was implemented that way. When you have to upload a file it opens a popup with a file upload. After the upload, the popup is closed and the form has selected the uploaded file.
Are there any hints/tutorials for this technique? Especially the between-window-communication is unclear for me.
Pros:
nearly the same as the standard way
Cons:
problems with popup-blockers
for this approach, fallback mechanics have to be implemented: what if the user cancels the form? when are uploaded files deleted, so that there are no garbage files?
Option 3: Upload in modal dialog + callback
To eliminate the popup blocker problem we could use a modal dialog for an upload. So we choose to upload a file, a new modal <p:dialog modal="true"/> opens and there inside the <h:inputFile> handles your upload.
I did try this and found out that AJAX uploads are not possible with <h:inputFile> or <p:inputFile mode="simple"> (can't find the source of BalusC's comment, but there is a similar one). My whole site got rerendered and my formular input was lost.
Pros:
nearly the same as the standard way
no problems with popup blockers
Cons:
even possible?
Option 4: "Upload Manager"
My last idea was to provide an upload manager. This is a view where users can see their uploaded files in a list/table and add files with a single <h:inputFile>, add descriptions, and so on. So the files are already in the system and get deleted after (say) 72 hours if they are not referenced.
Users then click on a link when they have to input a file, and choose the corresponding file from a list/table in a modal dialog. Therefore users have to upload their files first, before even filling a form, which is quite a pain, so it would be nice if they could also upload files in the modal dialog. (this would look like a view, where they have a single <h:inputFile> and a list of their already uploaded files). But there we have the same AJAX problem like in Option 3...
The only way I see to get around this, is to write something at the beginning of a form like:
For this form you need the following files in your upload manager:
- Photo
- Passport
Pros:
technically: good because it's always only one file in a submit (AJAX?)
no specific fallback mechanisms (except a 72hrs cronjob deleting unused files)
users can upload multiple files for the (say) next 20 forms - this is good in our web application
Cons:
users are not used to this technique
even possible?
Do you have any other ideas to handle with this situation? I can't be the only one with this.
Or are multiple file uploads like Primefaces good to configure for validations?
I hope you can help me out with this brainstorming

Handling images upload while in other form

Ok, there is a lot of tutorials on the net, how to upload images to express.js servers. But I couldn't find how to upload images while doing other things, e.g:
there is a form, in which I would like to create article. Users fill it with title, some content... after that, he have to upload images. I would like to give him ability to see thumbnails of those images before he create this article. Of course I can just push them through ajax post with jquery, and put them on the screen with javascript, but: when I upload them on to the server, and user closes browser before finishing creating this article, I still have does images on my server, even though no one will use them.
I'm sorry, I couldn't think of simpler explanation of what I want.
So how to handle such a situation?
You can upload image to a temporary folder first and move that image to desired location while actually saving article.
Set up a cron to cleanup the temp folder.

Generating a jwt in Google Wallet

I don't understand how they are generating the jwt in tutorial #1.
Is it a call to a JavaScript function?
Honestly, the library link didn't connect the dots completely for me either. Especially when you're going from Google Checkout, which takes 10 minutes to set up, to Google Wallet that requires JSon/JWT knowledge.
So, I went to the Samples link instead and found all references to "Cake" in the code, per their demo. Link to sample code.
------- Digital goods sample app (PHP) ---------
I am using PHP, so I downloaded iap-php source at the this link. And clicked the Download .zip link. It's not very obvious on the page and the window will show you a message that says, "No files in the selected directory. Select a subdirectory, if one exists, or another directory from the tree on the left." Don't worry; just find that little Download: .zip link in the Source tab.
When I opened the files, I saw seller-info.php to enter my specific issuerID (also called your merchant id) & secret. Replace that red text with your info.
generate-token.php is where you change the red text to information about YOUR product.
index.php is where you change the same product information that appears on the page that the user first sees. When you put this on another page, inside of your live website, be sure to include all of the scripts.
The Tutorial says that it's generating the JWT server side and has a link to server libraries (in multiple languages) that can do the generation for you.

Resources