Iftikhar Arain

Ranch Hand
+ Follow
since Jul 17, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Iftikhar Arain

Hi Anand,

Would it be possible for you to post the code, specially the URLs you are trying to load the images from?

Regards,
iftikhar
12 years ago
Hitting image URL in browser doesn't require crossdomain.xml but loading image in Image component require crossdomain.xml.

http://stackoverflow.com/questions/2096820/loading-external-images-from-another-domain

Adobe specs:
http://help.adobe.com/en_US/flex/using/WSc5cd04c102ae3e97-33ad5caa12c719dc7c8-8000.html

When you load images at runtime, you should be aware of the security restrictions of Flash Player or AIR. For example, you can reference an image by using a URL, but the default security settings only permit applications built in Flex to access resources stored on the same domain as your application. To access images on other servers, ensure that the domain that you are loading from uses a crossdomain.xml file.


12 years ago
I understand the problem but sorry I can't help until I can see the code. Please paste the code.
12 years ago
This is usually used in ItemRenderer.

For complete understanding read the blog.
http://blogs.adobe.com/aharui/2008/02/checkbox_selection_in_datagrid.html

Scenario.

List of check boxes with labels. Values retuned from the server are date of birth.

12-12-2010 <check box>
12-11-2010 <check box>
12-10-2010 <check box>
12-05-2010 <check box>

intead of above we want to show.

10 years old <check box>
5 years old <check box>
2 years old <check box>
8 years old <check box>

set data() can be used for this purpose.

e.g - 2

Values returned from teh server are first name and last name and you want to show them as one label.

set data() can be override to display the First Name , Last Name as one string.


Hope this will help.



13 years ago
The information you have provided is incomplete.

Is it flex3 or flex4?

Would it be possible to post the complete code with wsdl? Did you debug you check the passed argument to web service call from flex are correct? In flex4 we have network monitor facility, can you check what's been sent across the wire.

13 years ago
Requirement:
There are 1 or many algorithm available for aggregating data from data warehouse.
Already exist algorithms can be changed and new algorithms can be added into the system.
Algorithm selection will be stored in the database.

Issue:
THE ISSUE IS THAT WE NEED SOME SORT OR ARCHITECTURE OR DESIGN PATTERNS WHERE WE CAN CATER THE ABOVE MENTIONED REQUIREMENTS WITHOUT SOFTWARE RELEASE OR WITH MINIMAL SOFTWARE RELEASE BECAUSE NEW ALGORITHM WILL BE ADDED FREQUENTLY.

Please suggest.
sorry I havn't seen that you are using axis 1.4 . Please check the folder for already generated files before running the ant script again.
17 years ago
which version of axis are you using? . can you post the wsdl. this exception occured when you run the ant script more than one time and few classes generated and few of them not and you are trying to run the ant script again so you will get this error.
17 years ago
try this way FOR ORACLE 9i database , tomcat 5.0.28 , hibernate 2.x , struts 1.2 , spring don't know the version.

/**
*
* @param userId
* @param startdate
* @param endDate
* @param criteria
* @return
*/
public ListHelper getCaseCategoryDetail(final String userId,
final String category_id,
final String startDate ,
final String endDate ,
final ListCriteria criteria,
final String groupCode)
{
List list = new ArrayList();
Connection conn = null;
int fullSize = 0;
Session session = getHibernateTemplate().getSessionFactory().openSession();
try
{
conn = session.connection();
CallableStatement call = conn.prepareCall("{ call ? := human_report_pkg.GetCases(?,?,?,?,?,?,?) }");
call.setString(2 , userId);
call.setString(3 , startDate);
call.setString(4 , endDate);
call.setString(5 , groupCode);
call.setInt(6 , Integer.parseInt(category_id));
call.setString(7 , String.valueOf( (criteria.getSortColumn()+1) ));
call.setString(8 , String.valueOf(criteria.getSQLSortOrder()));
call.registerOutParameter(1 , OracleTypes.CURSOR);
call.execute();
ResultSet rset = (ResultSet) call.getObject(1);

int nextRowNum = (criteria.getPageIndex()-1) * criteria.getMaxPageSize() + 1;
int rowCount = 0;
while( rset.next() )
{
fullSize = rset.getRow();
if( fullSize < nextRowNum ) continue;
if(++rowCount> criteria.getMaxPageSize()) continue;

CaseDetailReportBean caseBean = new CaseDetailReportBean();
caseBean.setCaseId(rset.getString(1));
caseBean.setIncidentDate(rset.getString(2));
caseBean.setCaseCategoryTypeName(rset.getString(3));
caseBean.setCaseTheaterName(rset.getString(4));
caseBean.setStatus(rset.getString(5));
caseBean.setCaseManager(rset.getString(6));
caseBean.setCaseCategoryName(rset.getString(7));
caseBean.setOldCaseId(rset.getString(8));
list.add(caseBean);
}

}
catch(Exception exp)
{
exp.printStackTrace();
}
finally
{
try{
session.close();
conn.close();}catch(Exception exp){}
}
return new ListHelper( list , fullSize , criteria);
}

