How to embed the data in the Analysis DXP file? - spotfire

I am trying to figure out how to embed the data to the DXP file when the user downloads the DXP file by going to the Web Player and presses File -> Download as DXP File option. 
Currently, when the user downloads the file locally and opens it, they get prompted for the "Data Connection" credentials:
I am assuming that is because our data is accessed via database and it is not embedded into the DXP file itself. I have 2 questions:
How to make it so that the data is embedded into the DXP file so the
user doesn't have to log in using the  "Data Connection"
credentials?
Is it possible to only embed that data when the user
downloads the DXP file using the File -> Download as DXP
File option?

For the first question, click Edit then Data Table Properties. On the General tab, select "Embedded in analysis" under Store data.
I don't know the answer to your second question.
What I normally do is save a version of the DXP locally that has all the correct connections. I then manually save copy as a library item when the data needs to be updated. When you do this, it gives you the option to embed the data in the library item version of the DXP. It isn't the best solution if the data needs to be updated frequently.

Related

Liferay Simple File Upload instead of Complex Document & Media Page

I am creating one application in Liferay 6.2, it contains the Dynamic Data List which has Document & Media element associated with it. All work well but when user press Select button it open complex page for uploading the file. Which required lot of steps to upload single file.
Can this be simplified using hook; on pressing select it just open window to browse file as it is there in html, as currently functionality is confusing to client. And even file upload work automatically for guest users.
Any help will be highly appreciated, Thanks in advance.

Web Content Portlet data not imported from Liferay Lar file

I have created a liferay portal website with web content portlets on each page and each page having theme.
I am able to export the lar file successfully but when I am importing it on another system, I get an error if I import the file without changing any options. It says that transfer has failed. And if I uncheck all applications and uncheck all COntent before importing, the lar file is successfully imported but while running it, only the theme is displayed and data from web content portlets is not present. THis I think is because I had unchecked web content portlet option in both Content and Applications. But without unchecking all these options,the transfer fails everytime.
What should be done?
If it is fine to overwrite in target environment, then choose select box "Delete portlet data before Importing". That will delete existed data and imports new data.
Note: Take backup of database before trying above solution.

import Web Content into Liferay Database

I want to keep web content in liferay database. Currently the JPGs are in another filesystem on another server, which I want to move to liferay database. Is there a way to bulk import these JPGs/web content to liferay db? One option I'm thinking is having a daily scheduled job to import new files from the filesystem. Curious to hear if anyone else has done it and how?
I found that there is a thing called as Database Hook. But as far as I understand, this lets you save to db only those files which you upload through the Image Gallery in Liferay. Which is a bit different from having to import files from another filesystem programmatically.
When you go to Liferay's Document Library (or image gallery in 6.0) you'll find a link "Access from Desktop" in every folder. This can be used to connect via WebDAV, so you can connect to Liferay's Document Library as if it was a Network share. Then just copy through batch files or explorer (drag&drop) and they'll end up in the doclib. Works in both directions.
For Liferay 6.1 you can also consider Liferay Sync, a Dropbox-like client that just synchronizes the document library with a folder on a local (remote from the server) system.
And the most complex variant (just to be complete here) is to use Liferay's API to insert documents programmatically. The advandage here is that you can also use it to tag and categorize the content during your import process, but it definitely is more work than just dragging and dropping files.

Sharepoint 2010: Copy or add file to Document Library

I have a silverlight application inserted in a SharePoint page. The SilverLight application runs on a different server thatn that of SharePoint. From an event in the SilverLight, I generate a document on the server side from SQL Server. I can generate the doc on the server hosting the silverlight application and also copy it to the SharePoint server. I wanted to know if I can include this file in a sharepoint document library automatically. I was thinking if like emailing to a list allows us to copy the file into the library, can we configure the reverse, means copying the file make it part of the list.
Update:
I wanted to avoid uploading. For me uploading is sending the file from one location to the target location. But what I am saying is, if I copy the file into the folder where SharePoint keeps the file physically for the particular list, can it be added to the list automatically?
I am not sure, how well I am being able to describe the point. Please elaborate if required or I can answer your queries.
SharePoint stores the files in a database, not a folder.
WebDAV access may be what you're looking for - it's a backbone of the the Explorer View feature that allows a user to access a document library as if you were accessing a file system through a Windows Explorer window.
You can configure "incoming e-mail" properties for the document library, and assign an e-mail address.
After that, when you e-mail a document as attached to e-mail to this e-mail address, then attachment will be saved to that library by sharepoint automatically.

reading excel file from browser in the jsp

I am new to Jsp. I am developing the tool for testing usage, and have succeeded to open the excel file in the browser from the jsp application. However, i am not able to modify or edit the opened excel sheet.
Please help how to modify the excel in the browser.
You cannot do this when displaying the file inline in a browser or doing a 'Open file' when getting a download popup. Simply because the file is then copied into client's disk file system. If you save the edits, it's saved in the same copy on the client's disk file system. This does not affect the original file in the server side in any way.
There are basically 2 ways to achieve your requirement:
Let client download a copy of the excel file and store it in the client side disk file system, so that the client can edit and save it locally. Give the client the possibility to upload the edited file back. In the server side just replace/backup the original file.
Use HTML forms the smart way to mimic an Excel sheet and use a Java Excel API (Apache POI, JExcelAPI, etc) to map between this data and the actual Excel file which is stored in the server side disk file system.
Have you looked at JExcel?
The FAQs also explain how to use the API with jsp.

Resources