Need help with this pl/sql code

Hello
It is showing an error sql command not properly ended... where FLX_TEXTTRAN802003. SPTEXTINSERT
is a package... help me please
BEGIN
   DECLARE
      v_TextID   NUMBER :=0;
      I_LanguageID NUMBER := 1033;
      v_count number;
      e_error EXCEPTION;

BEGIN 
 



        
--INsert into text
            FLX_TEXTTRAN802003.SPTEXTINSERT
                                           (io_id                => v_TextID,
                                            i_type               => N'',
                                            i_lastupdateon       => cob_f_getutc,
                                            i_lastupdatedby      => 'NGMESSystem',
                                            i_createdon          => cob_f_getutc,
                                            i_createdby          => 'NGMESSystem'
                                           );
        

        
        
     
--    Insert into TEXT_TRANSLATION
            FLX_TEXTTRAN802003.SPTEXTTRANINSERT
                                           (i_TextID             => v_TextID,
                                            I_LanguageID         => I_LanguageID,
                                            i_short              => 'CUSTOMER',
                                            i_medium             => 'CUSTOMER',
                                            i_extended           => 'CUSTOMER',
                                            i_lastupdateon       => cob_f_getutc,
                                            i_lastupdatedby      => 'NGMESSystem',
                                            i_createdon          => cob_f_getutc,
                                            i_createdby          => 'NGMESSystem'
                                           );
                    
            
    select count(*) into v_count from characteristic_class where name='CUSTOMER' 
if v_count = 0 then
     

       
  
        Insert into FLXUSER.characteristic_class
   (ID, NAME, TEXTID, REFERENCEID, LASTUPDATEON, LASTUPDATEDBY, CREATEDON, CREATEDBY, ACTIVE, LASTDELETEON, LASTDELETEDBY, LASTREACTIVATEON, LASTREACTIVATEDBY, ARCHIVEID, LASTARCHIVEON, LASTARCHIVEDBY, LASTRESTOREON, LASTRESTOREDBY, ROWVERSIONSTAMP)
 Values
   (SEQ_CHARACTERISTIC_CLASS.nextval, 'CUSTOMER', v_TextID, NULL, 
    NULL, NULL, TO_DATE('11/05/2012 16:49:05', 'MM/DD/YYYY HH24:MI:SS'), 'SYSTEM', 1, 
    NULL, NULL, NULL, NULL, NULL, 
    NULL, NULL, NULL, NULL, 1);
commit;
  

ELSE
Raise e_error;
END IF;
EXCEPTION
when e_error then
dbms_output.put_line('data already exist');
end;

Hello

next to what Frank says, the following line:

   select count(*) into v_count from characteristic_class where name='CUSTOMER' 

missing semicolon at the end:

   select count(*) into v_count from characteristic_class where name='CUSTOMER' ;

Also the BEGIN initial until the DECLARE is unmatched (no corresponding END).
You can remove it.

Kind regards.
Al

Published by: Alberto Faenza on November 6, 2012 16:24

Tags: Database

