Problem with Conditional Page Process

Application Express 3.1.0.00.32
I have a conditional page process that whenever a user clicks on the create or save button, certain values are stored in one table and certain are stored in another dependent on the value of a page item.
If a user opens a record and makes a change to the entry but doesn't change the current status, the information saved differs from when the current status is altered. Since the code, syntaxically, is correct, I'm more incliendeid to think this is an APEX issue however here is the code:
declare
  v_current_status  pls_integer;
begin
  select fk_lov_status_id
    into v_current_status
    from com_status
   where fk_proj_master_id = :P23_CS_FK_PROJ_MASTER_ID
     and pk_com_status_id = (select max(pk_com_status_id) from com_status);
if v_current_status = :P23_FK_STATUS_ID then
  null;
  elsif (:P23_STATUS_COMMENT is null) then
    INSERT into com_status
      (fk_lov_status_id,
      fk_proj_master_id,
      status_comment)
    VALUES
      (:P23_FK_STATUS_ID,
      :P23_CS_FK_PROJ_MASTER_ID,
      'An update was not made to the status description.');
    commit;
  elsif (:P23_STATUS_COMMENT is not null) then
      INSERT into com_status
        (fk_lov_status_id,
        fk_proj_master_id,
        status_comment)
      VALUES
        (:P23_FK_STATUS_ID,
        :P23_CS_FK_PROJ_MASTER_ID,
        :P23_STATUS_COMMENT);
      commit;
  else
    null;
  end if;