================================================================
ONE MORE WAY FOR PAGINATION WITH MYSQL 5.0.

/**
* This method finds all Items that contain given product name.
* @param name String Product Name
* @return List of all Items
* @throws HibernateException
*/
public static List findItemsByProduct(String name, int start, int noOfRecords) throws HibernateException {
Session session = null;
List list = null;
List itemList = new ArrayList();
SearchItemVO sIVO = null;

try {
log.debug(">>>>>>>> Finding Items By Product Name >>>>>> ");
session = DBHelper.getInstance().getSession();

/* Getting No. of Records */
String sql = "SELECT COUNT(*) FROM ITEM I WHERE UPPER(I.NAME) LIKE UPPER('%" + name + "%') AND I.ID <> 0";
System.out.println("****** sql = " + sql + " ********");
list = session.createSQLQuery(sql).list();
int count = Integer.parseInt(list.get(0).toString());
itemList.add(0, count);

sql = "SELECT I.ID, I.NAME, U.CBUSERID, L.NAME LOC FROM ITEM I, USER U, LOCATION L " +
"WHERE UPPER(I.NAME) LIKE UPPER('%" + name + "%') AND I.USERID = U.ID AND I.LOCATIONID = L.ID AND I.ID <> 0" +
" LIMIT " + start + ", " + noOfRecords;

list = session.createSQLQuery(sql).list();

for(int i=0; i<list.size(); i++) {

Object obj[] = null;
sIVO = new SearchItemVO();
try {
obj = (Object[])list.get(i);

sIVO.setItemId(new Long(obj[0].toString()));
sIVO.setItemName(obj[1].toString());
sIVO.setCbUserId(obj[2].toString());
sIVO.setLocationName(obj[3].toString());

itemList.add(sIVO);
}
catch (Exception ex) {
System.out.println("ex = " + ex);
}
}

log.debug("List Size >>>>>>>> : " + itemList.size());

}
catch (HibernateException e) {
e.printStackTrace();
}
finally {
if(session != null)
session.close();
}
return itemList;

}

====================================================================

YOU CAN ALSO CHECK THIS.

1 - Is the stored procedure name used correct?

2 - if your using parameters are they in the correct order and the correct type as expected by the procedure?
I couldn't understand your problem. You want to initialize JSP only one time. Next time when you reach this page you don't want these values.

And what is your path.

1) Browser---> JSP1 ---->Action---->JSP2(View you want to intialize one time only)

2) Browser---->Action---->JSP2(View you want to intialize one time only)
Regards.
19 years ago
AbstractList, ArrayList, LinkedList, Vector

you can sort all above list with following method.

Collections.sort(list);

Regards.
19 years ago
Can any one tell me how to swap two numbers without using third number with the help of shift operators.
Thanks
19 years ago
Thanks for reply.

Actually I want to know how they created the white Scrollable (Both horizontal and vertical) area for state space.This white area is panel or canvas where they are making states of graph.And if possible how they are animating state space.Rest of the thing I can do.
Regards.
19 years ago