store

SQL Filter Query

馋奶兔 提交于 2019-12-07 13:51:09
问题 I have a table with a number of fields in it. I am trying to create search filter in asp.net so the user can search by one or a combination of fields. So basically I want to create a single stored procedure that takes in 4 params and it will append the param to the WHERE clause if its not null... TableExample has 4 columns, Col1 Col2 Col3 Col4 I am hoping there is way to do this with a single stored procedure instead of having to create one for each possible combination. I was trying

Android App Security

纵然是瞬间 提交于 2019-12-07 07:54:50
问题 I want to develop an app where User data is very sensitive. I am new to dev. so not sure this following techniques are necessary for security or efficient. Please leave your comment. Thanks in advance. For extra security can we avoid market(play store) and install the app on individual device. Does it make it more secure? I have to store data on the device. How can we make the data secured so other apps can't read it? 回答1: Yes, you can install your app without using the Google Play app.

Change Magento product status in different store views

拜拜、爱过 提交于 2019-12-07 07:27:32
问题 I have a Magento Multi-Store installation. I have a product that must be enabled in shopA and disabled in shopB If i select the tab "Websites" there is an alert "Items that you don't want to show in the catalog or search results should have status 'Disabled' in the desired store." so probably it is possible? The default value status of the product is "enabled" Then i select the store view of shopB and disabled the product status. Now the status of the product in shopA is also disabled. Is it

How can I change a customer store_id in Magento or set the “created_from” attribute when creating a new customer

♀尐吖头ヾ 提交于 2019-12-07 07:11:30
问题 I want to be able to choose what store to associate a new customer with when I create their account as administrator. I found that by overriding this file: app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Account.php Changing this: if ($customer->getId()) { $form->getElement('website_id')->setDisabled('disabled'); $form->getElement('created_in')->setDisabled('disabled'); } else { $fieldset->removeField('created_in'); } To This: if ($customer->getId()) { $form->getElement('website_id');//-

React Redux - accessing existing store in a helper function

末鹿安然 提交于 2019-12-07 06:41:37
问题 I'm trying to get the store instance (store state) outside a react component, namely in a separate helper function. I have my reducer, my action, I have created a store in the most upper component. // configStore.js import { createStore } from 'redux'; import generalReducers from '../reducers/generalReducers'; export default function configStore(initialState) { return createStore(generalReducers, initialState); } // index.js import { Provider } from 'react-redux'; import configStore from '.

EXTJS 5 Load a VERY SIMPLE string array in store

这一生的挚爱 提交于 2019-12-07 05:21:43
问题 I have a back end service that gives me an object which only contains an array of string. This is for example what the service gives me: { "DepartementsResult": [ "AME-CM", "BMAU", "BMKR", "BNVS" ] } So to get this data I want to create a nice and simple store, but a first problem appear: what should be the field??? var store = Ext.create('Ext.data.Store', { fields: ['data'], // What should be the fields here, I have none ^^" pageSize: 0, autoLoad: false, proxy: { type: 'ajax', url: 'data

After using a form POST how can I store the variable in session?

走远了吗. 提交于 2019-12-07 04:37:28
Is this possible? I have sent a value using a form post and retrived in the php but if i refresh it disappears. Can this be stored? Yes you can store it in SESSION . Please read the following code:- <?php // Start the session session_start(); ?> <!DOCTYPE html> <html> <body> <?php // Check Post variables are available if(isset($_POST['username'])) { echo $_POST['username']." Username found in form <br />"; // Set session variables $_SESSION["username"] = $_POST['username']; echo $_SESSION["username"]." stored in session <br />";; } else echo 'No, form submitted. Your old stored username was '.

extjs - Sort store alphanumerically and case insensitively

谁说胖子不能爱 提交于 2019-12-07 03:52:23
问题 I want to sort store (ArrayStore and GroupingStore) alphanumerically and case INSENSITIVELY. I am using singleSort() method but it sorts case sensitively. For example, data = ['c', '1', 'A', 'a', 'C'] output = ['1', 'A', 'C', 'a', 'c'] myoutput = ['1', 'a', 'A', 'c', 'C'] or [['1', 'A', 'a', 'C', 'c'] // This is what I want Any suggestion on how to achieve this? 回答1: Add this to your code... be wary of your scopes because you will make all sorts on the page case insensitive. I found this code

How can I serialize a closure in Perl?

徘徊边缘 提交于 2019-12-07 03:04:08
问题 I think this might be best asked using an example: use strict; use warnings; use 5.010; use Storable qw(nstore retrieve); local $Storable::Deparse = 1; local $Storable::Eval = 1; sub sub_generator { my ($x) = @_; return sub { my ($y) = @_; return $x + $y; }; } my $sub = sub_generator(1000); say $sub->(1); # gives 1001 nstore( $sub, "/tmp/sub.store" ); $sub = retrieve("/tmp/sub.store"); say $sub->(1); # gives 1 When I dump /tmp/sub.store I see: $VAR1 = sub { package Storable; use warnings; use

How do I submit a form using a store under ExtJs?

你说的曾经没有我的故事 提交于 2019-12-07 02:40:02
问题 Is there a way to have a form submit create an object in a store under ExtJs 4? It seems strange to me that the grid is built completely around the store mechanism and I see no obvious way to plug a form into a store. But I am most likely just missing something. 回答1: You can add a model instance to a store upon form submit using this code: onSaveClick: function() { var iForm = this.getFormPanel().getForm(), iValues = iForm.getValues(), iStore = this.getTasksStore(); iStore.add( iValues ); },