end;Condition Type is: Request is Contained within Expression 1 for the values of the push buttons (SAVE,CREATE)
When Button Pressed is not conditional.
When running the page, the error ORA-01403: no data found is given.
In debug, the last couple of lines are:
0.06: Processing point: AFTER_SUBMIT
0.06: ...Process "Process Row of PROTRAC_MASTER": DML_PROCESS_ROW (AFTER_SUBMIT) #OWNER#:PROTRAC_MASTER:P23_PK_PROJ_MASTER_ID:PK_PROJ_MASTER_ID|IUD
0.08: ...Process "com_status null_desc (apply)": PLSQL (AFTER_SUBMIT) declare v_current_status pls_integer; begin select fk_lov_status_id into v_current_status from com_status where fk_proj_master_id = :P23_CS_FK_PROJ_MASTER_ID and pk_com_status_id = (select max(pk_com_status_id) from com_sta
0.08: Encountered unhandled exception in process type PLSQL
0.08: Show ERROR page...
0.08: Performing rollback...
Any ideas would be appreciated.

Here is the debug log after changing the status and not inputting any information in the description:
The description isn't reporting as %null% even though the page item is empty, it is reporting as "".
0.01: A C C E P T: Request="SAVE_bottom"
0.01: Metadata: Fetch application definition and shortcuts
0.01: NLS: wwv_flow.g_flow_language_derived_from=FLOW_PRIMARY_LANGUAGE: wwv_flow.g_browser_language=en-us
0.01: alter session set nls_language="AMERICAN"
0.01: alter session set nls_territory="AMERICA"
0.01: NLS: CSV charset=WE8MSWIN1252
0.01: ...NLS: Set Decimal separator="."
0.01: ...NLS: Set NLS Group separator=","
0.01: ...NLS: Set date format="DD-MON-RR"
0.01: ...Setting session time_zone to -06:00
0.02: Fetch session state from database
0.02: ...Check session 1623472074064569 owner
0.02: ...Metadata: Fetch Page, Computation, Process, and Branch
0.02: Session: Fetch session header information
0.02: ...Metadata: Fetch page attributes for application 527, page 23
0.02: ...Validate item page affinity.
0.02: ...Validate hidden_protected items.
0.02: ...Check authorization security schemes
0.02: Authorization Check: "2378670777792367583" User: "LREDMOND" Component: ""
0.03: Session State: Save form items and p_arg_values
0.03: ...Session State: Save "P23_NAME" - saving same value: "MAY TEST PROTRAC 60"
0.03: ...Session State: Save "P23_DESCRIPTION" - saving same value: "may is testing protrac atleast 60 times."
0.03: ...Session State: Save "P23_PROJ_MAN_ID" - saving same value: "%null%"
0.03: ...Session State: Save "P23_TRACKIT_WORK_ORDER" - saving same value: ""
0.03: ...Session State: Saved Item "P23_FK_STATUS_ID" New Value="17"
0.03: ...Session State: Save "P23_STATUS_COMMENT" - saving same value: ""
0.03: ...Session State: Save "P23_PK_PROJ_MASTER_ID_COUNT" - saving same value: "15 of 15"
0.03: ...Session State: Save "P23_PK_PROJ_MASTER_ID_PREV" - saving same value: "16"
0.03: ...Session State: Save "P23_PK_PROJ_MASTER_ID_NEXT" - saving same value: ""
0.04: ...Session State: Save "P23_CS_FK_PROJ_MASTER_ID" - saving same value: "17"
0.04: ...Session State: Save "P23_DATE_BEGIN" - saving same value: ""
0.04: ...Session State: Save "P23_ESTIMATED_DATE" - saving same value: ""
0.04: ...Session State: Save "P23_DATE_COMPLETED" - saving same value: ""
0.04: ...Session State: Save "P23_APP_MANAGER_ID" - saving same value: "%null%"
0.04: ...Session State: Save "P23_APP_MANAGER_PHONE" - saving same value: ""
0.04: ...Session State: Save "P23_APP_MANAGER_EXT" - saving same value: ""
0.04: ...Session State: Save "P23_REQUESTER_ID" - saving same value: "%null%"
0.04: ...Session State: Save "P23_REQUESTER_PHONE" - saving same value: ""
0.04: ...Session State: Save "P23_REQUESTER_EXT" - saving same value: ""
0.04: ...Session State: Save "P23_FK_AGENCY_ID" - saving same value: "%null%"
0.04: ...Session State: Save "P23_AGENCY_FNAME" - saving same value: ""
0.04: ...Session State: Save "P23_AGENCY_LNAME" - saving same value: ""
0.04: ...Session State: Save "P23_AGENCY_NUM" - saving same value: ""
0.04: ...Session State: Save "P23_AGENCY_EXT" - saving same value: ""
0.04: ...Session State: Save "P23_CREATEBY_USER" - saving same value: "MAY"
0.04: ...Session State: Save "P23_CREATEBY_DATE" - saving same value: "01/21/2009"
0.04: ...Session State: Save "P23_LASTMOD_USER" - saving same value: "LREDMOND"
0.04: ...Session State: Save "P23_LASTMOD_DATE" - saving same value: "02/03/2009"
0.05: ...Session State: Save "P0_LAST_CHANGE_DATE" - saving same value: "03-FEB-2009 14:15:46 by LREDMOND"
0.05: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
0.05: Branch point: BEFORE_COMPUTATION
0.05: Computation point: AFTER_SUBMIT
0.05: ...Perform computation of item: P23_NAME, type=SQL_EXPRESSION
0.05: ...Session State: Save "P23_NAME" - saving same value: "MAY TEST PROTRAC 60"
0.05: ...Perform computation of item: P23_AGENCY_FNAME, type=SQL_EXPRESSION
0.05: ...Session State: Save "P23_AGENCY_FNAME" - saving same value: ""
0.05: ...Perform computation of item: P23_AGENCY_LNAME, type=SQL_EXPRESSION
0.05: ...Session State: Save "P23_AGENCY_LNAME" - saving same value: ""
0.05: Tabs: Perform Branching for Tab Requests
0.05: Branch point: BEFORE_VALIDATION
0.05: Perform validations:
0.05: ...Item Not Null Validation: P23_NAME
0.05: ...Item Not Null Validation: P23_DESCRIPTION
0.05: ...Item Not Null Validation: P23_FK_STATUS_ID
0.05: ...Regular expression validation: P23_AGENCY_NUM
0.05: ...Regular expression validation: P23_REQUESTER_PHONE
0.05: ...Regular expression validation: P23_APP_MANAGER_PHONE
0.05: ...Item is numeric validation: P23_TRACKIT_WORK_ORDER
0.06: ...Regular expression validation: P23_DATE_BEGIN
0.06: ...Regular expression validation: P23_ESTIMATED_DATE
0.06: ...Regular expression validation: P23_DATE_COMPLETED
0.06: ...PL/SQL "function body returning boolean" Validation: if to_date(:P23_DATE_BEGIN, 'MM/DD/YYYY') > to_date(:P23_DATE_COMPLETED, 'MM/DD/YYYY') then return false; else return true; end if;
0.06: ...PL/SQL "function body returning boolean" Validation: if to_date(:P23_DATE_COMPLETED, 'MM/DD/YYYY') < to_date(:P23_DATE_BEGIN, 'MM/DD/YYYY') then return false; else return true; end if;
0.06: ...PL/SQL "function body returning boolean" Validation: if to_date(:P23_ESTIMATED_DATE, 'MM/DD/YYYY') < to_date(:P23_DATE_BEGIN, 'MM/DD/YYYY') then return false; else return true; end if;
0.06: Branch point: BEFORE_PROCESSING
0.06: Processing point: AFTER_SUBMIT
0.06: ...Process "Process Row of PROTRAC_MASTER": DML_PROCESS_ROW (AFTER_SUBMIT) #OWNER#:PROTRAC_MASTER:P23_PK_PROJ_MASTER_ID:PK_PROJ_MASTER_ID|IUD
0.07: ...Do not run process "com_status (create)", process point=AFTER_SUBMIT, condition type=NEVER, when button pressed=CREATE
0.07: ...Process "com_status null status description": PLSQL (AFTER_SUBMIT) declare v_current_status pls_integer; begin select fk_lov_status_id into v_current_status from com_status where fk_proj_master_id = :P23_CS_FK_PROJ_MASTER_ID and pk_com_status_id = (select max(pk_com_status_id) from com_st
0.08: ...Do not run process "ApplyMRD", process point=AFTER_SUBMIT, condition type=NEVER, when button pressed=DELETE
0.08: ...Do not run process "AddRows", process point=AFTER_SUBMIT, condition type=NEVER, when button pressed=
0.08: Branch point: AFTER_PROCESSING
0.08: ...Evaluating Branch: AFTER_PROCESSING type: "REDIRECT_URL" button: (No Button Pressed) branch: SAVE,CREATE,SAVE_bottom,CREATE_bottom
0.00:
0.00: S H O W: application="527" page="23" workspace="" request="" session="1623472074064569"
0.00: Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: en-us
0.01: alter session set nls_language="AMERICAN"
0.01: alter session set nls_territory="AMERICA"
0.01: NLS: CSV charset=WE8MSWIN1252
0.01: ...NLS: Set Decimal separator="."
0.01: ...NLS: Set NLS Group separator=","
0.01: ...NLS: Set date format="DD-MON-RR"
0.01: ...Setting session time_zone to -06:00
0.01: NLS: Language=en-us
0.01: Application 527, Authentication: CUSTOM2, Page Template: 2731847145165324410
0.01: ...Session ID 1623472074064569 can be used
0.01: ...Application session: 1623472074064569, user=LREDMOND
0.01: ...Determine if user "LREDMOND" workspace "37289604050814421" can develop application "527" in workspace "37289604050814421"
0.01: Session: Fetch session header information
0.01: Saving g_arg_names=P23_PK_PROJ_MASTER_ID and g_arg_values=17
0.02: ...Session State: Save "P23_PK_PROJ_MASTER_ID" - saving same value: "17"
0.02: ...Metadata: Fetch page attributes for application 527, page 23
0.02: Fetch session state from database
0.02: Branch point: BEFORE_HEADER
0.02: Authorization Check: "2378670777792367583" User: "LREDMOND" Component: "PAGE"
0.02: Fetch application meta data
0.03: Computation point: BEFORE_HEADER
0.03: Processing point: BEFORE_HEADER
0.03: Show page template header
0.04: Computation point: AFTER_HEADER
0.04: Processing point: AFTER_HEADER
0.04: ...Process "Fetch Row from PROTRAC_MASTER": DML_FETCH_ROW (AFTER_HEADER) F|#OWNER#:PROTRAC_MASTER:P23_PK_PROJ_MASTER_ID:PK_PROJ_MASTER_ID
0.04: ...Process "Get Next or Previous Primary Key Value": GET_NEXT_OR_PREV_PK (AFTER_HEADER) #OWNER#:PROTRAC_MASTER:PK_PROJ_MASTER_ID::::P23_PK_PROJ_MASTER_ID:P23_PK_PROJ_MASTER_ID_NEXT:P23_PK_PROJ_MASTER_ID_PREV::::P23_PK_PROJ_MASTER_ID_COUNT:
0.04: ...Session State: Save "P23_PK_PROJ_MASTER_ID_NEXT" - saving same value: ""
0.04: ...Session State: Save "P23_PK_PROJ_MASTER_ID_PREV" - saving same value: "16"
0.04: ...Session State: Save "P23_PK_PROJ_MASTER_ID_COUNT" - saving same value: "15 of 15"
0.35: Computation point: AFTER_FOOTER
0.35: Processing point: AFTER_FOOTER
0.35: Log Activity:
0.35: Execute Count=0
0.35: End Show:

Similar Messages

  • While installing adobe creative cloud , getting the following error msg " There seems to be a problem with the download process. Error code:201"

    while installing adobe creative cloud , getting the following error msg " There seems to be a problem with the download process. Error code:201"

    Creative Cloud Help / Error downloading Creative Cloud applications
    http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html

  • Problems with error-page in web.xml and page caching

    Having a few problems with error pages and web.xml with browsers caching the error pages and strange errors coming out of weblogic.servlet.intenal.WebAppServletContext
    I'm trying to set a web app up so that all http errors and all exceptions are routed thruogh predefined resources. For now, I'm simply send 400 errors to 400.html and the ServletException, IOException and RuntimeException to respective html pages.
    What I'm finding is that the error codes work fine but the exceptions are only be routed to the correct error page for the first call to the servlet after server restart.
    So for example, I have my servlet throwing a ServletException as a test case. The weblogic server log shows that ServletException is thrown, and the correct error page for ServletExceptions is shown.
    If I change the Servlet code to throw IOException in place of SevletException, the weblogic.log shows that IOExceptyion is being thrown (so the servlet has deployed successfully), however the Servletxception error page is shown on the browser.
    I'm using IE6 and I've changed the setting such that a new page is requested every time using the tools-internet options-temp internet files-settings option to "check for new versions of stored pages: Every visit to the page".
    Despite this, the servlet exception error page still appears.
    If you clear the cache from the temp intenet files->delete files IE option, the correct errror page will be shown so it appears that the browser cache is being used after all.
    everytime I delete the temp intenet files I get the correct error page on the first request after but then not after that.
    I have implemented the service method for this test to throw the exceptions - does this make a differecne?
    As a test, I have moved the imlpementation to the doGet method instead bu I now get a strange eror from weblogic comlpaining about an arrayOutOfBoundsException because eror codes in the web.xml are not supported! - see error above.
    Any help is appreciated

    After further investigation: -
    There are no problems with error pages based on error codes, only error exceptions.
    As a test case, I have a service method in a servlet throwing either one of the three exception types that servlets can throw (Runtime, Servlet & IO) the following rules apply. The exception to be thrown is hardcoded and is changed and the web app rebuilt each time. The correct web.xml has been deployed to the app server (checked through console). the webapp is being redeployed correctly - this can be seen in the weblogic log, where the correct exception is reported.
    I am using WLS 8.1, Servlet 2.3, JDK 1.4.1_02
    In all cases, the weblogic log reports that the servlet is throwing the exception as expected.
    Despite having set error-page for exception javax.servlet.ServletException, the exceptions are diverted to the error page that has been set up for http error code 500
    The error page for ServletException is therefore never reached.
    I have the browser set to request pages every time it is asked.
    Once the servlet has thrown an IOException, the only way to get the browser to report an IO or Runtime exception error-page is to clear the browser cache. Restarting the server has no effect.
    Once the servlet has responded with ANY exception, it is not possible to get it to report a ServletException (which is incorrectly reported as a 500 anyway) unless the cache is cleared. Restarting the server has no effect.
    In the case where the servlet throws ServletException, it has no root exception. The servlet 2.3 spec states that if ServletException is thrown but cannot be found in the error pages, the root excpetion will be extracted and the error page list traversed again. Knowing that the RuntimeException error page is correct shown when RuntimeException is throwm, I have nested this inside the ServletException, however error page for http error 500 is still shown.
    I don't believe this is a WLS 8.1 problem, as the console shows that the correct exception is thrown each time. this is backed up by the fact that the correct exception page is thrown when the cache is cleared regardless of what exception was previousdly thrown by the servlet. This excludes ServletException which is always incorrectly thrown as a 500.

  • How can I fix this problem with exporting Pages files?

    Hello,
    I'm having problems with exporting Pages files to Word or PDF (I haven't tried the other formats). Whenever I try to export the Page file, I get one message like this: "The document "XXXXXXX" could not be exported as "YYYYYYY". This problem started after the last Pages update, before that it was working fine. I restarted the computer, updated the OS, but the problem hasn't been solved.
    Does anyone know how to fix this problem?
    Thank you in advance!
    Best regards,
    Filipe

    Computers are made of parts made by humans and assembled by humans of materials that are not perfect.
    For example, a display cable that was accidentally pinched during assembly would pass quality control testing with flying colors and would not fail until the lid had been opened and closed several times.
    Likewise a display might not fail until powered on and off a few hundred times.

  • I have a problem with searching page, whenever i try to open any page a blank paper cums appear only written custom search google in English

    i have a problem with searching page, whenever i try to open any page a blank paper cums appear only written custom search by google this one is not such as my google home page
    == This happened ==
    Not sure how often
    == i use to search any page like movies or etc

    Well, it seems waiting is not my strong suit..! I renamed a javascript file called recovery to sessionstore. This file was in the folder sessionstore-backups I had copied from mozilla 3 days ago, when my tabs were still in place. I replaced the sessionstore in mozilla's default folder with the renamed file and then started mozilla. And the tabs reappeared as they were 3 days ago!
    So there goes the tab problem. But again when I started mozilla the window saying "a script has stopped responding" appeared, this time the script being: chrome//browser/contenttabbrowser.xml2542
    If someone knows how to fix this and make firefox launch normally, please reply! Thank you

  • 502 - Web server received an invalid response while acting as a gateway or proxy server. There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream cont

    I am getting error while accessing url of lyncweb.domain.com, dialin.domain.com and meet.domain.com pointing to RP server.
    502 - Web server received an invalid response while acting as a gateway or proxy server.
    There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.
    Regards, Ganesh, MCTS, MCP, ITILV2 This posting is provided with no warranties and confers no rights. Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread.

    When i try with https://lyncfrontend.domain.local:4443 and https://lyncfrontend.domain.com:4443 both opens but when i open the external domain name i get certificate .
    ARR version installed is 3.0
    To throw more light on the configuration:
    Lync 2013 implemented, internal domain name is : domain.local and external domain name is : domain.com
    All servers in VMs are with 4 core processor, 24gb ram, 1TB drive.
    Frontend : Windows 2012r2 with Lync 2012 Standard Edition - 1 No (192.168.10.100)
    Edge : Windows 2012 with Lync 2012 Std - 1 No 
    (192.168.11.101 DMZ) in workgroup
    ISS ARR Reverse Proxy 3.0 : Windows 2012 with ARR and IIS configured. (192.168.11.102)
    Certificate : Internal Domain root CA for internal and External (Digicert).
    Internal Network : 192.168.10.x /24
    External Network (DMZ) : 192.168.11.x /24
    Public Firewall NAT to DMZ ip for firewall and RP server. So having two public IP facing external network.
    Edge has : sip.domain.com, webconf.domain.com, av.domain.com
    IIS ARR RP server has : lyncdiscover.domain.com, lyncweb.domain.com, meet.domain.com, dialin.domain.com
    Have created SRV record in public : _sip.tls.domain.com >5061>sip.domain.com, _sipfederationtls._tcp.domain.com>5061>sip.domain.com, _xmpp-server._tcp.domain.com>5269>sip.domain.com
    Installed frontend server using MS Lync server 2013 step by step for anyone by Matt Landis, Lync MVP.
    Internal AD Integrated DNS pointing Front-end
    Type of Record FQDN
    IP Description 
    A sip.domain.com
    192.168.10.100 Address internal Front End  or Director for internal network clients 
    A admin.domain.com
    192.168.10.100 URL Administration pool
    A DialIn.domain.com
    192.168.10.100 URL Access to Dial In 
    A meet.domain.com
    192.168.10.100 URL of Web services meeting
    A lyncdiscoverinternal.domain.com
    192.168.10.100 Register for Lync AutoDiscover service to internal users
    A lyncdiscover.domain.com
    192.168.10.100 Register for Lync AutoDiscover service to external users  
    SRV Service: _sipinternaltls Protocol: _tcp Port: 5061
    sip.domain.com Record pointer services to internal customer connections using TLS 
    External DNS pointing Edge & Proxy
    Type of Record FQDN
    IP Endpoint
    A sip.domain.com
    x.x.x.100 Edge
    A webconf.domain.com
    x.x.x.100 Edge
    A av.domain.com
    x.x.x.100 Edge
    SRV _sip._tls.domain.com
    sip.domain.com: 443 Edge
    SRV _sipfederationtls._tcp.domain.com
    sip.domain.com:5061 Edge
    A Meet.domain.com
    x.x.x.110 Reverse Proxy
    A Dialin.domain.com
    x.x.x.110 Reverse Proxy
    A lyncdiscover.domain.com
    x.x.x.110 Reverse Proxy
    A lyncweb.domain.com
    x.x.x.110 Reverse Proxy
    In IIS ARR proxy server following server farms are added and configured as per link ttp://y0av.me/2013/07/22/lync2013_iisarr/
    In proxy server had setup only following server farm : While running remote connectivity web service test : meet, dialin, lyncdiscover and lyncweb.
    The client inside works fine internally and through vpn. Login with external client also working fine. But we are getting error in MRCA as follows.
    a) While testing remote connectivity for lync getting error : The certificate couldn't be validated because SSL negotiation wasn't successful. This could have occurred as a result of a network error or because of a problem with the certificate installation.
    Certificate was installed properly.
    b) For remote web test under Lync throws error : A Web exception occurred because an HTTP 502 - BadGateway response was received from IIS7.
    HTTP Response Headers:
    Content-Length: 1477
    Content-Type: text/html
    Date: Wed, 14 May 2014 10:03:40 GMT
    Server: Microsoft-IIS/8.0
    Elapsed Time: 1300 ms.
    Regards, Ganesh, MCTS, MCP, ITILV2 This posting is provided with no warranties and confers no rights. Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread.

  • I want to upgrade from Tiger to Snow Leopard on my 2008 MacPro. How do I avoid problems with the upgrade process?

    I want to upgrade from Tiger to Snow Leopard on my 2008 MacPro. How do I avoid problems with the upgrade process?

    #1 Do a complete bootable backup of your drive before upgrading. That way should anything happen you can revert back to the start and try again.
    Make sure you meet Snow Leopard 10.6 Technical Requirements - http://support.apple.com/kb/SP575
    You might also want to make sure you don't have software issues with SL:
    A Mac OS X 10.6 Snow Leopard Application Compatibility List - http://snowleopard.wikidot.com/

  • Whats the problem with this page

    hi,
    i have problem with this page
    page
    it loading the video but not showing any content related to
    the video.
    i use
    [code]
    var netCon:NetConnection = new NetConnection();
    netCon.connect(null);
    var netStr:NetStream = new NetStream(netCon);
    netStr.addEventListener(AsyncErrorEvent.ASYNC_ERROR,
    getError);
    var video:Video = new Video();
    video.attachNetStream(netStr);
    addChild(video);
    video.x=201;
    video.y=125;
    function getError(e:AsyncErrorEvent) {
    play_btn.addEventListener(MouseEvent.MOUSE_DOWN, playVideo);
    function playVideo(e:MouseEvent) {
    netStr.resume();
    removeEventListener(KeyboardEvent.KEY_DOWN, keyPressHandler
    this.addEventListener(Event.ENTER_FRAME, fileLoaded);
    var loaderBar:Sprite = new Sprite();
    addChild(loaderBar);
    function fileLoaded(e:Event) {
    var percent:Number = (netStr.bytesLoaded * 100 ) /
    netStr.bytesTotal;
    loaderBar.graphics.clear();
    loaderBar.graphics.beginFill(0xDE2C18);
    loaderBar.graphics.drawRect(205,378,percent * 4.32,5);
    loaderBar.graphics.endFill();
    if (percent==100) {
    this.removeEventListener(Event.ENTER_FRAME, fileLoaded);
    [/code]

    here is the full code
    and i have an error saying:
    ArgumentError: Error #2004: One of the parameters is
    invalid.
    at flash.display::Graphics/drawRect()
    at VIDEOPLAYER_fla::MainTimeline/fileLoaded()
    [code]
    import flash.display.Sprite;
    import flash.net.NetConnection;
    import flash.display.SimpleButton;
    import flash.net.NetStream;
    import flash.events.NetStatusEvent;
    import flash.media.Video;
    import flash.events.MouseEvent;
    import flash.events.KeyboardEvent;
    import flash.events.Event;
    import flash.display.Graphics;
    import flash.text.*;
    var netCon:NetConnection = new NetConnection();
    netCon.connect(null);
    var netStr:NetStream = new NetStream(netCon);
    netStr.addEventListener(AsyncErrorEvent.ASYNC_ERROR,
    getError);
    var URL:String =
    "/hakans/videos/BEDUK_AUTOMATIK00.flv?start=";
    var offset:uint = 1048576;
    var tamURL:String = URL + offset;
    trace(tamURL);
    var video:Video = new Video();
    video.attachNetStream(netStr);
    video.x=201;
    video.y=125;
    netCon = new NetConnection();
    netCon.addEventListener(NetStatusEvent.NET_STATUS,
    netStatusHandler);
    netCon.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    securityErrorHandler);
    function netStatusHandler(event:NetStatusEvent):void {
    switch (event.info.code) {
    case "NetConnection.Connect.Success":
    connectStream();
    break;
    case "NetStream.Play.StreamNotFound":
    trace("Unable to locate video: " + tamURL);
    break;
    function connectStream():void {
    netStr.addEventListener(NetStatusEvent.NET_STATUS,
    netStatusHandler);
    netStr.addEventListener(AsyncErrorEvent.ASYNC_ERROR,
    asyncErrorHandler);
    netStr.play(tamURL);
    addChild(video);
    function securityErrorHandler(event:SecurityErrorEvent):void
    trace("securityErrorHandler: " + event);
    function asyncErrorHandler(event:AsyncErrorEvent):void {
    // ignore AsyncErrorEvent events.
    function getError(e:AsyncErrorEvent) {
    var myTextBox:TextField = new TextField();
    var myText:String = "Bytes loaded";
    function TextWithImage()
    addChild(myTextBox);
    myTextBox.text = myText+netStr.bytesLoaded;
    /*--------------< Videoyu Durdurma, Oynatma ve Başa
    Alma >------------------*/
    stage.addEventListener( KeyboardEvent.KEY_DOWN,
    keyPressHandler );
    function keyPressHandler( e:KeyboardEvent ):void {
    // if the spaceBar is pressed then toggle video play/pause
    if( e.charCode == 32 ) {
    netStr.togglePause();
    play_btn.addEventListener(MouseEvent.MOUSE_DOWN, playVideo);
    function playVideo(e:MouseEvent) {
    netStr.resume();
    removeEventListener(KeyboardEvent.KEY_DOWN, keyPressHandler
    pause_btn.addEventListener(MouseEvent.MOUSE_DOWN,
    pauseVideo);
    function pauseVideo(e:MouseEvent) {
    netStr.pause();
    stop_btn.addEventListener(MouseEvent.MOUSE_DOWN, stopVideo);
    function stopVideo(e:MouseEvent) {
    netStr.pause();
    netStr.seek(0);
    fastforward_btn.addEventListener(MouseEvent.MOUSE_DOWN,doForward);
    function doForward(e:MouseEvent):void {
    var f:int = 1; //you can schange the skipping time here
    netStr.pause();
    netStr.seek(netStr.time + f);
    netStr.resume();
    rewind_btn.addEventListener(MouseEvent.MOUSE_DOWN,doRewind);
    function doRewind(e:MouseEvent):void{
    var x:int = 2;
    netStr.pause();
    netStr.seek(netStr.time - x);
    netStr.resume();
    fullscreen_btn.addEventListener(MouseEvent.MOUSE_DOWN,doFull);
    function doFull(e:MouseEvent):void{
    stage.displayState = StageDisplayState.FULL_SCREEN;
    /*--------------< Videoyu Durdurma, Oynatma ve Başa
    Alma / >------------------*/
    /*--------------< Video İçin Yükleme Bilgi
    Çubuğu >------------------*/
    var loaderBg:Sprite = new Sprite();
    loaderBg.graphics.beginFill(0xc78f8e);
    loaderBg.graphics.drawRect(205 , 378 , 430 , 5);
    loaderBg.graphics.endFill();
    addChild(loaderBg);
    this.addEventListener(Event.ENTER_FRAME, fileLoaded);
    var loaderBar:Sprite = new Sprite();
    addChild(loaderBar);
    function fileLoaded(e:Event) {
    var percent:Number = (netStr.bytesLoaded * 100 ) /
    netStr.bytesTotal;
    loaderBar.graphics.clear();
    loaderBar.graphics.beginFill(0xDE2C18);
    loaderBar.graphics.drawRect(205 , 378 , percent * 4.32 , 5);
    loaderBar.graphics.endFill();
    if (percent==100) {
    this.removeEventListener(Event.ENTER_FRAME, fileLoaded);
    /*--------------< Video İçin Yükleme Bilgi
    Çubuğu / >------------------*/
    /*--------------< Video Meta Bilgileri
    >------------------*/
    var metaObject:Object = new Object();
    netStr.client = metaObject;
    metaObject.onMetaData = getMetaInformation;
    var lengthOfVideo:Number = 0;
    function getMetaInformation(e:Object):void {
    lengthOfVideo = e.duration;
    trace("Genişlik :" + e.width);
    trace("Yükseklik :" + e.height);
    /*--------------< Video Meta Bilgileri /
    >------------------*/
    /*--------------< Videonun Durum Çubuğu
    >------------------*/
    //may cause problem part
    var GraphicsExample :Sprite = new Sprite();
    var size:uint = 10;
    var bgColor:uint = 0x999999;
    var borderColor:uint = 0x999999;
    var borderSize:uint = 0;
    var cornerRadius:uint = 9;
    var gutter:uint = 5;
    var dragBar:Sprite = new Sprite();
    var halfSize:uint = Math.round(size / 2);
    dragBar.graphics.beginFill(bgColor);
    dragBar.graphics.lineStyle(borderSize, borderColor);
    dragBar.graphics.drawCircle(halfSize, halfSize, halfSize);
    dragBar.graphics.endFill();
    dragBar.x=201;
    dragBar.y=376;
    addChild(dragBar);
    var drag:Boolean = false;
    this.addEventListener(Event.ENTER_FRAME, setDragBar);
    function setDragBar(e:Event) {
    if (!drag) {
    dragBar.x = ((netStr.time / lengthOfVideo) * 429) + 201;
    /*--------------< Videonun Durum Çubuğu /
    >------------------*/
    /*--------------< Videonun Kaydırma Çubuğu
    >------------------*/
    dragBar.addEventListener(MouseEvent.MOUSE_DOWN,
    startDragging);
    dragBar.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    dragBar.buttonMode = true;
    var rect:Rectangle = new Rectangle(205,378,429,0);
    function startDragging(e:MouseEvent) {
    drag = true;
    netStr.pause();
    dragBar.startDrag(false,rect);
    function stopDragging(e:MouseEvent) {
    dragBar.stopDrag();
    drag = false;
    netStr.resume();
    this.addEventListener(Event.ENTER_FRAME, reSetVideo);
    function reSetVideo(e:Event) {
    if (drag) {
    netStr.seek(Math.floor(((dragBar.x-201) / 429) *
    lengthOfVideo ));
    /*--------------< Videonun Kaydırma Çubuğu
    / >------------------*/
    netStr.addEventListener(NetStatusEvent.NET_STATUS,
    netStatusHandler1);
    function netStatusHandler1(e:NetStatusEvent):void
    switch (e.info.code)
    case "NetStream.Seek.InvalidTime":
    trace("You have seeked too far ahead, the video hasn't fully
    loaded yet");
    break;
    case "NetStream.Play.StreamNotFound":
    trace("Unable to locate video");
    break;
    /*--------------< Video Ses Kontrolü
    >------------------*/
    sound_btn.addEventListener(MouseEvent.MOUSE_DOWN, setSound);
    var checkSound:Boolean = true;
    var soundTrans:SoundTransform = new SoundTransform();
    function setSound(e:MouseEvent) {
    if (checkSound) {
    soundTrans.volume = 0;
    checkSound = false;
    } else {
    soundTrans.volume = 1;
    checkSound =true;
    netStr.soundTransform = soundTrans;
    /*--------------< Video Ses Kontrolü /
    >------------------*/
    [/code]

  • Problem with "new page as a copy" function in 4.2

    Hi all,
    I found several problems with version 4.2 in the functionality of "new page as a copy".
    In particular, copying a page from another application, you lose the references to the template (eg template region, button ...) and these are replaced by a numeric code (eg 426589173 ... instead of "Region without Buttons and Titles") and, worst of all, the reference is lost to the buttons on the process conditions and branches.
    Has anyone encountered the same problem? I never had any problems with version 4.1.1
    Thanks
    Stefano
    Edited by: Stefano_i0600006 on 18-ott-2012 7.52
    Edited by: Stefano_i0600006 on 18-ott-2012 7.52

    Hi Stefano,
    Thank you for bringing this issue to our attention. I've logged bug *14786585* to track this issue. We'll endeavour to identify a resolution as soon as possible.
    Regards,
    Hilary

  • Problem with Next Page(P+) button for VF02 during BDC(Call Trans)

    Hi guys,
    I have doing a BDC program that manipulates the pricind condition of a billing documents(VF02). Naturally we all know the process involves ticking the checkbox of the line item and press "Pricing" to enter the screen number 620(Pricing Condition page).
    My problem is that if I try to call the BDC_OKCODE of 'P+' via call transaction in mode 'N', the process doenst run as planned. However, If I use mode 'A', and simulate the process, the BDC appears to work fine.
    My superviosr claims the problem is due to related to the table control of the pricing page. My question is what can be done here?
    Thanks guys and good day.

    Yep, the position to really helped me in a couple of transactions that would have given me a real problem otherwise. 
    I have heard about Srinivas suggested before, I never actually had to use it so I didn't want to tell you to do that if I don't know that it works.  But now we know.
    Good one Srinivas.
    Regards,
    Rich Heilman

  • Problem with Next-page in script.

    hi ,
    i m wrkng on order acknowledgement output in SAP SCRIPT.
    The problem i have is that for particular Sales organisations only i want terms & conditions page to be printed at the back of all pages. else oredr acknowldgement to be printed without T& C irrespective of number of pages.
    I have created a T & C page and first page. in attributes if i set next page 2 T& C then it will print for all sales org. But i want to restrict it 2 particular sales org.
    Thanks in advance.

    Hi Raju,
        i guess the data of your main window is not continuing till 2nd page thats why its not triggering your second page and as a result the signature window is not getting printed.
        So create a COMMAND NODE on your first page ( after the main window of fast page or the place where you want the second page to trigger ) and in its condition tab click the 'Go to New Page' option and give the second page name there, now it will force the second page to trigger.
    With luck,
    Pritam.
    Edited by: Pritam Ghosh on May 19, 2009 4:20 PM

  • Problem with condition editor in Interface determination

    Hi,
    I have 5 receivers for an interface. There are some conditions based on which the message should be processed.
    one of my condition is:
    If field A = CIT* and (field B != IDP or field C != IDP*) then message should be processed to a particular InterfaceMap(Messaeg Map).
    I am facing problems when giving the condition with != in the condition editor of InterfaceDetermiantion.
    When I send a message that is not satisfying the above condition, even then an output file with 0kb is getiitng created. But in this case, the condition should obstruct the message going to Message mapping.
    I thought this could be the problem with != operator in condition editor.
    Can any one suggest if there is any other way that i can proceed.
    Thanks in advance,
    Minisha.

    Hi Suraj,
    Thanks for the suggestion.
    But it didnt work for me.
    Even when i give empty-message handling to ignore, the empty file is getting generated.
    Not even the condition is working.
    I tried only giving (field A u2248 CIT* AND field B != IDP EX ), which should work in this case. As expected, the message is not processed beyond this as the condition is false. But problem is when i tested with other testfile with which the condition given is true, still the message is not being processed. it is now completely obstructing the message even if the condition is true.
    Thanks,
    Mnisha.
    Edited by: Minisha Uthaman on Sep 10, 2009 4:12 PM

  • Smart form problem with multiple pages & table problem

    Hi experts,
    I have a problem with my smart form with multiple pages
    Situation: I have a smart form that ALWAYS has at least 2 pages. In one page the quotation, in the second page (basically this is the 3rd page as the 2nd page is optional) the terms and conditions. Sometimes however, when there are many items in the quotation more than 1 page is needed for the quotation.
    The (optional) second page of a quotation has a different header than the first page of a quotation. So I made a second page with 2 secondary windows (where the header texts are in). The main window is after the secondary windows and has to finish the quotation.
    The problem is that my headers of the second page are never printed, it stays a blank space. The table however does continue and is printed.
    Another problem I have is that I have a table (with the quotations) with 6 columns. The first 2 columns are displayed correctly but once the 3rd column the columns are shown on a lign below.
    Regards,
    PJ

    I would suggest another approach to this problem.
    Use just one page. For the headers on the first page, use a secondary window and on the conditions tab, choose the additional event - Only on First Page.
    For the different header on the second page, create another secondary window on the same page (probably even overlapping the first header on your layout). But in this one, on the conditions tab, choose the additional event - Not on First Page.
    The table should flow as you would be using the Main window for this one.
    As for columns, if they are too wide and wont fit in the same line, it would move to the next line. So you would have to re-adjust the line width and test.
    Hope this resolves your problem.
    Regards,
    Ancy
    Edited by: abapfreak on Oct 4, 2010 11:52 AM

  • Problem with "Next Page" And "Zoom" in CrystalReportViewer With VS 2010

    Hello,
    i am using crystal report v 13 sp1 with visual studio 2010,
    As mebtioned, the next page and the zoom is not working in my report, whiwh has as data source "Stored Procedure"
    This is my code, and i think it's correct, i was using this code in previous versions of crystal report (cr10) and it worked fine,
    When i used the Data set , the next page and zoom worked fine, but with stored procedure it doesn't work,
    Note: when i open the Tree of Data on the left, then click on the next page or the zoom, it become funtional, it's very weird,
    protected void *Page_Init*(object sender, EventArgs e)
    if (!IsPostBack)
    reportDocument = (ReportDocument)this.Page.Session ["_reportDocument"];
    if (reportDocument != null)
    string rptFile = reportDocument.FileName.Split('
    ', '/').Last();
    LoadReportRessource(reportDocument);
    TableLogOnInfo log = new TableLogOnInfo();
    ConnectionStringSettings conn = WebConfigurationManager.ConnectionStrings[0]; //la premiere connectionstring
    SqlConnectionStringBuilder SConn = new SqlConnectionStringBuilder(conn.ConnectionString);
    log.ConnectionInfo.ServerName = SConn.DataSource;
    log.ConnectionInfo.DatabaseName = SConn.InitialCatalog;
    log.ConnectionInfo.UserID = SConn.UserID;
    log.ConnectionInfo.Password = SConn.Password;
    log.ConnectionInfo.Type = ConnectionInfoType.SQL;
    for (int i = 0; i < reportDocument.Database.Tables.Count; i++)
    reportDocument.Database.Tables.ApplyLogOnInfo(log);
    for (int i = 0; i < CrystalReportViewer1.LogOnInfo.Count; i++)
    CrystalReportViewer1.LogOnInfo.ConnectionInfo = log.ConnectionInfo;
    CrystalReportViewer1.ParameterFieldInfo = (ParameterFields)this.Page.Session ["_paramFields"];
    CrystalReportViewer1.ReportSource = reportDocument;
    CrystalReportViewer1.DataBind();
    CrystalReportViewer1.ShowFirstPage();
    else
    CrystalReportViewer1.ReportSource = (ReportDocument)this.Page.Session ["_reportDocument"] ;
    Edited by: Soumaya on Sep 7, 2011 6:16 PM

    @Don:
    Sorry, but i donno what do you mean by "what is the App Pool running in 32 or 64 bit?",
    i am running the application locally, ( the IIS is installed locally ),
    as i told you, my OS is 64bit,
    And yes i tried a very simple report, with just one field , and the "next button" is also not working,
    Its only not working with stored procedure, in the others methods ( push or pull method is working fine)
    i think its a problem in refreshing page, because when i open the tree on the left, then click on next page or zoom, its works fine
    @Ludek:
    i changed my code as below, and it doesn't solve my problem:
            ReportDocument reportDocument;
            protected void Page_Init(object sender, EventArgs e)
                if (!IsPostBack)
                    reportDocument = (ReportDocument)this.Page.Session["_reportDocument"];
                    if (reportDocument != null)
                        string rptFile = reportDocument.FileName.Split('
    ', '/').Last();
                            TableLogOnInfo log = new TableLogOnInfo();
                            ConnectionStringSettings conn = WebConfigurationManager.ConnectionStrings[0];
                            SqlConnectionStringBuilder SConn = new SqlConnectionStringBuilder(conn.ConnectionString);
                            log.ConnectionInfo.ServerName = SConn.DataSource;
                            log.ConnectionInfo.DatabaseName = SConn.InitialCatalog;
                            log.ConnectionInfo.UserID = SConn.UserID;
                            log.ConnectionInfo.Password = SConn.Password;
                            log.ConnectionInfo.Type = ConnectionInfoType.SQL;
                            for (int i = 0; i < reportDocument.Database.Tables.Count; i++)
                                reportDocument.Database.Tables<i>.ApplyLogOnInfo(log);
                        this.Page.Session["_reportDocument"] = reportDocument;
                        CrystalReportViewer1.ParameterFieldInfo = (ParameterFields)this.Page.Session["_paramFields"];
                        CrystalReportViewer1.ReportSource = reportDocument;
                        CrystalReportViewer1.ShowFirstPage();
                else
                    CrystalReportViewer1.ReportSource = this.Page.Session["_reportDocument"];
    Edited by: Soumaya on Sep 8, 2011 10:39 AM

  • Problem with total page numbers in Scripts

    Hi,
    I have a problem with total number of pages in the Script.
    I have a script of 15 pages.
    On every page, I am using &PAGE& of &SAPSCRIPT-FORMPAGES(C)&.
    Problem is : I am getting only single digit for SAPSCRIPT-FORMPAGES as long as the page number remains in single digit - like -
    1 of 1
    2 of 1
    3 of 1... till 9 of 1.
    But from 10th page, it is printing :
    10 of 15
    11 of 15
    12 of 15... till 15 of 15.
    So, i think the symbol SAPSCRIPT-FORMPAGES(C) is filled with value 15 , but it is prinitng only the first digit '1' for pages 1 to 9 and then printing both the digits '15' for pages from 10 onwards.
    So, please help me out in this problem.
    Thank you.

    Hi Ven,
    The CONDENSE option cannot be used on the program icon SAPSCRIPT-FORMPAGES
    (C) without an explicit length specification: This symbol is
    only replaced with a value after the form has been completely edited, as the
    total number of pages of a form is first known in the program function
    END_FORM or CLOSE_FORM. However, the size of the symbol (number of
    characters) is reserved correctly when the symbol first occurs, with the
    current page number. Therefore, only one character is reserved for option C
    (CONDENSE) on pages 1-9, two characters on pages 10-99, and so on.
    If you are sure that the total number of pages doesn't cross 99(i.e 2-digit number), then use the FORM pages as SAPSCRIPT-FORMPAGES(2CZ).
    Here Z will suppress the leading zeros, for the total number of pages.
    Hope this information would be useful for you.
    Reward points if this is useful.
    Pavan.

Maybe you are looking for