How to make a table in Xpages that works like Excel - excel

I have an excel file with data and need to make this available on web.
The web version of the excel file need to have the following features
Switch between read and edit mode
All cells should be editable at the same time
Inline editing of each cell
Save all cells that have been changed with a single button.
Ability to add and remove rows
Store values in notes document(s)
I have looked at the Dojo Grid JSON REST control in the extension library sample database and it does basically all that I want but I am not happy with the presentation and it seem a bit limited as I later on may need to add other actions to the table cells.
I am looking for an html table version
Which controls should I use to accomplish this? and how can I create a submit button that saves all cells/rows?
Thanks for helping out
Thomas

There is also a project on OpenNTF that gives you a full fledged spreadsheet, that can even load Excel files. It is based on the OpenSource ZK-Spreadsheet
Have a look!
The OpenNTF project was one of the winners in the first OpenNTF contest.

All of those options are possible with the EXTJS grid
You can see some examples here
http://demo.xomino.com/xomino/extjs.nsf
or on the blog
http://xomino.com/extjs
but also check out the examples on the sencha page
http://docs.sencha.com/extjs/4.2.2/extjs-build/examples/

Related

Is it possible to get data from a webpage in real-time to an excel file?

I would like to create an Excel Tool that would act as a Monitoring Tool for our agents on the floor.
Right now we don't have an exclusive WFM tool that would monitor and call out agents with their activities and productivity, the only thing we have is a dashboard to view all agents status and the durations of their status or calls. This is a web-based viewer of our dialer that would only shows agents with their current status but they won't trigger or notify if an agent is going over our set thresholds for their wrap up time, over breaks or lunch.
Currently, I have an existing excel file that would look up values from another sheet to populate the table with information that I need such as the name of agent, their current status and current duration of the call.
The another sheet I've mentioned above is a blank sheet where I would simply paste all the data from the webpage of our dialer. So basically I am just doing copy-paste method where I am selecting all the contents from this webpage which is our dialer and pasting it in on the blank excel sheet that I created and the table that I made will find all the values that I setup from that blank sheet.
I really don't have enough knowledge but I still tried Data>Get Data>From Web and I am not getting anything.
I tried pasting the web link, but I don't seem to pull up any data.
I know as I've mentioned, I don't really have enough knowledge and maybe I need some basics doing this method.
What I would like to happen is if there's a way to link a webpage, sync its data to an excel sheet and is it possible to make it real-time so that way I can have an improvised WFM Tool that would help me monitor our agents activities?
Thank you in advanced!
Getting data from the Internet through a standard mechanism (Data >Get Data > From Web) is not always successful. Excel can recognize tables on a web page, but not always in the way that the human eye recognizes them.
Actually, there are two options here:
write a macro that parses specifically those pages from which you are currently getting data manually (“…I am just doing copy-paste method…”).
prepare web pages so that data from them can be automatically downloaded via Data >Get Data>From Web via standard Excel functionality.
Both require programming specifically for your task.
For example, I could write a parser, but for this I need access to the web page from which you are copying and pasting.
Or the programmer who wrote the web page can create new pages with the same data, but in a format that Excel understands. But this programmer needs to specify exactly how to design web pages.

Cognos Visualization Export to Excel

I'm currently testing some functionalities in Cognos Analytics 11.
My goal is to export a report to an excel file. The report should have multiple pages, each containing a list of data and a graph visualizing the data. Currently when I do this, the visualization is exported as an image into the excel file. What I want is to have the visualization editable/customizable within excel, in such a way that if a change is made to the list of data, the visualization is updated.
Is this possible?
Your question:
What I want is to have the visualization editable/customizable within
excel, in such a way that if a change is made to the list of data, the
visualization is updated.
Short answer: No - that is not possible.
Long answer:
IBM Cognos Analytics renders exports to Excel on the server side. As you noticed, the visualizations are created before they reach Excel and are "static" according to the data flowing into them.
If you want to achieve interactivity inside Excel, you would need to program that in some Excel Macros or use Excel Native visualizations.
What you might want to explore are data modules. With IBM Cognos data modules you can upload your excel file with the changed data to the IBM Analytics Server.
See this very short technote on how to do that: https://www.ibm.com/support/pages/node/295345
And from there you can do all the fancy stuff that IBM Analytics Dashboards provides like interactive filtering, linking, drilling, filtering and so on and so on.
The results can be embedded in any HTML page via direct URL.
You might want to automate data upload to IBM Cognos.
Hope that helped.
It depends on which visualizations you use. The 11.1 visualizations, 11.0 visualizations, and Legacy visualizations appear to render to Excel as an image. If you use Charts (the old-school visualizations from Cognos 10 -- so, 8 years old) some or all of these will render to Excel as an Excel chart and use data on a hidden worksheet as its source. I tested this by creating a clustered column chart based on very simple data from the GO Sales (query) package. I suspect you'll also find that Charts are far more configurable than the newer visualizations.

