I want to beautify database selector web page in Odoo11. How can i do it?
Do i have to create a new module? If yes, then in which database i have to install it?
I found the database selector file in /web/views/database_manage.html
Would suggest of using/adjusting one of the existing modules:
There is one module for this:
https://apps.odoo.com/apps/modules/10.0/web_extend_db_manager_layout/
You can possibly adjust it to your needs as it is open source. Remember to give some kudos to original authors.
Related
firstly, we have a custom profile with rules from different sources. We want to add some tags to these rules in order to classify them according to our requirements.
We are adding our tags directly into the database with SQL, in the table rule_metadata but the problem is that in the sonarqube interface our new tags works fine when we scan a project (the new tags works in the issues tab) but when we see the rules tab we can not filter the rules or find our tags.
Any idea of how can we add tags to the rules in this way and make the sonar interface works with them? we try restarting sonar, making new projects etc.
The database is not an API, you should never directly insert data in it.
You should use UI or Web service to interact with SonarQube.
As a consequence of updating the DB, there's no warranty of what can happen...
I have created custom database column in magento 'wholesale_min_qty' in cataloginventory_stock_item.
Question is, I cant update the field by importing from CSV file.
But it is working perfectly fine when updating from admin panel.
Any idea?
I have solved it, by going to
Mage_ImportExport_Model_Import_Entity_Product.
find the function _saveStockItem().
add 'wholesale_min_qty => 0' to $defaultStockData array.
This is done by hard coding to magento core file. You can try to create a module to extend the core file itself, which is a best practice.
In my application (CMS for internal purposes) I'm facing the problem how to serve pages stored in the database with dynamic URL (e.g. http://example.com/page3) using the JSF. Generally, let's say I want to grab the page content from the database, put it inside jsf file and serve it as /page3. Is there any way how to obtain the request URL from JSF, search the database for the article (instead of searching *xhtml in the WAR), build dynamically the JSF XHML file and return it to JSF as InputStream for example? I've found this answed by Thomas Maerz, but it failed with
Unable to create a new instance of 'com.test.CustomResourceResolver': java.lang.InstantiationException: com.test.CustomResourceResolver
on my glassfish v4 (Mojarra 2.2), and I also found that ResourceResolver is deprecated in JSF2.2.
I've googled a lot, but this seems to be not very common/documented part of JSF.
Thank you for any help.
I did not understand fully the problem, but for url change you can use prettyfaces, for dynamic forms you can use primefaces ext and I am not suggest keep form in the database, if I know your target I can suggest more useful answer.
I would want to do this to run post installation setup process like adding custom data that is required for the application to run.
One option I am aware of is to Write Installation and Setup instructions for users. Create visualforce page and include a button on this page. Redirect user to this page as the process of Installation and ask the user to click the button.
I only wanted to know If there was a more elegant way to solve the problem and if there is a way to call a method during the installation process.
Salesforce has recently implemented the ability to execute scripts (as Apex) during package Install / Uninstall:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_install_handler.htm
No, we can't have a post installation script for the app. What you are saying is best solution, just keep a custom setting to flag, if initial setup is not done, then redirect to the setup page first, other wise do the normal work.
My question would be revolving around why you need custom data for the app to run? One of the things Salesforce look for when doing a security review of your code and the unit tests you have is to check to see if you are requiring data in your org as this is bad practice. Note that if your app is requiring specific data to run then it cannot be tested properly as the data will not be in the org when running the tests on install.
What is the data you are requiring? Could it be stored in an xml like static resource file or something similar for you to load and parse as it is needed?
Paul
I am running a website using PHP/MySQL. Now I want to allow Blogs using wordpress in my website so I can use Google Adsense along with blog content. I have installed Wordpress on my site, using tools provided by host service provider.
Now is there anyway I can import selective-content from MySQL database to these wordpress blogs? If so, how?
Thanks.
Short answer: maybe.
It all depends on how the content in your existing MySQL database was structured. If the old content was created by a content management system, see if it has a built-in exporter. WordPress has plug-ins that can import from a variety of commonly-used CMS platforms already. Check to see if yours is supported.
Unfortunately, if your content was just kind of "there" in the database without a CMS or any kind of standard (non-custom) structure, then this won't really work. My recommendation would be to use phpMyAdmin to export your content, then use a text editor to cut out the portions you want to keep and manually create new blog posts within WordPress. This process will be very time consuming but can be optimized if you want to build a custom importer.
Yes you can import/export your contents from/to other site respectively using following ways
Using Plugins like duplicator etc
Using the existing WordPress tools availabe in the Dashboard/Admin section like Import & Export
There may be other different methods also available on the internet.