Posts by Vinicius • 304 points
32 posts
-
1
votes1
answer758
viewsQ: Ignore files when uploading to repository
I have a . net core project in bitbucket and I use visual studio 2017 to do the operations next to the repository. The problem is that even without me having made any changes to the project, when I…
-
0
votes1
answer47
viewsQ: API problem after deploying
My api is not working after deploy to the server, it is returning: 404 - File or directory not found. The Resource you are Looking for Might have been Removed, had its name changed, or is…
-
1
votes0
answers187
viewsQ: Make sure that the controller has a parameterless public constructor
I’m getting this error after giving deploy(AWS) of my WebApi. Note: PLACE WORKS PERFECTLY. <ExceptionMessage> An error occurred when trying to create a controller of type 'LivroController'.…
-
0
votes0
answers184
viewsQ: Month and day reversed when saving to database
I’m using datepicker of jqueryUI to choose the date in a calendar, the problem is, if I choose 04/12/2017 is saved at the bank 12/04/2017. datepicker: $('#schedulingCalendar').datepicker({…
-
0
votes2
answers256
viewsQ: Show "Loading..." while browsing between pages
When I make a call ajax I can already show/hide a loading gif like this: $(document).ajaxStart(function () { $('#loadingFull').fadeIn(); }).ajaxStop(function () { $('#loadingFull').fadeOut(); });…
-
1
votes1
answer573
viewsA: ASP . NET MVC - Using a @Html.Dropdownlist for two Actionresult
I had to do something similar once, call two actions different passing the same thing, in my case was a model, I did this: I put it all inside BeginForm, one Submit button points to the action…
-
0
votes0
answers40
viewsQ: Access FK attribute in Entity Framewokr
I have the class Cliente who owns a IList<Produto> and the class of produto has a ClienteId (which is FK) and an attribute Cliente Cliente { get; set; }. How to access the attribute Nome of…
-
0
votes1
answer329
viewsA: Quantity Inventory Management
I don’t know about nhibernate but see if it helps you: a tip would be you review the relationship of your tables, I see no need to have a foreign key for quantity and another for product name to…
-
1
votes2
answers270
viewsA: How do I compare values between two tables and send email if it has new value?
Recently I did something similar to compare data, and for the same used Except, to return only the new records on a list, see if it suits you: /*Pego todas as descrições da minha lista(esta lista…
-
1
votes2
answers634
viewsA: Change button text in AJAX request
just as a complement, I use ajaxStart and ajaxStop to display a loading gif during my request, and when it ends, the gif will disappear: $(document).ajaxStart(function () {…
-
1
votes1
answer786
viewsA: View Model receiving Null values
it would be good if you made it clear which attributes cannot receive null, but anyway, depending on the type of attribute you can declare it as nullable something like: public int? RA { get;set; }…
-
0
votes1
answer657
viewsA: Report with Rotary mvc
I’m using the rotating file css external because I’m using actionAsPdf and not ViewAsPDF, here worked. I did so in view, as seen in this section below. <link rel="stylesheet" type="text/css"…
-
1
votes1
answer573
viewsQ: Do not reload page when giving Submit in modal
I have a modal to research customers: Which is called a registration form as follows: $('#linkSearchShipperCustomer').on("click", function (e) { showDialogList("@Url.Action("IndexShadow",…
-
1
votes0
answers511
viewsQ: Return value in the Header of an HTTP call (POST) in the API
I’m using Postman to make the call at the API. That returns me this result in the body: that comes from this abstract class: public abstract class ResponseBase { public long SessionId { get; set; }…
-
0
votes0
answers72
viewsQ: autocomplete does not work after calling ajax
I have a zip code field with autocomplete that works perfectly when I type something. However this field is also filled after an ajax call that fills the zip code automatically, only when receiving…
-
0
votes1
answer81
viewsQ: httppostedfilebase null after reloading the page, (image upload)
Is there any way I won’t lose data from HttpPostedFileBase? my action makes a check, and in case of failure the page recharges with the image in the form and I have to make the call again, then…
-
0
votes3
answers484
viewsA: Disable DATE Input After selecting Select option
As friend Sergio said, beware of equal Ids. $('#avisoPrevio').change(function(){ if($(this).val() == "PARCIALMENTETRABALHADO"){ $('#ultimoDiaTrabalho').prop("disabled", false); }else{…
-
1
votes1
answer536
viewsQ: show Exception error on return of AJAX call
I have this call ajax: $.ajax({ method: "GET", url: "/Shipper/getFullAddress", data: { postalCode: value }, dataType: 'json', success: function(data) { $('#AddressStreet').val(data.AddressStreet);…
-
0
votes0
answers33
viewsQ: Disable map movement with mouse
I have a page with a map mapLink, I would like to disable the option to move (drag) the map with the mouse. UPDATE I contacted the support of mapLink, they passed me the function disableDragging(),…
-
0
votes1
answer455
viewsQ: Pass Viewmodel properties to Controller
I put my table inside a BeginForm passing my controller and my action, but when I give Submit the fields are NULL in the controller, I don’t think this passing the properties of Viewmodel. @model…
-
0
votes2
answers409
viewsQ: Pass List to Actionresult
Briefly: I have a screen with a table populated by the list below, where I select the line through checkbox, I need to pass this list to my actionResult. As I do not have a form on this screen I can…
-
3
votes1
answer3748
viewsQ: Load imageView using image path
I have a listView loaded with BD data on a screen, on another screen my app hits a photo and saves the path of the photo in BD, until then I could do normal, now how to put the image in the…
-
1
votes1
answer5404
viewsQ: update Listview using notifyDataSetChanged();
I have two screens, one with a main list loaded with BD data and one of registration, after inserting some data, the registration screen closes and goes back to the main list, I’m having trouble…
-
0
votes1
answer601
viewsQ: display listview in the same Activity after consultation
I have this consultation layout with a Listview: After marking the RadioButton and write the search parameter would like the list to appear with the database data (detail, I have a Listview that…
-
1
votes1
answer488
viewsA: How to implement a github file in Android Studio?
I applied here in this case and it was like this: first added the dependency on Gradle(build.Gradle(Module app)), as described in the "README" compile 'me.grantland:autofittextview:0.2.+' then I…
-
2
votes3
answers5297
viewsA: JDBC connection to Mysql
I can’t comment yet I’m putting an answer You need to inform the IP and the name of the database in the connection string, as the friend @Jeucasulo said will look something like this, here it works.…
-
0
votes2
answers1011
viewsQ: update method (sqlite) does not update database data
I have a listview that displays the items of the database with an update button, this button calls the screen with the values set in editText, I edit, click save, it returns me the updated message…
-
-1
votes1
answer3317
viewsQ: Create folder in your device’s internal memory and display message after saving
I’m in two trouble. The Toast in my method returns me the following error: The method makeText(Context, Charsequence, int) in the type Toast is not applicable for the Arguments (Gerarrelatorio,…
-
2
votes3
answers5189
viewsQ: How to pass editText value to attribute to int type on Android?
I have a question about the value store coming from EditText for attributes of type int of a class. For attributes of the type String I do so:…
-
0
votes1
answer495
viewsQ: Resize table layout according to screen orientation
I’m a little lost in mounting my screens on Android, I’m not able to make the elements fit the screen dimensions. I put fill_parent in the tablerows and in the elements within it, but the editTexts…
android-layoutasked Vinicius 304 -
0
votes1
answer74
viewsA: How to take out the layout name and appcompact Fragment?
Fragments and a very good feature available now on Android to create more dynamic looking layout understand q you will like And if I’m not mistaken the appcompact and created if you create a project…
-
4
votes1
answer1383
viewsQ: Error while creating PDF file on Android
I have a problem to create a PDF using iText on Android. I have to save in the device’s internal memory, but this giving error because I do not know the way to save because in the tutorial he saved…