Create Excel metadata using VBA to filter in sharepoint

I am trying to use metadata from an Excel file to use for filtering in our sharepoint libraby.
The excel file already contains dropdown menus to pick certain values from, which are then used to create a very lengthy filename. However for our new sharepoint libraby I would like to move those to metadata, so it can be made visible in sharepoint columns and users can filter.
The file is a template that should be filled by users and when ready saved after choosing certain values.
The creation of the filename is done in VBA and therefore all values I want to use are available there.
I've tried a number of approaches I found in forums using e.g. customdocumentproperties and made it work...sometimes... While it worked in the beginning, I cannot make it work now.
It seems changing the metadata is a problem. Creating the metadata fields for the first time worked, but then changing it, did not. I have the feeling I do not understand some basics on this action. Microsoft websites are not of any help here...
What is the best - flawless - way to use VBA to create, add, change metadata in the excel-file that can be made visiblle in the sharepoint library? And are there any typical problems?

Open XML SDK - Dynamically create rows

I need to use XML SDK to create an Excel file. I have done it before with XML SDK but not sure how to dynamically create rows based on the data.
As such, I have the header and footer which are static. For the body, not sure how to dynamically add rows.
Does anybody have a link to where I can understand this further or some sample code.
I am using this with c# by the way.
Thank you in advance.
You have to keep track of row id's and the update row id's for all the rows after the rows that are inserted dynamically. You'll find yourself writing a library to model and write everything. Instead of reinventing the wheel, if it is possible how about using a third party library that has been developed to eliminate this headache, such as ClosedXML http://closedxml.codeplex.com/ ?

CrystalReports excel field cut off when using CanGrow=True

I am working on an excel report in CrystalReports, in VS2005. I have a field in the Details section which can have up to 255 characters of text, and I want the height of the row in excel to expand so that the entire text can be seen initially when the report is generated.
I set CanGrow=True in the field's properties, and the field does seem to grow; the field is only one line (Height=159), but many of the rows display multiple, wrapped lines of text. Some rows intermittently have the bottem half of the last line of text cut off; the user has to expand the row a little bit to see it. There doesn't seem to be a particular field length that causes this - in one case, it has four lines total in the output, and in another case, it has only three.
Can anyone suggest what might be the cause of this, or how I could work around it?
Thanks in advance for any help you guys can offer.
[Edit: I am no longer working on this project, so I never found out what became of this setting. Most likely it wasn't fixed, since it's not a critical issue.]
One solution to this issue that I've come up with in the past is to have two separate reports. One for display and exporting to pdfor rtf and another report for exporting to Excel.
I know in general this is not a good approach because there is the possibility for data to be different in the export than the display report, but if careful it works well.
I have a situation where a client needs data printed in a specific format on a report, but there is way to much data to physically be able to fit on a page. We worked out a solution that I run a "display version" of the report that fits most of the data, but the rest of the data necessary for there client is added only to the "Excel version" of the report.
To do this I simply load the "display report" to the report viewer as you normally would, but when you go to export the report I load the "excel report" with the same parameters as the "display report" and call the code to export the data to Excel.
By using this method the "display report" can be formatted any way necessary without having to worry about messing up the export to excel. The excel report fields can then be made a smaller size than required by the display report because the data should export even regardless of the size of the field. Doing this allows you to fit more data on the Excel export report.
Since both reports use the same datasource you will have an issue if you make a change that you have to remember to go verify the database on each report to see the new database changes, but this method allows you to include more data and in a different format than the display version of the report.
Hope this helps.
While not a solution for Crystal (I don't know of one), as part of the reporting team at GrapeCity-Data Dynamics, we've worked with similar issues taking free-form reports to excel spreadsheets for a decade. In our Data Dynamics Reports product we came up with a completely new way of solving the problem of exporting reports to excel.
We allow you to create a template for the report output. The template is a basic excel file with place holders for the various textboxes (or other controls) and regions (tables, lists, etc.) in the report. You can open this template inside of excel and modify the properties of the cells and rows. In the scenario you describe, you can export a "template" from Data Dynamics Reports and then modify the autosize property of the row in the template containing the placeholder for the textbox you're struggling with.
When you export the report to excel next time, just specify the template to Data Dynamics Reports (which can be done programmatically and transparently to the end user) and Data Dynamics Reports will honor all settings you specified in the template.
This is hard to explain so there is a ~2 minute screencast that shows this feature at our website in the following location:
http://www.datadynamics.com/Products/DDRPT/ScreencastViewer.aspx?ID=XLS01
For more information about the product and for a free trial download visit: http://www.datadynamics.com/DataDynamicsReports
Scott Willeke
GrapeCity - Data Dynamics

Resources