Arabic values

Hi,
Am using oracle forms 10g.I need to upload arabic values into the table.
my database paramenter values ,
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET WE8MSWIN1252
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 10.1.0.2.0
Should i change the NLS_NCHAR_CHARACTERSET value? If so how?
Can u please specify the steps involved to alter the database to accept arabic values?
Thanks.

Hi,
Thanks for replying. I saw the link u specified. Its useful.
Actually, i need to add only one field which will have arabic values rest of other fields will be in english.
Altering the session will not help.
How to accomplish this?
Thanks.

Similar Messages

  • Proclem with Arabic Values

    Hi,
    I am trying to pass an arabic value from JSP input text to my action class.
    I am using JDeveloper 10.1.2. and Struts. Added "*pageEncoding="UTF8"* " in my JSP file and I am getting junk characters in my action class. What more I want t o add to get the correct arabic values in my action class.
    While running, we can see that, "ÌæÈí íæÓÝ" are the characters coming on the JDeveloper console
    Regards,
    Joby Joseph
    Edited by: jobz on May 14, 2012 5:30 AM

    Check the settings in your project properties->compile to make sure you also have UTF8 set there.

  • Encoding Arabic Values in Query String

    Hello,
    I am a new oracle developer, and I am requested to aid a .net team in integrating our 10g application with a .net application. The problem is that the .Net team has required that the Arabic values should be encoded so that their code can decode it and read the Arabic values. For a reason I think Arabic and .net application in query strings does not work it returns "????" how can I encode the Arabic word and make sure they can be able to decode it?
    Thank you so mych in advance it is really appreciated.
    Best Regards,

    Gor_Mahia wrote:
    onedbguru
    I'll revisit and marks acordingly i.e helpful but the other solution worked for me...thank you.It may have worked for you, but TABLE(XMLSEQUENCE is deprecated functionality so should be avoided.
    That's what happens when you take a 'correct' answer on face value rather than actually reading up on it and understanding if it really is a correct answer.
    The issue you have described is the "Varying IN list" issue which is commonly asked here, and Tom Kyte's blog on it is a suitable reference for dealing with it.
    Other methods are described in the FAQ: {message:id=9360009}
    You would be better to re-visit the solutions and pick one that is better, that doesn't use deprecated functionality.

  • Request.getParameter() values in servlet? Urgent

    String str=request.getParameter();
    I am facing a problem when i submit the arabic values from hidden form fields using javascript.
    In servlet when i tries to retrive the arabic values stored in the session, it displays only
    garbage values(ie. ?????????).
    How to solve this problem?
    Please clarify and if possible give some samples.
    Thanks & Regards,
    Govindaraman

    Hi Govindaraman,
    in O'Reilly's Servlet book in the internationalization section it describes how. You have to change the String returned into bytes using the proper enconding, then back into a String to it will convert to Unicode.
    The basics are this:
    String parameterName="your param name";
    String encoding = "your charset encoding on the page";
    String value = request.getParameter(parameterName);
    value = new String(value.getBytes(), encoding);
    value is now a Unicode string that should be correctly interpreted.
    You can use new String( oldString.getBytes(), encoding) to convert between charsets.

  • Displaying arabic text in jsp page

    Hi,
    Iam displaying some arabic values which will come from server in my jsp page.
    but the problem when display the values its showing rubbish like �������������
    when i select the view-->encoding from browser its showing arabic values..
    i set <meta http-equiv="Content-Type" content="text/html; charset=windows-1256"> like this in my jsp page..
    When i put the arabic text in normal .html page its working fine its displaying fine..
    when iam calling jsp page iam getting above problem..
    do i need to make any setting in server..iam using j2ee refrence server..
    Regards,

    use UTF-8 for character encoding then arabic text will display

  • JSF Internationalization in arabic

    Hi,
    i have to display JSF page in Arabic language
    I have stored properties file in arabic using UTF-8 character encoding
    and save properties file for eg messages_ar.properties
    But Jsf page is displaying garbage charaters in place of arabic value
    My JSF page contains:
    <%@ page contentType="text/html; charset=UTF-8" %>
    meta tag
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    and even set encoding on html as UTF-8
    but still no effect
    Please help me out its urgent
    Thanks
    akashikha

    Hi,
    Try this...
    when viewing in a browser, you could try setting the encoding (on the view menu normally) to arabic (ISO-8859-6).
    But I am not sure have you done it or not?
    Edited by: Sat@301177 on Feb 20, 2008 4:51 AM

  • Arabic text printing using smartfroms

    Hi,
    I' m printing Purchase oder in Arabic language , we installed Arabic supoort drivers
    in SAP system, when I see arabic values in debugging I am able to see arabic text perfectly , but when I give print or Print Preview arabic text printing as with some JUNK arabic characters , it's not printing as word.
    Please help me on this
    Thanks
    Naveen

    I am facing exactly the same problem with printing arabic text in samrtforms. I guess you the Device type in the printer settings would be set to either ARSWIN. Try changing it to I6SWIN and it should work to some extent. The arabic words should come up correctly in the print ( not in print preview). However it would print # in the start and end of the form. This is not acceptable in my case and I am still looking for a better solution. See if it helps you in some way.

  • Arabic localization changes don't change the left to right Alignment

    Hi all,
    We are using localization for our application and the supported locales (registered in faces-config.xml) are English and Arabic. When the language is changed as per user preferences , the corresponding Arabic values are read from the bundle properties, but the alignment for page and menu is not changed form left-right to right to left automatically.
    Code for locale change is given as :
    FacesContext.getCurrentInstance().getViewRoot().setLocale(new Locale(LANGUAGE_AR));
    Also tried the following entry in the trinidad-config.xml
    <right-to-left>
    #{view.locale.language=='ar' ? 'true' : 'false'}
    </right-to-left>
    Please let me know , if I am missing something to achieve the alignment change
    thanks
    JZWL

    Hi,
    Try : <fo:block text-align="right">Your text here</fo:block>
    Regards,
    Colectionaru

  • Arabic data display

    Hi,
    We use translatable valueset for capturing positions.
    Values both english and arabic have been entered for this translatable valueset.
    Positions have been created in the positions window using this valueset.
    One position has been assigned for an employee.
    When we change the arabic value from old value to new value in the valueset, the new value is not reflecting in the assignment screen.
    Kindly advise us.
    Regards
    Murugan

    Hi Hussein,
    Your Question:
    What is the application release? What is the database version and characterset?
    Ans:
    R12 (12.0.6)
    Has this ever worked?
    Ans:
    If we requery the position and edit some data and save, then the arabic value is getting reflected in the assignment screen.
    Is the issue with this form only?
    Ans:
    Job and Position screens.
    Your Question:
    Does this mean it keeps the old value? Can you reproduce the issue if you login to the English interface and use English characters?
    Ans:
    Yes. It keeps the old value (old value is getting displayed)
    Regards
    Murugan

  • How can I display Arabic text in browser

    I have MessagesBundle_ar_AE.properties file created containing key,equivalent Arabic value text. When I try to get this key value by using Bundle object.. MissingResourceException is occuring. It says can't find resource for bundle,PropertyResourceBundle for specified key, eventhough the exists in the .properties file...
    please help..

    Be sure that .property files are in the classpath.
    http://forum.java.sun.com/thread.jsp?forum=16&thread=383005

  • Corrupted arabic data

    Dear Helper,
    I develop a JSP page with UTF-8 char-encoding. This JSP Page contains a form with one text field. The form will be submited to a Servlet that will behave acording to the submited arabic value.
    The problem is when i submit the form, the data sent to the servlet corrupted.
    Please help me because every thing depends on the solution of this issue
    thanx

    i made the configuration for the import server as export server
    the nls_lang=AMERICAN_AMERICA.WE8MSWIN1252
    and chachter set AL16UTF16
    the message different with some changes
    which is
    ( import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set )
    and the data also corrupted for arabic fonts ...

  • How to submit request with default language as 'American English' in other non-english language sessions.

    Dear All,
    Kindly suggest how to submit request with default language as 'American English' in other language sessions (Ex: Arabic).
    R12: 12.1.3
    The issue is we created function using 'arabic' text in it, which runs perfect in the english session, but doesnt gets value in the arabic session.
    So we decided to make the submit request with default language as 'American English'.
    Below is the function. Kindly note that SEGMENT1 is not linked to any valueset.
    CREATE OR REPLACE FUNCTION F_GET_OLD_LEAVE(P_PERSON_ID NUMBER)
      RETURN NUMBER IS
      V_DAYS NUMBER;
    BEGIN
      select
         SUM(EXCD_DAYS)
        INTO V_DAYS
          FROM (
                SELECT
      --            NVL(SEGMENT5, 'تجاوز') Late_type,
      --             SEGMENT1 NOTES,
      --            ACTUAL_TERMINATION_DATE,
    (CASE 
    WHEN NVL(SEGMENT5,'تجاوز') not in ( 'تجاوز' ,'إجازة غير مدفوعة') and segment1 not in ('إجازة غير مدفوعة') THEN 0
    --WHEN SEGMENT1  like 'إجازة غير مدفوعة' THEN
    --TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
    --TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') +1
    when segment1 not in('بدل نقدي','إجازة غير مدفوعة') and segment4 is null then
    TRUNC(to_date(ACTUAL_TERMINATION_DATE,'DD/MM/RRRR'))- TO_DATE(to_date(SUBSTR(segment3, 1, 10),'DD/MM/YYYY'), 'DD/MM/RRRR')-1 
    when segment1 in('إجازة غير مدفوعة') and segment4 is null then
    TRUNC(to_date(ACTUAL_TERMINATION_DATE,'DD/MM/RRRR'))- TO_DATE(to_date(SUBSTR(segment2, 1, 10),'DD/MM/YYYY'), 'DD/MM/RRRR')
    WHEN SEGMENT1 <> 'إجازة غير مدفوعة' and
                TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  <
                TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') 
    THEN 0
      WHEN SEGMENT1 <> 'إجازة غير مدفوعة' and
                TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  -
                TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  <=1
    THEN 0
    WHEN SEGMENT1 like  '%بدل نقدي%' then 0
               -- TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  
      WHEN SEGMENT1 like '%إجازة سنوية%' and segment5 in( 'إجازة غير مدفوعة','تجاوز')and
                TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  -
                TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  >=2
                then
                TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  -
                TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -1
    WHEN SEGMENT1 like '%إجازة حج%' and segment5 in('إجازة غير مدفوعة','تجاوز') and
                TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  -
                TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  >=2
                then
                TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  -
                TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -1
    when SEGMENT1 LIKE '%إجازة غير مدفوعة%' AND
    TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
    TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')<=1
    THEN
    TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
    TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')
    when SEGMENT1 LIKE '%إجازة غير مدفوعة%' AND SEGMENT5 NOT IN('تجاوز','إجازة غير مدفوعة') AND
    TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
    TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')>=2
    THEN
    TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
    TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')+1
    when SEGMENT1 LIKE '%إجازة غير مدفوعة%' AND SEGMENT5  IN('تجاوز','إجازة غير مدفوعة') AND
    TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
    TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')>=2
    THEN
    TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
    TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')
    WHEN
               EXTRACT(YEAR FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR'))  <>
               EXTRACT(YEAR FROM TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) 
    THEN
       TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'),'DD/MM/RRRR') -
       TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'),'DD/MM/RRRR') - 2
    WHEN 
            to_char(to_date(SUBSTR(SEGMENT3, 1, 10),'YYYY/MM/DD'),'DD/MM/YYYY') =
            to_char(to_date(SUBSTR(SEGMENT4, 1, 10),'YYYY/MM/DD'),'DD/MM/YYYY')
            THEN  0
    WHEN
    EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR'))= 31
      THEN
         TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
      TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')-1
    --------------------------------------------when enddate is NULL---------------------------------------------------------------------------------
    -- WHEN segment3 IS NULL THEN round(TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'),'DD/MM/RRRR') -
    --  TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'),'DD/MM/RRRR'))
    WHEN segment3 IS NULL THEN ((EXTRACT(MONTH FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) -
            EXTRACT(MONTH FROM TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR'))) * 30) +
             (EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) -
            EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')))
    -----***********************************when segment1**********************************--------------------------
    WHEN SEGMENT1  like '%صادف%' THEN ((EXTRACT(MONTH FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) -
            EXTRACT(MONTH FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR'))) * 0) +
             (EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) -
            EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')))
      WHEN 
        EXTRACT(YEAR FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) =
        EXTRACT(YEAR FROM TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR'))
    THEN
          ((EXTRACT(MONTH FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) -
            EXTRACT(MONTH FROM TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR'))) * 30) +
           (EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) -
            EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')))-1
             ELSE 0
             END )EXCD_DAYS
                 FROM HR.PER_ANALYSIS_CRITERIA C,
                   PER_ALL_PEOPLE_F         PPF,
                    PER_PERIODS_OF_SERVICE PPPS,
                   PER_PERSON_ANALYSES      T ,
                   fnd_id_flex_structures_vl f
                 WHERE 1 = 1
               AND T.ANALYSIS_CRITERIA_ID = C.ANALYSIS_CRITERIA_ID
               AND PPF.PERSON_ID = T.PERSON_ID
               and ppps.PERSON_ID=ppf.person_id(+)
              and   ppps.ACTUAL_TERMINATION_DATE           BETWEEN  ppf.effective_start_date and nvl(ppf.effective_end_date, to_date('31/12/4712', 'DD/MM/YYYY'))
              -- AND C.ID_FLEX_NUM = 50318
               and c.id_flex_num = f.id_flex_num
        AND f.id_flex_code = 'PEA' 
          and f.ID_FLEX_STRUCTURE_NAME =  'XX_Old_Leave_Details'
        AND PPF.person_id = P_PERSON_ID
    AND T.DATE_FROM>=( select
    TO_DATE(to_date(SUBSTR(xx.global_value, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')
    FROM
    ff_globals_f xx
    where xx.GLOBAL_NAME='XX_NEW_LEAVES_DATE_FROM'
    AND SYSDATE BETWEEN XX.EFFECTIVE_START_DATE AND XX.EFFECTIVE_END_DATE)
    and substr(c.segment1,1,10)>=
               select substr(xx.global_value,1,10)
    FROM
    ff_globals_f xx
    where xx.GLOBAL_NAME='XX_NEW_LEAVES_STD'
    AND SYSDATE BETWEEN XX.EFFECTIVE_START_DATE AND XX.EFFECTIVE_END_DATE
      RETURN NVL(V_DAYS, 0);
    EXCEPTION
      WHEN OTHERS THEN
        RETURN 0;
    END;
    Thanks in Advance.
    Regards,
    Afzal.

    Dear All,
    I found the solution for the above function.
    In the same function I removed the static arabic values replacing with code values from the value set.
    In my scenario there is a value set where some of these values exists, and other we can add there.
    Kindly let me know if someone was successful by using the arabic text in the coding and defaulting the language in conc prog as English.
    Thanks a lot.
    Regards,
    Afzal.

  • Sending non-English parameters vlaues to rwservlet for a pdf reports

    Hi friends,
    I have developed a report which I open through calling rwservlet from an HTML form posting all form inputs to the rwservlet to use as parameters to my report.
    The problem arises when I try to pass non-English (Arabic) values, the report comes out but the passed Arabic values appear corrupted in the PDF file, Although other boilerplate Arabic fields appear very well.
    The proplem is with the values I pass dynamically when posting to rwservlet not with static Arabic boilerplates!
    thanks for help.

    Fonts are defined in the template you use to generate the pdf. Your application add the data and both is processed yb the FOP processor. Now there are two possible causes of the '???' :
    1. the data you sent to the template contains the '???' already
    2. the template can't digest the data (the special characters) and puts '???' in the pdf.
    Before going on you have to find out which one is your problem. The 2nd is the problem you better ask this in a FOP forum as you have to solve it by changing the template.
    Timo

  • Lov+shortcut of report 6i on user desktop

    hi all
    i have created a formletter type of report in arabic using  reports 6i
    the content is coming fine ,i mean the arabic data from database
    like employee name ,employee designation in arabic is coming fine,
    i require to create an Lov on the companies this certificate can be submitted
    the issue is i am able to enter  values in LOV in arabic ,but when the report is run the user is able to see only garbage vales in Lov
    when any one value is picked  from Lov  and the report is run the corresponding garbage value gives the correct arabic value
    how can i let the user see arabic values in LOV?
    also please guide me on how to create a shortcut of this report on the user's desktopthanking in advance
    Edited by: makdutakdu on Mar 23, 2010 10:23 AM

    Take a look at these: http://blogs.oracle.com/roller-ui/bsc/spider.jsp?entry=MT%3aENTRY%3a5029
    The other option is to use the security set up via Answerrs (subject area) and use the OBIEE data source to generate data for the LOVs..
    Thanks,
    Bipuser

  • Cmis search using optionkey

    dear all
    i am content presenter and search content using cmis query .
    i have multi-value field inside ucm and its filled in Arabic values when i try to search in arabic its not working
    so i need to search ucm using option-key value
    any suggestions
    best regards

    1st select list (parent) is emptied and then the child select list only displays the return valuewould suggest that 1 select is not saved to session while the second is saved, but its query doesn't include that set value(probably because query which uses the parent select list return no records). Check the session state(session buton in developer toolbar in the footer) everytime the page is refreshed(submitted,reloaded etc).
    <li> How is the submit performed after you choose both the fields ?
    DO you have a branch that reset any of these items, or does the second select do a redirection(and did not set the first)
    If you are on Apex 4, Cascading lov is builtin using ajax and you don't have to reload or submit the page when working with parent-child LOV's

Maybe you are looking for