Most voted "attributes" questions
Attributes can be used to define the structure of a class in OO. Attributes are also, the additional information placed in the start tags in HTML, consisting of two parts: name and attribute value
Learn more…112 questions
Sort by count of
-
1
votes1
answer759
viewsHow to save the values of a String in a Double variable?
I have a string with the x value inside it (String value = "x") Need to pass this value to a Double Variable, how do I pass the x value of the String to the variable? If I convert from String to…
-
1
votes1
answer441
viewsUnderstanding structures in the Assemblyinfo.Cs file
Taking a look at the file AssemblyInfo.cs of a C# project I came across some structures of which I am not recognizing. These are the lines: [assembly: AssemblyTitle("")] [assembly:…
-
1
votes2
answers55
viewsBest Way to Implement Dataannotations
There is some difference in the following implementations? [Required, StringLength(150, ErrorMessage = "Insira no máximo 150 caracteres")] [Index(IsUnique =true)] public int MyProperty { get; set; }…
-
1
votes0
answers97
viewsError passing request attribute to angular directive
I have to pass an array of objects to an angular directive, but I have the error below. How do I resolve ? angular.js:12330 Error: [$parse:ueoe] Unexpected end of expression: [{…
java angularjs spring angularjs-directives attributesasked 8 years, 10 months ago Mayllon Baumer 586 -
1
votes4
answers2314
viewsHow do I insert the value of a variable into an HTML attribute using pure Javascript
I’m trying to insert a value I’m taking from the url inside the HTML attribute, as follows: I’ve done this job function urlId() {…
-
1
votes2
answers126
viewsSelecting attributes from Bootstrap
Well, I’m having trouble selecting an attribute from a certain element of bootstrap with the jquery, for example: <ol class="carousel-indicators"> <li data-target="#carrossel-principal"…
-
1
votes1
answer213
viewsLinux - Copy only attributes of files into a folder
At first... I had a problem with my partitioning and needed to reset my hard drive. I am running Linux Mint 19 on Live-CD (USB) to be able to copy the contents of my /home folder (which was on…
-
1
votes1
answer66
viewsHow to set acceptable single values for an Enum property in a Serializable class?
Given a enum as an example: public enum IcmsCst { [XmlEnum("00")] Cst00, [XmlEnum("10")] Cst10, [XmlEnum("20")] Cst20, ... } There is a form of annotation so that I could specify that a certain type…
-
1
votes1
answer219
viewsremove attribute from a node in Nexxmldocument in DELPHI
I created an XML Document when creating the 2nd. Node 'Header' comes with the attribute from the previous Node. The Node is created as <Header xmlns=""> how can I remove xmlns="" from Node I…
-
1
votes1
answer992
viewsCheck if there is value in the enumeration by the attribute and return its value
It is possible to produce simpler code for this function without changing the enum? /// <remarks/> [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]…
-
1
votes1
answer233
viewsWhat are Boleani attributes?
I would like to know what are these boleani attributes of HTML.and how to understand this question of true or false ?
-
1
votes1
answer1015
viewsHow to pass an array in HTML attributes and not to show single quotes?
Following this post I created the following html by passing arrays as an input element attribute: ... <input type="text" name="setValues[cardExpiration]" id="card_expiry" class="input-small"…
-
1
votes2
answers57
viewsInformation is not enough in the value attribute
The information that I take from the user model (getTimeLine method) reaches the homeController, but does not reach the homeView in the input type Hidden in the value attribute. public function…
-
1
votes1
answer81
viewsForce Field Attribute C#
Guys I have an Attribute class being her: class TipoServicoAttrib : System.Attribute { public TipoOperacaoEnum TipoOperacao; public int CodigoOperacao; } I need that when I use, it is mandatory to…
-
1
votes0
answers17
viewsDistinct constraint generation for element and its attribute - XSD
Good morning! I have the following element in an XML: <estcivil unestavel="S">C</estcivil> It turns out that my attribute can only receive "S" or "N" values, but the element has other…
-
1
votes1
answer186
viewsUpdate an attribute according to two other tables
Table Company CREATE TABLE empresa ( cnpj char(18) PRIMARY KEY, nome varchar(60) NOT NULL UNIQUE, receita float NOT NULL, pais_sede varchar(26) NOT NULL ); Target table CREATE TABLE destino( cidade…
-
1
votes2
answers246
viewsDisplay contents of the "title" attribute next to the option element
I have a thumbnail set of images on option of select. I would like the script automatically enter the caption for each of these images in the select, based on attribute title of tag option. The…
-
1
votes0
answers28
viewsI need an HDF5 Dataset Attribute to be a string
Good afternoon, I’m trying to create some attributes for my datasets, I was able to create the attributes but at the time of setting their values (strings) I’m not getting, I tried several different…
-
1
votes1
answer27
viewsProblem with Reading Attribute in c#
I have the following problem, I have my ENUM class: public enum DataBaseType { DATA_BASE_NAME, SERVER_IP_NAME, PORT, USER_NAME, PASSWORD }; I have my Attributo, in which you have this ENUM: public…
-
1
votes1
answer55
viewsHow to handle this array code with php?
I have a question, how to treat this array: ["*original"]=> array(13) { ["id"]=> int(1) ["user_id"]=> int(3) ["reference"]=> string(36) "c8d2076672c9631e8c048589f3a9a26f3961"…
-
1
votes0
answers43
views'Useradmincreatinform' Object has no attribute 'get' Django
I was trying to send data from a user to the database and received the following error. from django import forms from django.contrib.auth.forms import UserCreationForm #from django.contrib.auth…
-
1
votes1
answer161
viewsHow to access custom attributes of a property using VB.NET
I have a solution in VB.NET where I am implementing some custom Attributes. One of them is for properties, example: Namespace Attributes <AttributeUsage(AttributeTargets.Property)> Public…
-
1
votes1
answer264
viewsImpose ! inline CSS attribute
I have a big problem to solve here and even though I think there is no solution I want help, I will not be seeing the problem as a whole... I have the following code on a page: .elemento { width:…
-
1
votes1
answer932
viewsSyntaxerror: Private field '#attribute' must be declared in an enclosing class
I created the Employee and Director classes, being Employee Inheritor Manager(daughter), but when instantiating a Director object I got the following error: Syntaxerror: Private field '#bonus' must…
-
1
votes0
answers37
viewsJavascript: method as object builder?
I would like to create a method within an object, but it assigns the properties to the object itself: Game = { personagens: [] }; Game.Personagem = function(obj = {}){ this.nome = obj.nome ||…
-
0
votes1
answer227
viewsHow to set HTML attribute with @Yield() in Laravel?
I’m trying to create a template for my control panel in Laravel. I want the top right corner to have a BACK button, where I can set the link with the @yield I tried to make the following code, but I…
-
0
votes0
answers193
viewsDisplay Manufacture attribute in Magento frontend
Work with the Magento a short time and also do not have a lot of knowledge yet and my case is the following: in the display list of the items would like to display the attribute manufacture of item.…
-
0
votes2
answers366
viewsList all "date" attributes containing a particular code
I need to list all attributes data containing a code on their behalf (not in value). Example of HTML tag with attributes: <input type="hidden" id="products-end" data-flavor-id-15515-1="abc"…
-
0
votes1
answer230
viewsDifference between tuple and set
I’m working with python and I was wondering what would be the difference between a set(set()) and a tuple(tuple()). I know that both are delimited with '()'. But I tried to assign a set attribute to…
-
0
votes0
answers35
viewsAspx image attributes are lost after changes via Javascript
Insert an image with scr value and Descriptionurl defined in Aspx and I am changing the value of source(scr) and Descriptionurl (longdesc) via Javascript; It turns out that after page_load the…
-
0
votes1
answer77
viewsHow to fill out INPI data in a . NET project
My question is somewhat conceptual. My company registered the software in the INPI and received protocol data, etc. How to fill this data in my system? I noticed that in the file AssemblyInfo.cs i…
-
0
votes3
answers141
viewsWhich HTML attribute cannot be modified?
Using PHP I display a table, in id of each li, I put the id of the record that is in the database. Once they displayed, I have an option that deletes the record, I do it through AJAX, caught the id…
-
0
votes0
answers63
viewsClasses and html attributes with random values?
I have noticed that some applications such as gmail, facebook and instagram are featuring classes and attributes such as random values or may be a standard used, preprocessor or manager. I was quite…
-
0
votes1
answer179
viewsHandling of JAVA Attributes
Good afternoon, I’m with a college job and it’s the first semester I’m learning java. The job basically is: Make an interface that would represent any geometric figure, in it specify methods of area…
-
0
votes2
answers150
viewsAfter @Joincolumn JPA does not find Entity attribute
I have two entities that are directly related to @Entity State and @Entity City And my intention was to rename the foreign key present in the customer identity, for example, from 'city.stade_state'…
-
0
votes0
answers27
viewsJavascript: How can I get/change an attribute inside the Placeholder ="{"id":"10","Selected":false}"
Hi Guys. At first I didn’t even know you could put those attributes inside of the Placeholder, hehehe, had never seen. <div class="cellContent"…
-
0
votes0
answers21
viewsHow do you take the value of a static attribute inside a method when you have a variable with the same name in that method?
When it is a non-static attribute you can use the this.nomeAtributo. Example: public class NomeDaClasse { private String atributo; public void (String atributo) { fazerAlgo(this.atributo);…
-
0
votes2
answers509
viewsHow to map multivariate attributes?
I am trying to map this conceptual model to the logical, but I have doubts about how to map the multivariate attribute "palavra_chave" that will allow the registration of as many keywords as the…
-
0
votes1
answer94
viewsHow to take value of element attribute with Angular IONIC4
How can I take the value of the data set attribute or change it in the link with the following structure: <a href='#' data-set='22'>Texto</a> I know that in jquery I can use:…
-
0
votes0
answers47
viewsOpensource alternatives to Postsharp
Someone knows a good alternative Opensource at the Postsharp? I know it has the Free version, but I am developing some Nuget packages using attributes and I find the dependency of Postsharp heavy…
-
0
votes1
answer727
viewsList of attributes with differences between objects - Java
I need to compare two objects in JAVA so I can get a MAP with key and value of the attributes that present difference. I need this logic for a generic object, capable of receiving any type. Ex:…
-
0
votes2
answers66
viewsHow to assign all the characteristics of one object to another, except one in particular?
I am Creating a card game that runs in the browser and I need that in some situations, there may be the same cards in different hands ("Computer" or Player). However, I don’t want to have to create…
-
0
votes1
answer21
viewsDoes precedence in attribute/event statements in Tags make a difference? Angular2+
I work with Angularjs and Angular2+ almost two years ago and recently, in Angular2+, I came across a different situation that made me wonder if it was a coincidence or because of the version of…
-
0
votes1
answer56
viewsTreating array with php to Laravel
I need to recover the first array from this list of arrays. I need to recover BTC and LTC, and the attributes rate_btc, tx_fee and name. array(1029) { ["BTC"]=> array(9) { ["is_fiat"]=> int(0)…
-
0
votes1
answer466
viewsA = A.astype('double') Attributeerror: 'list' Object has no attribute 'astype'
I have this error but I can’t find the cause. Code: from __future__ import division import numpy as np from numpy import linalg def jacobi(A,b,x0,tol,N): #preliminares A = A.astype('double') b =…
-
0
votes1
answer51
viewsData Preloaded with JQUERY in A MODAL
I have a Dynamic table, I use TWIG to fill the data automatically, in this table I have in each Row 2 buttons, one of Edit, and the Delete Other, when I click the Edit Open button A modal, i would…
-
0
votes0
answers28
viewsAttempt to insert value via "attr"
I’m creating a page that will simulate a website in the mobile version. After filling in the URL field, the site will appear in an "Iframe". The problem is that when I enter the URL into the field,…
-
0
votes1
answer460
viewsDefine attributes in columns <td> in html table, with javascript
I have the following code below that receives some data via ajax and assigns the received values in a table that is defined with the "Datatable". I’d like to know how I set attribute to my "td" tags…
-
0
votes1
answer51
viewsHow to sort an array using two attributes?
Come on... I have a class Student, which contains the attributes name, idCurst and situation. I also have a vector that stores several objects of the Student type. I also have a method ordain() that…
-
0
votes1
answer58
viewsHow to sort an array using three attributes?
Come on... I have a class Student, which contains the attributes name, idCurst and situation. I also have a vector that stores several objects of the Student type. I also have a method sort() that…