I need to create word file by apex then user can open it from apex - apex

I need to create a word file by apex then a user should be able to open it from apex, edit and then save it. It should be saved as a BLOB or CLOB in the database and a user should be able to retrieve and print it.

If you are using an Oracle 12c Database or any other Database with Java Support you should be able to create a word document with Java - that would be the easiest solution (See here for an example in Java).
To be able to edit it just give an option for the user to download the File that was created by the Java inside the Database and then Upload it to the Server again. Apex has built in API's for Downloading and uploading files to Apex.

Related

Using Oracle as datastore/db with webDAV instead of file system

Here is a need for fetching files (word/blob) directly from oracle and show it on browser on edit mode for editing and save it directly on oracle. Using file system is not an option due to security reasons. Please let me know if anyone has done similar earlier. Or if any idea how this can be done.
Can we use jackRabbit and WebDav for this. Using webDAV I am able to open the word file in word from file system:
ms-word:ofe|u|http://url/webdav/Test.docx
But this is opening in word, the need is-
1) Should be able to load directly from oracle database and open in url.
2) Edit it/update it
3) Save it, while save it should directly go to oracle DB.
Can we make any code change in webDAV servlet or any class/api to use oracle to load and save directly.
Any help/suggestion is highly appreciated.
Thanks,
If it works from the filesystem for you, so will it with Oracle. You just need to figure the appropriate persistence manager (see https://wiki.apache.org/jackrabbit/PersistenceManagerFAQ).
(Persistence Manager FAQ has been archived, see
http://jackrabbit.apache.org/archive/wiki/JCR/PersistenceManagerFAQ_115513487.html
or https://web.archive.org/web/20181226012431/https://wiki.apache.org/jackrabbit/PersistenceManagerFAQ)

Exporting Data from Access into a CSV File for Use in MongoDB

I need to recreate a database in a MongoDB backend environment that's currently in Microsoft Access format. Please note: I am not very familiar with MS Access. When I open up the db in question and click on "External Data" I see options to:
1.) "Import the source data into a new table in the current database" -- I clearly don't want this, and
2.) "Link to the data source by creating a linked table". I don't think I want this either.
I assume what I need is to download a version of this db as a CSV file. From there I can write an ETL to get the data into a mongo collection.
How do I do this from within Access? Is there an option to simply download the data onto my local computer in something like CSV format?
When I open up the db in question and click on "External Data" I see
options to:
You will also se icons with small arrows for export to Excel or text files - which, that latter, is what you are after.

Change Tableau data source from online to offline

The current Tableau file has an online data source (i.e. you need to connect to a server when you click on the "data source" button on the bottom left of the common Tableau Desktop interface).
What I would like to do is to disconnect the Tableau file from the online data source. Instead, all the data should be included in the Tableau file itself. The end result of this procedure should be that the data source can be edited without Internet access and without logging in to the server.
Which features of Tableau Desktop would I need to use?
Right click on your data source from Tableau Desktop, and choose create local copy. Then save-as your workbook as a packaged workbook (i.e. a twbx file)
As Sam M mentioned, you may end up with a naked extract -- an extract that is no longer associated with the originally source file. If that's a problem, you can right click on your data source, and export to CSV, and then connect to that and replace data source.

can we create a twbx file from twb file - Tableau

I am trying to get a twbx file from twb file from commandline(tabcmd).
I have tried http://community.tableau.com/thread/135045.
The problem with the above mentioned site is that it requires data extract(.tde) file to be uploaded and this .tde file cannot be generated by using tabcmd.
How can i complete the above mentioned task using tabcmd.
OR is there any better way to transform twb -> twbx file.
It's not clear from your description, so I'll have to cover both scenarios:
If your workbook was published with an extracted data source (an "embedded" data source), then it is possible to download a packaged workbook using tabcmd.
If your workbook is using a published extract data source, then downloading the workbook with tabcmd (or any other means) will not automatically download the published extract. Even if you were to download the data source XML file, you still wouldn't have the extract - getting the extract itself would require opening the data source in Tableau Desktop, logging on to Tableau Server and then creating a local copy
Since it's likely that you're dealing with scenario 2, then I would suggest that you contact Tableau Support as they can file a feature/enhancement request for you

