If then Else statement not working under Computation in APEX

Hi
Can anyone help me where I am going wrong? I am trying to use the following code in Computation Process on Submit. I am not able to get the value. It's showing nothing.
Page:
*Item Name (Value Required)
Type
Static Assignment
PL/SQL Function Body
SQL Query (return single value)
SQL Query (return colon separated value)
SQL Expression
PLSQL Expression
Item Value
Computation Point
*Sequence (Value Required)
Computation Point
On New Instance (new session)
Before Header
After Header
Before Region(s)
After Region(s)
Before Footer
After Footer
After Submit
Source
*Computation (Value Required)
BEGIN
IF :P3_AGING_DAYS <= '0' THEN
:P3_AGING_BUCKET := 'Within due date';
elsif :P3_AGING_DAYS > '0' AND :P3_AGING_DAYS <= '3' then
:P3_AGING_BUCKET := 'Within 3 days';
end if;
end;

1efb2968-171d-43f9-9d5d-d38151735ed7 wrote:
Please update your forum profile with a real handle instead of "1efb2968-171d-43f9-9d5d-d38151735ed7".
Can anyone help me where I am going wrong? I am trying to use the following code in Computation Process on Submit. I am not able to get the value. It's showing nothing.
BEGIN
IF :P3_AGING_DAYS <= '0' THEN
:P3_AGING_BUCKET := 'Within due date';
elsif :P3_AGING_DAYS > '0' AND :P3_AGING_DAYS <= '3' then
:P3_AGING_BUCKET := 'Within 3 days';
end if;
end;
A PL/SQL Function Body computation has to return a value rather than assigning it to an item in the PL/SQL block (APEX turns the block into the body of a function). The item for which the value is to be computed is specified in the computation properties (P3_AGING_BUCKET).
begin
  return case
           when :p3_aging_days < 1
           then
             'Within due date'
           when :p3_aging_days between 1 and 3
           then
             'Within 3 days'
         end;
end;

