Org model by State & Zip code - ORGMAN_7 - set default if no entry
Orgman_7 10000164 works well for us. But if no country, state, zip code is found it errors as no org object is found.
How can I set a default org if no country state zip is found?
in CRMC_ORGPROF I set 10000164 as the org model determination rule, then I tried to create a responsibilitiy rule based on document type and added the document type as an attribute in the org model but did not work.
Thanks,
Glenn
Hi Ashish,
In PPOMA_CRM for the organizational elements that represent our sales offices we maintain the Country, State, & Postal Codes (some have hundreds of entries as some states have multiple sales offices in territory, but a single sales office controls a single postal code).
A new customer calls our ICWC and we create a new BP, using ORGMAN_7 works well when the state & zip code exist as an attribute. It finds that sales office and sales org it is assigned to.
If no entry is found, then the ICWC user gets numerous error messages all related to no organization being found. If an order is created it fails to pass to R/3 until we correct the document. Usually done in the GUI as there is no place in the ICWC to update the sales org.
Basically looking to have a dummy office get found if no entry is found in ORGMAN_7. This would allow the order to pass to R/3 and then we could more easily work entries that his the dummy office (update PPOMA_CRM when a bad zip or state combo is entered.) Sometimes is a typo on the user in creating the BP record.
Thanks,
Glenn
Similar Messages
-
City, State Zip-code line...
Hi...
New here... Version 8.2.3 running in SAP.
Want to format a single address line from 4 individual fields... City, State Zip-code
Want the City, seperated from the State by a comma and 1 space.... and State seperated from the Zip-code by 1 space.
Examples...
Boston, MA 07884
Fountain Valley, CA 76877
How to do this in the form Layout?
In the Object Layout tab... I set the fields to "Expand to fit" in the width direction... but the City overlays the State...
I do not want... Boston, MA 07884 to accomodate longer City names.
For now... I format the single address line in the Interface ABAP code.
Thanks,
Dave T...Hi DaveT,
For starters you do not need to set the binding to None (Object > Binding palette). I had this in the example, because originally I didn't want the field to take part in the import XML.
When dealing with data, more often than not you really do want the objects set with a binding.
Using $record are you accessing the imported XML or a data connection? If so I would set up the data connection first and then bind the appropriate fields to that data connection.
The XFA Specification may help: http://partners.adobe.com/public/developer/xml/index_arch.html.
Hope that helps,
Niall -
City, state & zip-code DB
Hi,
Is there a free city, state and zipcode database available for US ?
Basically what I want is that I have two drop downs, 1 for state, 2 for city.
If a state is selected, cities for that state get populated from this database.
In the same way, if a zip code is entered, both the cities and state get populated from this db.
Thanks for all the help !Not that I know of....
-
Values not showing up for 3 digit zip code maps of states
I've been tinkering with an app that displays the US, with a query that shows how many folks we have in each state. The link takes you to a page that displays the state/zip code style map. On the map of the US, I can see the label and the value from the query for all states. But in the state map, all that shows up are the labels. I have the map set to show values, but they won't display.
I'm using APEX 4.0.1 in a 10.2.0.4 database running on Windows.
Any thoughts?Hi mjblake,
The Map Region columns (i.e. REGION_NAME, REGION_ID, etc) can vary for each Map source .amap file. So it's definitely worth referencing the AnyChart Map Reference Information when you're adding your map series query, to ensure that your query is referencing data that's actually contained in your chosen .amap file.
By default, the wizard will set the "Map Region Column" to REGION_NAME, as this the default AnyChart column. However, some maps, like the US State Zipcode maps, don't actually have a REGION_NAME column in their data, which is why you would need to update the "Map Region Column" on the Map Attributes page to your chosen column e.g. REGION_ID. In the case of the US State Zipcode maps, the available columns are REGION_ID, CENTROID_X and CENTROID_Y, as shown in this example: http://anychart.com/products/anychart/docs/users-guide/map_reference/United-States-of-America-3-digit-ZIP-Code-Maps-for-All-50-States-Alabama-Flash-Map.html?fromtree. You may not be aware of this, but when stepping through the Create Map wizard, on the 'Query' page, there's a Show/Hide region called "Map Region Information", which displays the AnyChart information associated with your selected map.
Regards,
Hilary -
I am trying to set up my new Iphone 4 and download apps. I made an Apple Id which is all good. But when I try and enter in my credit card info it keeps asking for my Zip code and state. I live in Canada not US. I changed the phone to Canadian but it still keeps asking for it and won't let me put in my right information which in turn won't let me download any apps. Can anyone help?
Postal & Zip codes are same. Just enter postal code without space. It will accept.
-
Retrieve city and state from zip code that is entered by user
I am trying to use AJAX to retrieve city and state from a table based on a zip code that is entered by the user. Two are text fields (zip code and city) and one is a SELECT field (state).
1. I defined an application item called TEMPORARY_APPLICATION_ITEM.
2. I defined an application process called SET_CITY_STATE as follows:
a. Process point: on demand
b. type: anonymous block
c. process text:
<pre>
DECLARE
v_city VARCHAR2 (100);
v_state VARCHAR2 (2);
CURSOR cur_c
IS
SELECT city, state
FROM ZIP
WHERE zip = v ('TEMPORARY_APPLICATION_ITEM');
BEGIN
FOR c IN cur_c
LOOP
v_city := c.city;
v_state := c.state;
END LOOP;
apex_util.set_session_state('P2_CO_CITY',v_city);
apex_util.set_session_state('P2_CO_STATE',v_state);
EXCEPTION
WHEN OTHERS
THEN
apex_util.set_session_state('P2_CITY','Unknown city');
apex_util.set_session_state('P2_STATE',null);
END;
</pre>
3. Javascript is defined in the region header:
<pre>
<script language="JavaScript" type="text/javascript">
<!--
function pull_city_state(pValue){
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
'APPLICATION_PROCESS=Set_City_State',0);
if(pValue){
get.add('TEMPORARY_APPLICATION_ITEM',pValue)
}else{
get.add('TEMPORARY_APPLICATION_ITEM','null')
gReturn = get.get('XML');
get = null;
//-->
</script>
</pre>
4. In the HTML Form Element Attributes of the P2_CO_ZIP text item: onchange="pull_city_state(this.value)";
The city and state are not being populated. I checked the select statement and it is retreiving the city and state in SQL WORKSHOP > SQL COMMANDS.
I would like to use it for the mailing address as well, so I would need to make the application process / javascript a bit more generic to be used in two places.
I placed the application on apex.oracle.com:
Workspace: RGWORK
Application: Online Certification Application (28022)
Can someone assists, please.
Thank you,
Robert
Edited by: sect55 on Jun 2, 2009 4:11 PMHi Robert,
Try using XML instead of session state -
Change the application on demand process with the following script -
>
DECLARE
v_city VARCHAR2 (100);
v_state VARCHAR2 (2);
CURSOR cur_c
IS
SELECT city, state
FROM ZIP
WHERE zip = v ('TEMPORARY_APPLICATION_ITEM');
BEGIN
FOR c IN cur_c
LOOP
v_city := c.city;
v_state := c.state;
END LOOP;
OWA_UTIL.mime_header ('text/xml', FALSE);
HTP.p ('Cache-Control: no-cache');
HTP.p ('Pragma: no-cache');
OWA_UTIL.http_header_close;
HTP.prn ('<body>');
HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
HTP.prn ('<item id="P2_CO_CITY">' || v_city || '</item>');
HTP.prn ('<item id="P2_CO_STATE">' || v_state || '</item>');
HTP.prn ('</body>');
EXCEPTION
WHEN OTHERS
THEN
OWA_UTIL.mime_header ('text/xml', FALSE);
HTP.p ('Cache-Control: no-cache');
HTP.p ('Pragma: no-cache');
OWA_UTIL.http_header_close;
HTP.prn ('<body>');
HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
HTP.prn ('<item id="P2_CITY">' || 'Unknown city' || '</item>');
HTP.prn ('<item id="P2_STATE">' || '' || '</item>');
HTP.prn ('</body>');
END;
>
in your javascript make sure you typing the application process name correctly as it is case sensitive.
Hope this helps,
Regards,
M Tajuddin
web: http://tajuddin.whitepagesbd.com -
Using AJAX to load city, state, metro area based on zip code
I'm new to getting APEX to work with AJAX properly. I've been reading some tutorials and trying to apply what they do to my situation, but I'm running into a problem. I have a text field item for zip code. What I want to happen is that when someone enters in a zip code, I want to use AJAX to populate 3 different select lists (1 each for state, city, and metro area) and to populate a checkbox (of neighborhoods based on the zip code as well). I'm looking at the examples in:
http://www.oraclealchemist.com/wp-content/uploads/2006/11/s281946.pdf
and
http://apex.oracle.com/pls/otn/f?p=11933:63
But they all use examples where the value of a text field item is used to populate 1 select list. I can't figure out how to apply that methodology to populate 3 select lists and 1 checkbox item. I've got all my SELECT statements written to populate these fields based on the value of the zip code text field item, but don't know how to convert what I already have to use AJAX.
Here are my SELECT statements:
P2805_STATE lov:
===========================================================================================
SELECT INITCAP(GEO_DATA_STATE.STATEFULLNAME) d,GEO_DATA_STATE.STATE v
FROM GEO_DATA_STATE, GEO_DATA_ZIP
WHERE isPrimary = 'P' and
trim(upper(GEO_DATA_ZIP.STATE)) = trim(upper(GEO_DATA_STATE.STATE)) and
GEO_DATA_ZIP.ZIPCODE = :P2805_ZIPCODE
ORDER BY STATEFULLNAME
P2805_CITY lov:
===========================================================================================
SELECT UNIQUE (INITCAP(GEO_DATA_CITY.CITY)) d,GEO_DATA_CITY.CITY v
FROM GEO_DATA_STATE, GEO_DATA_ZIP, GEO_DATA_CITY
WHERE
trim(upper(GEO_DATA_ZIP.STATE)) = trim(upper(GEO_DATA_STATE.STATE)) and
trim(upper(GEO_DATA_ZIP.CITY)) = trim(upper(GEO_DATA_CITY.CITY)) and
GEO_DATA_ZIP.ZIPCODE = :P2805_ZIPCODE
ORDER BY GEO_DATA_CITY.CITY
P2805_METRO_AREA lov:
===========================================================================================
SELECT UNIQUE (INITCAP(GEO_DATA_METRO.METRO_AREA)) d,GEO_DATA_METRO.CODE v
FROM GEO_DATA_STATE, GEO_DATA_ZIP, GEO_DATA_METRO
WHERE
trim(upper(GEO_DATA_ZIP.STATE)) = trim(upper(GEO_DATA_STATE.STATE)) and
trim(upper(GEO_DATA_ZIP.METROCODE)) = trim(upper(GEO_DATA_METRO.CODE)) and
GEO_DATA_ZIP.ZIPCODE = :P2805_ZIPCODE
ORDER BY 1
P2805_NEIGHBORHOOD lov:
===========================================================================================
SELECT UNIQUE (INITCAP(GEO_DATA_HOOD.HOOD)) d,GEO_DATA_HOOD.HOOD v
FROM GEO_DATA_STATE, GEO_DATA_ZIP, GEO_DATA_METRO, GEO_DATA_HOOD
WHERE
trim(upper(GEO_DATA_ZIP.STATE)) = trim(upper(GEO_DATA_STATE.STATE)) and
trim(upper(GEO_DATA_ZIP.METROCODE)) = trim(upper(GEO_DATA_METRO.CODE)) and
GEO_DATA_HOOD.METRO_CODE = GEO_DATA_METRO.CODE and
GEO_DATA_ZIP.ZIPCODE = :P2805_ZIPCODE
ORDER BY 1Do all these statements need to go in 1 on-demand process? Where do I go from here?Andy, cool. This is starting to make more sense. THANKS A BUNCH! OK. I've gone ahead and modified the on demand process to suit my needs, so I have:
begin
owa_util.mime_header('text/xml', FALSE );
htp.p('Cache-Control: no-cache');
htp.p('Pragma: no-cache');
owa_util.http_header_close;
-- Building States list
htp.prn('<SELECT>');
FOR i in (
SELECT INITCAP(GEO_DATA_STATE.STATEFULLNAME) d, GEO_DATA_STATE.STATE v
FROM GEO_DATA_STATE, GEO_DATA_ZIP
WHERE isPrimary = 'P' and
trim(upper(GEO_DATA_ZIP.STATE)) = trim(upper(GEO_DATA_STATE.STATE)) and
GEO_DATA_ZIP.ZIPCODE = :P2805_ZIPCODE
ORDER BY STATEFULLNAME
LOOP
htp.prn('<OPTION VALUE=''' || i.v || '''>' || i.d || '</OPTION>');
END LOOP;
htp.prn('</SELECT>');
-- Building Cities list
htp.prn('<SELECT>');
FOR i in (
SELECT UNIQUE (INITCAP(GEO_DATA_CITY.CITY)) d, GEO_DATA_CITY.CITY v
FROM GEO_DATA_STATE, GEO_DATA_ZIP, GEO_DATA_CITY
WHERE
trim(upper(GEO_DATA_ZIP.STATE)) = trim(upper(GEO_DATA_STATE.STATE)) and
trim(upper(GEO_DATA_ZIP.CITY)) = trim(upper(GEO_DATA_CITY.CITY)) and
GEO_DATA_ZIP.ZIPCODE = :P2805_ZIPCODE
ORDER BY GEO_DATA_CITY.CITY
LOOP
htp.prn('<OPTION VALUE=''' || i.v || '''>' || i.d || '</OPTION>');
END LOOP;
htp.prn('</SELECT>');
-- Building Metro Area list
htp.prn('<SELECT>');
FOR i in (
SELECT UNIQUE (INITCAP(GEO_DATA_METRO.METRO_AREA)) d, GEO_DATA_METRO.CODE v
FROM GEO_DATA_STATE, GEO_DATA_ZIP, GEO_DATA_METRO
WHERE
trim(upper(GEO_DATA_ZIP.STATE)) = trim(upper(GEO_DATA_STATE.STATE)) and
trim(upper(GEO_DATA_ZIP.METROCODE)) = trim(upper(GEO_DATA_METRO.CODE)) and
GEO_DATA_ZIP.ZIPCODE = :P2805_ZIPCODE
ORDER BY 1
LOOP
htp.prn('<OPTION VALUE=''' || i.v || '''>' || i.d || '</OPTION>');
END LOOP;
htp.prn('</SELECT>');
-- Building Neighborhood list
htp.prn('<SELECT>');
FOR i in (
SELECT UNIQUE (INITCAP(GEO_DATA_HOOD.HOOD)) d, GEO_DATA_HOOD.HOOD v
FROM GEO_DATA_STATE, GEO_DATA_ZIP, GEO_DATA_METRO, GEO_DATA_HOOD
WHERE
trim(upper(GEO_DATA_ZIP.STATE)) = trim(upper(GEO_DATA_STATE.STATE)) and
trim(upper(GEO_DATA_ZIP.METROCODE)) = trim(upper(GEO_DATA_METRO.CODE)) and
GEO_DATA_HOOD.METRO_CODE = GEO_DATA_METRO.CODE and
GEO_DATA_ZIP.ZIPCODE = :P2805_ZIPCODE
ORDER BY 1
LOOP
htp.prn('<OPTION VALUE=''' || i.v || '''>' || i.d || '</OPTION>');
END LOOP;
htp.prn('</SELECT>');
end;It doesn't look like I would have to modify the appendToSelect function at all, correct? Is the checkbox that I need to populate handled the same way as these select lists? And it seems like I only need to make the 2 changes that you mentioned to get_AJAX_SELECT_XML function, right? So my javascript function should be like:
<script language="JavaScript1.1" type="text/javascript">
function get_AJAX_SELECT_XML(pThis,pSelect1,pSelect2,pSelect3,pSelect4){
if (document.getElementById('P2805_ZIPCODE').value.length == 5)
var l_Return = null;
var l_Select1 = $x(pSelect1);
var l_Select2 = $x(pSelect2);
var l_Select3 = $x(pSelect3);
var l_Select4 = $x(pSelect4);
var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=otn_Select_XML',0);
get.add('TEMPORARY_ITEM',pThis.value);
gReturn = get.get('XML');
var sels = gReturn.getElementsByTagName("select");
if(gReturn && l_Select1){
var l_Count = sels[0].getElementsByTagName("option").length;
l_Select1.length = 0;
for(var i=0;i<l_Count;i++){
var l_Opt_Xml = sels[0].getElementsByTagName("option");
appendToSelect(l_Select1, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
if(gReturn && l_Select2){
var l_Count = sels[1].getElementsByTagName("option").length;
l_Select2.length = 0;
for(var i=0;i<l_Count;i++){
var l_Opt_Xml = sels[1].getElementsByTagName("option")[i];
appendToSelect(l_Select2, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
if(gReturn && l_Select3){
var l_Count = sels[2].getElementsByTagName("option").length;
l_Select3.length = 0;
for(var i=0;i<l_Count;i++){
var l_Opt_Xml = sels[2].getElementsByTagName("option")[i];
appendToSelect(l_Select3, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
if(gReturn && l_Select4){
var l_Count = sels[3].getElementsByTagName("option").length;
l_Select4.length = 0;
for(var i=0;i<l_Count;i++){
var l_Opt_Xml = sels[3].getElementsByTagName("option")[i];
appendToSelect(l_Select4, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
get = null;
</script>
And then since all 4 items (3 select lists and 1 checkbox item) are populated based on the value inputted in the text field item, I would only need to add the following to the html form element attribute of my text field item, right?
onKeyUp="javascript:get_AJAX_SELECT_XML(this,'P2805_STATE','P2805_CITY','P2805_METRO_AREA','P2805_NEIGHBORHOOD');"Denes, thanks for the example. It seems like what I need to do is somewhere inbetween what you have and what's in the example on http://apex.oracle.com/pls/otn/f?p=11933:37. I have 3 select lists and 1 checkbox item that should all be populate depending on the value entered for the text item. Do I still need to split everything up then into a function and an on demand process for each select list and checkbox? -
Auto-populate city and state based on zip code?
Based on the zip code entered, can the form auto-populate the city and state in another field?
Formscentral doesn't support this type of relational type of functionality.
Andrew -
How to set columns for Zip Codes?
I am new to iMac and in my first week using trial version of Numbers. I work in sales and we do lots of mailings using merging of data and addresses for post cards, labels, etc.
I cannot see how to set columns to a zip code setting. All zips entered beginning with a 0 drop the front 0. I tried calling the column as Text, but it did not help. I can type a ' in from of the 0 and it works, but this takes an insane amount of time and will not work for us.
How do you deal with Zip Codes? Are there labeling options for mailing built into Numbers? I really want to dump all MS products but will have to drop mac and return buy Office if this is not correctable.
Thank you,
BrownieHello
Setting the column format to text do the trick on my french version too.
With AppleWorks, I was accustomed to use a zeroSlashed so it remained in my zip codes when I moved codes here and there.
Yvan KOENIG (from FRANCE jeudi 13 septembre 2007 17:44:38) -
Trying to change Shipping and Delivery address for one in the US, from Canada, and can't do it. State and zip code appears in red but no change in country name. Using French (Canada) iPhoto app.
Larry's right, You can still use your credit card, you just need to change the "billing address" to the recievers address. It gets billed to your CC and delivered to the US
-
I need help drawing a state map that highlights demographic data by zip code and county
I'm trying to draw a map of Florida that highlights some data I've collected. I need to be able to show distinctions between/among counties and zip codes. The "make a map of geographic data" video didn't really help me, as it gave no instructions on how to find the blank map in the first place.
Any help, please? Thanks
Make a map of geographic data | Adobe for Academics | Adobe TVgoogle or equivalent. how did illustrator give you that impression? it's for creating content, generally, not a clipart library.
edit: there are several here with county boundaries that you could probably convert to your needs:
Category:SVG maps of Florida - Wikimedia Commons -
Hi guys,
Ok, I've had a project dumped on me that is ridiculously
complicated given my level of ability. I've explained to them that
I am NOT the guy for this. They're in a real jam though, so while
they're trying to find someone else I told them I'd see what I can
do.
Basically, it's a political action page. You watch a short
flash video, then click a button to send email to the candidates
running to represent you. It's been built (kind of) using PHP by
someone else, but has so many bugs (and I don't know anything about
PHP) that I think my only hope is to try and re-write the whole
thing in Coldfusion (which I know the basics of).
Thankfully the mySQL database is already done and working. I
just need to build the pages. The real sticking point: on the "tell
a candidate" page, they want a user to fill out their street
address, click a button, and have the application automatically
find their full zipcode and then display a page listing the
candidates running to represent that district (this is limited to
one state, thank god).
I can handle the database-driven stuff to return email links
for their candidates (I think)... but how can I use Coldfusion to
find a person's full zipcode based on their street address?
Thanks for ANY ideas... the more dumbed-down the better!
JoeIt's no big deal, StearmanDriver. You already have a good
solution. Yahoo!
All you have to do is
get a
Yahoo App ID. You can then use it with, for example, the cfhttp
tag to get the zip code. The service is free, too.
Suppose your Yahoo App ID is
vmuNNhtDEr32Ms8pmwEyvoAdClQQabcploMMth2iY_GXMK456Mruav56P09iuQk7.BBFtC--.
(This is a fake ID I've just created to illustrate the process. But
it is similar to the one Yahoo will send you.) Suppose also that
you wished to know the zip code of the Hilton Garden Inn Hotel in
Commercial Street, Portland, Maine.
The result, cfhttp.FileContent, is a short XML document.
However, it gives you more bang for your buck
(see actual result below). It includes, besides the zip, the
latitude and longitude of the place.
To get the zip code, simply parse the XML. The complete code
is something like the one below.
actual result, cfhttp.fileContent:
<?xml version="1.0" ?>
<ResultSet xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:yahoo:maps" xsi:schemaLocation="urn:yahoo:maps
http://api.local.yahoo.com/MapsService/V1/GeocodeResponse.xsd">
<Result precision="address">
<Latitude>43.657646</Latitude>
<Longitude>-70.250313</Longitude>
<Address>65 Commercial St</Address>
<City>Portland</City>
<State>ME</State>
<Zip>04101-4703</Zip>
<Country>US</Country>
</Result>
</ResultSet>
<!-- ws07.search.re2.yahoo.com compressed/chunked Sun Oct
5 00:10:51 PDT 2008
--> -
CER 8.5 unable to put in Canada Zip code
Hi,
I've a client running CER 8.5 on VMWare. The System Locale is set to "United States".
Client is adding an ALI for Canada but the ZIP code and ZIP code extension are not taking the valid canadian Zip codes which are Alpha Numberic.
For example, one of the Valid Canadian Zip Code is: L6M2W1, when client tries to put it in, he gets the followoing message:
"Please enter a valid numeric value for Zip Code".
As per the CER 8.5 Administration guide, the Zip Code and Zip Code extension fields will take following values:
Zip Code ----- The postal zip code for the address. ---- You are limited to 5 characters.
Zip Code Extension --- The postal zip code "plus four" number. ---- You are limited to 4 digits.
The country Code and State are correctly set to CA/ON but still same error. Trying to update the existing ALIs are also throwing the same error.
I am not sure what version they were running earlier, but he did say he never had this issue in previous CER version.
Has someone else noticed it and is aware of any possible fix for it? Or client needs to change the Locale from "United States" to "Canada" to fix it?
Thanks in advance,
KapilThanks for your time replying.
I figured it out and asked the client to ignore it.
Not sure if he is going to like it, but what's Cisco's say on it?
If I get it somewhere documented clearly that it's meant only for United States locations, it'll make things clear.
Thanks,
Kapil -
PBS - zip code does not work for activation
Hi.
I am trying to activate PBS, but when I have to choose a zip code / state I always end up with the same result whatever choice I am making:
"There are no stations available for your selected zip code."
Does anyone know the trick to get through it?
Thanks
PeteI have installed the Java 2 SDK Standard Edition
v1.3.1_01. I have set the path in the
autoexec.bat file.What have you set the CLASSPATH to? It should be ".;%JAVA_HOME%\jre\lib\rt.jar". It looks like the CLASSPATH is wrong, so java can't see the class in the current directory. :-/
Bhav -
Java.lang.ClassCastException: org.model.Question
I'm trying to typecast a list of question Objects to Object StudyQuestionPage. Im doing this becase i want to set the list of question to its boolean validate property to validate the return of validate. Im getting a typecast error:
[ROOT] ERROR [http-8080-1] DispatcherUtils.serviceAction(237) | Could not execute action
java.lang.ClassCastException: org.model.Question
at org.webapp.action.DemogAction.saveQuesOrder(DemogAction.java:1147).
Here is the code of what im doing:
questionsList = demogManager.getQuestions(sqp);
for(Object sqpTemp:questionsList){
questionTemp = (StudyQuestionsPage)sqpTemp; <---- /* im getting the line error here*/
questionTemp.setValidate(validate);
studyPageManager.saveStudyPage(sqp);
}shendel wrote:
I'm trying to typecast a list of question Objects to Object StudyQuestionPage. Im doing this becase i want to set the list of question to its boolean validate property to validate the return of validate. Im getting a typecast error:
[ROOT] ERROR [http-8080-1] DispatcherUtils.serviceAction(237) | Could not execute action
java.lang.ClassCastException: org.model.Question
at org.webapp.action.DemogAction.saveQuesOrder(DemogAction.java:1147).Okay so?
You don't have a StudyQuestionPage you have an org.model.Question. If StudyQuestionPage extended org.model.Question then you could, but it doesn't so you can't.
Maybe you are looking for
-
Can't get iTunes to work with 2 User Accounts
I've tried to find my specific problem on previous threads but it seems that each situation is just a little different. I have two user accounts on my family shared Windows XP Home edition PC. Last week I installed my son's iPod/iTunes using the inst
-
Want to understand the Difference between Attempt sign in and sign in in Unity Connection
I would like to understand the difference between Attempt sign in and sign in in Unity Connection. If I do a direct routing rule to attempt sign in and another routing rule directly to sign in, what would be the difference for the caller (inside call
-
Problem with full screen resoultion adjustment
import java.awt.*; import java.applet.*; import javax.swing.*; import javax.swing.event.*; import java.awt.event.*; public class StartClass extends JFrame public static void main(String[] args) JFrame f = new JFrame(); Breako
-
Create Oracle Text Index from Java via JDBC
Hi, I have a question relevant to creation of the Text Index in Oracle Text via Java JDBC. In Java I create client application and I connect to remote Oracle server. (there is Oracle 10g Enterprise Edition 10.2.0.3.0 on Debian Linux OS). In Java I cr
-
Sales Productions error!!
Guys did you know on the App Store, Numbers is in the Top Free categories BUT you still have to pay for it.... Apple are not advertising their products to the true value. They should give it to us for FREE if it in the Top Free categories!!