Questions tagged [addattribute]
38 questions
1
vote
1 answer
Add attribute to IXMLDOMNode
I am getting Run-time error 438: Object Doesnot support this propoerty or method in the xNamedNodeMap.setNamedItem (myNode) line of the following code:
Sub appendChild()
Dim xDoc As MSXML2.DOMDocument60
Set xDoc = New…

raman
- 93
- 2
- 8
1
vote
2 answers
How to addAttributeToFilter AND and OR at the same time?
I'd like to make filter which looks like this :
(pseudo code)
SELECT * FROM Products WHERE
(`attribute_foo` LIKE 'bar' AND `attribute_bar` LIKE 'foo')
OR (`attribute_far` LIKE 'boo');
I know how to construct OR condition by providing an array,…

ÉricP
- 843
- 4
- 12
- 17
1
vote
1 answer
Adding centrality measures as vertex attributes
I am trying to add centrality measures as attributes to a "master graph", g_master. Here is my code:
library(igraph)
#generate master graph
g <- sample_pa(10000)
g_in <- degree(g, mode="in")
g_out <- degree(g, mode="out")
g_inclo <- closeness(g,…

Erwin
- 71
- 6
1
vote
1 answer
I use dom4j1.6 in java(xml), but I can't addattribute null value, What can I do?
In my source-----
Element element1 = element.addElement("List");
element1.addAttribute("Number", (String)Map.get("NUMBER"));
element1.addAttribute("Indicator", null);
I want a result like that=> element1 Indicator=""/
I use use dom4j1.6 in java,…
user428992
1
vote
1 answer
Magento "addAttributeToFilter like" with OR statement not working
I working on a Magento project, but i seriously stuck.
I want to add 2 LIKE checks in my query.
Now my code looks like this:
$this->_productCollection->addAttributeToFilter(
array(
array('attribute' => 'name', 'like' =>…

Alex Kovács
- 23
- 4
1
vote
2 answers
How to add a progressive IDs to elements with jquery?
Using jquery I want to add an id to a series of divs, but of course the ids need to be always different, so I thought to have a progressive number like id="1", id="2", id="3" etc.
here's my markup:
content

Mauro74
- 4,686
- 15
- 58
- 80
0
votes
1 answer
Cannot resolve method 'addAttribute' in 'Model' i got this error while executing an STS code
the addAttribute function is not working and is not known for the sts plugins :
package com.example.projet.user;
import ch.qos.logback.core.model.Model;
import org.springframework.beans.factory.annotation.Autowired;
import…

Alaa Amari
- 3
- 1
0
votes
0 answers
Why model.addAttribute and ${} is not matching and it shows just . on web?
I just started to learn jsp and spring. I deleted formattedDate (as a default) in HomeController.java and changed to model.addAttribute("answer", "yes") and on web, it only shows . and i don't understand why.
I tried to put definition like String…

garden lee
- 21
- 7
0
votes
0 answers
cannot add attribute to bipartite network of class sna
I am trying to format data to run an ERGM model. However, I have problems combining the two data sets that I would like to use for the ergm model. First, my actual data set is a bipartite network with the first type of nodes (politicians) as rows…

S Front
- 333
- 1
- 8
0
votes
1 answer
How can I use addAttributeToFilter to search in Magento for a multi-select value in db?
I have values in database in array and I want to search values also from an array.
For example :
I have an array ('13,14') and in database I have values like (13,14) or (13) or (14) or (15). So when I search ('13,14') results should appear with…
0
votes
0 answers
getting model attribute from javascript
i'm going to send fileVO(java bean) to my js file.
how to get this value from js?
model attribute from java.
model.addAttribute("fileVO", fileVOListTmp.get(0));
and I need to get this value in javascript.