how to fetch xls using google search appliance - excel

I have used google search appliance in my application to search files.
I am able to search all files .However, i am not able to fetch xls file.
Search url for for same is:
GoogleSearch.html?
advanced=true&filter=0&requiredfields=&as_q=content&lr=&as_epq=&country=&as_eq=&unit=&committee=&sort=&function=&num=10&contenttype=&as_occt=any&as_filetype=xls&site=&Submit.x=91&Submit.y=15

You can take a look at the "Index diagnostic" page on the GSA Admin Console to confirm that those .xls files are actually stored in the index.

Related

IBM Watson Assistant: How to make query result from Db2 downloadable as CSV file?

I am writing a chatbot program with IBM Watson Assistant in Node.js with Db2 and was wondering if there was a way to add my query results in a CSV file?
The csv file will then be downloaded by the user.
var data = conn.querySync('SELECT DISTINCT "Commodity" FROM TRADES WHERE "Aggregate_Level"=2');
I did some research and most that i found was codes for the command line interface.
There are libraries to generate all kind of file types, including a CSV file. It is done by your app from the query result.
In Watson Assistant, you cannot upload or pass through files. But you can respond with a link to where a file is stored. The file could be in Cloud Object Storage (COS) or somewhere else.
To get your data from Db2 accessible in the chatbot,
generate a CSV and store it on COS (upload the file to a bucket),
generate a download link to the file, there are options to let the link expire within minutes, e.g., for security reasons,
pass that link to Watson Assistant and
let the chatbot return the link to the user in a response.
The user could then click the link to download the file.
The IBM Cloud solution tutorials have instructions and code for all of the above, but not within a single tutorial. Look for "secure file storage" and for "database-driven chatbot" as a starter.

Fetch excel files from FTP server and save in Google Drive

The requirement is to upload an excel file to Google Drive which file is initially being stored on an FTP server.
I would like to know if it is Possible achieving this through Google App Script. If not App script, is there any way in which we can fetch files from the FTP server and then upload it to Google Drive.
I found out about the Class UrlFetchApp.
var response = UrlFetchApp.fetch("http://www.google.com/");
makes request to fetch url.
UrlFetchApp.fetch("http://example.com/upload_form.cgi", parameters);
Makes a request to fetch a URL using optional advanced parameters.
I don't know if the above 2 methods would be of any use.
Well, I found on this thread that FTP access is currently unavailable for Google Drive.
But I found a tutorial here that can connect or integrate Google Drive to FTP. This tutorial use a multiple cloud storage manager that easily combine the two services together.
So if you are interested with it, just read the tutorial link to know more about MultCloud.

FTP the files in Netsuite file cabinet to any Server?

I'm trying to FTP the Netsuite file cabinet (contract pdf files assoc with Customer) files to a server using C#. I couldn't found any API in C# to search the records in Netsuite. Is any other way to get the files from file cabinet through C#. Please help me to achieve it..
NetSuite in itself does not support FTP Protocol.
However, you can consume wsdl in C# and use SuiteTalk saved search APIs to pull file from NetSuite.
You may otherwise, write a RESTlet in NetSuite to return the files using saved search and pull that file in C# using HTTPS request. Beware, that if file is non-text the content would be received in base64 format.

Loading data on Unidata Integrated Data Viewer (IDV) from a THREDDS catalog?

I am trying to load some data to IDV from a THREDDS server via the catalog, but I get error messages such as
Server does not support Content-Length
I can add netcdf data from my local folders, but could not get this one to work. It seems like I am missing a basic step because I could not find the information that I am looking for on the user's manual either. I wonder if anybody had a similar issue... I am trying the catalog below.
http://opendap.co-ops.nos.noaa.gov/thredds/catalog/NOAA/GBOFS/MODELS/201302/catalog.html
That is the error you will get in IDV if you try to open a catalog using the .html extension instead of the .xml extension.
In IDV, you can open datasets several ways:
"Data=>Choose Data=>From a Catalog": specify the thredds catalog
(using the xml extension) and then navigate to the dataset you want.
I usually use a regular web browser (like Chrome) to locate the
thredds catalog I'm interested in, then change the catalog URL from
the .html extension to the .xml extension.
For the Galveston Bay data, specify
"http://opendap.co-ops.nos.noaa.gov/thredds/gbofs_catalog.xml".
You will see a list of folders. You need to click the dot to the left
of the folder name to expand the folder so you can see the datasets.
Then select a dataset name and click the "add source" button at the
bottom of the page.
"Data=>Choose Data=>From a Web Server": specify the DAP URL of the
dataset you want.
I usually use a regular web browser (like Chrome) to navigate on the
opendap server until I reach an OPeNDAP Dataset Access Form, like:
http://opendap.co-ops.nos.noaa.gov/thredds/dodsC/NOAA/GBOFS/MODELS/201302/nos.gbofs.fields.forecast.20130205.t00z.nc.html
and then I cut-and-paste the "Data URL" near the top of the form into
the IDV URL box.
"Data=>Choose Data=>From the File System": specify a local NetCDF,
Grib, HDF5, or NcML file.
Loading a local NcML file can be particularly handy when the dataset you are trying to load doesn't meet CF conventions, and you need to make some fixes so that the dataset can be read in IDV.

Possible for Word to edit documents directly off an web server without Sharepoint?

I have a use case that seems pretty simple, but after Googling around I can't find a solution. I have some Word documents on an FTP server and I'd like to be able to create a link that would download them into Word and then allow the saved changes to be sent back to the FTP server.
The problem is that I can only get Word to either open the file from the FTP server as read-only and I can't save the changes back to the server automatically, or the file downloads to a temporary location which isn't automatically saved back to the server. I'm creating my link like this:
Test
Frustratingly, if I go into Word File|Open and paste the link "ftp://ftp.example.com/www/uploads/Image/test.doc" I can save back to the server. What gives? Is there a solution? From Googling around it seems that Sharepoint offers this ability, but that's not practical for us. We're using IE7 and Office 2003.
I believe Microsoft Word can read / write WebDAV - see this question:
Editable Word Document from JSP
Can you set up some kind of proxy that can connect via FTP?
Read this link http://www.webdavsystem.com/server/documentation/ms_office_read_only (is actually about webdav, but I'd guess this is the same issue for FTP), there is a section on on opening weblinked documents in non-readonly mode. Which needs some changes on the client side...
HTH
Tim
Solution for IE:
Put a file on ajaxbrowser.com (this is WebDAV Server for testing) and replace file's full path in the next code:
var openDocumentsObject = new ActiveXObject("SharePoint.OpenDocuments");
openDocumentsObject.EditDocument('http://ajaxbrowser.com/mydoc.docx');
Another example:
<a href='http://ajaxbrowser.com/mydoc.docx' id='urltarget' target='_blank'>Edit through URI</a>

Resources