i go tto perform some validation while ck=liking a button without refreshing the value.. i used ajax.My code is as follows...on button click i call the function validateGridAdd ();
Inside tat function i need to call the function tat uses ajax to go to the server and come back.. the resultant value is to be obtained in the main function validateGridAdd ().
[CODE=javascript]//main function
function validateGridAdd (a,rowNum){...
User Profile
Collapse
-
Doubt in Ajax: get responseText in main function
-
i need toi get chck the maximum weightage only for those elements whose item_id are the same... -
need an sql query for the following situation
i need a query to get a collection ...
Following is the situation.
ive got a collection in which item of each element is different.
but each element has an item_id tat can be same.all these elements have weightage... i need to get elements with unique item_id and max weightage.
ie;
i got a collection of elements such as
e1 with item_id as 1 and weightage 7
e2 with item_id as 2 and weightage... -
need an sql query for the following situation
i need a query to get a collection ...
Following is the situation.
ive got a collection in which item of each element is different.
but each element has an item_id tat can be same.all these elements have weightage... i need to get elements with unique item_id and max weightage.
ie;
i got a collection of elements such as
e1 with item_id as 1 and weightage 7
e2 with item_id as 2 and weightage... -
how to convert a query from SQL to HQL(hibernate Query Language)
I want to convert the following query from SQL to HQL.
[CODE=sql]
SELECT
student.first_n ame AS student_first_n ame,
course.name AS course_name,
course.id AS course_id,
admission.admis sion_no AS admission_admis sion_no,
attendance.stat us AS attendance_stat us,
case WHEN attendance.stat us=1 THEN 'P'
WHEN attendance.stat us=2 THEN 'A'
End as Status,... -
how to retain the value of a variable?
Ive got a java class having a double variable whose value is populated from the front end...
eg..
...Code:public class AccountsCenterAction extends AbstractReportAction { private double closingBal; public String method1() { //stmnts; } public String method2() { //stmnts; } public double getClosingBal() { return closingBal; } public void -
problem in Jasper reports
Hi
Im doing a report in jasper. ive got to print a very large string value inside a text box. but its value is getting cut. how can i expand the text box according to the size of the text value in it.? -
my collection on expanding becomes
...Code:ArrayList<E> "voucherTransactionCols"= ArrayList<E> (id=122) E[] elementData= Object[10] (id=133) Object [0]= HashMap<K,V> (id=135) Object [1]= HashMap<K,V> (id=137) Set<Entry<K,V>> entrySet= HashMap$EntrySet (id=150) Set<K> keySet= null float loadFactor= 0.75 int modCount= 2
Leave a comment:
-
how to delete the last element of a collection without iterating it?
how to delete the last element of a collection without iterating it? -
-
hey i got it
this is my code
label:
for (Iterator iter = voucherTransact ionCols.iterato r(); iter.hasNext(); ) {
Object object = (Object) iter.next();
HashMap campusModel = (HashMap) object;
iter.remove();
continue label;
}
}
}
Use the iterator to remove....... instead of coll.remove()
...Leave a comment:
-
now im getting java.util.Concu rrentModificati onException after deleting the first element and going for the next iteration.
wat to do...Leave a comment:
-
-
for (Iterator iter = voucherTransact ionCols.iterato r(); iter.hasNext(); ) {
Object object = (Object) iter.next();
HashMap campusModel = (HashMap) object;
voucherTransact ionCols.remove( campusModel);
}
Now i can delete the elements but when i delete Object[3] , the element Object[4] moves to the third position . so i cant delete the last elenment in the collection....Leave a comment:
-
got to delete an element from a collection
Ive got a collection with values
Object[0]= hashmap(k,v)
Object[1]= hashmap(k,v)
Object[2]= hashmap(k,v)
Object[3]= hashmap(k,v)
Object[4]= hashmap(k,v)
i terated this collection and deleted object[1]. then when i iterate again i get the following exception.
java.util.Concu rrentModificati onException
i want to delete elements till Object[3].
how do i do this
... -
actually my collection is an object[] which in which each element is a key/value pair.
eg it is an Object[1o] where
Object[0]=HashMap(k,v)
Object[1]=HashMap(k,v)
Object[2]=HashMap(k,v).. ......so on
Now how do i iterate this....Leave a comment:
-
collection of hashmaps added to a collection.
i wanna iterate tat collection to get each key/value pairs...Leave a comment:
-
How do i iterate a collection tat consists of hashmap values?
Ive got a collection that is populated by some key/value pairs.
How can i iterate ie to get its each key/value pair? -
Ive made my list an ArrayList
coll=new ArrayList();
Then i did the above code.
Still i cannot remove the specified element...Leave a comment:
-
No activity results to display
Show More
Leave a comment: