Processing Points

I've been wondering/looking to try to find some information about processing points for page level processes. There are about 6 or 8 options available for page rendering and page processing points but the definition of these is not clearly documented - that I can find.
My question is: are the processing points on a page rendering process simply related to the page assembly steps that are followed on the server to create the HTML page? I'm assuming they are in order from top to bottom as they get processed on the server. The question that follows then is what are the cases where you would pick one over the other?
Earl

My question is: are the processing points on a page
rendering process simply related to the page assembly
steps that are followed on the server to create the
HTML page? Yes
I'm assuming they are in order from top to bottom as they get
processed on the server. bottom as they get processed on the server. Not really. Go to any Page Definition. Select Events from the dropdown next to the page# and then choose the Show All radiobutton. This will show you the exact sequence of steps taken during both show and accept processing and the various firing points and components (computations, branches, processes, etc) that could potentially be setup to fire at that point.
The
question that follows then is what are the cases
where you would pick one over the other?Ah, you seem to be really wanting to understand this stuff so you can use it effectively! I was on the same quest few months back. See some of my discussions with the master (Scott) at
Sequence of events in accept processing
Re: Automatic Conditional Branching
Re: Multiple branches to the same page
But for all my experience over the past few months and reading this forum, I have yet to see any other process firing points being used except (On Load - Before Header) and (On Submit - After Computations and validations)
But Scott said that all these firing points were created for a reason, to solve a specific problem and I have no reason to not believe him. But no one has been able to give any real-world examples of these "non-standard" processing points.
Hope this helps.

