how to refresh Pivot Tables by python - pivot-table

I'm try to use python to refresh Pivot Table within Win32 or xlwings, but it's all falid
Can someone show me example, thanks

Related

Excel like copy paste feature for adding data into grid using react and grid library

I am creating a kind of excel online application using react in frontend, Java in backend and Postgres database.I am using a library called ag-grid (community edition).
Now one of the feature i need is to copy and paste data in to rows
just as we do in excel.
The grid is going to be linked with the Postgres, all the data in the table in the DB is displayed into the grid and any change made into the grid will be reflected to the DB and vice-versa.
The specific need is, i need copy and paste feature, i need to paste the data which is, say copied from other excel in to my application. I should be able to create blank rows and i should be able to paste the data into those rows, if the blanks rows are less then it rows should get automatically added(as in excel) as soon as data (say multiple rows data) is pasted into a one or more rows.And when i choose to save the my application then data of grid should be saved to DB.
Is it possible to create this feature using ag-grid community ?
Is there any other library which is recommended for this purpose ?
If there is any resource or documentation available for this feature
then please point me.
Just in case if anyone stumbles upon this problem, I've found a solution from some another website. It uses processDataFromClipboard event of Ag Grid for a custom solution.
https://plnkr.co/edit/lM3OtCQxpJdapHQt?preview
The ag-grid community edition does not support CRUD operations with a server side model - the enterprise edition does:
https://www.ag-grid.com/javascript-grid-server-side-model-crud/
If you insist on using ag-grid community you will need to handle the editing/grid changes yourself, which should not be too hard. A good starting point would be the cell editing page:
https://www.ag-grid.com/javascript-grid-cell-editing/
In particular, you will need to listen to the cellValueChanged or rowValueChenged event:
https://www.ag-grid.com/javascript-grid-cell-editing/#event-cell-value-changed
The event params will provide you with the following properties:
newCalue
oldValue
column
colDef
which you can use to generate the update call.

2sxc - add new record to non 2sxc data table

I know that this is more dnn than 2sxc question but I have some custom table inside dnn database and don't know how to do clasic dnn modules and using only 2sxc for module development.
My question is if you can give me some guides what is the easyest way for adding new record in this table from razor script or 2sxc apicontroller (preferred).
It would be the best if someone can paste some sample with code to get sql connection string, dnn database object qualifier and sql with command execution.
I don't need any relationship stuf.
From there I think that I can figured out how to make also edit and delete and post code back that others can see.
I don't plan to use this for many stuf but we have some sensors and aplication with a lotoff events and need custom table I can easy clear and index, and don't want that this data is EAV tabels.
For later I know how to get data back for visualization over sql datasource inside 2sxc.
In the far future we'll create a generic API to store to any kind of repository (EAV, SQL, CSV, Json, etc.) but for now, you'll just have to code it.
Basically your question isn't actually related to 2sxc - I recommend you simply google things like "save data to SQL using WebApi" or something - then put this code into an API controller in 2sxc.
At the moment I don't have any demo-code, but if you do create a demo, I would be glad to blog about it and publish in on https://2sxc.org/en/apps

Manipulating database rows with UDJC in Pentaho Kettle

I want to get rows from the database and then apply some java code on each row.
How do I get a single row for manipulating in User Defined Java Class step?
If someone can elucidate this scenario with an example would be very helpful.
Thanks in advance.
There are samples in $KETTLE_HOME/samples directory. It includes as well example of using UserDefinedJavaClass Step.

How to create a pivotTable in ADF?

I want to create a pivotTable in ADF,but I want to use EJB instead of BC in ADF ,so someone can give me a example to shwo how to create in EJB
Thanks!
As long as you expose your EJB as an ADF Data control, it should be a simple drag and drop of the Collection onto the page and choosing table->adf pivot table as the destination.

How to insert data into database from wavemaker

I want to insert data from wavemaker into database which will be inserted by user at runtime. But didnt get yet how to do it in wavemaker.
Can anyone please suggest me a simple example of it?
This is really easy to do with WaveMaker. I suggest you follow the 2nd Tutorial, which shows how to import a DB schema and quickly build a UI to insert data into a DB.

Resources