After Trigger Select into issue

CREATE OR REPLACE TRIGGER "TAB2_AI"
AFTER INSERT ON Table2
FOR EACH ROW
DECLARE
t1ID number;
t3Seq number;
BEGIN
Select t.id INTO t1ID from Table1 t where trim(upper(name)) = trim(upper(:new.NAME))
SELECT Table3_SEQ.nextval into t3Seq from dual;
Insert into Table3(ID,t1ID,t2ID,Active,CreatedDate) Values
(t3Seq,t1ID,:new.ID,1,sysdate)
EXCEPTION
when others then
raise_application_error(-20004,
'Error occured! New Row ID = ' || :new.ID );
END TAB2_AI;
I am writing after Insert Trigger. I have 3 tables. I need to write after Insert on Table2.
But in my Table 3 i want to insert table1 ID and table2 ID and other info.
Now getting the table1 ID is giving the problem. Please See below statement. This is causing the problem.
Select t.id INTO t1ID from Table1 t where and trim(upper(Dname)) = trim(upper(:new.NAME))
Could you please tell me the work around how to put select into in a trigger? Any suggestions highly appreciated.
Edited by: Chris90909 on Jan 29, 2010 9:20 AM
Edited by: Chris90909 on Jan 29, 2010 9:29 AM

You said
Please See below statement. This is causing the problem.
Select t.id INTO t1ID from Table1 t where and trim(upper(Dname)) = trim(upper(:new.NAME))But in your code you are using following query
Select t.id INTO t1ID from Table1 t where trim(upper(name)) = trim(upper(:new.NAME))These are 2 different queries. In first one , in where clause you are using column name as Dname and the query you are using in your trigger has column name as name in where clause.

Similar Messages

  • Select Into code not working in Trigger

    Hello there,
    I was hoping somebody could give me the solution to this problem ,
    I have a scenarior in which I was trying to insert into table B if an insert occurs on Table A by the use of a trigger on table A .
    Here is the code:
    BEGIN
    IF INSERTING THEN
    select MAX(Val1),MAX(Val2)
    INTO localVar_1 ,localVar_2
    from tableC,tableD
    where <<some join condition>>
    INSERT INTO TABLEB(col1 ,
    col2,
    col3,
    col4,
    col5,
    col6,
    col7,
    col8,
    col9)
    VALUES(:new.someValue1,
    :new.someValue2,
    :new.someValue3,
    localVar_1,
    localVar_2,
    :new.someValue4,
    :new.someValue5,
    :new.someValue6,
    :new.someValue7);
    END IF;
    The Error I get is ORA-01400 "Cannot Insert Null Into" "Schema"."Table"."Column" . I suspect my localVar_1 to be nulled out ,which brings into question the SELECT INTO prior to this which is supposed to assign a value to these variables , If I do just a SELECT that seems to work but SELECT INTO seems to be having problems . Any suggestions?

    Check the NOT NULL constraint in TABLEB, and if you find any columns having it, try to insert a fixed value and see it it works.
    thanks

  • End Planning Run After Order Selection - issue not clearing down all plans

    Hi,
    We are using the CTM Profile with "End Planning Run After Order Selection" ticked in the basic settings tab in order to clear down previous CTM runs. So we have a CTM deletion profile.
    The issue is that it requires more than one execution to clear down the Planned Orders / Purchase Requisitions. You execute the Deletion CTM Profile once and it will clear down some of the Purchase Requisitions and Planned Orders and leave some still in place. You then have to execute the deletion CTM profile one or two more times in order to delete the remaining Planned Orders / Purchase Requisitions.
    This is clearly not realiable for a batch process to clear down plans. Has anyone else experienced this and does anyone have a solution. The solution cannot be based on RLCDELETE or /SAPAPO/DELETE_PP_ORDER
    Mark

    Hi,
    Can you check your planning mode and deletion mode combination defined in the ctm profile.
    Prerequisties for deleting the orders:
    u2022 They are within the planning and deletion periods
    u2022 They do not have pegging relationships with demands outside of the planning period
    They lie outside of the production horizon, stock transfer horizon and the planned delivery time
    In addition, all location products of an order must be included in the Master Data Selection so that CTM can
    delete the order. Also, CTM cannot delete any manually fixed orders.
    If you have selected the SNP Order order type in the CTM profile, CTM cannot delete any PP/DS orders. This
    restriction is also valid the other way round for the PP/DS Order order type. If you select this order type, CTM also
    deletes SNP orders.
    Thanks,
    nandha

  • TS3274 In my iPad's Photo folder, after I select edit, and apply check marks to specific photos, the red 'Delete' button does not function.  How do I correct this issues?

    To anyone familiar with iPad 2s,
    After I select the Sunflower Photo icon and touch 'Edit', apply check marks to specific photos I want deleted, the red 'Delete button doesn't function.  How do I correct this?
    Thanks

    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    (With iOS 5.1, use 2 fingers)
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
     Cheers, Tom

  • Hard drive wakes up immediately after being put into standby

    I have an IDE disk which, till now, I used to keep in standby mode (it makes an audible humming noise when it's working which annoys me a lot :<). Today I noticed that after running `hdparm -y' on it, it would spin down but then it would immediately spin up again. I'm certain that the disk isn't being used and doesn't have any partitions mounted anywhere on the filesystem. Still, I'm unable to pinpoint the reason it's waking up.
    Any ideas on why this is happening?
    Edit: It appears that the disk gets into standby by itself after 10 minutes. I wish I knew where this value is coming from. O.o
    Edit2: Those 10 minutes must be coming from `hdparm -S1 /dev/sdb'; maybe the hard drive has a lower limit in regard to this setting. :3
    (I'm not sure what kind of information would be useful in order to troubleshoot this issue, but below are some bits I believe are relevant)
    Failed attempt to put the drive into standby:
    [root@foutboxd ~]# hdparm -y /dev/sdb; hdparm -C /dev/sdb; sleep 1; hdparm -C /dev/sdb
    /dev/sdb:
    issuing standby command
    /dev/sdb:
    drive state is: standby
    /dev/sdb:
    drive state is: active/idle
    hdparm -I:
    [root@foutboxd ~]# hdparm -I /dev/sdb
    /dev/sdb:
    ATA device, with non-removable media
    Model Number: WDC WD2500SB-01KBC0
    Serial Number: WD-WCAL77403899
    Firmware Revision: 08.02D08
    Standards:
    Supported: 6 5 4
    Likely used: 8
    Configuration:
    Logical max current
    cylinders 16383 16383
    heads 16 16
    sectors/track 63 63
    CHS current addressable sectors: 16514064
    LBA user addressable sectors: 268435455
    LBA48 user addressable sectors: 488397168
    Logical/Physical Sector size: 512 bytes
    device size with M = 1024*1024: 238475 MBytes
    device size with M = 1000*1000: 250059 MBytes (250 GB)
    cache/buffer size = 8192 KBytes (type=DualPortCache)
    Capabilities:
    LBA, IORDY(can be disabled)
    Standby timer values: spec'd by Standard, with device specific minimum
    R/W multiple sector transfer: Max = 16 Current = 16
    Recommended acoustic management value: 128, current value: 254
    DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
    Cycle time: min=120ns recommended=120ns
    PIO: pio0 pio1 pio2 pio3 pio4
    Cycle time: no flow control=120ns IORDY flow control=120ns
    Commands/features:
    Enabled Supported:
    * SMART feature set
    Security Mode feature set
    * Power Management feature set
    * Write cache
    * Look-ahead
    * Host Protected Area feature set
    * WRITE_BUFFER command
    * READ_BUFFER command
    * DOWNLOAD_MICROCODE
    Power-Up In Standby feature set
    * SET_FEATURES required to spinup after power up
    SET_MAX security extension
    * Automatic Acoustic Management feature set
    * 48-bit Address feature set
    * Device Configuration Overlay feature set
    * Mandatory FLUSH_CACHE
    * FLUSH_CACHE_EXT
    * SMART error logging
    * SMART self-test
    * SMART Command Transport (SCT) feature set
    * SCT Long Sector Access (AC1)
    * SCT LBA Segment Access (AC2)
    * SCT Error Recovery Control (AC3)
    * SCT Features Control (AC4)
    * SCT Data Tables (AC5)
    Security:
    Master password revision code = 65534
    supported
    not enabled
    not locked
    not frozen
    not expired: security count
    not supported: enhanced erase
    HW reset results:
    CBLID- above Vih
    Device num = 0 determined by the jumper
    Checksum: correct
    smartctl --all:
    [root@foutboxd ~]# smartctl --all /dev/sdb
    smartctl version 5.38 [x86_64-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
    Home page is http://smartmontools.sourceforge.net/
    === START OF INFORMATION SECTION ===
    Model Family: Western Digital Caviar RE EIDE family
    Device Model: WDC WD2500SB-01KBC0
    Serial Number: WD-WCAL77403899
    Firmware Version: 08.02D08
    User Capacity: 250,059,350,016 bytes
    Device is: In smartctl database [for details use: -P show]
    ATA Version is: 6
    ATA Standard is: Exact ATA specification draft version not indicated
    Local Time is: Wed Mar 11 21:47:50 2009 EET
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled
    === START OF READ SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED
    General SMART Values:
    Offline data collection status: (0x84) Offline data collection activity
    was suspended by an interrupting command from host.
    Auto Offline Data Collection: Enabled.
    Self-test execution status: ( 0) The previous self-test routine completed
    without error or no self-test has ever
    been run.
    Total time to complete Offline
    data collection: (6951) seconds.
    Offline data collection
    capabilities: (0x7b) SMART execute Offline immediate.
    Auto Offline data collection on/off support.
    Suspend Offline collection upon new
    command.
    Offline surface scan supported.
    Self-test supported.
    Conveyance Self-test supported.
    Selective Self-test supported.
    SMART capabilities: (0x0003) Saves SMART data before entering
    power-saving mode.
    Supports SMART auto save timer.
    Error logging capability: (0x01) Error logging supported.
    No General Purpose Logging support.
    Short self-test routine
    recommended polling time: ( 2) minutes.
    Extended self-test routine
    recommended polling time: ( 88) minutes.
    Conveyance self-test routine
    recommended polling time: ( 5) minutes.
    SCT capabilities: (0x003f) SCT Status supported.
    SCT Feature Control supported.
    SCT Data Table supported.
    SMART Attributes Data Structure revision number: 16
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
    1 Raw_Read_Error_Rate 0x000b 200 200 051 Pre-fail Always - 0
    3 Spin_Up_Time 0x0007 236 124 021 Pre-fail Always - 708
    4 Start_Stop_Count 0x0032 098 098 040 Old_age Always - 2680
    5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
    7 Seek_Error_Rate 0x000b 200 200 051 Pre-fail Always - 0
    9 Power_On_Hours 0x0032 081 081 000 Old_age Always - 14289
    10 Spin_Retry_Count 0x0013 100 100 051 Pre-fail Always - 0
    11 Calibration_Retry_Count 0x0013 100 100 051 Pre-fail Always - 0
    12 Power_Cycle_Count 0x0032 098 098 000 Old_age Always - 2365
    194 Temperature_Celsius 0x0022 123 092 000 Old_age Always - 27
    196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
    197 Current_Pending_Sector 0x0012 200 200 000 Old_age Always - 0
    198 Offline_Uncorrectable 0x0012 200 200 000 Old_age Always - 0
    199 UDMA_CRC_Error_Count 0x000a 200 253 000 Old_age Always - 0
    200 Multi_Zone_Error_Rate 0x0009 200 200 051 Pre-fail Offline - 0
    SMART Error Log Version: 1
    No Errors Logged
    SMART Self-test log structure revision number 1
    No self-tests have been logged. [To run self-tests, use: smartctl -t]
    SMART Selective self-test log data structure revision number 1
    SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
    1 0 0 Not_testing
    2 0 0 Not_testing
    3 0 0 Not_testing
    4 0 0 Not_testing
    5 0 0 Not_testing
    Selective self-test flags (0x0):
    After scanning selected spans, do NOT read-scan remainder of disk.
    If Selective self-test is pending on power-up, resume after 0 minute delay
    Last edited by foutrelis (2009-03-12 10:18:25)

    Here is what i get when i try that command.:
    $ sudo hdparm -B 254 /dev/sdc
    /dev/sdc:
    setting Advanced Power Management level to 0xfe (254)
    HDIO_DRIVE_CMD failed: Input/output error
    APM_level = not supported
    I tried other values also and its always the same error.
    I just did another try with -y and the drive stayed in standby during ±40 minutes this time. The most annoying part is that is something that was not happening before I am pretty sure that it would stay in standby for days.
    I also included my results for hdparm -I.:
    $ sudo hdparm -I /dev/sdc
    /dev/sdc:
    ATA device, with non-removable media
    Model Number: WDC WD800JB-00JJC0
    Serial Number: WD-WCAM9N730552
    Firmware Revision: 05.01C05
    Standards:
    Supported: 6 5 4
    Likely used: 8
    Configuration:
    Logical max current
    cylinders 16383 16383
    heads 16 16
    sectors/track 63 63
    CHS current addressable sectors: 16514064
    LBA user addressable sectors: 156299375
    Logical/Physical Sector size: 512 bytes
    device size with M = 1024*1024: 76318 MBytes
    device size with M = 1000*1000: 80025 MBytes (80 GB)
    cache/buffer size = 8192 KBytes
    Capabilities:
    LBA, IORDY(can be disabled)
    Standby timer values: spec'd by Standard, with device specific minimum
    R/W multiple sector transfer: Max = 16 Current = 1
    Recommended acoustic management value: 128, current value: 254
    DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
    Cycle time: min=120ns recommended=120ns
    PIO: pio0 pio1 pio2 pio3 pio4
    Cycle time: no flow control=120ns IORDY flow control=120ns
    Commands/features:
    Enabled Supported:
    * SMART feature set
    Security Mode feature set
    * Power Management feature set
    * Write cache
    * Look-ahead
    * Host Protected Area feature set
    * WRITE_BUFFER command
    * READ_BUFFER command
    * DOWNLOAD_MICROCODE
    SET_MAX security extension
    * Automatic Acoustic Management feature set
    * Device Configuration Overlay feature set
    * Mandatory FLUSH_CACHE
    * SMART error logging
    * SMART self-test
    * SMART Command Transport (SCT) feature set
    * SCT Long Sector Access (AC1)
    * SCT LBA Segment Access (AC2)
    * SCT Error Recovery Control (AC3)
    * SCT Features Control (AC4)
    * SCT Data Tables (AC5)
    Security:
    Master password revision code = 65534
    supported
    not enabled
    not locked
    frozen
    not expired: security count
    not supported: enhanced erase
    HW reset results:
    CBLID- above Vih
    Device num = 0 determined by the jumper
    Checksum: correct

  • Sender JDBC Adapter Select/Update Issue

    Dear All,
    We have configured a Sender JDBC Adapter to Poll data from the DB2 tables. It is working fine and both the select and the update queries written are also getting properly executed and are changing the status of the flag from Y to N once read from database.
    In the communication channel ->
    select * from <table> where flag = 'N'.
    update <table> set flag = 'Y' where flag = 'N'.
    But I have one doubt after executing the select query some new data comes into the table of status flag 'N"., then will this unselected data will also be updated to 'Y' .
    The question is while we do a select and update from XI on the DB table and at the same time there is an insert happening into the table from the other end how will the adpater behave in this case.Will it result in missing of some records during next select/update transaction from XI..
    Your inputs will be appreciated.
    Regards
    Amit

    Amit
    Did you ever get a solution to your question ?
       Sender JDBC Adapter Select/Update Issue  
    Posted: Apr 24, 2008 2:29 PM           Reply 
    Dear All,
    We have configured a Sender JDBC Adapter to Poll data from the DB2 tables. It is working fine and both the select and the update queries written are also getting properly executed and are changing the status of the flag from Y to N once read from database.
    In the communication channel ->
    select * from <table> where flag = 'N'.
    update <table> set flag = 'Y' where flag = 'N'.
    But I have one doubt after executing the select query some new data comes into the table of status flag 'N"., then will this unselected data will also be updated to 'Y' .
    The question is while we do a select and update from XI on the DB table and at the same time there is an insert happening into the table from the other end how will the adpater behave in this case.Will it result in missing of some records during next select/update transaction from XI..
    Your inputs will be appreciated.
    Regards
    Amit

  • After Trigger Not Fired

    Hi All,
    I had created a Before and After Trigger for each row on a table.
    The Before Trigger will be fired when some columns are updated.
    In the Before trigger, I will changed the value of 1 column, says delvstatus.
    The After trigger will be fired if the delvstatus was changed.
    However, I noticed that after trigger is not fired if the delvstatus is changed within Before Trigger.
    Is this a normal case for trigger execution in oracle?
    Any comments are welcome.
    Thanks.

    The before trigger and the after trigger should be fired like in the following test case.
    If not please post your test case and your 4 digits Oracle version.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL>
    SQL> drop table t purge;
    Table dropped.
    SQL> drop table log purge;
    Table dropped.
    SQL>
    SQL> create table log(txt varchar2(50));
    Table created.
    SQL>
    SQL> create table t (x int primary key, s1 int, s2 int);
    Table created.
    SQL>
    SQL> create trigger tbu
      2  before update of s1
      3  on t
      4  for each row
      5  begin
      6  :new.s1 := 1;
      7  insert into log values('tbu fired');
      8  end;
      9  /
    Trigger created.
    SQL> show errors
    No errors.
    SQL>
    SQL> create trigger tau
      2  after update of s1
      3  on t
      4  for each row
      5  begin
      6  insert into log values('tau fired');
      7  end;
      8  /
    Trigger created.
    SQL> show errors
    No errors.
    SQL>
    SQL> insert into t values(0,0,0);
    1 row created.
    SQL> update t set s1 = 2 where x = 0;
    1 row updated.
    SQL> select * from t ;
             X         S1         S2
             0          1          0
    SQL> select * from log;
    TXT
    tbu fired
    tau fired
    SQL>

  • I have iPhoto 11 installed on my iMac. Has been working for last several months ok. I am trying to create photo books but it gets hung up after I select create book. Does not create the project.  Used to work but won't create any projects

    ILife 11 (iphoto 11) installed over a year ago with no issues. Have been creating Apple Books with no issues till now.  iPhoto now will not create books, calenders or anything else. After I select "create" it does nothing. Used to work Ok. Program seems to stall and do nothing. I can still look at events and other picture files but it will now not create a "project" / "book"  Anyone with a similar issue????

    ILife 11 (iphoto 11) installed over a year ago with no issues. Have been creating Apple Books with no issues till now.  iPhoto now will not create books, calenders or anything else. After I select "create" it does nothing. Used to work Ok. Program seems to stall and do nothing. I can still look at events and other picture files but it will now not create a "project" / "book"  Anyone with a similar issue????

  • I would like to know, on the ringtone page, where you can select songs out of your music library, is there a way to remove a song from the list after its selected? I would thin there would be a way to "delete" the songs from the list. (Clock app)

    I would like to know, on the ringtone page, where you can select songs out of your music library, is there a way to remove a song from the list after its selected? I would thin there would be a way to "delete" the songs from the list. (Clock app)
    Let me explain:
    In the clock app for ios 6.0.2 I am a little confused. It allows you to go into your music library, and create a ringtone using any songs you choose. However, I cannot find a way to remove a song from this list, just like I cannot delete one of the preset ringtones (which I'm not trying to do, but just as an example)
    Thanks for your time! If you need more information just ask.
    (I believe both my iPod and iTunes are up to date)

    I believe you just are able to delete them from iTunes.
    Hope it will be helpful

  • Creative Zen's clock gets reset after being plugged into the w

    I bought the wall recharger for my Creative Zen 8 GB, as I had another MP3 player (SanDisk Sansa e260) die mysteriously after being plugged into the computer's USB port.
    The only complaint I have is that if I leave the Zen plugged in, after it finishes recharging, the screen goes blank and when I unplug it and turn it on, the clock and calendar are reset to their default (March 7, 2008).
    I am on a Vista Home Premium computer (no service pack). I have the latest the firmware on the player and use the latest version of Media Explorer.
    Does this happen to anyone else who uses the wall charger?

    Hello, I read your post & am replying to it because I too am having a clock syncronization issue but mine is not related to plugging it into a wall charger. My date AND time resets too to April 7, 2008 for some reason. I reset it yesterday to the correct date and time for yesterday (May 8, 2008) and now it is reset back to the previous date I mentioned. It couldn't even keep the time/date accurate for 24 hours! My battery was already charged however several days ago and is no where near being finished (it says half full). My firmware version is .2.0.
    Anyhow I know this doesn't help you at all, but at least you're not alone on this issue...mine doesn't originate with charging it though...maybe that will help you at the very least.
    Drew

  • Hi, we are using mac mini's for our developement purpose. connecting the same through using Real VNC. Mac mini's are late 2009 and 2010. Now we have upgraded them to 10.8.5. after upgrading having display issues after launching the simulators

    hi, we are using mac mini's for our developement purpose. connecting the same through using Real VNC. Mac mini's are late 2009 and 2010. Now we have upgraded them to 10.8.5. after upgrading having display issues after launching the simulators, we are unable to view the icons we need to move the simulator (into different places) to view the icons.
    Also we are having Mac book pro's (Late 2009 & 2010) after upgrading them to 10.8.5. Unable to launch the mac, getting only white screen with apple icon.
    Let me know is there any specific Hardware (Graphic Cards) we need to use for the same.
    Please provide me the early solutions.
    Regards,
    Suresh.

    Hi, try this first...
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.

  • Which event dispatched after text selection done on spark text area in Apple iPad using Adobe Flex 4

    I need to know which event triggered after text selection done in Apple iPad. This way i have done in desktop air app code (mouse events)
    protected function txtEditor_mouseUpHandler(event:MouseEvent):void
                if(txtEditor.selectionAnchorPosition != txtEditor.selectionActivePosition){
                    showNoteToolBar(event);
                    txtEditor.focusEnabled = true;
                    txtEditor.setFocus();
    But in Apple iPad how to achieve through "Touch Event" ? And also i need how to hide all context menu on Spaek TextArea?. Why Touch.End event is not fired after place cursor on text area ?
    Please help me !

    Ok, so I finally got it working but this is not ideal at all. Adobe really needs to give us some direction on how to properly deal with font embedding and TLF now that the release build breaks all functionality with loading runtime fonts and TLF.
    Problem:
    I am embedding collections of fonts (faces) into single family classes. Each individual face is registered with Font.registerFont(). I need to do this because I have to have mixed fonts within text flows - at least according to Alex H's recent blog post.
    Fonts do not display in TLF without doing the following:
    1. GlobalSettings.resolveFontLookupFunction = null;
    2. editor.textFlow.flowComposer.swfContext = ISWFContext(this.getFontContext("AnyFamilyNameFromAnyFontEmbedded", false, false, FontLookup.EMBEDDED_CFF));
    3. Instead of #2, use editor.textFlow.invalidateAllFormats();
    Either #2 or #3 need to be performed. If I have a spark richEditableText control in MXML with defined familes from the loaded fonts. I even tried placing the control into a separate state so it wasn't created until after the fonts were loaded... I still needed to invalidate the formats or set the context.
    The "AnyFamilyNameFromAnyFontEmbedded" does not need to be all of the embedded family names. It only needs to be one of them. Once one is used, all embedded fonts work. Also, I have to use the internal namespace to even get access to getFontContext, another oddity that, in my humble opinion, should never be necessary to create mixed style TLF content.
    My questions are then:
    1. Why am I required to use ISWFContext if I am using Font.registerFont()?
    2. Why is GlobalSettings.resolveFontLookupFunction = null; also required for this to work?
    3. What is the recommended workflow to embed fonts from multiple SWF files into the release build and have it work without having to jump through all these hoops?

  • Sender JDBC adapter SELECT / UPDATE issue - updates more rows than selected

    Hi,
    We have configured a Sender JDBC Adapter to poll records from an Oracle table based on a flag field and then update the flag for the selected records. When tested in DEV and QA environments (where test data comes in intermittently and not in huge volumes), itu2019s working fine.
    Both SELECT and UPDATE queries written in the Sender JDBC adapter are getting properly executed and are changing the status of the flag for the selected records from Y to N once read from the database.
    select * from <table> where flag = 'N'.
    update <table> set flag = 'Y' where flag = 'N'.
    But in the PROD environment (with records getting updated in the database every second), after XI executes the SELECT query and just before the UPDATE query is executed, new records come into the Oracle table with status flag 'N". So when the UPDATE query runs just after the SELECT query, then these unselected records also get updated to 'Y'. Thus these records never get into the resultset and hence XI and thus remain unprocessed.
    So when XI does a SELECT and UPDATE on the Oracle DB table and concurrently there is an INSERT happening into the table from the other end, the JDBC sender adapter is picking up a certain number of records but updating the status of more records than it picked up.
    So how does XI deal with such a common scenario without dropping records?
    Thanks,
    Vishak

    The condition being checked is the same for both SELECT and UPDATE statements.
    Initially I tried setting transaction isolation levels on the database to repeatable_read and serializable but it was throwing me a java.sql.SQLException error saying that these transaction levels were not valid.
    I asked for these transaction level permissions for the XI user from my DBA but the DB I am accessing provides only a view into other databases and so it's not possible.

  • Cannot SELECT into a user-defined type variable

    Hi All,
    Oracle 11.2 on Linux.
    See the steps below. I am not able to insert/select into a TYPE variable. I do not want to do a TABLE declaration in my PL/SQL block, but want to use a user defined type. Is it possible ?
    SQL> create or replace type sample_obj_rec as object
      2  (
      3     object_id    number,
      4     object_name  varchar2(32),
      5     object_type  varchar2(32)
      6  );
      7  /
    Type created.
    SQL> create or replace type sample_obj_tab as table of sample_obj_rec ;
      2  /
    Type created.
    -- ------------   CASE 1 ---------------------
    SQL> declare
      2      v_tab   sample_obj_tab := sample_obj_tab() ;
      3  begin
      4      select object_id, object_name, object_type
      5      bulk   collect into v_tab
      6      from   dba_objects
      7      where  rownum < 11 ;
      8  end ;
      9  /
        from   dba_objects
    ERROR at line 6:
    ORA-06550: line 6, column 5:
    PL/SQL: ORA-00947: not enough values
    ORA-06550: line 4, column 5:
    PL/SQL: SQL Statement ignored
    -- ------------   CASE 2 ---------------------
    SQL> declare
      2      v_rec   sample_obj_rec;
      3  begin
      4      select object_id, object_name, object_type
      5      into   v_rec
      6      from   dba_objects
      7      where  rownum = 1;
      8  end ;
      9  /
        from   dba_objects
    ERROR at line 6:
    ORA-06550: line 6, column 5:
    PL/SQL: ORA-00947: not enough values
    ORA-06550: line 4, column 5:
    PL/SQL: SQL Statement ignoredWhat is the issue with both the above cases? what am I missing here?
    Thanks in advance.

    One small detail in the SELECT.
    SQL> create or replace type sample_obj_rec as object
      2  (object_id    number,
      3   object_name  varchar2(32),
      4   object_type  varchar2(32));
      5  /
    Type created.
    SQL>
    SQL> create or replace type sample_obj_tab as table of sample_obj_rec ;
      2  /
    Type created.
    SQL>
    SQL> declare
      2     v_tab   sample_obj_tab := sample_obj_tab() ;
      3  begin
      4     select sample_obj_rec(object_id, object_name, object_type)
      5     bulk   collect into v_tab
      6     from   dba_objects
      7     where  rownum < 11 ;
      8  end ;
      9  /
    PL/SQL procedure successfully completed.
    SQL>

  • Mirrowing option does not appear in my AirPlay after I select Apple tv, it works fine from my phone, any ideas?

    Mirrowing option does not appear in my iPad'sAirPlay after I select Apple tv, it works fine from my phone, any ideas?

    Resolve issues with AirPlay and AirPlay Mirroring from iPhone, iPad, and iPod touch - Apple Support

Maybe you are looking for

  • Re: trial balance stock

    Hi guru's, The GL a/c material stock (trail balance stock) is mismatching with the SAP std report MB5B, why ? pl its ur. full points will be awarded. thanks tuljasingh.

  • HT204053 Apple ID

    I have two apple ID accounts.  How can I sync both to view on my devices? or do I have to log on and log out of each every time?

  • Cheapest price you've seen for the Zen Mic

    I saw the ZM for $25.00 at mwave.com Seen any other places with good prices? Just wondering.

  • My laptop wont put sound out to my headphones

    HP ENVY 17 Notebook PC A6U49AV WIndows 7 I have not made any changes to my laptop just HP updates that are reccomended. The main speaker works great I just cant get any sound to my headphones. The headphones work with my ipod and phone so I know it i

  • Folder Size Info

    Is it possible in CS5 Bridge to find the total file size of a folder of images, without having to open Windows Explorer? thank you