The newly added field's value not saved in db by magento - database

In Magento I created a new module as like the customer module.
Everything will be fine.
In my module there are some additional fields, but the values are not being saved into the db.
Only particular fields save into db.
I have not created a setup file as in the core part.
Do I require a setup file? And if yes how may I do it please?
How to set the default entities.

delete cache .
And if problem exists.Refer Link 1.Hope this helps you.

Related

JHipster: Create an entity and move it to admin

I created an entity with yo jhipster:entity MyEntity and everything works fine. But this entity should be part of the admin section so I moved the whole folder and updated the paths etc.
But now the whole app can not load any more. It says:
"Invalid configuration of route '': Encountered undefined route.
The reason might be an extra comma."
I just copied myEntityRoute to ADMIN_ROUTES. How can I figure out the problem?
Please list out the configuration in your admin/index.ts. You need to export your new entity configuration before "export * from './admin.route';"

Magento Import to Custom Database Field

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.

new column in database doesn't recive data from form cakephp

I had a working form in CakePhp 2.X. I added a new column of type varchar in the mysql database and updated correctly from in the view. When I submit the form, old inputs are saving correctly but the new column is not. I tried in the cake php controller to match the data:
$data['table']['newcolumn']
but it doesn't work. Where is my mistake?
clear your cache files, Cakephp creates model cache in
app/tmp/cache/model
You need to delete cache for that particular model

How to build sets of entity records using Breeze and local storage

I'm trying to create an off-line data collection app, using AngularJS.
I think, adding Breeze.js should help with saving and querying data to and from the browser local storage:
1) present the user with angular data entry form
2) when the "save" button is clicked - create a new Breeze entity and store it locally
3) the next time this form is used - create a second entity, and add/save it as a part of the same collection
I was wandering if anyone have tried to do something similar and could give me some pointers of how this is done.
I think it's viable and these links should help you to get started:
http://www.breezejs.com/documentation/querying-locally
You also might want to check this Angular sample aswell:
http://www.breezejs.com/samples/todo-angular
One caveat you have to have in mind is that Breeze will need to load the model's metadata from somewhere. Typically you hit a Web API asynchronously and get the metadata from there. However, on your particular scenario you should give a look at trying to load your metadata from a script file. Here's an how-to and discussion about it:
http://www.breezejs.com/documentation/load-metadata-script

Drupal webform submission creating new table

I have created a webform. However I want that whenever I create a new webform and if I input some data and submit it, It must create new table in phpmyadmin for every new form that I create.
By default every submitted data goes to "webform_submitted_data" table. I want every webform that I create must have separate table.
Please give me steps on how to do that.
If you use the webform module as is, it will use its own database table structure exactly as you describe.
If you have particular requirements on how the data of your webforms is stored in the backend, you'll have to create your own custom module that either builds its own forms and does the data storing itself or that hooks into the existing webform functionality and changes just the storing and retrieving part of it.
In either case, it'll be a bit of work on your part to build that custom module.
How the data is stored isn't something you can just configure for the webform module... :-)
However, I'm not sure why you want to change the way the data is stored, but you're aware that you can export the submissions data as csv and other file formats to manipulate later, right?
The webforms mysql view module will give you a pseudo-table for each webform, allowing read access to the data.

Resources