| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
Greetings! How do I format my array of raw rows of SQL results using a formatter in a WORepetition? Here is my function: public void fetchSixtyEx() {
Session s = ((Session)session()); String sql = new String("select distinct DNS_NAME, WARRANTY_EXP_DATE, MODEL_TYPE, WARRANTY_TYPE, IP, VENDOR, MODEL, TAG, SERIAL_NUMBER from server_mgmt_db.SERVER,a_db.V_DEVICE"); sql += " where SERVER.DEVICE_FK = V_DEVICE.DEVICE_ID"; sql += " and SERVER.WARRANTY_EXP_DATE < SYSDATE+60 and SERVER.WARRANTY_EXP_DATE>=SYSDATE"; NSArray results = EOUtilities.rawRowsForSQL(session().defaultEditingConte setM_strDvDepts((NSArray) results); } This is my error: Error: java.lang.IllegalArgumentException: While trying to set the field "server" on an object of type ViewServerReport we expected a Server but received a
com.webobjects.foundation
This often happens if you forget to use a formatter. However, I am using a formatter - well .. I am using a WORepetition, with list attribute defined with a "m_strDvDepts" binding, and item attribute with a "server" binding. In this repetition, I am trying to retrieve string "server.dnsAlias". I tried putting in string "DNS_ALIAS" (as retrieved from the sql query) but to no avail. How can I get my WORepetition to properly format the results of my SQL query? How do I get the object keys for DNS_NAME, WARRANTY_EXP_DATE, MODEL_TYPE, WARRANTY_TYPE, VENDOR, MODEL, TAG, SERIAL_NUMBER to be displayed? Thank you for helping me. Any advice and guidance is greatly appreciated! Best regards, Janice |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden This email sent to email@hidden
| References: | |
| >irritating build results window (From: Markian Hlynka <email@hidden>) | |
| >Re: irritating build results window (From: Chris Espinosa <email@hidden>) | |
| >Re: irritating build results window (From: Rob Lockstone <email@hidden>) | |
| >Re: irritating build results window (From: Scott Tooker <email@hidden>) | |
| >XCode, next release... (From: Dix Lorenz <email@hidden>) | |
| >Re: XCode, next release... (From: Tony <email@hidden>) | |
| >Re: XCode, next release... (From: "Sean McBride" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.