Showing posts with label GitHub. Show all posts
Showing posts with label GitHub. Show all posts
Saturday, July 30, 2022
GitHub Copilot with Django Python: Create Django Model
GitHub Copilot helps to save developer time, it can suggest common utility functions code quite well. There is no need to spend time searching on Google or StackOverflow. I love it and it works very well with Python.
Sunday, November 28, 2021
Merging GitHub Repo Template Changes
I explain how to merge changes from GitHub template repo. This allows developing infrastructure platform and products running on that platform independently. You can create new GitHub repo based on the template and later sync any changes from the template into that repo.
Labels:
GitHub
Monday, May 16, 2016
ADF Hidden Gem - Export Collection Listener
How many times you complained about ADF export collection listener generated output? There are two options for the output - CSV and excelHTML. Both of them are not really Excel friendly (Excel complains, each time when such file is opened) and produced output lacks formatting. Luckily there is a way to specify custom formatter for ADF export collection listener and set your own output type. In this way we can produce better and customized output file for Excel, you can construct Excel document with different formatting and layout.
Demo application with custom formatter for ADF export collection listener is available on GitHub repository - rs-export-xls. This was implemented by Red Samurai Consulting colleague - Fedor Zymarev. You are free to check-out the source code - use it in your projects and add new formatting features. It would be great, if you could contribute to the community and commit any improvements - simply request merge approval into master on GitHub repository.
Demo runs with the entry page, which contains ADF UI table with Export all/selected rows options:
This is how Excel output looks like. There is a placeholder for worksheet title, header is highlighted and format is recognized by Excel:
You only need to set custom type (RSExcelExport) for ADF export collection listener, instead selecting excelHTML available by default:
Custom type is not available in the list of options, you should type it:
Format type is defined with Java class registered in oracle.adf.view.rich.export.FormatHandler text file, located in ADF META-INF/services folder:
Formatting implementation logic take place in RSExcelFormatHandle class. We are using Apache POI, Java API for Microsoft documents, to prepare native format for Excel:
Demo application with custom formatter for ADF export collection listener is available on GitHub repository - rs-export-xls. This was implemented by Red Samurai Consulting colleague - Fedor Zymarev. You are free to check-out the source code - use it in your projects and add new formatting features. It would be great, if you could contribute to the community and commit any improvements - simply request merge approval into master on GitHub repository.
Demo runs with the entry page, which contains ADF UI table with Export all/selected rows options:
This is how Excel output looks like. There is a placeholder for worksheet title, header is highlighted and format is recognized by Excel:
You only need to set custom type (RSExcelExport) for ADF export collection listener, instead selecting excelHTML available by default:
Custom type is not available in the list of options, you should type it:
Format type is defined with Java class registered in oracle.adf.view.rich.export.FormatHandler text file, located in ADF META-INF/services folder:
Formatting implementation logic take place in RSExcelFormatHandle class. We are using Apache POI, Java API for Microsoft documents, to prepare native format for Excel:
Labels:
ADF,
Excel,
GitHub,
JDeveloper 12c
Subscribe to:
Posts (Atom)





