JSON decoder decode is not working

I'm using flash builder 4.
The code below doesn't work nor it gives any form of errors.
import com.adobe.serializers.json.JSONDecoder;
var s:String="{hours:16, minutes:9, seconds:2}";
var obj:Object=j.decode(s);
Alert.show(obj.hours.toString());

I am using Flash CS5 and I have the same problems.
private function fetchUserInfo(data: Object): void {
    try{
           var arr:Array = JSON.decode(String(data));
      catch(e:Error){
            atext.appendText("error occured");
Error is always being caught.

Similar Messages

  • DVD Decoder Card Not Working

    I have a lombard 333 that I have a dvd decoder card installed in. It also has a dvd drive. When I put a dvd in, it shows up on the desktop and seems to work fine, but when the dvd player opens it says the dvd player is not compatible with this machine. The decoder card shows up in the toolbar at the top of the screen. I tried other dvd drives with no luck. I also put the card and dvd drive in another lombard 333 which did the same thing. I have used the lombard and card before to play dvd's with no problem, now it does not work. What is wrong? Could my card have gone bad? Is there a way I can fix it? Thanks

    Mac,
    Unfortunately, no version of OSX supports DVD Player on the Wallstreet or Lombard. I am assuming you are booting into OSX since you have listed 10.4.8 as your OS. The only workaround is to boot into 9.x to play DVDs.

  • DECODE does not work with alphabetic data in ODER BY clause

    The following ORDER BY clause works when no parameters are involved. The data in the columns is alphanumeric. The first column is NUMBER in the Oracle database. The second is VARCHAR2. The last two are CHAR. It works fine with alphabetic and alphanumeric information in the last 3 columns.
    ORDER BY
         lin_itm_nr, eng_draw_nr, cage_cd, furn_meth_cd
    However, when a DECODE is used to sort by just one field only, using the :TheSortCriteria paramater, Oracle Reports gives a "ORA-01722 invalid number ==> column-name" error where column-name is a column where the data is not all 0 through 9 values
    DECODE (:TheSortCriteria,
    1, lin_itm_nr,
    2, eng_draw_nr,
    3, cage_cd,
    4, furn_meth_cd
    Will the DECODE statement work when sorting VARCHAR2 columns with alphabetic and alphanumeric data?
    Or will it only accept numeric data in VARCHAR2 and CHAR fields?
    Thanks,
    DT

    Syntax:
    DECODE ( expr , search , result [, search , result]... [,default] )
    Your usage:
    DECODE (:TheSortCriteria, <expr>
    1, <search>
    lin_itm_nr, <result>
    Oracle9i SQL Reference (direct link follows) has this to say about DECODE:
    "Oracle automatically converts expr and each search value to the datatype of the first search value before comparing. Oracle automatically converts the return value to the same datatype as the first result."
    First stmt says: TheSortCriteria parameter has to be of number datatype or has numeric values if character datatypes, which I think is the case here.
    Second stmt says: Since the first result is of number datatype, Oracle tries to convert the other results to number, which is why you're getting the error when the column-name is not numeric.
    Try putting either of the other three columns as the first result and it should work (the number column will be converted to char, which is fine).
    http://otn.oracle.com/docs/products/oracle9i/doc_library/901_doc/server.901/a90125/functions33.htm#1017439
    BTW,
    when you see ORA-## in the error message, it points to Oracle error (not Reports error). In such cases, try running the query in SQL*Plus. If you see the same error, then check out the Oracle Database documentation for more info.
    Hope that helps...

  • DECODE is not working in WHERE clause when subquery returns more rows

    Hi Gurus,
    I want to write a query on CCENTERS table(Script given below) and expect the following result:
    1. When I pass a value of 0 for ID, It returns all the rows given in the table.
    2. When I pass a value other than 0, It returns the row for the given value as well as all its child records.
    CCENTER has parent-child relationship in ID and BASE column. I am using a query with DECODE function. but DECODE function in WHERE clause is not capable of handling sub-query with multiple rows.
    VARIABLE ParaCCenter NUMBER
    BEGIN
    :paraccenter:=0;
    END;
    CREATE TABLE ccenters
    (id NUMBER,
    name VARCHAR2(20),
    base number);
    INSERT INTO ccenters VALUES(1,'NUST',null);
    INSERT INTO ccenters VALUES(2,'SEECS',1);
    INSERT INTO ccenters VALUES(3,'NBS',1);
    commit;
    SELECT * FROM ccenters
    WHERE id IN DECODE(:ParaCCenter, 0, id,
    (SELECT id FROM ccenters
    START WITH base=:ParaCCenter
    CONNECT BY PRIOR id = base
    UNION
    SELECT :ParaCCenter FROM dual
    BEGIN
    :paraCCenter:=1;
    END;
    SELECT * FROM ccenters
    WHERE id IN DECODE(:ParaCCenter, 0, id,
    (SELECT id FROM ccenters
    START WITH base=:ParaCCenter
    CONNECT BY PRIOR id = base
    UNION
    SELECT :ParaCCenter FROM dual))
    The result is
    (SELECT id FROM ccenters
    ERROR at line 3:
    ORA-01427: single-row subquery returns more than one row
    How this query can be rewritten for the given functionality. Any response will be highly appreciated.
    Thanks

    And if you want to use DECODE:
    SQL> BEGIN
      2  :paraccenter:=0;
      3  END;
      4  /
    PL/SQL procedure successfully completed.
    SQL> select  *
      2    from  ccenters
      3    where :paraccenter = decode(:paraccenter,0,0,id)
      4  /
            ID NAME                       BASE
             1 NUST
             2 SEECS                         1
             3 NBS                           1
    SQL> BEGIN
      2  :paraccenter:=2;
      3  END;
      4  /
    PL/SQL procedure successfully completed.
    SQL> select  *
      2    from  ccenters
      3    where :paraccenter = decode(:paraccenter,0,0,id)
      4  /
            ID NAME                       BASE
             2 SEECS                         1
    SQL> SY.

  • Decode does not work for line breaks

    Hi experts,
    In a BLS, I am decoding a string which I output .  It decodes the spaces but not for linea breaks.  What is wrong ¡?
    Thanks and best regards,
    Antonio Rodriguez  Rubalcaba

    Jeamy, 
    I forgot the examples .
    Best regards,
    NOTE
    Note : Copying and pasting the text into the note pad shows no problem ( it has linebreaks ) . This is also true when I copied the decoded thext from the INFO section of the Transaction execution onto this message . However , the BLS OUTPUT does not have line breaks .
    UNDECODED TEXT EXAMPLE
    I use the following expression : "Text = " & IllumSQLQuery_0.Results{/Rowsets/Rowset/Row/NOTA} and I get the following :
    INFO : Text = REPRESENTACION%20NUEVO%20LAREDO.-%20SE%20RECIBE%20LOTE%20DE%20GAS%20DE%20IMPORTACION%20POR%2015%2C000%20BLS.%20FLUJO%20DE%20RECIBO%201%2C322%20BPH.%20%0D%0AINICIO%20EL%20RECIBO%20AYER%20A%20LAS%2023%3A50%20HRS.%0D%0A%0D%0AREPRESENTACION%20CADEREYTA.-%20EXISTENCIA%20BOMBEABLE%2010%2C000%20BLS.%0D%0A%0D%0ATDGL%20POZA%20RICA.-%20EXISTENCIA%20BOMBEABLE%206%2C000%20BLS.%0D%0A%0D%0ALPG%20DUCTO.-%20SE%20PRESENTO%20FALLA%20EN%20LA%20ESTACI%D3N%20NO.%204%20DE%20REBOMBEO%20SUSPENDIENDO%20EL%20FLUJO%20DEL%20LPG%20DUCTO%20DE%20LAS%2004%3A50%20A%2005%3A05%20HRS.%0D%0A%0D%0AB/T%20ANAFI.-%20ARRIBO%20EL%2010.02.2011%20A%20LAS%2006%3A00%20HRS.%20PARA%20DESCARGAR%2020%20MTM%20DE%20AMONIACO%20EN%20LA%20TDGL%20TOPOLOBAMPO%2C%20SE%20ENCUENTRA%20FONDEADO.%0D%0A%0D%0AB/T%20GASCHEM%20HAMBURG.-%20CONTINUA%20DESCARGA%20DE%20AMONIACO%20EN%20LA%20TDGL%20TOPOLOBAMPO.%20DESCARGADO%206%2C430%20TM%2C%20POR%20DESCARGAR%208%2C570%20TM.%0D%0A%0D%0AB/T%20BW%20BOSS.-%20ETA%2001.03.2011%20PARA%20DESCARGAR%2046.8%20MTM%20DE%20GAS%20LP%20EN%20LA%20TR%20PAJARITOS.%0D%0A%0D%0ACOATZACOALCOS%3A%20CONTINUA%20EL%20ENVIO%20DE%20BUTANOS%20A%20LA%20REFINERIA%20MINATITLAN.%0D%0A
    DECODED TEXT EXAMPLE
    I user the following expression : "Text = " & IllumSQLQuery_0.Results{/Rowsets/Rowset/Row/NOTA} and I get the following :
    INFO : Decoded Text = REPRESENTACION NUEVO LAREDO.- SE RECIBE LOTE DE GAS DE IMPORTACION POR 15,000 BLS. FLUJO DE RECIBO 1,322 BPH.
    INICIO EL RECIBO AYER A LAS 23:50 HRS.
    REPRESENTACION CADEREYTA.- EXISTENCIA BOMBEABLE 10,000 BLS.
    TDGL POZA RICA.- EXISTENCIA BOMBEABLE 6,000 BLS.
    LPG DUCTO.- SE PRESENTO FALLA EN LA ESTACI�N NO. 4 DE REBOMBEO SUSPENDIENDO EL FLUJO DEL LPG DUCTO DE LAS 04:50 A 05:05 HRS.
    B/T ANAFI.- ARRIBO EL 10.02.2011 A LAS 06:00 HRS. PARA DESCARGAR 20 MTM DE AMONIACO EN LA TDGL TOPOLOBAMPO, SE ENCUENTRA FONDEADO.
    B/T GASCHEM HAMBURG.- CONTINUA DESCARGA DE AMONIACO EN LA TDGL TOPOLOBAMPO. DESCARGADO 6,430 TM, POR DESCARGAR 8,570 TM.
    B/T BW BOSS.- ETA 01.03.2011 PARA DESCARGAR 46.8 MTM DE GAS LP EN LA TR PAJARITOS.
    COATZACOALCOS: CONTINUA EL ENVIO DE BUTANOS A LA REFINERIA MINATITLAN.

  • Case statement and Decode function both are not working in Select cursor.

    I have tried both the Case statement and Decode function in Select cursor, but both the things are not working. On the other hand both the things work in just select statement.
    See the first column in select (PAR_FLAG), I need to have this evaluated along with other fields. Can you please suggest some thing to make this work. And also I would like to
    know the reason why decode is not working, I heard some where Case statement do not work with 8i.
    Author : Amit Juneja
    Date : 06/20/2011
    Description:
    Updates the Diamond MEMBER_MASTER table with the values from
    INC.MEM_NJ_HN_MEMBER_XREF table.
    declare
    rec_cnt number(12) := 0;
    commit_cnt number(4) := 0;
    cursor select_cur is
    Select DECODE(1,
    (Select 1
    from hsd_prov_contract R
    where R.seq_prov_id = PM.seq_prov_id
    and R.line_of_business = H.line_of_business
    and R.PCP_FLAG = 'Y'
    and R.participation_flag = 'P'
    and SYSDATE between R.EFFECTIVE_DATE AND
    NVL(R.TERM_DATE,
    TO_DATE('31-DEC-9999', 'DD-MON-YYYY'))),
    'Y',
    'N') PAR_FLAG,
    H.SEQ_ELIG_HIST,
    H.SEQ_MEMB_ID,
    H.SEQ_SUBS_ID,
    H.SUBSCRIBER_ID,
    H.PERSON_NUMBER,
    H.EFFECTIVE_DATE,
    H.TERM_DATE,
    H.TERM_REASON,
    H.RELATIONSHIP_CODE,
    H.SEQ_GROUP_ID,
    H.PLAN_CODE,
    H.LINE_OF_BUSINESS,
    H.RIDER_CODE_1,
    H.RIDER_CODE_2,
    H.RIDER_CODE_3,
    H.RIDER_CODE_4,
    H.RIDER_CODE_5,
    H.RIDER_CODE_6,
    H.RIDER_CODE_7,
    H.RIDER_CODE_8,
    H.MEDICARE_STATUS_FLG,
    H.OTHER_STATUS_FLAG,
    H.HIRE_DATE,
    H.ELIG_STATUS,
    H.PREM_OVERRIDE_STEP,
    H.PREM_OVERRIDE_AMT,
    H.PREM_OVERRIDE_CODE,
    H.SEQ_PROV_ID,
    H.IPA_ID,
    H.PANEL_ID,
    H.SEQ_PROV_2_ID,
    H.SECURITY_CODE,
    H.INSERT_DATETIME,
    H.INSERT_USER,
    H.INSERT_PROCESS,
    H.UPDATE_DATETIME,
    H.UPDATE_USER,
    H.UPDATE_PROCESS,
    H.USER_DEFINED_1,
    H.SALARY,
    H.PEC_END_DATE,
    H.REASON_CODE,
    H.PEC_WAIVED,
    H.BILL_EFFECTIVE_FROM_DATE,
    H.BILLED_THRU_DATE,
    H.PAID_THRU_DATE,
    H.SUBSC_DEPT,
    H.SUBSC_LOCATION,
    H.USE_EFT_FLG,
    H.BENEFIT_START_DATE,
    H.SEQ_ENROLLMENT_RULE,
    H.MCARE_RISK_ACCRETION_DATE,
    H.MCARE_RISK_DELETION_DATE,
    H.MCARE_RISK_REFUSED_DATE,
    H.COMMENTS,
    H.USER_DEFINED_2,
    H.USER_DEFINED_3,
    H.RATE_TYPE,
    H.PCPAA_OCCURRED,
    H.PRIVACY_ON,
    H.PCP_CHANGE_REASON,
    H.SITE_CODE,
    H.SEQ_SITE_ADDRESS_ID,
    PM.seq_prov_id rendered_prov
    from hsd_member_elig_history H,
    INC.PCP_REASSIGN_RPRT_DATA P,
    hsd_prov_master PM
    where P.subscriber_id = H.subscriber_id
    and P.rendered_pcp = PM.provider_ID
    and H.elig_status = 'Y'
    and (H.term_date is NULL or H.term_date >= last_day(sysdate))
    order by H.Seq_memb_id;
    begin
    for C in select_cur loop
    rec_cnt := rec_cnt + 1;
    update hsd_member_elig_history
    set term_date = TRUNC(SYSDATE - 1),
    term_reason = 'PCPTR',
    update_datetime = SYSDATE,
    update_user = USER,
    update_process = 'TD33615'
    where seq_elig_hist = C.seq_elig_hist
    and seq_memb_id = C.seq_memb_id;
    INSERT INTO HSD_MEMBER_ELIG_HISTORY
    (SEQ_ELIG_HIST,
    SEQ_MEMB_ID,
    SEQ_SUBS_ID,
    SUBSCRIBER_ID,
    PERSON_NUMBER,
    EFFECTIVE_DATE,
    TERM_DATE,
    TERM_REASON,
    RELATIONSHIP_CODE,
    SEQ_GROUP_ID,
    PLAN_CODE,
    LINE_OF_BUSINESS,
    RIDER_CODE_1,
    RIDER_CODE_2,
    RIDER_CODE_3,
    RIDER_CODE_4,
    RIDER_CODE_5,
    RIDER_CODE_6,
    RIDER_CODE_7,
    RIDER_CODE_8,
    MEDICARE_STATUS_FLG,
    OTHER_STATUS_FLAG,
    HIRE_DATE,
    ELIG_STATUS,
    PREM_OVERRIDE_STEP,
    PREM_OVERRIDE_AMT,
    PREM_OVERRIDE_CODE,
    SEQ_PROV_ID,
    IPA_ID,
    PANEL_ID,
    SEQ_PROV_2_ID,
    SECURITY_CODE,
    INSERT_DATETIME,
    INSERT_USER,
    INSERT_PROCESS,
    UPDATE_DATETIME,
    UPDATE_USER,
    UPDATE_PROCESS,
    USER_DEFINED_1,
    SALARY,
    PEC_END_DATE,
    REASON_CODE,
    PEC_WAIVED,
    BILL_EFFECTIVE_FROM_DATE,
    BILLED_THRU_DATE,
    PAID_THRU_DATE,
    SUBSC_DEPT,
    SUBSC_LOCATION,
    USE_EFT_FLG,
    BENEFIT_START_DATE,
    SEQ_ENROLLMENT_RULE,
    MCARE_RISK_ACCRETION_DATE,
    MCARE_RISK_DELETION_DATE,
    MCARE_RISK_REFUSED_DATE,
    COMMENTS,
    USER_DEFINED_2,
    USER_DEFINED_3,
    RATE_TYPE,
    PCPAA_OCCURRED,
    PRIVACY_ON,
    PCP_CHANGE_REASON,
    SITE_CODE,
    SEQ_SITE_ADDRESS_ID)
    values
    (hsd_seq_elig_hist.nextval,
    C.SEQ_MEMB_ID,
    C.SEQ_SUBS_ID,
    C.SUBSCRIBER_ID,
    C.PERSON_NUMBER,
    trunc(SYSDATE),
    C.TERM_DATE,
    C.TERM_REASON,
    C.RELATIONSHIP_CODE,
    C.SEQ_GROUP_ID,
    C.PLAN_CODE,
    C.LINE_OF_BUSINESS,
    C.RIDER_CODE_1,
    C.RIDER_CODE_2,
    C.RIDER_CODE_3,
    C.RIDER_CODE_4,
    C.RIDER_CODE_5,
    C.RIDER_CODE_6,
    C.RIDER_CODE_7,
    C.RIDER_CODE_8,
    C.MEDICARE_STATUS_FLG,
    C.OTHER_STATUS_FLAG,
    C.HIRE_DATE,
    C.ELIG_STATUS,
    C.PREM_OVERRIDE_STEP,
    C.PREM_OVERRIDE_AMT,
    C.PREM_OVERRIDE_CODE,
    C.SEQ_PROV_ID,
    C.IPA_ID,
    C.PANEL_ID,
    C.SEQ_PROV_2_ID,
    C.SECURITY_CODE,
    SYSDATE,
    USER,
    'TD33615',
    SYSDATE,
    USER,
    'TD33615',
    C.USER_DEFINED_1,
    C.SALARY,
    C.PEC_END_DATE,
    C.REASON_CODE,
    C.PEC_WAIVED,
    C.BILL_EFFECTIVE_FROM_DATE,
    C.BILLED_THRU_DATE,
    C.PAID_THRU_DATE,
    C.SUBSC_DEPT,
    C.SUBSC_LOCATION,
    C.USE_EFT_FLG,
    C.BENEFIT_START_DATE,
    C.SEQ_ENROLLMENT_RULE,
    C.MCARE_RISK_ACCRETION_DATE,
    C.MCARE_RISK_DELETION_DATE,
    C.MCARE_RISK_REFUSED_DATE,
    C.COMMENTS,
    C.USER_DEFINED_2,
    C.USER_DEFINED_3,
    C.RATE_TYPE,
    C.PCPAA_OCCURRED,
    C.PRIVACY_ON,
    C.PCP_CHANGE_REASON,
    C.SITE_CODE,
    C.SEQ_SITE_ADDRESS_ID);
    commit_cnt := commit_cnt + 1;
    if (commit_cnt = 1000) then
    dbms_output.put_line('Committed updates for 1000 records.');
    commit;
    commit_cnt := 0;
    end if;
    end loop;
    commit;
    dbms_output.put_line('Total number of MEMBER_ELIG_HISTROY records inserted : ' ||
    rec_cnt);
    exception
    when others then
    raise_application_error(-20001,
    'An error was encountered - ' || sqlcode ||
    ' -error- ' || sqlerrm);
    end;

    user10305724 wrote:
    I have tried both the Case statement and Decode function in Select cursor, but both the things are not working. Please define what you mean by not working even if your computer screen is near the internet we can't see it.
    You should also look at the FAQ about how to ask a question
    SQL and PL/SQL FAQ
    Particularly *9) Formatting with {noformat}{noformat} Tags* and posting your version.
    know the reason why decode is not working, I heard some where Case statement do not work with 8i.
    Does this mean you are using 8i? Then scalar sub queries - selects within the select list, are not supported, along with CASE in PL/SQL.
    Select DECODE(1,
    * (Select 1
    from hsd_prov_contract R
    where R.seq_prov_id = PM.seq_prov_id
    and R.line_of_business = H.line_of_business
    and R.PCP_FLAG = 'Y'
    and R.participation_flag = 'P'
    and SYSDATE between R.EFFECTIVE_DATE AND
    NVL(R.TERM_DATE,
    TO_DATE('31-DEC-9999', 'DD-MON-YYYY')))*,
    'Y',
    'N') PAR_FLAG,
    >
    exception
    when others then
    raise_application_error(-20001,
    'An error was encountered - ' || sqlcode ||
    ' -error- ' || sqlerrm);
    http://tkyte.blogspot.com/2008/01/why-do-people-do-this.html                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • SB0460 AC3/DTS decoder not working on Windows 7 (Driver 2.18.0015)

    Hello everybody!
    I hope somebody will be able to help me with my strange problem:
    I just did the move from Windows XP (x64) to Windows 7 (x64) and discovered that the X-FI's AC3/DTS decoder is not working. All I get is either noise/static/crackling (AC3) or no sound at all (DTS). I have an X-FI XtremeMusic card (Serial: MSB0460535000206P) and the decoder is working absolutely fine on Win XP.
    The latest driver version 2.8.005 is installed. I have also tried the first driver (2.8.003) that was supposed to have fixed the decoder under Windows 7. The changelog there says: Dolby? Digital and DTS? decode re-established for sound cards that included decoding in their Windows XP drivers. No such luck for me.
    My sound card is definitely supported so I'm wondering why it's not working.
    Use Built-in Decoder is selected in the Audio Control Panel I'm passing audio to S/PDIF (from e.g. PowerDVD or MPC-HC). On Win XP usually the on screen display pops up when the decoder detects the signal, nothing on Win 7.
    (Note that I am NOT trying to input a signal from an external source.)
    Gi'ven everything I have tried, logic tells me that there may still be a bug lurking in the decode driver.
    Any ideas?

    FI think you have to pay now for the decoder when using digital output but not sure what soundcards are limited.... otherwise try this drivers and see this help but i dont know if they will work...
    http: //forums.creative.com/t5/Sound-Blaster/PAX-PCI-XFI-ALL-OS-Driver-V4-5/td-p/574643

  • JSON.decode not working

    Hi All,
    I have some JSON code that is generated from my server. I am
    trying to decode the JSON using the as3corelib. I am receiving the
    error Unexpected character v encountered. It's from the viewentry
    line at the beginning of the attached JSON code.
    Any thoughts on why this is?
    I can't change the JSON being generated so I'm going to have
    to handle it in the JSON decoder . . .

    You property name -- xaxis in this case -- must be a quoted
    string:
    private function decode() : void {
    var s:String = '{
    "xaxis":["test1","test2","test3","test4","test5"]}';
    var o:Object = JSON.decode(s);
    var a:Array = o['xaxis'] as Array;
    Alert.show(a.length.toString());

  • Decode Not working in sql loader

    I had a requirement of loading flatfile into staging table using SQL Loader, One of the columns in the the Flat file is having values FALSE or TRUE and my requirement is that I load 0 for FALSE and 1 for TRUE which can be achieved by simple DECODE function...I did use decode and tried to load several times but did not work. What might be the problem
    LOAD DATA
    INFILE 'sql_4ODS.txt'
    BADFILE 'SQL_4ODS.badtxt'
    APPEND
    INTO TABLE members
    FIELDS TERMINATED BY "|"
    ( Person_ID,
    FNAME,
    LNAME,
    Contact,
    status "decode(:status, 'TRUE', '1','FALSE','0')"
    I did try putting a trim as well as SUBSTR but did not work....the cloumn just doent get any values in the output (just null or say free space)
    Any help would be great.....

    Hello user8937215.
    Please provide a create table statement and a sample of data file contents. I would expect DECODE or CASE to work based on the information provided.
    Cheers,
    Luke
    Please mark the answer as helpful or answered if it is so. If not, provide additional details.
    Always try to provide create table and insert table statements to help the forum members help you better.

  • Pdf email attachments - error msg after download "not decoding" - creating DWORD key did NOT work!

    I went to REGEDIT and installed the DWORD key as suggested by ADOBE to fix problem created by security update & it did NOT work!! Attempting to save then open the files gives same error msg.  I sent multiple emails from a book scanner at the library with pdf files in quick and searchable formats & neither will open! Someone else that I forwarded the email to was able to open with no problem & he is running version 10.  There is no option to load earlier versions!!!!  I am running version 11 on Windows XP.

    I scanned hundreds of pages using a book scanner @ the law library - the USB port was not working so I had to choose the send by email attachment option. Received 30 emails & NONE (so far) of the pdf attachments will open - the error msg states "Reader could not open "doc" because it is either not a supported file or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)." I forwarded 2 emails to someone else running version 10 - he had no prob opening from email (I have version 11 & then I also reinstalled 9.5 & STILL getting the same error msg)! Used someone elses's computer who is running version 10 & same error msg. Each time I try a fix I then go to a 'new' unopened email & attempt to open an attachment that hasn't been previously downloaded. Adobe supposedly has a fix - from Regedit - create DWORD key @ HKCU/Adobe/Reader/11/AV General "bValidateBytesBeforeHeader" - I did that & restarted computer each time I installed etc - still NO solution! So unless you have another idea I have a THIRD 6 hour roundtrip to the Law Library in KC in my near future!
    Drew Davis
    Sent from my BlackBerry® powered by Virgin Mobile.

  • Decode not working on ViewObject

    In the expert mode of the view object I have a Decode Statement as
    DECODE(SUBSTR(ViewParameterPaEO.REC_STATUS,1,1),'I','INVALID')
    Column REC_STATUS is varchar2(3). The value in the Data base is "I1"
    If I access the data using DataTableComponent it returns "INV",
    Now if I use <jbo:showvalue> tag it returns "I1" (This is the value in the Database).
    Why is this happening.
    Thanks

    SELECT ViewParameterPaEO.PARM_ID,
    ViewParameterPaEO.CODE_ID,
    ViewParameterPaEO.AREA,
    ViewParameterPaEO.PARAMETER_NAME,
    ViewParameterPaEO.VALUE,
    ViewParameterPaEO.PARM_BEGIN_DATE,
    ViewParameterPaEO.PARM_END_DATE,
    ViewParameterPaEO.MODIFIER_CODE,
    ViewParameterPaEO.PROVIDER_TYPE,
    ViewParameterPaEO.PROVIDER_ID,
    ViewParameterPaEO.PROVIDER_GROUP,
    ViewParameterPaEO.PLACE_OF_SERVICE_CODE,
    ViewParameterPaEO.SPECIALTY_CODE_GRP,
    ViewParameterPaEO.PROGRAM_TYPE,
    ViewParameterPaEO.TYPE_OF_PROCEDURE,
    DECODE(SUBSTR(ViewParameterPaEO.REC_STATUS,1,1),'I','INVALID')
    FROM VIEW_PARAMETER_PA ViewParameterPaEO
    FYI- I tried to give a alias name as DECODE(SUBSTR(ViewParameterPaEO.REC_STATUS,1,1),'I','INVALID') REC_STATUS it still did not work.
    Thanks

  • How does decode and case works?

    Hi,
    I want to know how decode and case works? How they process the arguements. Please explain me with some examples.
    Thanks,
    Sarav
    Edited by: 943941 on Jul 3, 2012 1:42 AM

    welcome
    check this link
    https://forums.oracle.com/forums/ann.jspa?annID=1535
    you will find everything you need
    DECODE compares expr to each search value one by one. If expr is equal to a search, then Oracle Database returns the corresponding result. If no match is found, then Oracle returns default. If default is omitted, then Oracle returns null.
    This example decodes the value warehouse_id. If warehouse_id is 1, then the function returns 'Southlake'; if warehouse_id is 2, then it returns 'San Francisco'; and so forth. If warehouse_id is not 1, 2, 3, or 4, then the function returns 'Non domestic'.
    SELECT product_id,
           DECODE (warehouse_id, 1, 'Southlake',
                                 2, 'San Francisco',
                                 3, 'New Jersey',
                                 4, 'Seattle',
                                    'Non domestic')
           "Location of inventory" FROM inventories
           WHERE product_id < 1775;Edited by: user 007 on Jul 3, 2012 2:40 PM

  • Help with JSON Decoding

    Hi guys, I'm kinda a n00b to Flex, and definitely a n00b to JSON decoding, hoping you can help me out.
    I just put the very basics in this code, I want to  be able to decode the JSON from the Rotten Tomatoes link, and display it in a datagrid. I seem to be only getting the top level (I took out the datagrid colums so you can see what it populates with). I want to get the actual movie info, which is one level further down. How do I do that?
    Here's the link I'm trying to read in: http://api.rottentomatoes.com/api/public/v1.0/movies.json?apikey=u9pv54jkhnhemfx8x6u8q83r& q=Jack&page_limit=1
    And here's my full code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute"
                                            creationComplete="service.send()">
              <mx:Script>
                        <![CDATA[
                                  import mx.collections.ArrayCollection;
                                  import mx.rpc.events.ResultEvent;
                                  import com.adobe.serialization.json.JSON;
                                  import mx.utils.*;
                                  private function onJSONLoad(event:ResultEvent):void
                                            var rawData:String = String(event.result);
                                            var info:Object = JSON.decode(rawData);
                                            var dp:ArrayCollection = new ArrayCollection(ArrayUtil.toArray(info));
                                            grid.dataProvider = dp;
                                  var urlString:String = "http://api.rottentomatoes.com/api/public/v1.0/movies.json?apikey=u9pv54jkhnhemfx8x6u8q83r& q=Jack&page_limit=1";
                        ]]>
              </mx:Script>
              <mx:HTTPService id="service" resultFormat="text"
                                                      url= "{urlString}"
                                                      result="onJSONLoad(event)" />
              <mx:DataGrid id="grid" right="10" left="10" top="10" bottom="10">
              </mx:DataGrid>
    </mx:Application>

    Hi,
    I have modified Your code and placed it here. it is working fine.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute"
                                            creationComplete="service.send()">
              <mx:Script>
                        <![CDATA[
                                  import mx.collections.ArrayCollection;
                import mx.rpc.events.ResultEvent;
                import com.adobe.serialization.json.JSON;
                import com.adobe.serialization.json.JSONDecoder;
                import com.adobe.serialization.json.JSONTokenizer;
                import mx.utils.*;
                import mx.controls.Alert;
                private function onJSONLoad(event:ResultEvent):void
                    var rawData:String = String(event.result);
                    var info:Object = new JSONDecoder(rawData,true).getValue().movies as Object;
                    var dp:ArrayCollection = new ArrayCollection(ArrayUtil.toArray(info));
                    grid.dataProvider = dp;
                var urlString:String = "http://api.rottentomatoes.com/api/public/v1.0/movies.json?apikey=u9pv5                 4jkhnhemfx8x6u8q83r&q=Jack&page_limit=1";
                        ]]>
              </mx:Script>
              <mx:HTTPService id="service" resultFormat="text"
                                                      url= "{urlString}"
                                                      result="onJSONLoad(event)" />
              <mx:DataGrid id="grid" right="10" left="10" top="10" bottom="10" >
            <mx:columns>
                <mx:DataGridColumn headerText="Title" dataField="title" />
                <mx:DataGridColumn headerText="Year" dataField="year" />
            </mx:columns>
        </mx:DataGrid>
    </mx:Application>
    And place column name which columns do want to show. And as3corelib.swc it is a library download it for jsondecoder.
    I think it would be helpful for you. 
    Thanks
    Raghu.

  • Casting object after JSON decoding

    Hi,
    Im currently lerning about Flex and how to exchange data with PHP. I'm using JSON to send data from the server, and using corelib to decode it, then I wish to do something like this:
    user  = JSON.decode(rawData) as User;
    Because I have binds to the "user" properties and want them to be updated with the data from the decoder, but the casting fails leaving a null object, even tho Im sure the properties of both objects are the same.
    In the end I have to do something like this:
    var temp:Object = (JSON.decode(rawData));
    user.id = temp.id;
    user.name = temp.name;
    user.email = temp.email;
    //etc...
    So is there an "automatic" or better way of doing this?
    Thanks a lot.
    PD: Sorry for my bad english.

    judas1 wrote:
    I have following problem.
    Object[] myArray;
    need to delcare myArray later and so..
    if(...){myArray={3,4,5};}
    else(....){myArray={'a','b','c'};}
    of course i can create new variables and cast to them;
    Integer[] arrayInt; /// arrayInt=(Integer[])myArray;
    Character[] arrayChar; ////............
    but the problem is i wanna use one variable name in code after that. Only myArray!!!
        Object[] arr;
        if (...) {
          arr = new Integer[5];
        else {
          arr = new Character[5];
        }Of course, you'll still only be able to only operate on the individual elements as Objects, unless you cast them, so you gain nothing by using Integer[] vs. Character[].
    1. Is there a way to change the type of given variable? No, and if you think you need to, you've almost certainly got a problem in your design.
    2. Or how to find variable type and use it for dynamical declaration?
    for instance
    <type of any variable> c= new <type constructor>The type of a variable? You don't need to. You know it at compile time.
    The class of an object? You can use things like getClass, instanceof, isAssignableFrom, but if you need to do this, there's a good chance you're taking the wrong approach.
    Maybe if you step back a bit and expain what you're trying to accomplish that you think will be facilitated by changing or detecting a variable's type, someon might be able to give you a better approach.

  • What does JSON.decode() mean?

    I have been uploading pictures from LR4 to my Facebook photography page quite happily, even though I have to muck about making albums for LR4 to see!! This afternoon I have started getting a failed upload, the first warning box states "An internal error has occurred.expected string argument to JSON.decode()", then you click OK and you get a second box stating "Can’t update this collection.An internal error has occurred: expected string argument to JSON.decode()", press ok and the upload is stopped. I think its something to do with Java but apart from that I have no idea.
    Its frustrating and means that I have to now sit infront of the computer whilst everything uploads!!
    Im using an iMac running OSX 10.7.3
    Any hekp would be appreciated.

    JSON.decode is a method which converts data which has been stored as json text. The method converts the json text into an object so that a programming language like php or java can use it as data (assigns the data to an object). The real problem has to do with the failed upload I think.
    Hope this helps.
    mitzy_kitty

Maybe you are looking for