Similar Questions

  • Need help with a PL/SQL code

    Hello

    I am trying to execute the following PL/SQL code, which translates errors, obviously I'm not doing things, but it gives you an idea what I'm trying to do:

    DECLARE

    INT var_count;

    SELECT COUNT (*) IN var_count

    FROM sys.all_tables WHERE OWNER = 'SAKILA' AND table_name = "ACTOR";

    If var_count > 0 then

    BEGIN

    DROP TABLE "ACTOR";

    END;

    /

    Erros:

    SELECT COUNT (*) IN var_count

    *

    ERROR at line 3:

    ORA-06550: line 3, column 1:

    PLS-00103: encountered the symbol "SELECT" at the expected in the following way:

    Start function < an ID > pragma procedure subtype type

    < between double quote delimited identifiers > delete the current cursor

    There is before

    The symbol 'start' has been substituted for "SELECT" to continue.

    ORA-06550: line 7, column 1:

    PLS-00103: encountered the symbol "DROP" when expecting one of the following conditions:

    (begin case declare exit for goto if loop mod null pragma

    raise return select update while < ID >

    < between double quote delimited identifiers of > < a variable binding > < <

    continue the narrow current delete fetch locking insert open rollback

    savepoint sql set run commit forall fusion pipe purge

    Your help to create it in a right way will be appreciated.

    Thank you very much.

    Tonya.

    Try the following:

    My = $ora $csr-> prepare (q {}

    DECLARE

    INT var_count;

    BEGIN

    SELECT COUNT (*) IN var_count

    FROM sys.all_tables WHERE OWNER = 'SAKILA' AND table_name =: ts;

    If var_count > 0 then

    RUN IMMEDIATELY 'DROP TABLE' |: ts | "CASCADE CONSTRAINTS;

    end if;

    END;

    });

  • Need help with this gallery of xml!

    I have build a gallery but its very simple... There are pictures of the xml file.

    I have attached all the zip files.

    I just want two things if anyone can help.

    first of all when I press the next button, he's going to the next image, but without effect. It just displays the following image... I want to incorporate the effect of dragging when the image is changed to another.

    and secondly, I want to use the AutoPlay feature.

    Once swf starts images came one by one with a vertical drop of a few seconds.

    Thanks in advance... I really need help with this..!

    For the look of sliding effect using the actionscript class Tween.  Allows you to create motion tweens using the code.  The example below will be tween property _x of the instance named anObject from 0 to 300 in 3 seconds...

    import classes before using

    Import mx.transitions.Tween;
    Import mx.transitions.easing.Regular;

    TW var = new Tween (anObject, "_x", Regular.easeIn, 0, 300, 3, true);

    To implement an enforcement function auto you need to import all the images first, in the order, then you will need to use form any controlled timer, such as setInterval (with clearInterval not to need) in order to have things turn on automatically by some part-time

  • [Error number: 0x8024400A] Need help with this error... I reinstalled XP SP1 and I can't get an auto update that's simple to install, just get this error every time

    [Error number: 0x8024400A] Need help with this error... I reinstalled XP SP1 and I can't get an automatic update that's simple to install, just get this error at each time HHHHEEEELLLPPPPP! Thank you

    I had the same problem.  But finally found a solution.  If your listing is similar to mine, then keep.  XP Media Center Edition 2005 (sp2).  AMD Athlon 64 x 2 Dual-Core, HP a1630n desktop computer.

    Go to the HP website, search for sp37394-XP sp3 Upgrade utility Microsoft for systems equipped with AMD processors.

    I had the same 0 x 80240036, 0x8024400a error, but realize my problem was really get manually downloaded sp3 and installed without continue loop crashing and not error messages.

  • Is there a default value for the color management in PSE10? Beautiful photos from iPhoto, but blur with elements. I need help with this before as I consider that the upgrade to PSE13 and beyond.

    Is there a default value for the color management in PSE10? Beautiful photos from iPhoto, but blur with elements. I need help with this before as I consider that the upgrade to PSE13 and beyond.

    Printing which forms an angle seems ok, but one that is horizontally seems faded, incomplete.

    I was wondering if I saved a layer somewhere and set it as a default value.

    If you group the layers, you will be left with a single layer, thus spreading your concern.

    Suggest that you do the following:

    1. Make sure you have the latest drivers for your printers
    2. Reset the default preferences.

    Hold the Alt, Ctrl + Shift keys when you click the icon to open the items. When asked if you want to delete the settings file, say Yes.

    Items nearby and let regenerate the file.

  • What is the problem with this pl/sql code?

    What is the problem with this statement of the cursor? I am getting PLS-00341 error for her:
    CURSOR cur_rsource(p_sql_stmt IN VARCHAR2) IS
            SELECT plan_table_output FROM v$sql s, table(dbms_xplan.display_CURSOR(s.sql_id, s.child_number)) t WHERE sql_text LIKE '''%'||p_sql_stmt||'%''';
    How to solve this problem?

    Thank you

    Published by: PhoenixBai on December 14, 2009 14:05

    I don't have time right now to study exhaustively, but for me his vomit ORA-00942 table or view does not exist on this line:

        SELECT sql_id, child_number into tmp_sql_id, tmp_child_number
             from v$sql where sql_text like sql_statement||'%' and sql_text not like '%v$sql%';
    

    I am able to select from v$ sql in normal SQL as user I am compiling as, so don't know why it's complaing.

    Anyone know if there are certain restrictions on access to the views v$ through PL/SQL?

    EDIT: http://www.dbasupport.com/forums/showthread.php?t=22299

    Access to the views of $ v seems to be through a role - try giving explicit access to it.

    As SYS, you must grant select permissions on V_$ SQL (V$ SQL is synonymous with V_$ SQL) to your owner of the procedure. Just tested on my system and it allows him to compile.

    Published by: Cyn on December 14, 2009 10:30

  • Hi there I need help with my laptop my code is 55385917 please help

    • Hi there, I need help wit my computer hp pavilion laptop it starts just to show enter them administration or turn on password after 3 times the disable password are 55385917 Please HELP ME because THAT ALL MY WORK IS IT ON please

    Groove

    Try: 40083339

    Concerning

    Visruth

  • Need help with this problem please

    Hi all
    I have 2 tables and I am runnig the following query against it:
    select t1.ID_NBR, t1.START_DATE,t1.END_DATE,t1.SAMPLE_ID,t2.END_INTV_TIME,t2.CIN_DATA_ID
    from sample t1,weekend t2
    where t1.SAMPLE_ID=t2.SAMPLE_ID_1
    and t1.WEEKEND_FLAG='Y'
    and t1.SITE_ID_NBR='000097117011'
    and get the following dataset:
    ID_NBR     START_DATE     END_DATE     SAMPLE_ID     END_INTV_TIME     CIN_DATA_ID
                             
    97117011     91908     92108     143493     100     131834
    97117011     91908     92108     143493     200     131835
    97117011     91908     92108     143493     300     131836
    97117011     91908     92108     143493     400     131837
    97117011     91908     92108     143493     500     131838
    97117011     91908     92108     143493     600     131839
    97117011     91908     92108     143493     700     131840
    97117011     91908     92108     143493     800     131841
    97117011     91908     92108     143493     900     131842
    97117011     91908     92108     143493     1000     131843
    97117011     91908     92108     143493     1100     131844
    97117011     91908     92108     143493     1200     131845
    97117011     91908     92108     143493     1300     131846
    97117011     91908     92108     143493     1400     131847
    97117011     91908     92108     143493     1500     131848
    97117011     91908     92108     143493     1600     131849
    97117011     91908     92108     143493     1700     131850
    97117011     91908     92108     143493     1800     131851
    97117011     91908     92108     143493     1900     131852
    97117011     91908     92108     143493     2000     131853
    97117011     91908     92108     143493     2100     131854
    97117011     91908     92108     143493     2200     131855
    97117011     91908     92108     143493     2300     131856
    97117011     91908     92108     143493     2400     131857
    97117011     91908     92108     143493     100     131858
    97117011     91908     92108     143493     200     131859
    97117011     91908     92108     143493     300     131860
    97117011     91908     92108     143493     400     131861
    97117011     91908     92108     143493     500     131862
    97117011     91908     92108     143493     600     131863
    97117011     91908     92108     143493     700     131864
    97117011     91908     92108     143493     800     131865
    97117011     91908     92108     143493     900     131866
    97117011     91908     92108     143493     1000     131867
    97117011     91908     92108     143493     1100     131868
    97117011     91908     92108     143493     1200     131869
    97117011     91908     92108     143493     1300     131870
    97117011     91908     92108     143493     1400     131871
    97117011     91908     92108     143493     1500     131872
    97117011     91908     92108     143493     1600     131873
    97117011     91908     92108     143493     1700     131874
    97117011     91908     92108     143493     1800     131875
    97117011     91908     92108     143493     1900     131876
    97117011     91908     92108     143493     2000     131877
    97117011     91908     92108     143493     2100     131878
    97117011     91908     92108     143493     2200     131879
    97117011     91908     92108     143493     2300     131880
    97117011     91908     92108     143493     2400     131881
    97117011     91908     92108     143493     100     131882
    97117011     91908     92108     143493     200     131883
    97117011     91908     92108     143493     300     131884
    97117011     91908     92108     143493     400     131885
    97117011     91908     92108     143493     500     131886
    97117011     91908     92108     143493     600     131887
    97117011     91908     92108     143493     700     131888
    97117011     91908     92108     143493     800     131889
    97117011     91908     92108     143493     900     131890
    97117011     91908     92108     143493     1000     131891
    97117011     91908     92108     143493     1100     131892
    97117011     91908     92108     143493     1200     131893
    97117011     91908     92108     143493     1300     131894
    97117011     91908     92108     143493     1400     131895
    97117011     91908     92108     143493     1500     131896
    97117011     91908     92108     143493     1600     131897
    97117011     91908     92108     143493     1700     131898
    97117011     91908     92108     143493     1800     131899
    97117011     91908     92108     143493     1900     131900
    97117011     91908     92108     143493     2000     131901
    97117011     91908     92108     143493     2100     131902
    97117011     91908     92108     143493     2200     131903
    97117011     91908     92108     143493     2300     131904
    97117011     91908     92108     143493     2400     131905
    What I wanted was to add 2 columns to all data above, the reason is the dataset above has 72 files, one file per hour for 3 days from Friday 01:00 and ending the Sunday i 2400, but all have in all of the above data is just the date of beginning and end, so I created the following query to add the columns :
    SELECT *
      FROM (SELECT t.*,
                   TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24),
                            'Day'
                           ) AS weekday,
                                  TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24),
                            'mmddyy'
                           ) AS next_date
              FROM (SELECT t1.id_nbr,
                                                  t1.start_date,
                           TO_CHAR (TO_DATE (t1.start_date, 'mm/dd/yy'),
                                    'fmDay'
                                   ) AS start_day,
                           t1.end_date,
                           TO_CHAR (TO_DATE (t1.end_date, 'mm/dd/yy'),
                                    'fmDay'
                                   ) AS end_day,
                           t2.sample_id_1, t2.cin_data_id,
                           t2.end_intv_time, ROW_NUMBER () OVER (PARTITION BY t2.sample_id_1 ORDER BY t2.cin_data_id)
                                                                            AS rn,
                           COUNT (t2.cin_data_id) OVER (PARTITION BY t2.sample_id_1)
                                                                           AS cnt,
                           t1.weekend_flag
                      FROM sample t1,
                           weekend t2
                     WHERE t1.sample_id = t2.sample_id_1
                       AND t1.weekend_flag = 'Y') t)
     WHERE TRIM (weekday) IN ('Friday', 'Saturday', 'Sunday')
       AND nbr = '000097117011'
    And the problem I have now is instead of 72 for 3 days I get only 71 and time 2400 is paased on the next day, I tried to use CEIL instead and ended up getting 48 reocrds instead, the following dataset is when I used the above query
    ID_NBR     START_DATE     START_DAY     NEXT_DATE     WEEKDAY     END_DATE     END_DAY     SAMPLE_ID     CIN_DATA_ID     END_INTV_TIME
                                                 
    97117011     91908     Friday     91908     Friday        92108     Sunday     143493     131848     1500
    97117011     91908     Friday     91908     Friday        92108     Sunday     143493     131849     1600
    97117011     91908     Friday     91908     Friday        92108     Sunday     143493     131850     1700
    97117011     91908     Friday     91908     Friday        92108     Sunday     143493     131851     1800
    97117011     91908     Friday     91908     Friday        92108     Sunday     143493     131852     1900
    97117011     91908     Friday     91908     Friday        92108     Sunday     143493     131853     2000
    97117011     91908     Friday     91908     Friday        92108     Sunday     143493     131854     2100
    97117011     91908     Friday     91908     Friday        92108     Sunday     143493     131855     2200
    97117011     91908     Friday     91908     Friday        92108     Sunday     143493     131856     2300
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131857     2400
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131858     100
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131859     200
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131860     300
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131861     400
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131862     500
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131863     600
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131864     700
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131865     800
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131866     900
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131867     1000
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131868     1100
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131869     1200
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131870     1300
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131871     1400
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131872     1500
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131873     1600
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131874     1700
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131875     1800
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131876     1900
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131877     2000
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131878     2100
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131879     2200
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131880     2300
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131881     2400
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131882     100
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131883     200
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131884     300
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131885     400
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131886     500
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131887     600
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131888     700
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131889     800
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131890     900
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131891     1000
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131892     1100
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131893     1200
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131894     1300
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131895     1400
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131896     1500
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131897     1600
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131898     1700
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131899     1800
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131900     1900
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131901     2000
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131902     2100
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131903     2200
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131904     2300
    Need help please.
    Thank you

    Hello

    Hours in a range of 0 to 23 hours day after midnight. You count from 1, not 0, so the 24th hour (from Friday) is actually from 00:00 on Saturday, and the 72nd hour is 00:00 Monday, that you are not counting in the WHERE clause.

    Maybe when you calculate tn, you might simply subtract 1:

     SELECT *
      FROM (SELECT t.*,
                   TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24),
                            'Day'
                           ) AS weekday,
                                  TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24),
                            'mmddyy'
                           ) AS next_date
              FROM (SELECT t1.id_nbr,
                                                  t1.start_date,
                           TO_CHAR (TO_DATE (t1.start_date, 'mm/dd/yy'),
                                    'fmDay'
                                   ) AS start_day,
                           t1.end_date,
                           TO_CHAR (TO_DATE (t1.end_date, 'mm/dd/yy'),
                                    'fmDay'
                                   ) AS end_day,
                           t2.sample_id_1, t2.cin_data_id,
                           t2.end_intv_time, ROW_NUMBER () OVER (PARTITION BY t2.sample_id_1 ORDER BY t2.cin_data_id)
                                 - 1           -- Added
                                                                            AS rn,
                           COUNT (t2.cin_data_id) OVER (PARTITION BY t2.sample_id_1)
                                                                           AS cnt,
                           t1.weekend_flag
                      FROM sample t1,
                           weekend t2
                     WHERE t1.sample_id = t2.sample_id_1
                       AND t1.weekend_flag = 'Y') t)
     WHERE TRIM (weekday) IN ('Friday', 'Saturday', 'Sunday')
       AND nbr = '000097117011'
    

    To view the actual end time, add one hour before posting.

    What happens if you are missing a row for some reason any? Just using ROW_NUMBER won't take the missing line into account. It would be preferable to derive the time of the end_intc_timecolumn. Of course, it would be even better to store the date and time ending in a DATE column all the way.

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all tables and also post the results desired from these data.
    Explain, using specific examples, how you get these results from these data.
    You must not post a lot of data: 6 hours, ending at midnight Monday, should be enough to show the problem and its solution.

    Always tell what version of Oracle you are using.

  • Need help with this code to update the user interface example

    I'm triying to understand the differences between the three methods to manage UI interactions.
    I'm really confused with these three terms when triying them figure out in a real case.
    Basically, I know that I should use invokeLater, invokeAndWat, or getEventLock() to avoid
    This exception: java.lang.illegalStateException: engine access UI without holding the lock on the event

    The code below illustrates the function of the invokeAndWait method, but if I replace it with
    invokeLater or getEventLock() the program will work exactly the same way.
    Could you please change the code to show the differences between the three
    methods of updating the user interface?

    / public final class HelloWorldMainScreen extends form {}

    private LabelField labelField;
    public HelloWorldMainScreen() {}
    labelField = new LabelField ("Hello World");
    Add (labelField);
    Thread MainScreenUpdaterThread = new MainScreenUpdaterThread (this);
    thread. Start();
    }

    {} public void appendLabelText (String text)
    labelField.setText(labelField.getText()+"\n"+text);
    }

    }

    SerializableAttribute public class MainScreenUpdaterThread extends Thread {}
    HelloWorldMainScreen screen;

    public MainScreenUpdaterThread (screen HelloWorldMainScreen) {}
    this.mainScreen = screen;
    }

    public void run() {}
    for (int i = 0; i)< 10;="" i++)="">
    try {}
    Thread.Sleep (5000);
    } catch (InterruptedException ex) {};
    UiApplication.getUiApplication () .invokeAndWait (new Runnable() {}
    public void run() {}
    mainScreen.appendLabelText ("Update");
    }
    });

    }
    }
    }

    These three concepts are very confusing for a lot from people so all explanatory source code
    describing their functions will be highly useful for everyone, I think.

    Thanks in advance!

    With respect to the effect, there is no difference between methods.  The difference is the way in which the result is achieved.  So we can't change the code to show you the difference.

    As we are unable to demonstrate the difference, you have to do with an explanation.  To understand the explanation, you'll need to understand the thread of events, so if you have not already, please consider this:

    http://supportforums.BlackBerry.com/T5/Java-development/what-is-the-event-thread/Ta-p/446865

    If the three options are differentiated by the processing order:

    (a) invokeLater executes the update on the thread of events.  The transformation takes place at a later stage and the code which is in order after the invokeLater will actually run before the code within the invokeLater.

    (b) invokeAndWait also manages the update on the thread of events, which means that all other events that await on the thread of events will be run before this code.  But any code after the invokeAndWait will not be executed.

    (c) the synchronized option, like invokeAndWait, runs the update of the UI before moving on to the following code.  The difference is that the code to run on the event Thread is not executed before code in the synchronized block.

    If this is meaningless, so that probably does not matter too much.  in general, you should use invokeLater, except if you need to update the user interface occur in the order with your background processing.  If so, use invokeAndWait. It has synced are very few occasions where you must use the block, and it should be very small updates to the user interface and you should understand the implications this could have on the wire events.

  • 1 important update is never installed. Code 8007007E update: KB 94895 need help with this one. I would be very grateful!

    I can't find similar situations

    Check this KB number, please.

    Previous discussions about the error: http://www.google.com/search?hl=en&safe=off&rls=com.microsoft: en - US & q = + site: social.answers.microsoft.com + social.answers.microsoft.com + 8007007e & ei = SpXIAcPElAfKz9mHCw-bud & his = X & oi = nshc & resnum = 1 & ct = more results, & ved = 0CAsQ2AQ ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Need help with ics. SQL return null

    Hi experts WCS.

    I have this ics. SQL statement that returns an IList as null and nothing in the errStr in debugging print.

    IList rsATypes is ics. SQL (, sqlATypes, listName, limit, bCache errStr);

    The code is in one of my jsp. He ran very well in my local JSK (HyperSQL Db), but returns NULL in the case of Test (Oracle DB, if this is another).

    I got the sql statement println during execution and run it directly in Oracle DB (same instance) it returns the expected result set.

    The code snippet:

      System.out.println("## ics.GetSSVar(\"pubid\")          : " + ics.GetSSVar("pubid"));
    
        // Get Attribute Types
        String sqlATypes = "SELECT DISTINCT assetpublication.assettype "
                         + "FROM assetpublication "
                         + "LEFT JOIN approvedassets "
                         + "    ON assetpublication.assetid = approvedassets.assetid "
                         + "WHERE pubid = '" + ics.GetSSVar("pubid") + "' "
                         + "AND (tstate is null OR tstate <> 'A') "
                         + "AND (voided is null OR voided <> 'T') "
                         + "ORDER BY assettype; ";
        System.out.println("##0126 sqlATypes : " + sqlATypes);
        String from = "AssetPublication, ApprovedAssets";
        // String listName = null;
        String listName = "ATypesList";
        int limit = -1;
        // boolean bCache = true;
        boolean bCache = false;
        StringBuffer errStr = new StringBuffer("");
        ics.ClearErrno();
        IList rsATypes = ics.SQL(from, sqlATypes, listName, limit, bCache, errStr);
    
        System.out.println("## rsATypes : " + rsATypes);
        if (rsATypes == null) {
            System.out.println("## NO DATA in rsATypes! errStr : " + errStr.toString());
    

    }

    The journal:

    ## ics.GetSSVar("pubid")          : 1374097570685
    ## sqlATypes : SELECT DISTINCT assetpublication.assettype FROM assetpublication LEFT JOIN approvedassets     ON assetpublication.assetid = approvedassets.assetid WHERE pubid = '1374097570685' AND (tstate is null OR tstate <> 'A') AND (voided is null OR voided <> 'T') ORDER BY assettype;
    ## rsATypes : null
    ## NO DATA in rsATypes! errStr :
    


    I got enclosing try catch block, who did not take any exception.


    The funny thing is, in the same piece of code, an ics. Casea used already worked (which I noticed outside because there was not enough for what I want to do):

            StringBuffer errSB = new StringBuffer("");
            ics.SetVar("assetid", id);
            IList approvedAsset = ics.SelectTo("ApprovedAssets", "state,voided,tstate,locked,reason,treason", "assetid", null, -1, null, true, errSB);
    

    Any help/ideas from anyone would be really appreciated.

    Thanks Guddu1223, I discovered why.

    The SQL statement cannot end with a semicolon (see line 11 of my original above codes). Delete who had back all the records provided for in my resultset in the IList.

    The reason why it works in my local, but not stable instance that I guess is my local JSK + HyperSQL, in WCS + Oracle DB instance trying...

  • I'm working on a very simple site. I used Muse before so I will try to understand why my hyperlinks don't work properly. I need help with this ASAP!

    I looked at all the sites help - remade several times links:

    Here is the link to the page that does not work and it's links down in the order your copy now in red section. The links are all in place... Please explain what is happening - looking code in Dreamweaver is a bit of a chore too. This site needs to go live in two weeks, so your help is urgent. Thank you! KJA

    www.kjakreations.com/TCS/Books.html

    Are you referring to three links in this block? They seem to work correctly? If this isn't what you want to say can you provide more details?

    On a side note: usually when users have a problem with the links not being is not active it is because there is an invisible element or overlapping on the page on the link.

  • Need help with this error

    so I did some coding in flash develop for a flash app im building and during the test, I get this error message when running and I don't know what it is and how to fix it heres I get the error message:

    ArgumentError: Error #2173: cannot read the object in the stream.  The flex.messaging.io.ArrayCollection of the class does not implement flash.utils.IExternalizable but has an alias to an externalizable class.

    And here's the code I did

    package  
    {
              import flash.display.MovieClip;
              import flash.display.Sprite;
              import flash.events.MouseEvent;
              import flash.net.NetConnection;
              import flash.net.registerClassAlias;
              import flash.net.Responder;
              import flash.text.TextField;
              //import com.demonsters.debugger.MonsterDebugger;
              //import mx.Collections.ArrayCollection;
              //registerClassAlias("flex.messaging.io.ArrayCollection", ArrayCollection);
      
              /**
               * ...
               * @author DAR
               */
              public class Main extends MovieClip
              {
                        private var conn:NetConnection;
      
                        public var name1:TextField
                        public var name2:TextField;
                        public var name3:TextField; 
                        public var name4:TextField;
      
                        public var rating1:TextField;
                        public var rating2:TextField;
                        public var rating3:TextField;
                        public var rating4:TextField;
      
                        public var comments1:TextField;
                        public var comments2:TextField;
                        public var comments3:TextField;
                        public var comments4:TextField;
      
                        public var inputName:TextField;
                        public var inputComment:TextField;
                        public var inputRating:TextField;
                        public var submitReviewBtn:Sprite;
      
                        public function Main() 
                        {
                                  //MonsterDebugger.initialize(this);
                                  trace ("document class running");
                                  setupConnection();
                                  setupInputArea();
                                  getReviews();
      
                        }
      
                        private function setupInputArea()
                        {
                                  submitReviewBtn.addEventListener(MouseEvent.CLICK, addNewReview);
                        }
      
                        private function addNewReview(e:MouseEvent):void 
                        {
                                  //Add review to database
                                  var resAddReview:Responder = new Responder(onAddReviewSuccess, onAddReviewFail);
                                  conn.call("yomo_films.addReview", resAddReview,  inputName, inputRating, inputComment);
                                  gotoAndPlay(5);
                        }
      
                        private function addUserReview():void
                        {
                                  var resAddReview:Responder = new Responder(onAddReviewSuccess, onAddReviewFail);
                                  conn.call("yomo_films.addReview", resAddReview, "Amanda", 5 , "Really good movie");
                        }
      
                        private function onAddReviewFail(o:Object):void 
                        {
      
                        }
      
                        private function onAddReviewSuccess(o:Object):void 
                        {
                                  //Refresh all Reviews
                                  getReviews();
                        }
      
                        private function getReviews():void
                        {
                                  //Create a responder object
                                  var res:Responder = new Responder(onResult, onFail);
                                  //Run a call to our service
                                  conn.call("yomo_films.getReviews", res);
                        }
      
                        private function onResult(o:Object):void
                        {
                                  trace("Success");
                                  //MonsterDebugger.trace("onResult", o);
                                  //Populate our reviews table
                                  for (var i:int = 0; i < 5; i++)
                                  {
                                            //get our current name / rating / comments object
                                            var item:Object = [i];
                                            var nameTxt:TextField = getChildByName("name" + (i + 1)) as TextField;
                                            var ratingTxt:TextField = getChildByName("ratings" + (i + 1)) as TextField;
                                            var commentTxt:TextField = getChildByName("comments" + (i + 1)) as TextField;
                                            //test if we have a name
                                            if (item.name)
                                            {
                                                      nameTxt.text = item.name;
                                                      ratingTxt.text = item.ratings;
                                                      commentTxt.text = item.comments;
                                            }
                                  }
                        }
      
                        private function onFail(o:Object):void
                        {
                                  trace("Failed");
                                  //MonsterDebugger.trace("onFail", o);
                        }
      
                        private function setupConnection():void
                        {
                                  trace("Setting up gateway connection");
                                  //Create a new net connection
                                  conn = new NetConnection();
                                  //Connect to the net connection
                                  conn.connect("http://localhost/amfphp/gateway.php");
                        }
      
              }
    
    
    }
    

    the error, I guessed it was something to do with flex, but I do not use flex so I don't know what to do. I was looking for them to know how to fix this error for more than a week now and still no luck. I need a fast and quick help and intelligence on this help please!

    Finally it sorted! It had something to do with the collection in the mx.collections ArrayCollection will not be related to ACE where the error. Heres so what I've done:

    Import mx.collections.ArrayCollection;

    import flash.net.registerClassAlias;

    registerClassAlias ("flex.messaging.io.ArrayCollection", collection ArrayCollection);

    I imported the ArrayCollection class collection and the registerClassAlias in the AS class I used and then registered the alias, then voila! the error is gone!

  • Hi, I need help with this

    OK, so I use flash programming of course and I am trying to initialize a collision for a roof he says that collision has not been declared.

    I have

    import flash.display.MovieClip;

    import flash.events.KeyboardEvent;

    import flash.ui.Keyboard;

    import flash.events.Event;

    SerializableAttribute public class Main_Ninja extends MovieClip

    {

    var vx:int;

    var vy:int;

    var: score: uint;

    var collisionHasOccurred:Boolean;

    var playerHasMoney:Boolean;

    I am trying to initialize

    Collision.Block (player, roof);

    but when I try to initialize it gets stuck in an infinite loop for this

    If (player.hitTestObject (enemy))

    {

    enemy.gotoAndStop (2);

    -Health.meter.Width;

    If (! collisionHasOccurred)

    {

    Note ++;

    messageDisplay.text = String (score);

    collisionHasOccurred = true;

    }

    }

    on the other

    {

    enemy.gotoAndStop (1);

    collisionHasOccurred = false;

    }

    Please help me if you can.

    'about the same' does not work when it comes to executable code.  You can miss one, which seems to make you a little detail and completely break your code so that nothing works.

    're missing you something.  for example, whoever you are, probably, the copy has a file (named Collision.as) in their class path.  you need this file.

  • Need help with this calculation

    Hi members,

    Im trying to do some logical columns for calculations. It is a very simple calculation, but I can't seem to make it work in the repository.
    The data upon which I make eyes of calculation as follows.

    Issue Nr. | Question | Meet Nr. | Response | Answers (number of responses)
    1. | Job satisfaction | 1. | Very good | 8
    1. | Job satisfaction | 2 | Good | 2
    1. | Job satisfaction | 3 | Bad | 5
    1. | Job satisfaction | 4 | Very bad. 0

    It is an example of the data. Now, I want to make a logical column to calculate the 'happiness factor '. The formula looks like:

    (Very good + good) / (very good + good + good + bad) * 100 = happiness

    So it would be 10 / 15 * 100 = 66.66.

    Very simple, but I have no idea on how to accomplish this formula in the repository. What I was aiming for in my head, it was something like:

    Select the answers where [answer] Nr. (3,4) / select responses where [answer]. Nr in (1,2) * 100 = :)


    Does anyone know how to do this in the repositroy? It would be highly appreciated.

    Erik.

    Hello

    This happens when we don't know all the facts and we create our scenarios and responses only what we know...

    Now you can do if you do not use 'no opinion' or 'Empty response' in our 'answers' but again to tuition assistance box...

    'All answers worth calculation' =
    case when answer in ('list of what answers I want to aggregate', ((Very) Happy... (Very) Unhappy))
           then 'my new All answers'
           else 'answers I need to ignore'
    end
    

    and our dimmnesion should look like:

    'Type of survey' -> 'Question' -> 'All answers worth calculation' -> Happiness -> Answer
    

    in this case the levels should be no to the 'Question' but to our new "answers a calculation value..."

    So, for an issue with 21 responses it is only 6 entries ((very) happy, (very) unfortunate, Blank, do not know)
    A separate account solves your problem...

    In addition, in your last post I don't understand how you can sum UP non-numerical data (Happy/headaches)
    No aggregate data not digital (Happy/headaches)
    you aggregate your fact group by happiness(Happy/Upset)

    sum ('Table'.) ("' #Answers" by BOX WHEN in Answer (' very good ',' good ') THEN ELSE 'Evils' END 'Happy' *) *.

    I think you've got the ideea of how play with several groups on the same Assembly and how to manipulate BI...
    All you have to do is to play with your data to add or exclude what you need
    If the data is not there you want you allways can create a view in the database or in physical layer so it can help you more.
    On another thing... There is a way to filter data at the logical level at the source of the logical table, the content tab, where clause. Don't say you use here, just give it a shot

    Best regards and fun of it
    Nicolae

