Posts by Alessandro Barros • 165 points
19 posts
-
-1
votes0
answers18
viewsQ: DRF to delete multiple records with field other than ID
I am using the Django Rest Framework and would like to make a mass exclusion using the "contract" field which is an interger. View py. class AlugueisViewSet(viewsets.ModelViewSet): filter_backends =…
-
0
votes1
answer21
viewsQ: Django Rest Framework does not filter after resetting queryset
My url will be something like.../? search=modal. I want to replace the "modal" with empty "" so that clean the filter and return all records. Views.py class…
-
0
votes0
answers79
viewsQ: Ionic 4- Receive variable update with Behaviorsubject
In the home I have a list of products that click opens the product modal with a button to add to cart. When you add the quantity appears next to the icon. I want to close this modal on app. be…
-
1
votes1
answer37
viewsQ: Angular route direct to folder with Wordpress
My Angular application is at the root of the domain and I want when typing an empty route it redirects to /home, where in this folder I have Wordpress installed. That is to say always type only…
angularasked Alessandro Barros 165 -
1
votes0
answers48
viewsQ: Set the initial height of the textarea according to its content
I use a reactive angular form that when saving leaves all fields disabled. It turns out that textarea creates a scroll and makes it difficult to read for those just viewing. I’ve tried the following…
-
0
votes1
answer61
viewsA: Mysql - Search using like does not correctly return Unicode characters
In my case I am using the tinymce editor, I have discovered that in its configuration you can enable the option not to record $scope.tinyMceOptions = { init_instance_callback: function(editor) {…
-
0
votes1
answer61
viewsQ: Mysql - Search using like does not correctly return Unicode characters
I have a text editor in my application that records html formatting in a longtext field. It happens that when I use the like to return the data it cannot find because of the generated Unicode…
-
3
votes1
answer320
viewsQ: angular - Update radiobutton values with textarea
Through Pover I want to remain the values of the radiobutton, who should come to a preference textbox per line, so when the user wants to add options just insert a new value in the next line.…
-
2
votes1
answer82
viewsQ: Angularjs - modal inserts template with radio button options
I have a button that opens a modal, where words will be typed separated by commas that will become the radio button options on the main page. When saving the modal you must insert an HTML template…
-
0
votes1
answer91
viewsA: Angularjs - Object counter does not work within the directive
Above the directive I declared the variable as empty var counter="" and within the directive controller doubled in each if the count of div objects. if ($scope.tipo=='txtcurto'){ counter=…
-
0
votes1
answer91
viewsQ: Angularjs - Object counter does not work within the directive
I have a directive that adds text field on the screen through a templateurl. I need each field created to generate an ID of these fields based on the count of existing objects in a div('#xmain'). I…
-
0
votes1
answer170
viewsA: Ionic project does not run on android
Time ran out in the search for your device, you can increase this time manually (not recommended), it worked with me. Platforms android Cordova node_modules q q. js Locate this code snippet if…
-
1
votes0
answers28
viewsQ: Ionic - item does not bind in Nav-bar
I have an icon in the Nav-bar that should show or not true/false toggle position. Testing in the view works perfectly but the result does not work in the Nav bar. Both pages use the same controller.…
-
0
votes1
answer155
viewsA: Setting limit for query with UNION in Mysql
Maybe this will solve $friends_a = mysql_query("(SELECT * FROM (SELECT * FROM users WHERE id!='$user_q[id]' AND id='$friends_1_q[user_one_id]') UNION ALL (SELECT * FROM users WHERE id!='$user_q[id]'…
-
0
votes1
answer222
viewsA: itextsharp does not add loop pages
I found this example that worked perfectly. Sub Main() Using doc = New Document(PageSize.A4, 50, 50, 50, 50) Using writer As PdfWriter = PdfWriter.GetInstance(doc, Response.OutputStream) doc.Open()…
-
1
votes1
answer200
viewsA: iTextSharp deleting document if there are no pages
To put into memory change the following lines: PdfWriter writer = PdfWriter.GetInstance(Doc, new FileStream("C:/AgendaComp/Encaminhamento/" + txtNomePasta.Text + SID.ToString() + ".pdf",…
-
0
votes1
answer222
viewsQ: itextsharp does not add loop pages
I put my code inside a FOR to display several pages according to its count. Turns out it only shows the last page, and not all that should. For s = 0 To 9 html = "<p> "& s &…
-
0
votes1
answer368
viewsQ: Angular JS - an ng-model directive template does not work within ng-switch
To get more dynamic my directive decided to include the category field that makes the selection of the type of template to be displayed. As it is just a select thought to use ng-switch instead of…
-
4
votes2
answers4721
viewsQ: Angular JS - Take the value sent by the select of a directive
I have a directive that returns me a select that when selected I want to take the value of the code by the controller and make an http request. Plunker: http://plnkr.co/edit/fnCJj15XJN1kQvKq1OtZ…