Posts by nuno • 143 points
4 posts
-
0
votes3
answers912
viewsA: Angular Scope with apply no ng-init
why use ng-init? you can just: function selecionou(id) { $pouchDB.get(id).then(function(resp){ $scope.dados = resp; formulario.valor = resp.valor; $scope.$apply(); }); } <input type="text"…
-
2
votes1
answer37
viewsA: Why do update with join does not obey the WHERE conditional
I think you forgot to put in Join the table you want to change, try: UPDATE tpp SET valor_canal = pg.jan_valor, valor_partida = pg.dez_valor FROM precos_geral pg INNER JOIN tabela_precos tp ON…
sql-serveranswered nuno 143 -
2
votes2
answers10224
viewsA: Updating multiple records to the same ID
UPDATE licenca SET data_validade_inicial= '2016-01-01 00:00:00', data_validade_final= '2020-01-01 00:00:00' WHERE cliente_id = 11222 AND produto_id in (1,3) or if you want by the name of the…
-
5
votes2
answers417
viewsA: Click elements below a div?
Add in the night class css: pointer-events: none;