I need to modify this image jump to coordinate code.

I am trying to create a code that will allow the user to type coordinate into a text form box, and then move the image to those coordinate. Here is what i have so far:
<script type="text/javascript"
language="javascript">
//I set temporary variables
var tempX = 0
var tempY = 0
function moveTo(x,y) {
document.getElementById("image1")
.style.left=x;
document.getElementById("image1")
.style.top=y;
</script>
<input type="button" value="Go!"
onclick="javascript:moveTo(document.getElementById.TempX,document.getElementById.TempY">
<img id="image1" src="image1.png"
style="position:absolute;
left:100px; top:100px;
width:100px; height:100px;
z-index:0"
alt="" title="">
</script>
<input type="text" id="X" value="0" size="4"> X<br>
<input type="text" id="Y" value="0" size="4"> Y<br>
I think my variables are messed up. Any ideas?

This is a Java forum, not a Javascript forum. Despite the similarity of the names (for which the Netscape Corporation was doomed to destruction), they're different languages. You should ask on a Javascript forum.
That said, I'm pretty sure that you can't pass arguments to methods like this:
onclick="javascript:moveTo(document.getElementById.TempX,document.getElementById.TempY">I think it would be
document.getElementById("X")Edited by: paulcw on May 12, 2010 5:44 PM

Similar Messages

  • DISM "you do not have permissions to mount and modify this image"

    I have tired to mount a vista and 7 WIM to add a service pack, but I keep getting the error "you do not have permissions to mount and modify this image"
    I'm running as administrator I'm running from the waik, I was able to mount with readonly permissions but that not what I need.
    Louis Ramirez

    Thanks Juboori, this solved the issue for me too.
    The odd thing though is that the "Read Only" attribute was NOT ticked in the Right-Click Properties windows but it WAS enabled when checking via a DOS command prompt.
    How to check in DOS:
    "Attrib Install.wim" (you'll see the 'R' attribute is enabled)
    How to disable in DOS
    "Attrib Install.wim -R" (Removes the 'Read Only' attribute)

  • Return Current month Data:Help needed in modifying this code of a Procedure

    Hello Folks i have this scenario where i need to modify this code so that it has to return data from the Current month First Day to the previous Day if its a daily report and previous month data if its a monthly report.
    I have no clue how to modify this code below. Currently the code is returning data for Monthly reports for the previous month. Does anyone have any idea how to modify so that the code meets the requirements of both daily and monthly reprts.
    BEGIN
    if v_lowdate is null or v_highdate is null then
    select to_number(to_char(sysdate, 'DD')) into v_cur_day from dual;
    if v_cur_day < 25 then
    -- this is for the previous month run
    Select Add_Months(trunc(sysdate, 'MONTH'), -1)
    INTO V_LOWDATE
    FROM DUAL;
    SELECT Last_Day(ADD_Months(Sysdate, -1)) INTO V_Highdate From Dual;
    else
    -- this is for the current month run
    Select trunc(sysdate, 'MONTH') INTO V_LOWDATE FROM DUAL;
    SELECT Last_Day(Sysdate) INTO V_Highdate From Dual;
    end if;
    end if;
    Thanks
    Edited by: user11961230 on Sep 30, 2009 8:34 PM

    Hi Frank, This is code till the "modifying Code" which we were working. I will post the code after the "modifying Code" in the next reply. Thanks
    CREATE OR REPLACE PROCEDURE "POPULATE_RECOVERY_ACTIVITYHN"(p_lowdate date,
    p_highdate date) IS
    v_lowdate date := p_lowdate;
    v_highdate date := p_highdate;
    v_error_code NUMBER(20);
    v_error_text VARCHAR2(300);
    v_recovery_id Recovery.Recovery_ID%type;
    v_loop_control Number(20);
    v_settlement_id recovery.settlement_id%type;
    V_Event_ID Event.Event_ID%Type;
    V_Event_Case_ID Event_Case.Event_Case_ID%Type;
    V_Recovery_Month Varchar2(100);
    V_Major_Company Major_Client.Major_Client_Name%Type;
    V_Company Client.Client_Name%Type;
    V_Client_Policy_Identifier Varchar2(100);
    V_Lan_ID Varchar2(10) := 'TROVERIS';
    V_Recovery_Account Client.Account_Number%Type;
    V_AccountA Number(2) := 0;
    V_AccountB Number(2) := 0;
    V_Unit Event_Client_Field.Client_Field_Data%Type;
    V_Market Event_Client_Field.Client_Field_Data%Type;
    V_case_open_date Event_case.Open_Date%type;
    V_Employer_Group_Code Employer_Group.Employer_Group_Code%Type;
    V_Unknown1 Number(2) := 0;
    V_Fee_Schedule_Code Event_Case.Fee_Schedule_Code%Type;
    V_Total_Fee_Percent Number(20, 2) := 0.00;
    V_Subrogation_Fee_Percent Number(20, 2) := 0.00;
    V_Unknown2 Number(2) := NULL;
    V_Unknown3 Number(2) := NULL;
    V_TOTAL_MEDICAL Number(20, 2) := 0.00;
    V_Recovery_Amount Number(20, 2) := 0.00;
    V_Total_Tax Number(20, 2) := 0.00;
    V_Administrative_Tax Number(20, 2) := 0.00;
    V_Total_NonCash_Fee Number(20, 2) := 0.00;
    V_Total_NonCash_Positive Number(20, 2) := 0.00;
    V_Total_NonCash_Negative Number(20, 2) := 0.00;
    V_Total_Recovery Number(20, 2) := 0.00;
    V_Total_NonCash_Fee_Positive Number(20, 2) := 0.00;
    V_Total_NonCash_Fee_Negative Number(20, 2) := 0.00;
    V_Total_Admin_Fee Number(20, 2) := 0.00;
    V_Total_Fee Number(20, 2) := 0.00;
    V_Total_NonCash_Tax_Positive Number(20, 2) := 0.00;
    V_Total_NonCash_Tax_Negative Number(20, 2) := 0.00;
    report_type                  Varchar2(2);
    v_gl_num client.gl_num%type; -- *002*
    v_net_billable client.net_billable%type; -- *003*
    vevent_id event.event_id%type; -- *006*
    v_prev_event event.event_id%type; -- *006*
    v_prev_case event_case.event_case_id%type; -- *006*
    v_tot_recovery recovery.amount%type; -- *006*
    v_rec_amount recovery.amount%type; -- *006*
    v_prev_rec_amt recovery.amount%type; -- *006*
    v_prev_rec_month recovery_activity.recovery_month%type; -- *006*
    v_tot_fee recovery_activity.total_fee%type; --*006*
    v_mth_rev unbundled_recoveries.monthly_revenue%type; -- *006*
    v_diff number(18, 2); -- *006*
    v_nc_count number := 0; -- *006*
    v_c_count number := 0; -- *006*
    v_nc_tot recovery.amount%type; -- *006*
    v_used_rev recovery_activity.total_fee%type; -- *006*
    v_use_mth_rev unbundled_recoveries.monthly_revenue%type := 0; -- *006*
    v_use_nc_mth_rev unbundled_recoveries.monthly_revenue%type := 0; -- *006*
    v_prev_netbill client.net_billable%type; -- *006*
    v_event_type event.event_type_code%type;
    v_date_typed event.date_typed%type;
    v_acc_client_id client.acc_client_id%Type;
    v_Recovery_Revenue_GL_Num client.recovery_revenue_gl_num%Type;
    v_Funds_Due_GL_num client.funds_due_gl_num%Type;
    v_lob Varchar2(20);
    v_nc_recovery_id recovery.recovery_id%Type;
    /*Changed the Client_Policy_Identifier to concatenate the Retlation to insured code instead of the description
    which was exceeding the column size in the table. SWL 09/03/02. Checked with the Design Doc.*/
    CURSOR RECOVERY_INFO IS
    SELECT Event.Event_ID,
    Event_Case.Event_Case_ID,
    TO_CHAR(Recovery.Recovery_Date, 'FMMONTHYYYY') As Recovery_Month,
    Major_Client.Major_Client_Name AS Major_Company,
    -- Client.Client_Name AS Company,
    -- nvl(client.legacy_client_id,'DC')||'-'||substr(Client.Client_Name,1,55) AS Company, -- SWL 04/01/04 52653
    substr(nvl(client.legacy_client_id,
    decode(client.client_id, 1, 'DC', client.client_code)) || '-' ||
    Client.Client_Name,
    1,
    60) AS Company,
    Event.Client_Policy_Identifier ||
    Event_Case.Relation_To_Insured_code as Client_Policy_Identifier,
    Client.Account_Number as Recovery_Account,
    Employer_Group.Employer_Group_Code,
    Event_Case.Fee_Schedule_Code,
    Recovery_ID,
    Event_case.Open_Date,
    '(' || recovery.recovery_transaction_internal || ')' ||
    l.recovery_transaction_descripti, --fml 110276
    recovery.settlement_id,
    trim(client.gl_num), -- *002*
    nvl(trim(client.net_billable), 'N'), -- *003*
    recovery.amount, -- *006*,
    event.event_type_code,
    event.date_typed,
    recovery_id,
    Client.ACC_CLIENT_ID,
    Recovery_Revenue_GL_Num,
    Funds_Due_GL_num
    FROM Recovery,
    Settlement,
    Event_Case,
    Event,
    Employer_Group,
    Client,
    Major_Client,
    recovery_transaction_lookup l
    Where to_date(Recovery.Recovery_Date, 'DD-MON-RR') between
    TO_DATE(v_lowdate, 'DD-MON-RR') and
    TO_DATE(v_highdate, 'DD-MON-RR')
    AND Settlement.Settlement_id = Recovery.Settlement_id
    AND Settlement.Event_Case_ID = Event_Case.Event_Case_id
    AND Event_Case.Event_ID = Event.Event_ID
    AND Event.Employer_Group_ID = Employer_Group.Employer_Group_ID(+)
    AND Event.Client_ID = Client.Client_ID
    AND Client.Major_Client_id = Major_Client.Major_Client_ID(+)
    and recovery.settlement_id not in
    (select settlement_id
    from recovery
    where to_date(Recovery.Recovery_Date, 'DD-MON-RR') between
    TO_DATE(v_lowdate, 'DD-MON-RR') and
    TO_DATE(v_highdate, 'DD-MON-RR')
    AND recovery_transaction_internal in
    ('05', '50', '52', '51'))
    --001
    and    client.invoice_flag = 'N'            *005* commenting
    -- SWL 05/03/05 #71231
    and event.event_id in
    (select event_id
    from event_end_user eeu
    where eeu.active_flag = 'Y'
    and eeu.owner_flag = 'Y'
    and eeu.end_user_id in
    (select end_user_id
    from end_user
    where end_user.research_internal_user = 'Y'))
    and recovery.recovery_transaction_internal =
    l.recovery_transaction_internal --fml 110276
    order by event.event_id, recovery.amount; -- *006*
    -- SWL 05/03/05 #71231
    -- end of 001
    -- SWL 11/10/03 # 52743
    -- *006*
    CURSOR get_recovery(vevent_id event.event_id%type) IS
    SELECT sum(r.amount)
    FROM Recovery r
    Where to_date(r.Recovery_Date, 'DD-MON-RR') between
    TO_DATE(v_lowdate, 'DD-MON-RR') and
    TO_DATE(v_highdate, 'DD-MON-RR')
    and r.event_id = vevent_id
    and r.settlement_id not in
    (select settlement_id
    from recovery
    where to_date(Recovery.Recovery_Date, 'DD-MON-RR') between
    TO_DATE(v_lowdate, 'DD-MON-RR') and
    TO_DATE(v_highdate, 'DD-MON-RR')
    AND recovery_transaction_internal in
    ('05', '50', '52', '51'))
    and r.event_id in
    (select event_id
    from event_end_user eeu
    where eeu.active_flag = 'Y'
    and eeu.owner_flag = 'Y'
    and eeu.end_user_id in
    (select end_user_id
    from end_user
    where end_user.research_internal_user = 'Y'));
    CURSOR RECOVERY_INFO_NC IS
    SELECT distinct Event.Event_ID,
    Event_Case.Event_Case_ID,
    TO_CHAR(Recovery.Recovery_Date, 'FMMONTHYYYY') As Recovery_Month,
    Major_Client.Major_Client_Name AS Major_Company,
    -- Client.Client_Name AS Company,
    -- nvl(client.legacy_client_id,'DC')||'-'||substr(Client.Client_Name,1,55) AS Company, /* SWL 04/01/04 52653 */
    substr(nvl(client.legacy_client_id,
    decode(client.client_id,
    1,
    'DC',
    client.client_code)) || '-' ||
    Client.Client_Name,
    1,
    60) AS Company,
    Event.Client_Policy_Identifier ||
    Event_Case.Relation_To_Insured_code as Client_Policy_Identifier,
    Client.Account_Number as Recovery_Account,
    Employer_Group.Employer_Group_Code,
    Event_Case.Fee_Schedule_Code,
    '(' || recovery.recovery_transaction_internal || ')' ||
    l.recovery_transaction_descripti, --fml 110276
    recovery.settlement_id,
    trim(client.gl_num), -- *002*
    nvl(trim(client.net_billable), 'N'), -- *003*
    recovery.amount,-- *006*
    recovery.recovery_id,
    event.event_type_code,
    event.date_typed,
    Client.ACC_CLIENT_ID,
    Recovery_Revenue_GL_Num,
    Funds_Due_GL_num
    FROM Recovery,
    Settlement,
    Event_Case,
    Event,
    Employer_Group,
    Client,
    Major_Client,
    recovery_transaction_lookup l
    Where to_date(Recovery.Recovery_Date, 'DD-MON-RR') between
    TO_DATE(v_lowdate, 'DD-MON-RR') and
    TO_DATE(v_highdate, 'DD-MON-RR')
    AND Settlement.Settlement_id = Recovery.Settlement_id
    AND Settlement.Event_Case_ID = Event_Case.Event_Case_id
    AND Event_Case.Event_ID = Event.Event_ID
    AND Event.Employer_Group_ID = Employer_Group.Employer_Group_ID(+)
    AND Event.Client_ID = Client.Client_ID
    AND Client.Major_Client_id = Major_Client.Major_Client_ID(+)
    and recovery.settlement_id in
    (select settlement_id
    from recovery
    where to_date(Recovery.Recovery_Date, 'DD-MON-RR') between
    TO_DATE(v_lowdate, 'DD-MON-RR') and
    TO_DATE(v_highdate, 'DD-MON-RR')
    --001
    AND recovery.recovery_transaction_internal in
    ('05', '50', '52', '51')
    and    client.invoice_flag = 'N'   *005* commenting
    /* SWL 05/03/05 #71231 */
    and event.event_id in
    (select event_id
    from event_end_user eeu
    where eeu.active_flag = 'Y'
    and eeu.owner_flag = 'Y'
    and eeu.end_user_id in
    (select end_user_id
    from end_user
    where end_user.research_internal_user = 'Y'))
    and recovery.recovery_transaction_internal =
    l.recovery_transaction_internal --fml 110276
    order by event.event_id, recovery.amount; -- *006*
    /* SWL 05/03/05 #71231 */
    --end of 001
    -- *006*
    CURSOR get_recovery_nc(vevent_id event.event_id%type) IS
    SELECT sum(r.amount)
    FROM Recovery r
    Where to_date(r.Recovery_Date, 'DD-MON-RR') between
    TO_DATE(v_lowdate, 'DD-MON-RR') and
    TO_DATE(v_highdate, 'DD-MON-RR')
    AND r.event_id = vevent_id
    and r.settlement_id in
    (select settlement_id
    from recovery
    where to_date(Recovery.Recovery_Date, 'DD-MON-RR') between
    TO_DATE(v_lowdate, 'DD-MON-RR') and
    TO_DATE(v_highdate, 'DD-MON-RR'))
    AND recovery_transaction_internal in ('05', '50', '52', '51')
    and r.event_id in
    (select event_id
    from event_end_user eeu
    where eeu.active_flag = 'Y'
    and eeu.owner_flag = 'Y'
    and eeu.end_user_id in
    (select end_user_id
    from end_user
    where end_user.research_internal_user = 'Y'));
    CURSOR Recovery_Totals_Nc IS
    Select Recovery_Detail.Recovery_Id, /* SWL 07/01/04 59016 */
    max(NVL(Recovery_Detail.Fees_Percent, 0) +
    NVL(Recovery_Detail.Admin_Percent, 0)) as Total_Fee_Percent,
    max(NVL(Recovery_Detail.Fees_Percent, 0)) as Subrogation_Fee_Percent,
    max(NVL(Recovery.Amount, 0)) as Recovery_Amount, /* SWL 04/01/04 52653 */
    Sum(NVL(Recovery_detail.Fees, 0) + NVL(Recovery_Detail.Admin, 0)) as Total_Fee,
    Sum(NVL(Recovery_Detail.Fees_Taxes, 0) +
    NVL(Recovery_Detail.Admin_Taxes, 0)) as Total_Tax,
    Sum(NVL(Recovery_Detail.Admin_Taxes, 0)) as Administrative_tax,
    Sum(NVL(Recovery_Detail.Admin, 0)) as Total_Admin_Fee,
    sum(recovery.retained_by_client) as Non_cash_fee, --fml 110276
    sum(recovery.allocation_check_amount) as cash --fml 110276
    From Settlement, Recovery, Recovery_Detail
    Where Recovery.settlement_id = v_settlement_id
    And recovery.recovery_id = v_recovery_id
    And Settlement.Settlement_id = Recovery.Settlement_id
    And Recovery.Recovery_id = Recovery_detail.Recovery_id(+)
    and to_date(Recovery.Recovery_Date, 'DD-MON-RR') between
    TO_DATE(v_lowdate, 'DD-MON-RR') and
    TO_DATE(v_highdate, 'DD-MON-RR') /*SWL 12/03/04 */
    -- Group by Recovery_Detail.Fees_Percent; /* SWL 04/01/04 52653 */
    Group by Recovery_Detail.recovery_id;
    v_cash_recovery recovery_activity.cash_recovery%type;
    CURSOR Recovery_Totals_Positive_Nc IS
    -- Select Sum(Recovery.Amount) as Total_NonCash_Positive, /* SWL 04/01/04 52653 */
    Select max(Recovery.Amount) as Total_NonCash_Positive,
    Sum(NVL(Recovery_Detail.Fees_Taxes, 0) +
    NVL(Recovery_Detail.Admin_Taxes, 0)) as Total_NonCash_Tax_Positive
    From Settlement, Recovery, Recovery_detail
    Where Recovery.settlement_id = v_settlement_id
    And Settlement.Settlement_id = Recovery.Settlement_id
    and recovery.recovery_id = v_recovery_id /* SWL 07/01/04 59016 */
    And Recovery.Amount >= 0
    And Recovery.Recovery_id = Recovery_detail.Recovery_id(+)
    And Recovery.Recovery_Transaction_Internal in
    ('05', '50', '52', '51')
    -- Group by Recovery_Detail.Fees_Percent; /* SWL 04/01/04 52653 */
    Group by Recovery_Detail.recovery_id;
    CURSOR Recovery_Totals_Negative_Nc IS
    -- Select Sum(Recovery.Amount) as Total_NonCash_Negative, /* SWL 04/01/04 52653 */
    Select max(Recovery.Amount) as Total_NonCash_Negative,
    Sum(NVL(Recovery_Detail.Fees_Taxes, 0) +
    NVL(Recovery_Detail.Admin_Taxes, 0)) as Total_NonCash_Tax_Negative
    From Settlement, Recovery, Recovery_Detail
    Where Recovery.settlement_id = v_settlement_id
    And Settlement.Settlement_id = Recovery.Settlement_id
    and recovery.recovery_id = v_recovery_id /* SWL 07/01/04 59016 */
    And Recovery.Amount < 0
    And Recovery.Recovery_id = Recovery_detail.Recovery_id(+)
    And Recovery.Recovery_Transaction_Internal in
    ('05', '50', '52', '51')
    Group by Recovery_Detail.recovery_id;
    -- Group by Recovery_Detail.Fees_Percent; /* SWL 04/01/04 52653 */
    /* SWL 11/10/03 # 52743 */
    CURSOR Event_Client_Unit IS
    Select e.Client_Field_Data as Unit
    From Event_Client_Field e, recovery r
    Where r.Event_ID = e.Event_ID
    AND r.Recovery_ID = V_Recovery_ID
    AND e.Client_Field_Name = 'UNIT';
    CURSOR Bill_totals IS
    Select mv_billdetail_case_sum.sum_paid as TOTAL_MEDICAL
    From mv_billdetail_case_sum
    where mv_billdetail_case_sum.event_id = V_Event_ID;
    CURSOR NonCash_Fee IS
    Select NVL(Sum(Recovery.Amount), 0) as Total_NonCash_Fee
    From Settlement, Recovery
    Where Recovery.Recovery_ID = V_Recovery_ID
    And Settlement.Settlement_id = Recovery.Settlement_id
    And Recovery.
    Recovery_Transaction_Internal in ('05', '50', '52', '51');
    /* SWL 04/01/04 52653 */
    CURSOR Recovery_Totals IS
    Select round(avg(NVL(Recovery_Detail.Fees_Percent, 0) +
    NVL(Recovery_Detail.Admin_Percent, 0)),
    2) as Total_Fee_Percent,
    round(avg(NVL(Recovery_Detail.Fees_Percent, 0)), 2) as Subrogation_Fee_Percent,
    max(NVL(Recovery.Amount, 0)) as Recovery_Amount,
    Sum(NVL(Recovery_detail.Fees, 0) + NVL(Recovery_Detail.Admin, 0)) as Total_Fee,
    Sum(NVL(Recovery_Detail.Fees_Taxes, 0) +
    NVL(Recovery_Detail.Admin_Taxes, 0)) as Total_Tax,
    Sum(NVL(Recovery_Detail.Admin_Taxes, 0)) as Administrative_tax,
    Sum(NVL(Recovery_Detail.Admin, 0)) as Total_Admin_Fee
    From Settlement, Recovery, Recovery_Detail
    Where Recovery.Recovery_ID = V_Recovery_ID
    And Settlement.Settlement_id = Recovery.Settlement_id
    And Recovery.Recovery_id = Recovery_detail.Recovery_id(+)
    Group by Recovery_Detail.recovery_id;
    CURSOR Recovery_Totals_Positive IS
    /* Select Sum(Recovery.Amount) as Total_NonCash_Positive,
    Sum(NVL(Recovery_Detail.Fees_Taxes,0)+ NVL(Recovery_Detail.Admin_Taxes,0)) as Total_NonCash_Tax_Positive
    */ /* SWL 04/01/04 52653 */
    Select max(Recovery.Amount) as Total_NonCash_Positive,
    Sum(NVL(Recovery_Detail.Fees_Taxes, 0) +
    NVL(Recovery_Detail.Admin_Taxes, 0)) as Total_NonCash_Tax_Positive
    From Settlement, Recovery, Recovery_detail
    Where Recovery.Recovery_ID = V_Recovery_ID
    And Settlement.Settlement_id = Recovery.Settlement_id
    And Recovery.Amount >= 0
    And Recovery.Recovery_id = Recovery_detail.Recovery_id(+)
    And Recovery.Recovery_Transaction_Internal in ('04', '17', '15') /*SWL 10/05/04 #63919*/--*009* added 15
    Group by Recovery_Detail.recovery_id;
    -- Group by Recovery_Detail.Fees_Percent; /* SWL 04/01/04 52653 */
    CURSOR Recovery_NonFEE_Positive IS
    Select Sum(NVL(Recovery_Detail.Fees, 0) + NVL(Recovery_Detail.Admin, 0)) as Total_NonCash_Fee_Positive
    From Settlement, Recovery, Recovery_detail
    Where Recovery.Recovery_ID = V_Recovery_ID
    And Settlement.Settlement_id = Recovery.Settlement_id
    And Recovery.Amount >= 0
    And Recovery.Recovery_id = Recovery_detail.Recovery_id(+)
    And Recovery.Recovery_Transaction_Internal in
    ('05', '50', '52', '51')
    Group by Recovery_Detail.recovery_id;
    -- Group by Recovery_Detail.Fees_Percent; /* SWL 04/01/04 52653 */
    CURSOR Recovery_Totals_Negative IS
    /* Select Sum(Recovery.Amount) as Total_NonCash_Negative,*/ /* SWL 04/01/04 52653 */
    Select max(Recovery.Amount) as Total_NonCash_Negative,
    Sum(NVL(Recovery_Detail.Fees_Taxes, 0) +
    NVL(Recovery_Detail.Admin_Taxes, 0)) as Total_NonCash_Tax_Negative
    From Settlement, Recovery, Recovery_Detail
    Where Recovery.Recovery_ID = V_Recovery_ID
    And Settlement.Settlement_id = Recovery.Settlement_id
    And Recovery.Amount < 0
    And Recovery.Recovery_id = Recovery_detail.Recovery_id(+)
    And Recovery.Recovery_Transaction_Internal in ('04', '17', '15') /*SWL 10/05/04 #63919*/--*009* added 15
    Group by Recovery_Detail.recovery_id;
    -- Group by Recovery_Detail.Fees_Percent; /* SWL 04/01/04 52653 */
    CURSOR Recovery_NonFEE_Negative IS
    Select Sum(NVL(Recovery_Detail.Fees, 0) + NVL(Recovery_Detail.Admin, 0)) as Total_NonCash_Fee_Negative
    From Settlement, Recovery, Recovery_Detail
    Where Recovery.Recovery_ID = V_Recovery_ID
    And Settlement.Settlement_id = Recovery.Settlement_id
    And Recovery.Amount < 0
    And Recovery.Recovery_id = Recovery_detail.Recovery_id(+)
    And Recovery.Recovery_Transaction_Internal in
    ('05', '50', '52', '51')
    Group by Recovery_Detail.recovery_id;
    -- Group by Recovery_Detail.Fees_Percent; /* SWL 04/01/04 52653 */
    --This is a generic cursor which will be used to control the number of rows inserted into the recovery_activity table
    --There has to be 1 row inserted into the recovery_activity table for each detail record in the recovery_detail table.
    --However, if no recovery_detail record exists there will be only 1 insert into the recovery_activity table.
    CURSOR Control_Detail_Loop
    IS
    Select 1
    FROM Recovery,
    Recovery_Detail
    Where Recovery.Recovery_ID = Recovery_Detail.Recovery_ID(+)
    And Recovery.Recovery_ID = V_Recovery_ID;
    /* SWL 04/01/04 Commented since the only time there were more entries in rd for a recovery is when there is a split fees */
    /* accounting does not want this to be displayed in detail. They need this aggregated as a single fee entry so the recovery */
    /* activity table will now have a single entry corresponding to each recovery in the recovery table. (#52653) */
    CURSOR Control_Detail_Loop IS
    Select 1 FROM Recovery where Recovery.Recovery_ID = V_Recovery_ID;
    /* DJ 10/25/04 # 64633 start*/
    CURSOR Event_Client_Market IS
    Select e.Client_Field_Data as Market
    From Event_Client_Field e, recovery r
    Where r.Event_ID = e.Event_ID
    AND r.Recovery_ID = V_Recovery_ID
    AND e.Client_Field_Name = 'MARKET';
    /* DJ 10/25/04 # 64633 end*/
    v_cur_day integer := 0;
    -----dj
    v_vendor_fee_wh number;
    v_total_vendor_fee_wh number;
    v_rec_itc recovery_activity.recovery_transaction_internal%type;
    --v_settlement_id settlement.settlement_id%type;
    --*004* start
    function unbundled_fee(pevent_id event.event_id%type,
    plowdate date,
    phighdate date) return number is
    -- function variables
    v_fee number(18, 2) := 0;
    v_month_revenue unbundled_recoveries.monthly_revenue%type := 0;
    v_cum_revenue unbundled_recoveries.cum_revenue%type := 0;
    v_contract_fee_per unbundled_recoveries.contractual_fee_per%type := 0;
    v_prev_cum_revenue unbundled_recoveries.cum_revenue%type := 0;
    v_cum_ub_rec unbundled_recoveries.cum_ub_recoveries%type := 0;
    v_cum_inv_paid unbundled_recoveries.cum_inv_paid%type := 0;
    v_month_rec unbundled_recoveries.monthly_recoveries%type := 0;
    v_cum_rec unbundled_recoveries.cum_recoveries%type := 0;
    v_event_id event.event_id%type;
    begin
    --v_month_rec and v_cum_inv_paid
    begin
    select event_id,
    (select sum(r.amount)
    from recovery r
    where r.event_id = e.event_id
    and trunc(r.recovery_date) between plowdate and phighdate) as monthly_recoveries,
    -- *006* added cum_rec
    (select nvl(sum(r.amount), 0)
    from recovery r
    where r.event_id = e.event_id
    and trunc(r.recovery_date) <= trunc(phighdate)) as cum_recoveries,
    (select sum(decode(nvl(ex.client_invoice_closed, 'N'),
    'N',
    ex.paid_amount,
    ex.client_invoice_received))
    from expense ex
    where ex.event_id = e.event_id
    and upper(ex.status) = 'PAID'
    and trunc(ex.check_date) <= phighdate
    and trim(ex.orig_client_invoice_date) is not null
    and nvl(ex.client_invoice_dispute, 'Y') = 'N') as cum_invoiced_paid
    into v_event_id, v_month_rec, v_cum_rec, v_cum_inv_paid
    from event e
    where e.event_id = pevent_id;
    exception
    when no_data_found then
    v_event_id := 0;
    v_month_rec := 0;
    v_cum_rec := 0;
    v_cum_inv_paid := 0;
    when others then
    v_event_id := 0;
    v_month_rec := 0;
    v_cum_rec := 0;
    v_cum_inv_paid := 0;
    end;
    -- *007* start
    -- if event previously written to table, get values from table
    begin
    select nvl(ub.cum_revenue, 0)
    into v_prev_cum_revenue
    from unbundled_recoveries ub
    where ub.event_id = pevent_id
    and ub.month_id =
    (select max(a.month_id)
    from unbundled_recoveries a
    where a.event_id = pevent_id
    and a.month_id < to_char(v_lowdate, 'YYYYMM'));
    exception
    when no_data_found then
    v_prev_cum_revenue := 0;
    when others then
    v_prev_cum_revenue := 0;
    end;
    -- *007* end
    --v_contract_fee_per
    begin
    select nvl(max(rd.fees_percent), 0)
    into v_contract_fee_per
    from recovery_detail rd
    where rd.recovery_id in
    (select r.recovery_id
    from recovery r,
    (select a.event_id, max(amount) as amount
    from recovery a
    where a.event_id = pevent_id
    and trunc(a.recovery_date) between plowdate and
    phighdate
    group by a.event_id) max_r
    where r.event_id = max_r.event_id
    and trunc(r.recovery_date) between plowdate and phighdate
    and r.amount = max_r.amount);
    exception
    when no_data_found then
    v_contract_fee_per := 0;
    when others then
    v_contract_fee_per := 0;
    end;
    v_cum_ub_rec := nvl(v_cum_rec, 0) - nvl(v_cum_inv_paid, 0);
    if ((nvl(v_cum_ub_rec, 0) > 0) and (nvl(v_month_rec, 0) <> 0)) then
    -- latest cumulative unbundled recoveries > 0
    v_cum_revenue := round(((v_contract_fee_per / 100) * v_cum_ub_rec),
    2);
    v_month_revenue := v_cum_revenue - v_prev_cum_revenue;
    end if;
    v_fee := v_month_revenue;
    return v_fee;
    exception
    when others then
    raise_application_error(-20106,
    substr('populate_recovery_activity.undebundled_fee: ' ||
    Sqlcode || Sqlerrm,
    1,
    500));
    return v_fee;
    end;

  • Illustrator CS4 no longer allows me to paste images "Quicktime and a decompresser are needed to view this image". How do I fix this?

    Since I installed the Yosemite Mac software upgrade, my Illustrator CS4 no longer allows me to paste images. I get the message "Quicktime and a decompresser are needed to view this image". How do I fix this? I've tried everything, nothing works!!!!

    Did you use migration with the new OS or did you reinstall the CS4 apps from the original media? If you didn't, then you should uninstall CS4 making sure to check the box to remove preferences, run the Cleaner tool (Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6) and then reinstall CS4. CS4 is totally untested and unsupported on the latest versions of Mac OSes.

  • Need Help Modifying This Mail-Related Applescript

    A friend passed along this Applescript that announces the name of the sender of an incoming e-mail message.
    using terms from application "Mail"
    on perform mail action with messages newMessages
    repeat with newMessage in newMessages
    tell application "Mail"
    set senderName to (extract name from sender of newMessage)
    say "You've just received an email from " & senderName
    end tell
    end repeat
    end perform mail action with messages
    end using terms from
    There are two modifications I'd like to know how to make: 1) I'd like it to speak the subject line as well, and 2) I'd like to be able to specify which voice to use. Thanks.

    Hi Ratboy
    The below will do what your after.
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">using terms from application "Mail"
    on perform mail action with messages newMessages
    repeat with newMessage in newMessages
    tell application "Mail"
    set senderName to (extract name from sender of newMessage)
    say "You've just received an email from " & senderName
    delay 1
    set _Subject to subject of newMessage as string
    say _Subject using "Victoria"
    end tell
    end repeat
    end perform mail action with messages
    end using terms from</pre>
    Budgie

  • Really need to show an image in this applet...

    Hi,
    I need to display an image in my applet as a sort of "Start Screen" like you get on games.
    But I'm damned if I can get it to work, my tutor provided the unifinished shell of a program, and it seems that I need to display this image before any... panels.. or whatever it is... are initiated. So I could either create a new one, just to show this image, then make it go away when the image does, or, have it popup as part of a message box, or something.
    I stumbled on a splash screen feature, found in Java 1.6, but although I'm using 1.6, my university still uses 1.5, so it's a no go.
    Ideally, it would be a popup window I think, more like a fancy about box than a title screen. But I don't know how to do that either, so any help would be greatly appreciated ^^
    Thanks

    Look into addNotify() and MediaTracker.

  • How can I modify this makefile to create proper ARMV7 dylibs?

    I need to modify this makefile in order to create proper dylibs for inclusion in my IOS projects. If I just using the dylibs generated without changing this file, I get this error trying to use the dylibs:
    ld: warning: ld: warning: ignoring file Undefined symbols for architecture armv7s:
      "_mongo_connect", referenced from:
          -[ViewController viewDidLoad] in ViewController.o
    libbson.dylib, file was built for unsupported file format
    ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (armv7s):
    Undefined symbols for architecture armv7s:
      "_mongo_connect", referenced from:
          -[ViewController viewDidLoad] in ViewController.o
    libbson.dylibignoring file
    Undefined symbols for architecture armv7s:
      "_mongo_connect", referenced from:
          -[ViewController viewDidLoad] in ViewController.o
    libmongoc.dylib, file was built for unsupported file format
    ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (armv7s):
    Undefined symbols for architecture armv7s:
      "_mongo_connect", referenced from:
          -[ViewController viewDidLoad] in ViewController.o
    libmongoc.dylib
    Undefined symbols for architecture armv7s:
      "_mongo_connect", referenced from:
          -[ViewController viewDidLoad] in ViewController.o
    The makefile:
    # MongoDB C Driver Makefile
    # Copyright 2009, 2010 10gen Inc.
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    # http://www.apache.org/licenses/LICENSE-2.0
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    # Version
    MONGO_MAJOR=0
    MONGO_MINOR=6
    MONGO_PATCH=0
    BSON_MAJOR=$(MONGO_MAJOR)
    BSON_MINOR=$(MONGO_MINOR)
    BSON_PATCH=$(MONGO_PATCH)
    # Library names
    MONGO_LIBNAME=libmongoc
    BSON_LIBNAME=libbson
    # Standard or posix env.
    ENV?=posix
    # TODO: add replica set test, cpp test, platform tests, json_test
    TESTS=test_auth test_bcon test_bson test_bson_subobject test_count_delete \
      test_cursors test_endian_swap test_errors test_examples \
      test_functions test_gridfs test_helpers \
      test_oid test_resize test_simple test_sizes test_update \
      test_validate test_write_concern test_commands
    MONGO_OBJECTS=src/bcon.o src/bson.o src/encoding.o src/gridfs.o src/md5.o src/mongo.o \
    src/numbers.o
    BSON_OBJECTS=src/bcon.o src/bson.o src/numbers.o src/encoding.o
    ifeq ($(ENV),posix)
        TESTS+=test_env_posix test_unix_socket
        MONGO_OBJECTS+=src/env_posix.o
    else
        MONGO_OBJECTS+=src/env_standard.o
    endif
    DYN_MONGO_OBJECTS=$(foreach i,$(MONGO_OBJECTS),$(patsubst %.o,%.os,$(i)))
    DYN_BSON_OBJECTS=$(foreach i,$(BSON_OBJECTS),$(patsubst %.o,%.os,$(i)))
    # Compile flags
    ALL_DEFINES=$(DEFINES)
    ALL_DEFINES+=-D_POSIX_SOURCE
    CC:=$(shell sh -c 'type $(CC) >/dev/null 2>/dev/null && echo $(CC) || echo gcc')
    DYN_FLAGS:=-fPIC -DMONGO_DLL_BUILD
    # Endianness check
    endian := $(shell sh -c 'echo "ab" | od -x | grep "6261" >/dev/null && echo little || echo big')
    ifeq ($(endian),big)
        ALL_DEFINES+=-DMONGO_BIG_ENDIAN
    endif
    # Int64 type check
    int64:=$(shell ./check_int64.sh $(CC) stdint.h && echo stdint)
    ifeq ($(int64),stdint)
        ALL_DEFINES+=-DMONGO_HAVE_STDINT
    else
        int64:=$(shell ./check_int64.sh $(CC) unistd.h && echo unistd)
        ifeq ($(int64),unistd)
            ALL_DEFINES+=-DMONGO_HAVE_UNISTD
        endif
    endif
    $(shell rm header_check.tmp tmp.c)
    TEST_DEFINES=$(ALL_DEFINES)
    TEST_DEFINES+=-DTEST_SERVER="\"127.0.0.1\""
    OPTIMIZATION?=-O3
    WARNINGS?=-Wall
    DEBUG?=-ggdb
    STD?=c99
    PEDANTIC?=-pedantic
    ALL_CFLAGS=-std=$(STD) $(PEDANTIC) $(CFLAGS) $(OPTIMIZATION) $(WARNINGS) $(DEBUG) $(ALL_DEFINES)
    ALL_LDFLAGS=$(LDFLAGS)
    # Shared libraries
    DYLIBSUFFIX=so
    STLIBSUFFIX=a
    MONGO_DYLIBNAME=$(MONGO_LIBNAME).$(DYLIBSUFFIX)
    MONGO_DYLIB_MAJOR_NAME=$(MONGO_DYLIBNAME).$(MONGO_MAJOR)
    MONGO_DYLIB_MINOR_NAME=$(MONGO_DYLIB_MAJOR_NAME).$(MONGO_MINOR)
    MONGO_DYLIB_PATCH_NAME=$(MONGO_DYLIB_MINOR_NAME).$(MONGO_PATCH)
    MONGO_DYLIB_MAKE_CMD=$(CC) -shared -Wl,-soname,$(MONGO_DYLIB_MINOR_NAME) -o $(MONGO_DYLIBNAME) $(ALL_LDFLAGS) $(DYN_MONGO_OBJECTS)
    BSON_DYLIBNAME=$(BSON_LIBNAME).$(DYLIBSUFFIX)
    BSON_DYLIB_MAJOR_NAME=$(BSON_DYLIBNAME).$(BSON_MAJOR)
    BSON_DYLIB_MINOR_NAME=$(BSON_DYLIB_MAJOR_NAME).$(BSON_MINOR)
    BSON_DYLIB_PATCH_NAME=$(BSON_DYLIB_MINOR_NAME).$(BSON_PATCH)
    BSON_DYLIB_MAKE_CMD=$(CC) -shared -Wl,-soname,$(BSON_DYLIB_MINOR_NAME) -o $(BSON_DYLIBNAME) $(ALL_LDFLAGS) $(DYN_BSON_OBJECTS)
    # Static libraries
    MONGO_STLIBNAME=$(MONGO_LIBNAME).$(STLIBSUFFIX)
    BSON_STLIBNAME=$(BSON_LIBNAME).$(STLIBSUFFIX)
    # Overrides
    kernel_name := $(shell sh -c 'uname -s 2>/dev/null || echo not')
    ifeq ($(kernel_name),SunOS)
        ALL_LDFLAGS+=-ldl -lnsl -lsocket
        INSTALL_CMD=cp -r
        MONGO_DYLIB_MAKE_CMD=$(CC) -G -o $(MONGO_DYLIBNAME) -h $(MONGO_DYLIB_MINOR_NAME) $(ALL_LDFLAGS)
        BSON_DYLIB_MAKE_CMD=$(CC) -G -o $(BSON_DYLIBNAME) -h $(BSON_DYLIB_MINOR_NAME) $(ALL_LDFLAGS)
    endif
    ifeq ($(kernel_name),Darwin)
        ALL_CFLAGS+=-std=$(STD) $(CFLAGS) $(OPTIMIZATION) $(WARNINGS) $(DEBUG) $(ALL_DEFINES)
        DYLIBSUFFIX=dylib
        MONGO_DYLIB_MINOR_NAME=$(MONGO_LIBNAME).$(DYLIBSUFFIX).$(MONGO_MAJOR).$(MONGO_M INOR)
        MONGO_DYLIB_MAJOR_NAME=$(MONGO_LIBNAME).$(DYLIBSUFFIX).$(MONGO_MAJOR)
        MONGO_DYLIB_MAKE_CMD=$(CC) -shared -Wl,-install_name,$(MONGO_DYLIB_MINOR_NAME) -o $(MONGO_DYLIBNAME) $(ALL_LDFLAGS) $(DYN_MONGO_OBJECTS)
        BSON_DYLIB_MINOR_NAME=$(BSON_LIBNAME).$(DYLIBSUFFIX).$(BSON_MAJOR).$(BSON_MINOR )
        BSON_DYLIB_MAJOR_NAME=$(BSON_LIBNAME).$(DYLIBSUFFIX).$(BSON_MAJOR)
        BSON_DYLIB_MAKE_CMD=$(CC) -shared -Wl,-install_name,$(BSON_DYLIB_MINOR_NAME) -o $(BSON_DYLIBNAME) $(ALL_LDFLAGS) $(DYN_BSON_OBJECTS)
    endif
    # Installation
    ifeq ($(kernel_name),SunOS)
        INSTALL?=cp -r
    endif
    INSTALL?= cp -a
    INSTALL_INCLUDE_PATH?=/usr/local/include
    INSTALL_LIBRARY_PATH?=/usr/local/lib
    # TARGETS
    all: $(MONGO_DYLIBNAME) $(BSON_DYLIBNAME) $(MONGO_STLIBNAME) $(BSON_STLIBNAME)
    # Dependency targets. Run 'make deps' to generate these.
    bcon.o: src/bcon.c src/bcon.h src/bson.h
    bson.o: src/bson.c src/bson.h src/encoding.h
    encoding.o: src/encoding.c src/bson.h src/encoding.h
    env_standard.o: src/env_standard.c src/env.h src/mongo.h src/bson.h
    env_posix.o: src/env_posix.c src/env.h src/mongo.h src/bson.h
    gridfs.o: src/gridfs.c src/gridfs.h src/mongo.h src/bson.h
    md5.o: src/md5.c src/md5.h
    mongo.o: src/mongo.c src/mongo.h src/bson.h src/md5.h src/env.h
    numbers.o: src/numbers.c
    $(MONGO_DYLIBNAME): $(DYN_MONGO_OBJECTS)
        $(MONGO_DYLIB_MAKE_CMD)
    $(MONGO_STLIBNAME): $(MONGO_OBJECTS)
        $(AR) -rs $@ $(MONGO_OBJECTS)
    $(BSON_DYLIBNAME): $(DYN_BSON_OBJECTS)
        $(BSON_DYLIB_MAKE_CMD)
    $(BSON_STLIBNAME): $(BSON_OBJECTS)
        $(AR) -rs $@ $(BSON_OBJECTS)
    install:
        mkdir -p $(INSTALL_INCLUDE_PATH) $(INSTALL_LIBRARY_PATH)
        $(INSTALL) src/mongo.h src/bson.h $(INSTALL_INCLUDE_PATH)
        $(INSTALL) $(MONGO_DYLIBNAME) $(INSTALL_LIBRARY_PATH)/$(MONGO_DYLIB_PATCH_NAME)
        $(INSTALL) $(BSON_DYLIBNAME) $(INSTALL_LIBRARY_PATH)/$(BSON_DYLIB_PATCH_NAME)
        cd $(INSTALL_LIBRARY_PATH) && ln -sf $(MONGO_DYLIB_PATCH_NAME) $(MONGO_DYLIB_MINOR_NAME)
        cd $(INSTALL_LIBRARY_PATH) && ln -sf $(BSON_DYLIB_PATCH_NAME) $(BSON_DYLIB_MINOR_NAME)
        cd $(INSTALL_LIBRARY_PATH) && ln -sf $(MONGO_DYLIB_MINOR_NAME) $(MONGO_DYLIBNAME)
        cd $(INSTALL_LIBRARY_PATH) && ln -sf $(BSON_DYLIB_MINOR_NAME) $(BSON_DYLIBNAME)
        $(INSTALL) $(MONGO_STLIBNAME) $(INSTALL_LIBRARY_PATH)
        $(INSTALL) $(BSON_STLIBNAME) $(INSTALL_LIBRARY_PATH)
    scan-build: clean
        scan-build -V -v make
    test: $(TESTS)
        sh runtests.sh
    valgrind: $(TESTS)
        sh runtests.sh -v
    docs:
        python docs/buildscripts/docs.py
    clean:
        rm -rf src/*.o src/*.os test/*.o test/*.os test_* .scon* config.log
    clobber: clean
        rm -rf $(MONGO_DYLIBNAME) $(MONGO_STLIBNAME) $(BSON_DYLIBNAME) $(BSON_STLIBNAME) docs/html docs/source/doxygen
    deps:
        $(CC) -MM -DMONGO_HAVE_STDINT src/*.c
    32bit:
        $(MAKE) CFLAGS="-m32" LDFLAGS="-pg"
    test_%: test/%_test.c test/test.h $(MONGO_STLIBNAME)
        $(CC) -o $@ -L. -Isrc $(TEST_DEFINES) $(ALL_LDFLAGS) $< $(MONGO_STLIBNAME)
    %.o: %.c
        $(CC) -o $@ -c $(ALL_CFLAGS) $<
    %.os: %.c
        $(CC) -o $@ -c $(ALL_CFLAGS) $(DYN_FLAGS) $<
    .PHONY: 32bit all clean clobber deps docs install test valgrind

    Hi Petar,
    Thanks for your answer. No doubt that we could solve the issue using on of the way you suggested.
    However, even though I had the evdre issue right after applying time dimension modifications, it occurs that the evdre issue was not due to time dimension modifications. I tested it better and I can tell that using "total" as a level works.
    Best regards,
    Ludovic

  • Installing rcu 11.1.1.7, need to modify ldapxact.sql

    Hi,
    Installing RCU 11.1.1.7 into 11g I am blessed with "User or role ODS doesn't exist".
    Then I found a post some place that says i need to modify this piece of original Oracle software
    DROP USER ods CASCADE;
    CREATE USER ods IDENTIFIED BY ods
    in the file ldapxact.sql
    Did I miss some step along the lines (I hope I did miss something) or this "feature" may surface in other places as well?
    Please advise
    Thank you

    sorry for the blast, problem resolved, was a wrong version
    Thank you

  • I need help editing an image in Photoshop

    I need to edit this image.
    I need to reposition the fist shape a little further down remaining within the yellow circle.  Then I also need to change all blue parts to black and the yellow outline around the knuckles to white.
    How would I do this in Photoshop?

    Put a circular selection round the fist and press Ctrl+J.
    Hide the resulting new layer and fill the circle with yellow.
    Select the blue area with the magic wand and fill the selection with black.
    Select the yellow round the fist and fill the selection with white.
    Go to the fist layer, press Ctrl+T and move it down as far as you want, (Not much room there.)
    For print, save as a TIFF; for Internet use Save for Web.

  • Modifying this trigger

    dear all;
    I need to modify this simple trigger to occur for these cases
    create or replace trigger expiry_sync
    after update on table_two
    for each row
    begin
       update table_one i
          set i.expiry =
             case
               when :new.period = 'Years'
                then
                   add_months(i.begin_date, :new.life_number * 12)
                when :new.period  = 'Months'
                then
                   add_months(i.begin_date, :new.life_number)
                when :new.period = 'Days'
                then
                   i.begin_date + :new.life_number
             end
       where
         i.part_number = :new.part_number
         and i.i_vendors = :new.vendors;
    end;now i would like to include this case as well...basically if we have a situation where the i_vendor doesnt match with the :new.vendors from table_two, then it should check to see if there is a vendor that says default in the table_two and if there is one then it should go with the fields/characteristics associated with the default vendor....
    Edited by: user13328581 on Feb 3, 2011 8:19 AM

    Hi,
    The reason I confused you with my two-trigger suggestion was that I mis-understood what you want to do. Could you please post an example or tow of a normal update (where you don't have to use a default vendor) and an abnormal update (where you do)?
    That is, assume the tables are as you posted them earlier. Post a couple of UPDATE statements for table_two, and show me what table_one should look like after each one.
    Here's an example of a package that asigns values to SYS_CONTEXT variables. The package has 2 procedures, for modualrity:
    (1) set_all finds all the 'DEFAULT' rows in table_two, and, for each such row, assigns values to a couple of variables
    (2) set_var assigns a given value to a given variable
    This assumes that your schema name is FUBAR. It creates a SYS_CONTEXT namespace called TABLE_TWO_DEFAULT, and a package called TABLE_TWO_PKG that can assign variables in that namespace. (Any procedure or query can call SYS_CONTEXT to read the variables in the namespace; no special pivileges are required.)
    CREATE OR REPLACE PACKAGE  table_two_pkg
    AS
    PROCEDURE     set_all
    PROCEDURE     set_var
    (     in_name          IN     VARCHAR2
    ,     in_text          IN     VARCHAR2     DEFAULT     NULL     -- New value
    END     table_two_pkg;
    SHOW ERRORS
    CREATE OR REPLACE PACKAGE BODY  table_two_pkg
    AS
    --     NOTE: Before using this package, SYSTEM (or some other authorized user)
    --     must issue the following SQL statement:
    --          CREATE OR REPLACE CONTEXT table_two_default USING fubar.table_two_pkg;
    --     The preceding only needs to be doen once in the lifetime of the application.
    --          **   s e t _ a l l   **
    --          set_all
    PROCEDURE     set_all
    IS
    BEGIN
         FOR  d_rec  IN  ( SELECT  *
                              FROM       table_two
                     WHERE       vendors     = 'DEFAULT'
         LOOP
              dbms_output.put_line (d_rec.period || '= period in set_all');
              set_var ( d_rec.id || '_LIFE_NUMBER'
                   , TO_CHAR (d_rec.life_number)
              set_var ( d_rec.id || '_PERIOD'
                   , d_rec.period)
         END LOOP;
    END     set_all
    --          **   s e t _ v a r   **
    --          set_var assigns a vlaue to a single variable in the
    --          table_two_default namespace.
    PROCEDURE     set_var
    (     in_name          IN     VARCHAR2
    ,     in_text          IN     VARCHAR2     DEFAULT     NULL     -- New value
    IS
    BEGIN
         dbms_session.set_context
              'TABLE_TWO_DEFAULT',
              in_name,
              in_text
    END     set_var;
    END     table_two_pkg;
    SHOW ERRORS
    EXEC table_two_pkg.set_all;After you have run set_all, then, instead of querying table_two like this:
    SELECT     period
    INTO     v_period
    FROM     table_two
    WHERE     id     = 'C'
    AND     vendors     = 'DEFAULT';you can simply do this:
    v_period := SYS_CONTEXT ( 'TABLE_TWO_DEFAULT'
                       , 'C_PERIOD'
                   );Since table_two is only queried when set_all is called, you can use SYS_CONTEXT in a trigger on table_two.
    This job is a little more confusing than some SYS_CONTEXT applications, because (as I understand it) you want something two-dimensional , that is, might want any column from any row of table_two. I combined those two dimesions into one, by changing what would otherwise be varibale names like LIFE_NUMBER or PERIOD to C_LIFE_NUMBER and C_PERIOD, where C is the id from that row. (This assumes that id is unique among DEFAULT rows.)

  • I need help modifying a script in IPCC

    I am running UCCX Premium 5.0(2)SR02_Build045. I have a script in place, but need to modify it. Basically a call comes into my main menu and gets distributed to a contact service queue. If no agents are available the call is queued and the caller is prompted to leave a voicemail after 2 mins. If the caller continues to hold they will stay in queue. I need to modify the script so that all callers are dequeued after 15mins. The call can be terminated or routed back to my operator (0). Any help appreciated I am a scripting newbie!
    By the red arrow is the QueueTransfersLoop. I need to modify this loop to terminate after 15mins.
    Thanks!!
    Chris

    Hi Chris,
    You need to drop the get reporting statistic step in some place of the queue loop, in the get reporting statistic step properties you have to choose for the Report Object parameter the one that says "CSQ IPCC Express", in the Field parameter you have to choose "Current Wait Duration", the Row Identifier is a string variable that has the value of the CSQ name and finally Result Statistic is an integer variable that you have to set to 0.
    After that you need an if statement, in that step you have to compare the value of the Integer variable with some value, in this case the 15mins that you need (you have to compare the values in seconds). It's better to compare the value with a ".equals()" and also with a ">="  because it could be that the call has being queued a little bit more than 15 mins.
    Check the screenshot, that works for me.
    Gabriel.

  • How to store the images in KM using Code

    Hello,
    i retreived the images from KM using the following code.
    import com.sapportals.portal.prt.component.AbstractPortalComponent;
    import com.sapportals.portal.prt.component.IPortalComponentRequest;
    import com.sapportals.portal.prt.component.IPortalComponentResponse;
    import com.sapportals.portal.prt.resource.IResource;
    public class ThumbnailTes extends AbstractPortalComponent {
         /* (non-Javadoc)
    @see com.sapportals.portal.prt.component.AbstractPortalComponent#doContent(com.sapportals.portal.prt.component.IPortalComponentRequest, com.sapportals.portal.prt.component.IPortalComponentResponse)
         public void doContent(IPortalComponentRequest request,IPortalComponentResponse response) {
    String path =request.getResource(IResource.IMAGE,"images/sap1.gif").getResourceInformation().getURL(request);
                   response.write("<img src = "path"/>");
    but i want to store the images in KM using code.Can anybody help me.
    acutally the image is my location(c:/images/sap1/jpg).i want to upload this image to KM using code.
    Can anybody help me how to do that?

    Hi Kasturi,
    > not accepting the points
    It worked on this and on one other thread, but this is still open: How to upload the image
    > want upload the images from the client side machine
    > to KM
    In the thread I just referred to, I already provided information about the HTMLB upload control. With this at hand, you'll get the file from the client to the server.
    At server side, get an ICollection instance where you want to store the file and create the corresponding resource. See https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/javadocs/nw04/sp12/knowledge management/com/sapportals/wcm/repository/icollection.html#createresource(java.lang.String,%20com.sapportals.wcm.repository.IPropertyMap,%20com.sapportals.wcm.util.content.IContent)
    Hope it helps
    Detlev

  • HT201210 i need to update to the latest version of itunes, but need to download some images and video first.....it is telling me that this will all be erased if i update, but it is not letting me do anything else.....what can i do??

    i need to update to the latest version of itunes, but need to download some images and video first.....it is telling me that this will all be erased if i update, but it is not letting me do anything else.....what can i do??

    You have no choice but to restore the phone.
    However, I'm sure you've been smart enough to have backed up your data before starting the most significant update in iOS history,right?

  • Need help trying to replicate this image

    Hi all,
    I'm not sure if this is the correct place to post, but i'm wondering if I could get suggestions on how to best re-create this image, but in a seamless manner (I had to erase a lot out since it had set pieces in front of it). I need to replicate this in a 6660X1080 banner.
    http://img819.imageshack.us/img819/3235/exampleg.jpg
    Thanks for any help you can be! I've seen instructions on how to make lightning and it seems pretty straight forward, but this looks a little tougher than that, no?

    Thanks for any help you can be! I've seen instructions on how to make lightning and it seems pretty straight forward, but this looks a little tougher than that, no?
    Download the demo of After Effects plus possibly the demos of some plug-ins (Sapphire, Delirium)... Tons of Lightning effects and even though it's meant for animation, nothing stops you from just rendering out a still frame for your banner. Other than that I don't see much in your sample and it could be reasonably well created even using basic Photoshop or Illustrator techniques... Really not sure what you are asking here. Sounds more like you are generalyl rather inexperienced in PS...
    Mylenium

  • How can I modify this code to display an image in an applet?

    Sorry, I'm almost positive this is absolutely incorrect, but here is what I have so far:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import javax.imageio.*;
    import javax.swing.*;
    public class Blackberry extends JApplet implements ActionListener
         Image image;
        public void init()
            //image = getImage(getDocumentBase(), "bluespace.png");
            try { image = ImageIO.read(new File("bluespace.png")); }
              catch (IOException e) { }
        public void paint(Graphics g)
            g.drawImage(image, 0, 0, this);
    }There are no errors given when run as an applet in Eclipse, it just displays a blank window.

    Here's a small example of a JPanel that draws an image:
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Image;
    import javax.swing.JPanel;
    public class ShowImageJPanel extends JPanel
      private Image image;
      public ShowImageJPanel(Image image)
        this.image = image;
        Dimension size = new Dimension(
            image.getWidth(this),
            image.getHeight(this));
        setPreferredSize(size);
      @Override
      protected void paintComponent(Graphics g)
        super.paintComponent(g);
        if (image != null)
          g.drawImage(image, 0, 0, this);
    }and a JApplet that adds this JPanel into its contentPane:
    import java.awt.Image;
    import java.io.IOException;
    import javax.imageio.ImageIO;
    import javax.swing.JApplet;
    public class ShowImageApplet extends JApplet
      private static final String IMAGE_PATH = "images/SunSteinSmall.png";
      public void init()
        try
          javax.swing.SwingUtilities.invokeAndWait(new Runnable()
            public void run()
              createGUI();
        catch (Exception e)
          System.err.println("createGUI didn't successfully complete");
      private void createGUI()
        try
          Image image = ImageIO.read(getClass().getResourceAsStream(IMAGE_PATH));
          getContentPane().add(new ShowImageJPanel(image));
        catch (IOException e)
          e.printStackTrace();
    }Here I have a subpackage off of the applet's package called image, and it's filled with Duke images which you can download from here:
    [https://duke.dev.java.net/images/index.html]

Maybe you are looking for

  • How do I enable the clipboard options on my MacBook Pro?

    I need to post information into a discussion thread for class. I copied the information from Pages and I tried to paste the information in the compose section of the discussion board. Every time I try this an error message pops up on my screen... Cop

  • How can I transfer everything from a MBAir to new MBPro?

    Hi, I am writing this question on my MacBook Air, running OSX Mountain Lion. I have on order a MacBook Pro Retina, which will probably come installed with Mountain Lion also. Please advise how I can move everything from the MBAir to the new MBPro. I

  • Configuration Manager client upgrade package failing to download to DPs

    Hello, I am receiving the following error in distmgr.log "Failed to get RDC signature path for for package SF100004 version 1. Error = 2" "SF100004" is the "Configuration Manager client upgrade package" Is there a way to rebuild/repair this package? 

  • Cant create more partitions

    Hi, i have Arch on a PC with a 80g HD. I have 4 partitions. - / "root" - /home - /boot - /swap Im looking to install Backtrack in a dualbooting with Arch. But i cant create more primary partitions. I tried creating and extended partition, but an exte

  • Help with iWeb single file support

    Hi all. I'm trying to make a single file document with html support to use as a cover letter for potential employers, I understand that .mhtml is not supported, is there an alternative so I can combine my entire site into a single file for easy distr