Similar Messages

  • My nested CASE WHEN THEN ELSE is not working.

    I'm working on a report that will provide a status on a component based on a defined Matrix.  The status to report is determined in a hierarchal fashion...the highest seqence number status existing is reported. 
    I've capped the sequence number at 10 (@SeqNumCap_sav)
    The matrix table is defined as such:
    CREATE TABLE [dbo].[tblAssyLineComponentStatusMatrix](
    [MatrixAssyLine] [char](1) NOT NULL,
    [MatrixComponentProduct] [char](15) NOT NULL,
    [MatrixComponentStatusSequence] [decimal](3, 0) NOT NULL,
    [MatrixComponentStatus] [char](3) NOT NULL,
    [MatrixStatusDescription] [nvarchar](100) NOT NULL,
    [MatrixReportedDescription1] [nvarchar](50) NOT NULL,
    [MatrixReportedDescription2] [nvarchar](50) NULL,
    [MatrixReportedDescription3] [nvarchar](50) NULL,
    [MatrixReportedDescription4] [nvarchar](50) NULL,
    [MatrixReportedDescription5] [nvarchar](50) NULL
    ) ON [PRIMARY]
    This is a sample of the tblAssyLineComponentStatusMatrix data:
    MatrixAssyLine MatrixComponentProduct MatrixComponentStatusSequence MatrixComponentStatus MatrixStatusDescription MatrixReportedDescription1 MatrixReportedDescription2 MatrixReportedDescription3 MatrixReportedDescription4 MatrixReportedDescription5
    E Mast/PullRod    1 W   The part has been stamped or welded. Class3PullRods NULL NULL NULL NULL
    E Mast/PullRod    2 P   The part has been clicked off in a paint hang station. TSMastPaintHang NULL NULL NULL NULL
    E Mast/PullRod    3 Y   The part has been clicked off in paint pulldown. TSMastPaintUnload NULL NULL NULL NULL
    the tblProductionControlComponentReporting is defined as:
    CREATE TABLE [dbo].[tblProductionControlComponentReporting](
    [WorkUnit] [nvarchar](15) NOT NULL,
    [Description] [nvarchar](50) NOT NULL,
    [Completed] [datetime] NOT NULL,
    [UserID] [nvarchar](30) NULL,
    [StationID] [nvarchar](30) NULL,
    [Undo] [bit] NULL,
    [CompletedUndo] [datetime] NULL,
    [UserIDUndo] [nvarchar](30) NULL,
    [StationIDUndo] [nvarchar](30) NULL,
    [ComponentPartNo] [varchar](15) NULL,
    [ComponentClass] [varchar](3) NULL,
    [ComponentQty] [decimal](6, 2) NULL,
    [ComponentScheduleDate] [datetime] NULL,
    [ComponentScheduleShift] [decimal](1, 0) NULL,
    [ComponentScheduleWorkunitSequence] [int] NULL,
    [ComponentComment] [varchar](200) NULL
    ) ON [PRIMARY]
    A sample of the tblProductionControlComponentreporting data:
    assyline WorkUnit Description Completed UserID StationID
    E 639422 Class3PullRods 2014-09-15 13:15:44.607 GLOBAL\agmesusr ag2100156
    E 639422 Class3PullRods 2014-09-15 13:15:44.607 GLOBAL\agmesusr ag2100156
    E 639422          TSFrameFabDeliver 2014-09-25 11:31:44.380 NULL MCA
    E 639422 TSMastPaintHang 2014-09-25 22:56:43.740 009932 AG2100294
    The problem is that the below code is returning multple records which is causing an error ... if I resequence the above Matrix table data where #3 becomes #10, 2 becomes #9 and 1 becomes #8, the query works fine - but this approach doesn't allow for easy
    expansion of the data.  Can anyone help me see the problem here?
    use eschedule
    declare @Workunit varchar(max)
    declare @SeqNumCap_sav dec(3, 0)
    set @WorkUnit='639422'
    set @SeqNumCap_sav= (select top 1 SequenceValueCap from tblAssyLineComponentStatusMatrix_SequenceCap order by SequenceValueCap)
    select
    Mast_PullRodStatus = case
    --Seq 10 Mast/PullRod Component Status
    when (select top 1 [description] from tblproductioncontrolcomponentreporting
    where ([description] = (select MatrixReportedDescription1 from tblAssyLineComponentStatusMatrix where MatrixComponentProduct='Mast/PullRod' and MatrixComponentStatusSequence=@SeqNumCap_sav and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit))))
    and Workunit=@WorkUnit
    ) is not null
    then
    (select MatrixComponentStatus from tblAssyLineComponentStatusMatrix
    where MatrixComponentProduct='Mast/PullRod'
    and MatrixComponentStatusSequence=@SeqNumCap_sav
    and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit)))
    --Seq 9 Mast/PullRod Component Status
    else case
    when (select top 1 [description] from tblproductioncontrolcomponentreporting
    where ([description] = (select MatrixReportedDescription1 from tblAssyLineComponentStatusMatrix
    where MatrixComponentProduct='Mast/PullRod'
    and MatrixComponentStatusSequence=(@SeqNumCap_sav-1)
    and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit))))
    and Workunit=@WorkUnit
    ) is not null
    then (select MatrixComponentStatus from tblAssyLineComponentStatusMatrix
    where MatrixComponentProduct='Mast/PullRod'
    and MatrixComponentStatusSequence=(@SeqNumCap_sav-1)
    and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit)))
    --Seq 8 Mast/PullRod Component Status
    else case
    when (select top 1 [description] from tblproductioncontrolcomponentreporting
    where ([description] = (select MatrixReportedDescription1 from tblAssyLineComponentStatusMatrix
    where MatrixComponentProduct='Mast/PullRod'
    and MatrixComponentStatusSequence=(@SeqNumCap_sav-2)
    and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit))))
    and Workunit=@WorkUnit
    ) is not null
    then (select MatrixComponentStatus from tblAssyLineComponentStatusMatrix
    where MatrixComponentProduct='Mast/PullRod'
    and MatrixComponentStatusSequence=(@SeqNumCap_sav-2)
    and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit)))
    --Seq 7 Mast/PullRod Component Status
    else case
    when (select top 1 [description] from tblproductioncontrolcomponentreporting
    where ([description] = (select MatrixReportedDescription1 from tblAssyLineComponentStatusMatrix
    where MatrixComponentProduct='Mast/PullRod'
    and MatrixComponentStatusSequence=(@SeqNumCap_sav-3)
    and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit))))
    and Workunit=@WorkUnit
    ) is not null
    then (select MatrixComponentStatus from tblAssyLineComponentStatusMatrix
    where MatrixComponentProduct='Mast/PullRod'
    and MatrixComponentStatusSequence=(@SeqNumCap_sav-3)
    and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit)))
    --Seq 6 Mast/PullRod Component Status
    else case
    when (select top 1 [description] from tblproductioncontrolcomponentreporting
    where ([description] = (select MatrixReportedDescription1 from tblAssyLineComponentStatusMatrix
    where MatrixComponentProduct='Mast/PullRod'
    and MatrixComponentStatusSequence=(@SeqNumCap_sav-4)
    and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit))))
    and Workunit=@WorkUnit
    ) is not null
    then (select MatrixComponentStatus from tblAssyLineComponentStatusMatrix
    where MatrixComponentProduct='Mast/PullRod'
    and MatrixComponentStatusSequence=(@SeqNumCap_sav-4)
    and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit)))
    --Seq 5 Mast/PullRod Component Status
    else case
    when (select top 1 [description] from tblproductioncontrolcomponentreporting
    where ([description] = (select MatrixReportedDescription1 from tblAssyLineComponentStatusMatrix
    where MatrixComponentProduct='Mast/PullRod'
    and MatrixComponentStatusSequence=(@SeqNumCap_sav-5)
    and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit))))
    and Workunit=@WorkUnit
    ) is not null
    then (select MatrixComponentStatus from tblAssyLineComponentStatusMatrix
    where MatrixComponentProduct='Mast/PullRod'
    and MatrixComponentStatusSequence=(@SeqNumCap_sav-5)
    and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit)))
    --Seq 4 Mast/PullRod Component Status
    else case
    when (select top 1 [description] from tblproductioncontrolcomponentreporting
    where ([description] = (select MatrixReportedDescription1 from tblAssyLineComponentStatusMatrix
    where MatrixComponentProduct='Mast/PullRod'
    and MatrixComponentStatusSequence=(@SeqNumCap_sav-6)
    and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit))))
    and Workunit=@WorkUnit
    ) is not null
    then (select MatrixComponentStatus from tblAssyLineComponentStatusMatrix
    where MatrixComponentProduct='Mast/PullRod'
    and MatrixComponentStatusSequence=(@SeqNumCap_sav-6)
    and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit)))
    --Seq 3 Mast/PullRod Component Status
    else case
    when (select top 1 [description] from tblproductioncontrolcomponentreporting
    where ([description] = (select MatrixReportedDescription1 from tblAssyLineComponentStatusMatrix
    where MatrixComponentProduct='Mast/PullRod'
    and MatrixComponentStatusSequence=(@SeqNumCap_sav-7)
    and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit))))
    and Workunit=@WorkUnit
    ) is not null
    then (select MatrixComponentStatus from tblAssyLineComponentStatusMatrix
    where MatrixComponentProduct='Mast/PullRod'
    and MatrixComponentStatusSequence=(@SeqNumCap_sav-7)
    and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit)))
    --Seq 2 Mast/PullRod Component Status
    else case
    when (select top 1 [description] from tblproductioncontrolcomponentreporting
    where ([description] = (select MatrixReportedDescription1 from tblAssyLineComponentStatusMatrix
    where MatrixComponentProduct='Mast/PullRod'
    and MatrixComponentStatusSequence=(@SeqNumCap_sav-8)
    and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit))))
    and Workunit=@WorkUnit
    ) is not null
    then (select MatrixComponentStatus from tblAssyLineComponentStatusMatrix
    where MatrixComponentProduct='Mast/PullRod' and MatrixComponentStatusSequence=(@SeqNumCap_sav-8))
    --Seq 1 Mast/PullRod Component Status
    else case
    when (select top 1 [description] from tblproductioncontrolcomponentreporting
    where ([description] = (select MatrixReportedDescription1 from tblAssyLineComponentStatusMatrix
    where MatrixComponentProduct='Mast/PullRod'
    and MatrixComponentStatusSequence=(@SeqNumCap_sav-9)
    and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit))))
    and Workunit=@WorkUnit
    --and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit))
    ) is not null
    then (select MatrixComponentStatus from tblAssyLineComponentStatusMatrix
    where MatrixComponentProduct='Mast/PullRod'
    and MatrixComponentStatusSequence=(@SeqNumCap_sav-9)
    and (MatrixAssyLine=(select assyline from tblProductionControlHeader h where h.workunit=@WorkUnit)))
    else ' '
    end
    end
    end
    end
    end
    end
    end
    end
    end
    end
    Assume Assyline='E'
    Eva Leggett

    Good job posting the DDL.
    Your example data should be in a table format though.
    DECLARE @tblAssyLineComponentStatusMatrix TABLE (MatrixAssyLine char(1) NOT NULL, MatrixComponentProduct char(15) NOT NULL, MatrixComponentStatusSequence decimal(3, 0) NOT NULL, MatrixComponentStatus char(3) NOT NULL, MatrixStatusDescription nvarchar(100) NOT NULL, MatrixReportedDescription1 nvarchar(50) NOT NULL, MatrixReportedDescription2 nvarchar(50) NULL, MatrixReportedDescription3 nvarchar(50) NULL, MatrixReportedDescription4 nvarchar(50) NULL, MatrixReportedDescription5 nvarchar(50) NULL)
    INSERT INTO @tblAssyLineComponentStatusMatrix (MatrixAssyLine, MatrixComponentProduct, MatrixComponentStatusSequence, MatrixComponentStatus, MatrixStatusDescription, MatrixReportedDescription1, MatrixReportedDescription2, MatrixReportedDescription3, MatrixReportedDescription4, MatrixReportedDescription5) VALUES ('E' ,'Mast/PullRod' ,1 ,'W' ,'The part has been stamped or welded. ','Class3PullRods ' ,NULL, NULL, NULL, NULL)
    INSERT INTO @tblAssyLineComponentStatusMatrix (MatrixAssyLine, MatrixComponentProduct, MatrixComponentStatusSequence, MatrixComponentStatus, MatrixStatusDescription, MatrixReportedDescription1, MatrixReportedDescription2, MatrixReportedDescription3, MatrixReportedDescription4, MatrixReportedDescription5) VALUES ('E' ,'Mast/PullRod' ,2 ,'P' ,'The part has been clicked off in a paint hang station. ','TSMastPaintHang ' ,NULL, NULL, NULL, NULL)
    INSERT INTO @tblAssyLineComponentStatusMatrix (MatrixAssyLine, MatrixComponentProduct, MatrixComponentStatusSequence, MatrixComponentStatus, MatrixStatusDescription, MatrixReportedDescription1, MatrixReportedDescription2, MatrixReportedDescription3, MatrixReportedDescription4, MatrixReportedDescription5) VALUES ('E' ,'Mast/PullRod' ,3 ,'Y' ,'The part has been clicked off in paint pulldown. ','TSMastPaintUnload ' ,NULL, NULL, NULL, NULL)
    DECLARE @tblProductionControlComponentReporting TABLE (WorkUnit nvarchar(15) NOT NULL, Description nvarchar(50) NOT NULL, Completed datetime NOT NULL, UserID nvarchar(30) NULL, StationID nvarchar(30) NULL, Undo bit NULL, CompletedUndo datetime NULL, UserIDUndo nvarchar(30) NULL, StationIDUndo nvarchar(30) NULL, ComponentPartNo varchar(15) NULL, ComponentClass varchar(3) NULL, ComponentQty decimal(6, 2) NULL, ComponentScheduleDate datetime NULL, ComponentScheduleShift decimal(1, 0) NULL, ComponentScheduleWorkunitSequence int NULL, ComponentComment varchar(200) NULL)
    INSERT INTO @tblProductionCOntrolComponentReporting (WorkUnit, Description, Completed, UserID, StationID) VALUES (639422, 'Class3PullRods', '2014-09-15 13:15:44.607', 'GLOBAL\agmesusr', 'ag2100156')
    INSERT INTO @tblProductionCOntrolComponentReporting (WorkUnit, Description, Completed, UserID, StationID) VALUES (639422, 'Class3PullRods', '2014-09-15 13:15:44.607', 'GLOBAL\agmesusr', 'ag2100156')
    INSERT INTO @tblProductionCOntrolComponentReporting (WorkUnit, Description, Completed, UserID, StationID) VALUES (639422, 'TSFrameFabDeliver', '2014-09-25 11:31:44.380', NULL, 'MCA')
    INSERT INTO @tblProductionCOntrolComponentReporting (WorkUnit, Description, Completed, UserID, StationID) VALUES (639422, 'TSMastPaintHang', '2014-09-25 22:56:43.740', '009932', 'AG2100294')
    Your code is a mess, it would take longer to untangle it that it would to solve your problem.
    Can you give us an expected output, and perhaps the rules governing what your case statement should be doing?

  • My ipod cclassic 80gb is hang after trying dat press and hold method then also its not working please tell me solution

    My ipod cclassic 80gb is hang after trying dat press and hold method then also its not working please tell me solution

    Thanks for your response and good luck wishes, I suspect I will need them!
    In principle, I agree re: the manufacturer's warranty. However, I am pretty upset that this is now my second iPod to develop a critical fault within weeks of the warranty expiring, and frankly, it is not unreasonable to expect a state-of-the-art $500 electronic device to last well beyond one year of life.
    I agree talking to Apple is not likely to do me any good (the clue is in how impossible they make it to talk to them in the first place) - but that is not necessarily OK. I expect I will have to pay money to get the battery replaced - again, not OK (full stop - but especially given the cost of the device and the money I have spent with Apple). Yes, the batteries have a limited lifespan, but it should last longer than this (and surely, I should notice a gradual decline in its functionality, not an instant stop).
    I will try Deggie's suggestion (see my reply post), but probably won't hold my breath (think I have already done this). I probably will have to get the new battery - and probably under my own steam. It is a principle at stake and I feel I should be able to let Apple know how I'm feeling - and am frustrated that they make this virtually impossible. It sends the very clear message that they are not interested in listening to their customers.

  • Flash player does not work under one user account.

    Flash player does not work under one of my user accounts.
    My system: I work with a mac mini with Mac OS X 10.6.8.
    What I have done:
    I installed the flash player maybe one year ago under my "first" user account. At that time this user account had had administrator authorization. In the meantime I had to change this "first" user account in an account without administrator authorization and created an administrator user with which I installed different programms. Lately, the message came up that it would be necessary to update the flash player. I did it; under the "first" user account, but of course with the administrator's password for installing. The installation had been "successful" - so I was told. But it did not run. I tried it again and again. Each time with "deinstallation" first. No way; it did not work.
    After asking Adobe for the reason of the problem, they suggested to install the programm directly under the administrator user. I did that (of course after deinstalling under the "first" user account) with the result, that flash player runs under my administrator and my "second" user account, but not under the first user account. There I am always told to update my flash player.
    With this result, I talked to Adobe. So they told me to contact the producer of the operating software, since this would be a mistake of the operating software.
    And here I am - full of hope to get help from you.
    Thanks for reading. And thanks in advance for helping me.
    Nanny FS

    Any update to provide at all here guys?  Again, in my situation, it's very much rights-related as a standard user doesn't even report that the flash player exists when testing it on the Adobe Flash Version Detection website (despite it showing up in Control Panel and under Add/Remove Programs).  I've already tried giving the C:\Windows\System32\Macromed and files/subfolders appropriate permissions for the standard user and still nothing.  If I either give the user in question full local admin rights or logon as the domain admin, then the Adobe Flash Version Detection website says Flash is installed and Flash works fine.
    Thoughts???

  • Inserting a 'null' value in an IF THEN ELSE statement

    Greetings,
    I'm using Business Object webi XiR3
    I'd like to return a 'null' value in certain cases for an IF THEN ELSE statement.  Depending on if I format the field as a text or a number, I can return blanks ("") and zeros (0).  However, what I really need to do is leave the field / column formatted as a number and return a 'null' value.  You can see the variable below ... this will return a blank but the column is text.
    Suggestions?
    thanks.
    variable:
    =If([Comp Rate Mid] = 0 And( ([Market Rate 50th].085) - [Annual Total Targeted Comp] >=0) ; ([Market Rate 50th]0.85) - [Annual Total Targeted Comp]; If([Comp Rate Mid] <> 0 And( ([Comp Rate Mid] 0.85) - [Annual Total Targeted Comp] >=0) ; ([Comp Rate Mid]0.85) - [Annual Total Targeted Comp];""))

    I don't think this is possible using a formula, as formulas deal with content, and images can be placed in cells only as 'image fill', which is Format, rather than Content.
    Might be possible using an AppleScript, but I'm not the person to advise you on that.
    Regards,
    Barry

  • SB04100 Sound Blaster Card not working after computer rebuild

    =SB0400 Sound Blaster Card not working after computer rebuildZ I did a full disk format and reinstall for a friend on a Dimension 3000, running XP SP3. There is no sound at all. Speakers are good, tested on another system. Model number on the back of the sound card is SB0400, so I assume this is an older 24 bit PCI SoundBlaster card. Although I reinstalled all drivers from Dell, I found no drivers for this. The Creative site has no listing for this model.
    Computer does not seem to recognize the card. Have not opened the box yet but I assume if I were to remove and then reinstall the card it would be recognized (?) I then have to find an SB0400 driver.
    Does anyone know where I can find an SB0400 driver ? Does the strategy of pulling and reinstalling the card make sense ? (I have really avoided tampering with any of the hardware on this box -- since it is not mine.)

    Re: SB0400 Sound Blaster Card not working after computer rebuild? Thanks much for your response. Problem solved for now. I removed the board and then reinserted it, after which I was able to download the drivers directly. Some of my difficulty with this whole process has been ) I didn't know there was no working speaker in the computer and 2) I apparently misunderstood the BIOS settings for this. I re-set it up as an add-on board during the troubleshooting process. After loading the driver, I went back to the original setting (don't recall what it was but it was for integrated sound). The setting for integrated sound works fine, with external speakers and the new 24 bit driver. Still some noise (popping and static) but this board shares the bus with 2 other cards one of which is a wireless network card. May be a PCI latency issue but I'm reluctant to change that because the network card is a bit shaky anyway.
    Everything works for now -- I'll be glad to get this particular computer out of my house !

  • The video out is NOT WORKING under 10.5.2

    *APPLE please read this;*
    The video out on the MacBook Pro is NOT WORKING under 10.5.2, or precisely is working with a possibility of 10%! Monitors doesn't find signal in, or when they find it, the image is unstable with green shadows.
    _I tried 28 external monitor in a store and only ONE was working normally!_ I tried with all the cables combinations (DVI->DVI or DVI->ANALOG, with several different brand cables).
    Before the 10.5 update, I didn't have any problem with external Monitor.
    The point is that I have installed in the same computer (MAC BOOK PRO) also WINDOWS VISTA, and all the monitors that are not working with MAC OS are working perfectly under VISTA system.
    I made a long research online and I found out that thousands of users have the same problem, but no one receive an answer from APPLE from several months!
    This is not the only problem that I have under MAC OS 10.5, but them, are other topics.
    _Please at least resolve this MAJOR problem that I and thousands of other users have with video out._
    Thank you.
    Leonardo Corbucci Zanobi
    F I R S T A K E - STUDIOS
    www.firstake.net

    Video out under 10.5.2 works fine for me and for a colleague of mine with a more recent MacBook Pro. I'd wager it's a problem with your Leopard install, not a universal one.
    Also, FYI, Apple doesn't read these forums; they're just for user-to-user help. If you want to leave MacBook Pro feedback for Apple, do so here:
    http://www.apple.com/feedback/macbookpro.html
    But again, I do not believe yours is a universal issue. We'll be happy to help troubleshoot though. What do you mean the image is "unstable"? Could you take a digital photograph of the external monitor's screen and upload it somewhere?

  • Dreamweaver CS4 not working under MacOS 10.9

    on starting DW CS4 it asks for Java Runtime engine 6, but Mavericks has Java v.7 installed. Since Java 6 was part of the OS of previous systems, I cannot install it seperately, besides it would probably cause conflicts with OS 10.9. Do I have to trash my DW, or is there a workaround.
    Thanx

    If I follow click the instal button on
    I get the progress bar for about 1 sec and then the message about a supposed
    network problem
    which is unreal, since my network works perfectly for any other task and I
    had even tried disabling the firewall and little snitch. Things are still
    not working
    Von:  Jon Fritz II <[email protected]>
    Antworten an:  <[email protected]>
    Datum:  Montag, 25. November 2013 18:34
    An:  RoWo <[email protected]>
    Betreff:  Dreamweaver CS4 not working under
    MacOS 10.9
    Re: Dreamweaver CS4 not working under MacOS 10.9
    created by Jon Fritz II <http://forums.adobe.com/people/JonFritzII>  in
    Dreamweaver support forum - View the full discussion
    <http://forums.adobe.com/message/5872889#5872889>
    This has been discussed a lot here, you need to install Java 6.
    http://helpx.adobe.com/dreamweaver/kb/dreamweaver-java-se-6-runtime.ht ml
    <http://helpx.adobe.com/dreamweaver/kb/dreamweaver-java-se-6-runtime.html>
    Please note that the Adobe Forums do not accept email attachments. If you
    want to embed a screen image in your message please visit the thread in the
    forum to embed the image at http://forums.adobe.com/message/5872889#5872889
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either reply
    to this email or visit the message page:
    http://forums.adobe.com/message/5872889#5872889 To unsubscribe from this
    thread, please visit the message page at
    http://forums.adobe.com/message/5872889#5872889. In the Actions box on the
    right, click the Stop Email Notifications link.  Start a new discussion in
    Dreamweaver support forum at Adobe Community
    <http://forums.adobe.com/choose-container!input.jspa?contentType=1&container
    Type=14&container=2240>  For more information about maintaining your forum
    email notifications please go to
    http://forums.adobe.com/thread/416458?tstart=0.

  • Swedish chars ��� not working under Solaris

    Hi All,
    I created the following little code and it is not working under Solaris 7, JDK1.4.1_01. (also tested some other but does not work)
    public class HelloSweden
    public static void main(String [] args)
    String newName="���";
    String charsetName = "iso-8859-2";
    byte [] s = {(byte)229, (byte)228, (byte)246};
    try
    newName = new String(s, 0, s.length, charsetName);
    catch ( java.io.UnsupportedEncodingException e )
    System.err.println(e.getMessage());
    e.printStackTrace();
    System.out.println("new name is: "+newName);
    for(int i=0; i<newName.getBytes().length; i++)
    System.out.println(i+"."+":"+newName.getBytes());
    The problem is that on Solaris 7 the output is:
    new name is: ???
    0.:63
    1.:63
    2.:63
    Whereas on Linux it works fine:
    new name is: ���
    0.:-27
    1.:-28
    2.:-10
    I also tried the "javac -encoding iso8859-1" option but no use.
    Could anybody help?
    Thnx,
    GF

    I also tried the "javac -encoding iso8859-1" option
    but no use.
    Was the output exactly the same or were the numbers correct, at least?
    You may need to compile with:
    javac -encoding ISO-8859-1 ClassName.java
    and then run with:
    java -Dfile.encoding=ISO-8859-1 ClassName
    You can set the character encoding explicitely like that. The character encoding depends on locale settings; if you set LC_ALL to a Swedish locale ("sv_SE"?) javac and java should start using the correct encodings automatically.

  • JCombox does not work under linux (fedora) could you help me???

    Hi All,
    I am implementing a GUI for a linux application. This GUI works fine under windows system. But the JCombobox does not work under Linux system. Would you help me to solve it? Thank you very much!..
    The problem is that I cannot select any other item except the first item in the dropdown box of JCombobox. There is no event generated when I click the combobox, while events are generated for other Buttons.
    This problem exists for the following code when I maximize the window. When the window is minimize to some extend in my problem, it is OK.
    Here is the simplify code:
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.Serializable;
    import java.util.Vector;
    import javax.swing.ComboBoxModel;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.event.ListDataEvent;
    import javax.swing.event.PopupMenuEvent;
    import javax.swing.event.PopupMenuListener;
    import java.awt.event.*;
    import javax.swing.*;
    //carmen
    import javax.swing.filechooser.*;
    import javax.swing.event.*;
    import javax.swing.Box;
    import javax.swing.BoxLayout;
    import javax.swing.border.*;
    //import AlwaysSelectableComboBoxDemo.AlwaysSelectableComboBox;
    //import AlwaysSelectableComboBoxDemo.AlwaysSelectableComboBox;
    import java.io.*;
    import java.util.*;
    import java.lang.String.*;
    public class Test extends JFrame
         private JComboBox jComboBox1;
         private JComboBox jComboBox2;
         private JPanel contentPane;
         private JTabbedPane jTabbedPane1;
         //Main Tab
         private JPanel Main;
         private JPanel OutputSimSet;
         private JPanel Test;
         private JPanel ScriptGenTab;
         private JPanel ResultTab;
    //Result Tab
    private JPanel SimResult;
         public Test()
              super();
              //initializeComponent();
              contentPane = (JPanel)this.getContentPane();
              jTabbedPane1 = new JTabbedPane();
              Main = new JPanel();
              OutputSimSet = new JPanel();
              Test = new JPanel();
              ScriptGenTab = new JPanel();
              ResultTab = new JPanel();
              SimResult = new JPanel();
         jComboBox1 = new JComboBox(
                        new String[]{"Item 1","Item 2", "Item 3"});
                        jComboBox1.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent ae) {
                        System.out.println("Yeah");
         jComboBox2 = new JComboBox(
                                  new String[]{"Item 1","Item 2", "Item 3"});
                                  jComboBox2.addActionListener(new ActionListener() {
                                  public void actionPerformed(ActionEvent ae) {
                                  System.out.println("Yeah");
              // jTabbedPane1
              jTabbedPane1.addTab("Main", Main);
              jTabbedPane1.addTab("ScriptGenerator", ScriptGenTab);
              jTabbedPane1.addTab("Simulation Result", ResultTab);
              jTabbedPane1.addChangeListener(new ChangeListener() {
                   public void stateChanged(ChangeEvent e)
                        jTabbedPane1_stateChanged(e);
              // contentPane
              contentPane.setLayout(new BorderLayout(0, 0));
              contentPane.add(jTabbedPane1, BorderLayout.CENTER);
              // Main
              //Main.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
              Main.setLayout(new BorderLayout(0, 0));
              Main.add(OutputSimSet,BorderLayout.NORTH);
              OutputSimSet.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
              OutputSimSet.add(Test, 0);
              Test.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
              Test.add(jComboBox1,0);
              //ResultTab
              ResultTab.setLayout(new BorderLayout(0, 0));
              ResultTab.setBorder(new TitledBorder(""));
              ResultTab.add(SimResult, BorderLayout.NORTH);
              SimResult.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
              SimResult.add(jComboBox2,0);
              // Test
              this.setTitle("Test");
              this.setLocation(new Point(0, 0));
              this.setSize(new Dimension(600, 500));
              this.setVisible(true);
         public void initializeComponent()
         /** Add Component Without a Layout Manager (Absolute Positioning) */
         private void addComponent(Container container,Component c,int x,int y,int width,int height)
              c.setBounds(x,y,width,height);
              container.add(c);
         // TODO: Add any appropriate code in the following Event Handling Methods
         private void jTabbedPane1_stateChanged(ChangeEvent e)
              System.out.println("\njTabbedPane1_stateChanged(ChangeEvent e) called.");
              // TODO: Add any handling code here
         // TODO: Add any method code to meet your needs in the following area
         // TODO: Add any appropriate code in the following Event Handling Methods
         private void jComboBox1_actionPerformed(ActionEvent e)
              System.out.println("\njComboBox1_actionPerformed(ActionEvent e) called.");
              Object o = jComboBox1.getSelectedItem();
              System.out.println(">>" + ((o==null)? "null" : o.toString()) + " is selected.");
              // TODO: Add any handling code here for the particular object being selected
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    private static void createAndShowGUI() {
    //Create and set up the window.
    Test frame = new Test();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    }

    package oct03_JCBox;
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import java.awt.Point;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTabbedPane;
    import javax.swing.event.ChangeEvent;
    import javax.swing.event.ChangeListener;
    public class Test extends JFrame
    private JComboBox jComboBox1;
    private JComboBox jComboBox2;
    private JPanel contentPane;
    private JTabbedPane jTabbedPane1;
    //Main Tab
    private JPanel Main;
    //private JPanel OutputSimSet;
    //private JPanel Test;
    private JPanel ScriptGenTab;
    private JPanel ResultTab;
    //Result Tab
    //private JPanel SimResult;
    public Test()
         super();
         //initializeComponent();
         contentPane = (JPanel)this.getContentPane();
         jTabbedPane1 = new JTabbedPane();
         Main = new JPanel();
         ScriptGenTab = new JPanel();
         ResultTab = new JPanel();
    //     OutputSimSet = new JPanel();
    //     Test = new JPanel();
    //     SimResult = new JPanel();
         jComboBox1 = new JComboBox(
         new String[]{"Item 1","Item 2", "Item 3"});
         jComboBox1.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent ae) {
              System.out.println("Yeah");
         jComboBox2 = new JComboBox(
         new String[]{"Item 1","Item 2", "Item 3"});
         jComboBox2.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent ae) {
                   System.out.println("Yeah");
         // Main
         //Main.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
         Main.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
         Main.add(jComboBox1);
         //ResultTab  -----     
         ResultTab.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
         ResultTab.add(jComboBox2);
        //      jTabbedPane1
         jTabbedPane1.addTab("Main", Main);
         jTabbedPane1.addTab("ScriptGenerator", ScriptGenTab);
         jTabbedPane1.addTab("Simulation Result", ResultTab);
         jTabbedPane1.addChangeListener(new ChangeListener() {
              public void stateChanged(ChangeEvent e)
                   jTabbedPane1_stateChanged(e);
         // contentPane
         contentPane.setLayout(new BorderLayout(0, 0));
         contentPane.add(jTabbedPane1, BorderLayout.CENTER);
         // Test
         this.setTitle("Test");
         this.setLocation(new Point(0, 0));
         this.setSize(new Dimension(600, 500));
         this.setVisible(true);
         public void initializeComponent()
    //     /** Add Component Without a Layout Manager (Absolute Positioning) */
    //     private void addComponent(Container container,Component c,int x,int y,int width,int height)
    //     c.setBounds(x,y,width,height);
    //     container.add(c);
         // TODO: Add any appropriate code in the following Event Handling Methods
         private void jTabbedPane1_stateChanged(ChangeEvent e)
         System.out.println("\njTabbedPane1_stateChanged(ChangeEvent e) called.");
         // TODO: Add any handling code here
         // TODO: Add any method code to meet your needs in the following area
         // TODO: Add any appropriate code in the following Event Handling Methods
    //     private void jComboBox1_actionPerformed(ActionEvent e)
    //     System.out.println("\njComboBox1_actionPerformed(ActionEvent e) called.");
    //     Object o = jComboBox1.getSelectedItem();
    //     System.out.println(">>" + ((o==null)? "null" : o.toString()) + " is selected.");
    //     // TODO: Add any handling code here for the particular object being selected
         * Create the GUI and show it. For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
         private static void createAndShowGUI() {
         //Create and set up the window.
         Test frame = new Test();
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frame.pack();
         frame.setVisible(true);
    public static void main(String[] args) {
         //Schedule a job for the event-dispatching thread:
         //creating and showing this application's GUI.
         javax.swing.SwingUtilities.invokeLater(new Runnable() {
         public void run() {
         createAndShowGUI();
    } Try this - you use too many unnecessary JPanels.
    Which way you prefer with actionPerformed should work either way.
    I think your problem was too many unnecessary Panels and set all attributes before it is added, perhaps,
    not add the panel first and then try to set attributes like layout, color, etc...

  • [svn:cairngorm3:] 21174: Landmark does not work under complex situations

    Revision: 21174
    Revision: 21174
    Author:   [email protected]
    Date:     2011-04-29 11:21:00 -0700 (Fri, 29 Apr 2011)
    Log Message:
    Landmark does not work under complex situations
    https://bugs.adobe.com/jira/browse/CGM-39
    Ticket Links:
        http://bugs.adobe.com/jira/browse/CGM-39
    Modified Paths:
        cairngorm3/trunk/libraries/Navigation/src/com/adobe/cairngorm/navigation/core/EnterAndExi tInvoker.as
        cairngorm3/trunk/libraries/Navigation/src/com/adobe/cairngorm/navigation/waypoint/Waypoin tHandler.as

    Hi John,
    1) I like that the new model adds parameterization. It's cleaner than pulling in parameters from pre-set variables. However, the given example didn't actually make much use of it. The only non-constant parameter multiply-used in the example is the "table" variable. Seems like a lot of work for not a lot of gain, at least in this case?
    2) I am cautious that this new template/model condenses the paradigm sooo much, that it is no longer clear where XPath is involved vs straight constant tag names. Yes, Adobe's example is overly-expanded but that's common in code meant to be a demonstration.
    3) I also am cautious that the example intermingles direct node creation into the XPath search/processing chain. I've learned to be VERY careful with this. It only can work when the changes made do not interfere with the rule processing. In my model, I simply avoid it completely (by not making node-position or node-add/remove/move changes until after tree parsing is complete.) This will always be a safe model.
    Bottom line: while I very much appreciate the parameterization and lintability (is that a word? Sure makes sense to me )... I think I would still define each rule separately rather than bring them all together as an inline array in the rule processing call. To me it seems sooo condensed that the XPath meaning can become lost. (Would someone recognize that //para/section-head is actually an XPath statement that could (in another situation) be //para/* or //para/following-siblings::* ... while some of the other strings are exact-match tag names?)
    I realize this is all a matter of style... my preference: clarity for the future reader, particularly when the future reader is me a year later who forgot what all those parameters and embedded methods were all about ...
    Blessings,
    Pete

  • Older ipod will not work under itunes11

    My older ipods will not work under itunes 11, Who can help?

    i think at this point we are unsure if the problem is that apple has once again decided to leave something older in the dust (as they've been doing a LOT lately) or that you've found a bug in itunes 11 that will be addressed at a later date. just how old are these ipods? if they were mine and i had to choose between itunes 11 and my ipods i would choose my ipods. right now i would look around the itunes forums and see if anyone else has this problem.

  • ISight not working under my account

    Hi
    Suddenly I've got iSight camera not working under my main Mac OS X account. PhotoBooth, Skype, iChat does not recognize it. They state that camera is not connected.
    I've tried another account and it worked fine. But all the docs and setting are on my main account, so it's better not to delete it.
    Since hardware works ok. I wonder how can I fix this issue under my account?

    HARDWARRIOR wrote:
    Hi
    Suddenly I've got iSight camera not working under my main Mac OS X account. PhotoBooth, Skype, iChat does not recognize it. They state that camera is not connected.
    I've tried another account and it worked fine. But all the docs and setting are on my main account, so it's better not to delete it.
    Since hardware works ok. I wonder how can I fix this issue under my account?
    See if anything from this recent topic helps you:
      http://discussions.apple.com/message.jspa?messageID=12870386
    EZ Jim
    Message was edited by: EZ Jim
    Mac Pro Quad Core (Early 2009) 2.93Ghz Mac OS X (10.6.6); MacBook Pro (13 inch, Mid 2009) 2.26GHz (10.6.6)
    LED Cinema Display; G4 PowerBook 1.67GHz (10.4.11); iBookSE 366MHz (10.3.9); External iSight; iPod4touch4.2.1

  • If Then Else Statement in SAP R/3 BW

    Hi,
    Does anyone know how to create an If Then Else statement in BEX?
    Thanks,
    Mounika.

    Hi mounika,
    do this way
    If 'material number' > 0.
    rslt = 'enter into table'.
    else.
    rslt = 15.
    endif.
    A True condition always evaluates to 1, a False condition evaluates to 0.
    for more quieries in bw ..pls go through  the link
    http://sap.ittoolbox.com/groups/technical-functional/sap-bw
    pls reward if helps,
    regards.

  • Java If/Then/Else Statement

    Hello,
    Just wondering if it is possible to call one java file from within another.
    I'm thining wiht an if.then/else statement similar to
    If x==true
    then run file1.java
    else run file2.java
    any examples of this, or if it is even possible would be appreciated.

    This is something like what I would do.
    public class FileRunner {
        public static void main(String [] args) {
            if ( args[0].equals("file1") {
                File1 file1 = new File1();
                file1.init() //method you define in File1 that runs everything that would've been in the File1's main method
            } else if (args[0].equals("file2") {
                File2 file2 = new File2();
                file2.init() //method you define in file2 that runs everything that would've been in the File2's main method
            } else {
                System.err.println("Invalid argument");
                System.exit(1);
    java.exe FileRunner.class file1
    java.exe FileRunner.class file2The other method is to start a new jvm from within java, but that gives you less control than this imo.

Maybe you are looking for

  • Developing custom translator for converting xml to edi

    Hi Gurus, I am trying to justify using Oracle B2B if my only requirement is to be able to translate data from flat files to EDI and vice versa. My use case is Application Data ------------> ESB ---------------------------------------> Custom Translat

  • Jsp - php integration

    Hi all, First up all I am very new to java. I have a web application developed on php. I also have a CRM (customer relation management) delevoped on jsp.So I want to pass some values from php to java so that a popup window showing details of customer

  • Deactivation option missing from CS3

    I'm trying to move an installation from one PC to another. It's a single-user licence (I think), it has a serial number and has been activated over the net. So I need (again I think) to Deactivate it on PC #1 before I can activate it on PC #2. The on

  • Cannot save or load config

    Having got my new 'TestCloud' 2TB drive configured, it's time to save the config. Unfortunately, both save and load config options are greyed out. Now, I'm sure I've seen this before, and it was an easy fix, but I can't remember. There's nothing in t

  • HT4623 Bad Iphone 4S Performance after last OSi update

    Last year my wife & I upgraded from 3GS' to 4S';  We have really been happy with the units, but after the last OSi update, the phone performance took a nose-dive and has not recovered.... I keep trying to update, thinking that a patch or something wo