Similar Messages

  • Process points cheat sheet

    Hi Folks,
    Is there a cheat sheet, overview page for all process points,
    including 'proces points' like authentication, vpd sections, authorization schemes,
    setting application items, etc etc ?
    I know much can be seen in the debug output, and using wwv_flow.debug calls, but
    perhaps someone already put it together in a sheet.
    Thanks in advance,
    Art

    Art,
    That is correct.
    As to the specific points:
    Application items are just like page items. Binding occurs at the point they are used (when SQL is parsed).
    The VPD block is executed very early in the show or accept request, right after APP_USER is ascertained.
    Authorization schemes are evaluated when the page/application components that use them are encountered. Then they are evaluated again only if their Evaluation Point is Once per Page View and the same component is accessed again in another page view.
    Scott

  • Is it possible to run process chain from the certain process/point?

    Hello
    Is it possible to run process chain from the certain process?
    How?
    Thanks

    Hello,
    yes it possible! use the following steps.
    1. Goto the process which you want the chain to start from.Goto display messages>> Chain tab. In the generated instance note the variant and instance.
    2. Goto table RSPROCESSLOG and give variant and instance and get logid details.
    3. t codese37>> run FM RSPROCESSFINISH.
    4. give the deatils u have got in RSPROCESSLOG table here and say execute.
    This will solve ur problem.
    Hope this helps!
    Reg
    Deepmala

  • 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:

  • Problem setting a hidden item value when button clicked with dynamic action or pl/sql process

    Apex 4.1
    Oracle 11g
    I have a page that consists of a main region and several sub regions.  I have a pl/sql process in After Header SET_DISPLAY(:P400_DISPLAY :='MAIN';)
    Three subregions have a contional display where P400_DISPLAY = STORE.  This works in hiding the sub regions.
    Now I want to change the P400_DISPLAY value to STORE to show the subregions when I hit a button.
    I tried creating a dynamic action for on click of the add button but get the following error:
    The selected button uses a 'Button Template' that does not contain the #BUTTON_ID# substitution string
    I went to the templates and found:
    Substitution Strings
    Substitution strings are used within sub templates to reference component values. This report details substitution string usage for this template.
    Substitution String
    Referenced
    From
    Description
    #LINK#
    Yes
    Template
    To be used in an "href" attribute
    #JAVASCRIPT#
    No
    To be used in an "onclick" attribute
    #LABEL#
    Yes
    Template
    Button Label
    #BUTTON_ATTRIBUTES#
    No
    Button Attributes
    #BUTTON_ID#
    No
    Generated button ID will be either the button's Static ID if defined, or if not will be an internally generated ID in the format 'B' || [Internal Button ID]
    I then tried creating a page process, pl/sql, :P400_DISPLAY :='STORE'; when the appropriate button is pressed.  The button action is submit page. However, it does not change the P400_DISPLAY value and the subregions stay hidden.
    Suggestions please on how to fix the template or change the P400_DISPLAY value?

    The root issue is that, although you change the value of your page item, it isn't visible to other areas of the page until it is in the session. So, any other action based on the value of your page item; the visibility of a control, a report based on the item's value, etc. will all be unaffected by changing the value of the page item until it has been changed in the session. Even after this the items are stored in the session, you must thereafter do something to cause the value to be reevaluated. To see the effect of this, observe that your page loads and evaluates the value of your page item, it sees that is "MAIN" and hides the regions. However, it doesn't reevaluate them after this.
    So; your choices to get this value set in the session are to either Submit the page, or use JavaScript to set the value in the session. If you use the latter of these, you'll have to do some further work to cause the visibility tests to be re-run, So, let's stick with with the submit method.
    What you've done above sounds correct for this but, there are a lot of decisions you could have made that might have caused things not to happen in the correct sequence.
    Firstly, let's confirm that what I describe above is your problem. From the development environment, load the page, click the button to change the value and submit. Now, click the link labelled Session. Is it still set to MAIN? If so; this is your issue.
    Let's start with the your After Header computation. Did you set it to *only* run if the current value of your page item is NULL??? If not, that's your problem.
    Load Page -> Item set to 'Main' by Computation -> Click Button -> Item set to STORE -> Submit -> Load Page -> Item set to 'Main' by Computation
    See the problem?
    Assuming this isn't the issue, you created a Branch to the same page, right? What is your process point for the Branch? Is it *After* Validation, Computation etc? Because if not, you aren't changing the value before the submit happens.
    I bet it is the first issue but, take a look at these.
    Cheers,
    -Joe

  • Problem with item of type DB column, reinitialized in a process

    Hello,
    I have a problem with an item P216_username with source type=database column(empty in this case). In a process On Load-After Header(with a sequence number bigger then the Fetch Row sequence number) , I change the value of this item:
    :P216_USERNAME := 'custom_value';
    When I run the page, I see the item P216_USERNAME with the value from the database column(empty), instead of attributed value from the process('custom_value').
    Here is a copy of the page in a debug mode:
    0.00: Session: Fetch session header information
    0.00: ...Metadata: Fetch page attributes for application 107, page 216
    0.00: Fetch session state from database
    0.00: Branch point: BEFORE_HEADER
    0.00: Fetch application meta data
    0.01: Computation point: BEFORE_HEADER
    0.01: Processing point: BEFORE_HEADER
    0.01: Show page template header
    0.01: Computation point: AFTER_HEADER
    0.01: Processing point: AFTER_HEADER
    0.01: ...Process "Fetch Row from CONSULTANT_ALLOCATION_PERIODS": DML_FETCH_ROW (AFTER_HEADER) F|#OWNER#:CONSULTANT_ALLOCATION_PERIODS:P216_ALLOCATION_PERIOD_ID:ALLOCATION_PERIOD_ID
    0.01: ...Process "Initialize Username": PLSQL (AFTER_HEADER) begin :P216_USERNAME := 'custom_value'; htp.p(:P216_USERNAME); end;
    custom_value PrintLogout
    0.01: Computation point: BEFORE_BOX_BODY
    0.01: Processing point: BEFORE_BOX_BODY
    0.01: Region: Edit Allocation Period
    Edit Allocation Period Cancel
    Create
    0.02: Item: P216_ALLOCATION_PERIOD_ID HIDDEN
    0.02: Item: P216_USERNAME TEXT
    Username
    0.02: Item: P216_START_DATE PICK_DATE_MM_DD_YYYY
    Start Date
    0.02: Item: P216_END_DATE PICK_DATE_MM_DD_YYYY
    End Date
    0.02: Item: P216_COMMENTS TEXTAREA
    Comments
    custom_value ''
    0.02: Computation point: AFTER_BOX_BODY
    0.02: Processing point: AFTER_BOX_BODY
    0.02: Computation point: BEFORE_FOOTER
    0.02: Processing point: BEFORE_FOOTER
    0.02: Show page tempate footer
    If you had this problem, or you know where it comes from, please answer.
    Thank you.

    Hi,
    Tomáš : I noticed that if i change the Source Used to 'Only when current value in session state is null' it works but I dont think its a normal behaviour.
    Scott: Thanks, it's working now with the post computation callculation attribute.
    Thanx for answers,
    Vastiana

  • Is there any way to hook into the SQL report pagination process?

    I have a SQL report (based on EMP) with a radiogroup row selector.
    The scenario 1 and 2 are in place
    1) When the employee row radio group is clicked the P900007_JOB the text item is populated with the JOB for the employee.
    2) When the page is initially displayed or submitted via the button the first row’s radio group is programmatically clicked and therefore populates the additional job information in P900007_JOB
    Info (radio Group) Employee No Name
    (+) 7369 SMITH
    () 7499 ALLEN
    () 7521 WARD
    P900007_JOB CLERK
    1-3 Next>
    Once the report has been displayed and the next or previous pagination is used then none of the radio groups will be selected and the data in the P900007_JOB text item will still display the job of the last selected employee row.
    What I require is on pagination some sort of mechanism to either
    a) Call the page_init() that should then set the first row as selected and populate the text item via the programmatic click. (preferred option)
    b) OR blank out the additional text item P900007_JOB.
    Is there any way to hook into the pagination process?
    I have a work around – Set the ‘Enable Partial Page Refresh’ to ‘No’ but this means a full refresh every time the pagination is used.
    Details of my page
    Report Region (Based on EMP table) – radio group as a row selector
    select     APEX_ITEM.RADIOGROUP(1,EMPNO,'X21',null) CHECKRG, EMPNO,
         ENAME,
         JOB
    from     EMP
    Report Attributes -
    Report template :- P900007_ROWTEMPLATE (custom template see later)
    Report Attributes Substitution :- id="emp_report" (used in page_init see later)
    Enable Partial Page Refresh :- Yes
    Columns – All columns are selected as show but job is left out of the template below.
    P900007_JOB - Text item in report region (disabled does not save state). Populated with the employees job when the radio group is clicked.
    Control region :- HTML region that just holds a button <GO> just to submit the page and redirect back to the same page.
    P900007_ROWTEMPLATE (named column row template)
    Row template 1
    <tr style="cursor: hand; cursor: pointer;" onmouseover="row_mouse_over(this, 1)" onmouseout="row_mouse_out(this, 1)" #HIGHLIGHT_ROW# ">
    <td class="t15data" onclick="selectRow('#JOB#');">#CHECKRG# </td>
    <td class="t15data">#EMPNO# </td>
    <td class="t15data">#ENAME# </td>
    </tr>
    Before rows
    <table class="t15standard" summary="" #REPORT_ATTRIBUTES# id="report_#REGION_STATIC_ID#" >
    <th class="t15header" #ALIGNMENT# >Info</th>
    <th class="t15header" #ALIGNMENT# >Employee Number</th>
    <th class="t15header" #ALIGNMENT# >Name</th>
    After Rows
    <tr>
    <td colspan="99" class="t15afterrows">
    <span class="left">#EXTERNAL_LINK##CSV_LINK#</span>
    <table style="float:right;text-align:right;" summary="pagination">
    #PAGINATION#</table>
    </td>
    </tr>
    </table>
    *Javascript in page Header*
    <script src="#WORKSPACE_IMAGES#apex_show_hide_region.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript">
    <!--
    function selectRow(pJob)
    /* console.log('pete got here!'+pJob)*/
    $x('P900007_JOB').value =pJob;
    /* Start Page init*/
    function *page_init*()
    /* Used to set radio groups on reports */
    /*console.log('START pete got here!');*/
    var is_checked = false;
    var l_check = $x_FormItems($x('emp_report'), 'radio');
    /*Loop and set flag if checked*/
    for(var i=0,len=l_check.length;i<len;i++)
    if(l_check.checked){
    is_checked = true;
    /*end loop*/
    /*If none checked force a click*/
    if(!is_checked){
    /*no longer need as doing click below*/
    l_check[0].checked=true;
    /*Force a click on the first radio group - extra details should then be
    populated*/
    var l_click = l_check[0].click();
    /* console.log('END pete got here!');*/
    /*END page_init*/
    // -->
    </script>
    *Application shared component.* – This fires a DB packaged procedure when the page is loaded.
    P330_PART_NO_HIST
    Process Point On load after Body region
    Process Text show_hide_memory.part_no_history_details();
    *Packaged Procedure* – This kicks off the page_init javascript in the header (earlier) to click on the radio group in the first row.
    PROCEDURE part_no_history_details AS
    BEGIN
    htp.prn('<script type="text/javascript">' || CHR(10));
    htp.prn('<!--' || CHR(10));
    htp.prn('page_init();'|| CHR(10));
    htp.prn('//-->' || CHR(10));
    htp.prn('</script>' || CHR(10));
    END part_no_history_details;
    Thanks Pete
    Edited by: Pete @ LSC on 26-Jan-2010 06:56

    Anybody any ideas? Should I be looking down the route of using my own pagination buttons and adding my code to this?
    There seems to be a routine $a_report that I can use for the pagination but I am finding it difficult to get the current first and last record values that I would need to pass. I've seen references to below in the form but when I'm using partial refresh they do not seem to change.
    wwv_flow.g_flow_current_min_row
    wwv_flow.g_flow_current_max_rows
    wwv_flow.g_flow_current_rows_fetched
    wwv_flow.g_request
    Thanks Pete

  • Calling A Page Process From Report Link

    Hello.
    I am using Apex 4.2.1 on Oracle 11gR3 and mod_plsql.
    I am trying to run a PLSQL after-submit page process when users click a SQL generated link in a classical type report.
    For example, my classical report uses the query:
    SELECT
    E.*,
    '<a id="rid" href="f?p=&APP_ID.:31:&SESSION.:ADDROW:::P31_ENAME,P31_MGR,P31_DEPTNO:'
    || E.ENAME
    || ','
    || TO_CHAR(E.MGR)
    || ','
    || TO_CHAR(E.DEPTNO)
    || '">'
    || 'Add New Row'
    || '</a>' AS ADD_ROW
    FROM
    EMP E
    My page also has an after submit PLSQL process defined as:
    declare
      v_empno     integer;
    begin
      select nvl(max(empno), 0) + 1
        into v_empno
        from emp;
      insert into emp (empno,
                       ename,
                       mgr,
                       deptno)
               values (v_empno,
                       substr(:P31_ENAME,1,1) || '-' || to_char(v_empno),
                       to_number(:P31_MGR),
                       to_number(:P31_DEPTNO));
    end;
    This process has the condition "Request = Expression 1", where "Expression 1" = ADDROW.
    I thought that if users click the "ADD_ROW" report link, then the report items ENAME, MGR, and DEPTNO would be passed to corresponding page items.  In addition, the above PLSQL process would be executed and add a new row to the EMP table.  The report then would then display the newly added row.
    But when I click the report link, I see that my page items are, in fact, assigned the associated report values.  But the page process is never executed.
    I have looked at both the Session State page and in Debug mode.  The processing simply never executes my page process.
    Would anyone know why my page process is not being run?  And, how can I get the page process to run when users click the report link?  Indeed, what is the point of even having a REQUEST tage embedded in the url if it is not recognized bt other processes on the page?
    In my apex.oracle.com workspace, I have created an example page in which all of this has been coded:
    Workspace: EEG
    Username: [email protected]
    Password: galaxy123 (all lowercase)
    AppID: 27083 (Elie_Goodies)
    Page 31 (Test Url Request Option)
    I would much appreciate if someone could help me with this as I am puzzled why this is not working.
    Thank you very much.
    Elie

    Hi Elie,
    I think it's fixed.  It was very close. It's just a matter of timing.
    For a REQUEST to be visible after submit you have to submit the page.  Something like apex.submit("ADD_ROW") will do that.
    Then, when the page renders the REQUEST is empty again.
    Same thing with the link, which is what you implemented, the REQUEST is only present during render of the page. Then it's gone when the page is submitted.
    All I had to do is move your Process to run Before Header so that it could "see" the value of the request.  I didn't touch (or look) and any of the code.
    Either On Load Before Header or On Load Before region processing points would have worked here.
    Thanks
    -Jorge
    Message was edited by: jrimblas

  • Process not running

    I'm stumped. I have a really odd situation. Any help is appreciated...I've deleted the page, reloaded the app, deleted all the processes and recreated them...all to no avail.
    I have about 20 after submit processes. Everything seems to look OK. However, a couple of the processes don't seem to be executing and others are executing but not listed in the debug on the page.
    Example of debug:
    0.03: ...Process "Get PK for PHYSICAL_INTERFACE_ID Create/Create Another": PLSQL (AFTER_SUBMIT) declare function get_pk return varchar2 is begin for c1 in (select PHYSICAL_INTERFACE_ID_SEQ.nextval next_val from dual) loop return c1.next_val; end loop; end; begin :P780_PHYSICAL_INTERFACE_I
    0.03: ...Session State: Saved Item "P780_PHYSICAL_INTERFACE_ID" New Value="32"
    0.04: ...Do not run process "Get PK for PHYSICAL_INTERFACE_ID Create/Done", process point=AFTER_SUBMIT, condition type=, when button pressed=CREATE
    0.04: ...Process "Get PK for VIRTUAL_INTERFACE_ID Create/Create Another": PLSQL (AFTER_SUBMIT) declare function get_pk2 return varchar2 is begin for c1 in (select VIRTUAL_INTERFACE_ID_SEQ.nextval next_val from dual) loop return c1.next_val; end loop; end; begin :P780_VIRTUAL_INTERFACE_ID
    0.05: ...Session State: Saved Item "P780_PKG_RETURN_VALUE2" New Value="ERROR: Problem Creating Virtual Interface Table"
    0.05: ...Do not run process "Call stored procedure - Virtual Interface Create/Done", process point=AFTER_SUBMIT, condition type=, when button pressed=CREATE
    After running the process "Get PK for VIRTUAL_INTERFACE_ID Create/Create Another" I would expect to see a session state saved similar to the physical interface at time .03 The saved item "P780_PKG_RETURN_VALUE2" actually occurs in a process at a later sequence (which is actually much later--it seems to have skipped a couple processes).
    Has anyone else see this type of problem? The last thing I can do is recreate the whole page (ouch!).
    Thanks,
    -Carmine

    Good afternoon. I am running Apex 3.1 and Oracle 10.2.0.4 on RHEL 4.
    The stranger part is that I have another box running a slightly older version of the Apex application--and that one works. The differences were not in this area/on these pages. Strange.
    I tried remove and rewrite all the processes, deleting the page and copying it from another load of the application, etc. Since it was a development box, I'm reloading everything.
    I can try to get something up on apex.oracle.com. But it was so odd as Apex saw the processes. I even opened SQL developer to look at the processes and it looked good. Yet somehow it seemed to skip a process (not even show that it wasn't to run due to conditions), and the session state from the PK not showing but another process.
    I've never seen anything like it. In my investigation, I will note that something went wrong (invalid) with ctxsys.driload. I forgot the exact error. I'm not very familiar with this package.
    Thanks,
    -Carmine

  • How to set textfield-values with a process

    Hi.
    I have a form in which the user can fill in some textfields. To ease the usability, there should be a button to set the textfields to predefined values.
    I tried to set the values by implementing the following process:
    BEGIN
    :P2120_VALUE := 100;
    END;
    How can this be realised? What should the "process-point" value of the process be?
    Thanks very much in advance for your help.
    Stephan

    One way to do this would be to set each of the items' Source Used attributes to "Only, ..." and create the process like the one you showed as an after-submit (when button pressed) process then have a branch that goes back to the same page when the button is pressed.
    You should then see the form fields populated with the values established by the process after the branch happens.
    Sometimes with this kind of page logic you have to take care that no after-submit computations, validations, processes, and branches fire when this special button is used, unless you want them to.
    Scott

  • Help is greatly needed with page processing in APEX

    hello everyone please could someone help me with a survey application that im working on . Basically i have  a page that has 5 different regions on it an each region has a LOV which has the following display values ( agree, strongly agree, disagree and strongly disagree)  then return values for these are 20 , 50 , 10 and 5 respectively and this is the select from statement to create the LOV below and the table used
    select EVAL_OPTION as display_value, FRM1_REG1 as return_value
    from REL_DIM_SC_TBL
    order by 1
    The LOVs work fine . However when i tried to insert the inputs from the users into another table by means of a page process im getting a error that i cant seem to resolve my tables are :
    REL_DIM_SC_TBL   -- where the display data for the LOV's come from
    REL_DIM_SC_IMP   -- is the table that where the values that the user has selected is stored
    The page items are set up as follows :
       Relationship Dimension Scoring
    JOE  Logout
    WELCOME
      so where you see welcome above is a text field above the regions where the LOV's are and used the select :app_user from dual ; to populate it because in order to insert the data select by the LOV's on the page there has to be an item with a primary key . Which is what i wanted was for the current user using the app to be inserted into the REL_DIM_SC_IMP table . But when i click the submit button i get an error
    below is the select of the automatic DML action i set up under page processing    
    Name
    Page:
    3 Relationship Dimension Scoring
    *Name (Value Required)
    Type:
    Automatic Row Processing (DML)
    Process Point
    *Sequence (Value Required)
    Process Point
    Run Process
    Source: Automatic Row Processing (DML)
    *Table Owner (Value Required)
    *Table Name (Value Required)
    *Item Containing Primary Key Column Value (Value Required)
    *Primary Key Column (Value Required)
    Item Containing Secondary Key Column Value
    Please guys i have been stuck with this for a long time any help at all will be greatly appreciated

    Hello Krunal thanks so much for your reply i did manage to sort out that error how ever there is an other one that im stuck with . Basical i have a table with 6 columns begin score1, score2, score3, score4, form_total, User_id
    What i want to do is create a trigger that adds the four  numeric columns into the form_total
    the trigger syntax i used was
    create or replace trigger "Score_Total_t1"
    AFTER
    insert on "Score_Total"
    for each row
    begin
    :NEW.USER_ID := ('APP_USER');
    :NEW.form_total := ('Score1' + 'Score2 '+ 'Score3' + 'Score4 ');
    end;
    However the :New.USER_ID works fine to input  the currrent user but im getting an error with :NEW.form_total
    Any ideas would be greatly appreciated
    thank you 

  • Username availability in post-login application processes

    Hi there,
    I have a problem with a post-login application procedure that sets session variables. Some of the variables are based on the username of the user that is logging in. I'm using the function htmldb_custom_auth.get_username to return the username. However, it always reports 'nobody' as the username.
    Is there a way to get the username of the logged-in user in a post-login application procedure?
    Robert

    By "post-login application procedure," I mean an application process whose "Process Point" property is set to "On New Session: After Authentication".That firing point means once per session at the point during the rendering of the requested page after the step where the user identity (if any) has been determined. If the first page requested is a public page (which might be the login page specified by your authentication scheme) then the user identity has not yet been established and will be null, 'nobody', 'APEX_PUBLIC_USER', 'ANONYMOUS', or perhaps some other public user name, depending on "how your application works".
    You should put code like I think you have in this process into the authentication scheme's Post-Authentication Process. This block will be executed after the login API has processed the login request and after a session has been created and registered with the authenticated username.
    I'm not sure what you're asking about how my application works.I was looking for a technical description of what you intend to happen in the scenario, e.g., User starts browser -> user requests URL like f?p=100:1, -> user sees login page which is page number 101 in application 100 and is specified as the Session Not Valid Page in the application's authentication scheme -> user enters username and password and presses Login button -> On New Session process should fire after login page is submitted and capture authentication username -> etc.
    Scott

  • Process not firing

    I have a form which I create manual process for (1 for create, delete and change).
    They are all seperate buttons on the form and set to fire with process point 'On Submit - After computations' and there was also a condition set for 'when button pressed'. These were all working fine. I had to change the 'Optional URL direct' section to 'URL' and call 'javascript:doSave();' and now they don't seem to be working/firing anymore. Am I missing something?

    Hello,
    You have to submit the page. Javascript don't submit.
    So add after doSave();, doSubmit('Your_button_name');
    And the page will be submitted.
    Mike

  • Java.lang.process.execute()

    Java.lang.process.execute() is throwing an exception with string �Cannot allocate memory� ...
    what is the cause of this exception and give me the solution
    plz help
    Nilesh

    882590 wrote:
    Is it possible to use the java.lang.ProcessBuilder to execute a Java process pointing it to jvm.dll instead of java.exe? I'm using the JavaFX self contained application packaging and it creates a runtime/jre/bin directory that contains jvm.dll, but not java.exe.I don't get the line of questioning of this thread. If you're using the JavaFX stuff the answer must lie in the JavaFX documentation. It seems to indicate that it generates an executable of its own which will likely wrap the jvm DLL, so you should be invoking the generated executable in ProcessBuilder.
    http://docs.oracle.com/javafx/2/deployment/self-contained-packaging.htm

  • Automatic Row Processing fetch error (ORA-00936: missing expression)

    Hi there,
    I have a bit of a problem setting up automatic row processing. The Apex processing is causing an error, but I'm not sure what PL/SQL code is being run (obviously, I don't have access to the Apex code) and all I get is the error following:
    0.13: Processing point: AFTER_HEADER
    0.13: ...Process "Notes load": DML_FETCH_ROW (AFTER_HEADER) F|#OWNER#:PUPIL_NOTE:P29_PUPIL_ID:PUPIL_ID:P29_ACHIEVEMENT_SET_ID:ACHIEVEMENT_SET_ID
    0.16: Show ERROR page...
    and then the following exception report on the page:
    ORA-06550: line 1, column 17: PL/SQL: ORA-00936: missing expression ORA-06550: line 1, column 9: PL/SQL: SQL Statement ignored
    Can anyone tell me how I can diagnose the problem?
    Many thanks,
    Robert
    Message was edited to change subject

    I am having a very similiar problem
    0.02: Fetch session state from database
    0.03: Branch point: BEFORE_HEADER
    0.03: Fetch application meta data
    0.03: Computation point: BEFORE_HEADER
    0.03: Processing point: BEFORE_HEADER
    0.04: ...DML_FETCH_ROW (BEFORE_HEADER) F|#OWNER#:JOH:P66_JOH_ID:JOH_ID
    0.49: Show ERROR page...
    0.50: Processing point: AFTER_ERROR_HEADER
    ORA-06550: line 1, column 17: PL/SQL: ORA-00936: missing expression ORA-06550: line 1, column 9: PL/SQL: SQL Statement ignored
    JOH was a synonym (allowing other shemas to access the table) but @I delted those
    P66_JOH_ID is a DB column (which it wasnt)
    but I still get the error
    ORA-06550: line 1, column 17: PL/SQL: ORA-00936: missing expression ORA-06550: line 1, column 9: PL/SQL: SQL Statement ignored
    Any ideas how I can track this down?

Maybe you are looking for

  • Error -201064 occurred at _DAQmxImportConfig.vi

    I have an exported NI MAX configuration file from another machine, call it x.nce. I successfully imported this to my machine using MAX, but now I wantto import all of the tasks, channels, scales into a Labview project.   The .nce file isn't supported

  • Fields are bold for some users, not bold for others.

    Post Author: karene CA Forum: General I have a report in Crystal reports XI using BusinessObjects. One of my users is complaining that one of the fields is bold. But it's not set to bold in the report, and when I run the same report, called the same

  • Link to Google Earth

    How can I can have a button in iWeb which when clicked takes me to a specific location of google earth (either within my site or a separate window)? Thanks

  • UIX/XML: XSS styleSheets

    I'm trying to override some styles from the blaf.xss. So i created my own stylesheet like so: <styleSheetDocument xmlns="http://xmlns.oracle.com/uix/style"> <styleSheetDocument xmlns="http://xmlns.oracle.com/uix/style"> <import href="blaf.xss"/> <sty

  • Where can I find the files when I "Created iPod version"?

    I tried getting some of my video podcasts onto my iPod by using the "Create iPod version" but only audio plays. Where can I find these files so I can delete them and get them off my iPod?