Downloading tableau workbook from tableau server with data

I am new to using tableau server. I wanted to know if it was possible to download a tableau workbook (which is linked to a live SQL DB) with the data from the tableau server? Basically I would want to have a downloaded packaged tableau file which I can pass around for demos, without having to connect to the database every time.
You can do this programmatically in python simply.
TSC(Tableau Server Client) is the python library for tableau server.
You can publish, update, delete and download workbooks freely using TSC
Please visit https://github.com/tableau/server-client-python/blob/master/docs/docs/api-ref.md
On this page, just search by "workbooks.download", then you will get the instructions how to download a workbook with data extraction.
In essence, no. Since the workbook is using a live connection, the data is still on the SQL database and not on Tableau Server.
If you want to be able to create a packaged workbook for demo use, then you'll have to create an extract of the data that can be saved with the workbook.
There is another approach to this problem. Now that the viz is using the tableau online extract.
1.Download the workbook from the server.
2.Once done, open the dashboard in tableau desktop. You will see a data extract with a check mark on it.
3.Right click on the data extract and click on create a local copy.
4.This will extract all the data so far and stores it locally.
5.Next step is to replace the datasource from the Online extract to the local copy you have created. 6.Save the workbook as .twbx.
You are done. Hope this will work for you..
I believe what you are trying to do can be accomplished using a tableau extract. This will create a package of the sql db you want on the tableau server. the user could then make a packaged workbook or make a local copy of the extract.
http://kb.tableau.com/articles/knowledgebase/working-with-tableau-data-extracts
Yes, you can from the top tight hand corner of the view depending on your user permission levels.
When you connect tableau server data source click on extract then publish your workbook to server. when any one click on download the extracted data will also download along with worksheet
you must have the permission to download.at least Interactor
click "download", then save the workbook as "twbx" file to include data in the package file.
if your permission is "viewer", you cannot download tableau reports.
one more thing you could do is.
open workbook on server>>>>click download>>>>>select data>>>>go to full data>>> select show all column>>> download all row as text file
now download the workbook create a new data source with a text file you just downloaded. select create an extract
after completion, select replace data source
and it's done.
Unfortunately you cannot unless you have the credentials for the live db connection, if you do you can download the workbook and create a local copy of the data source by entering the credentials and then extract the data which will store the data locally. This will improve the performance as well as then you will be using Tableau extract which is optimized for reporting
With a live connection you will not be able to download the data with a Tableau workbook.
For this you can follow this pocedure :
Create an extract connection in your workbook and publish it in the server with an refresh schedule to it (As per you Data updates).
Now whenever you download the workbook it will come with the last refreshed data with it.
Hope it helps :)
make the data connection as extract, then it will copy with data copy in dashboard.
Download your workbook.
Edit your data Sources
Right-click Data Source and select "Create Local Copy"
Select the original data source .. right click it and replace it with the local copy
Lastly, right-click the original data source and close it.
There you have your workbook with a local extract(tde)
You can refresh this local extract anytime you want by refreshing the data source.
You can do so by using tableau extract file(.twbx)
But if the workbook has large data and can't create extract locally, then we can use something called empty extract.
Here's how
https://www.tableau.com/about/blog/2013/9/easy-empty-local-extracts-25152
Make an empty extract using above method and load it on server.
Let server build the full extract and then download it.
You are good to go with that workbook.
Since the workbook is using a live connection, the data is still on the SQL database and not on Tableau Server.
If you want to be able to create a packaged workbook for demo use, then you'll have to create an extract of the data that can be saved with the workbook.
Create an extract connection in your workbook and publish it in the server with an refresh schedule to it (As per you Data updates). Now whenever you download the workbook it will come with the last refreshed data with it.
You can save it as a .twbx or download from the published version