Maybe you are looking for

  • iMessage hangs when starting

    My iMessage application crashes on my Macbook Pro 15 inch (last El Capitan), immediately after it starts. Error message is: Reason for termination due to an untrapped exception "NSInvalidArgumentException" app,: '-[__NSCFString getBytes:length:]: unr

  • iCloud mini IPad backup

    ICloud backup maps downloaded from Google Maps and maps Navionics and Bruce Trail hiking ms?  Is there anywhere you can see that the files are saved, i.e. provides a list as a backup of the computer?

  • Satellite A300-1LT-cannot install the WLAN driver

    I have the Satellite A300-1LT with Windows XP x 64 on my system.Most of the drivers works fine, but I can't get the wireless to work.I tried all the drivers (intel, realtek, atheros) and nothing seams to work? Help, please!

  • Gigabeat room 2.0.2 on Windows 7

    First of all, thank you and I give an apology because of my English:The poblem is that I have an old Toshiba music player: Gigabeat F20 and I always use it. In fact, I changed (or moved on?) from Windows XP to Windows 7 and I tried to install the GIG

  • How can I change the color and size of all the text in all applications to help the visually impaired?

    My son it is very difficult to make a black text on white background, but he is very good with blue on white. How can I make sure that all text, regardless of the program, etc., shows the text in blue on a white background? We use Vista. Thank you.