Pre-submit javascript process

I'm a bit confused on how to do this. I have a non-tabular form which has various modes of operation.
In one of them I need run a javascript function that checks a bunch of things. Input from the user may be required before this is completed and the actual submit (which is an update)
can proceed.
How can I get somethng to run before the real submit?
By binding another listener on submit? (And how can I be sure mine happens first?)
I would imagine this has been done a lot of times before. Anyone care to share any tips?
Hmm since I wrote that I realized that this is how submit is happening:
<button value="Apply Changes" onclick="javascript:apex.submit('SAVE')" class="button-default" type="button">
  <span>Apply Changes</span>
</button>But I don't see a way to tacking another javascript function call in front of apex.submit('SAVE') in
there.
Action When Button Clicked
Action: Submit Page
Execute Validations: yes      
Database Action : Sql update action
There are validations but they don't seem to be javascript and I don't think one can run javascript
from plsq, correct?
Edited by: lake on Jan 19, 2011 6:17 PM

Hi,
Change action to "Redirect to URL" and to "URL Target" type something like
javascript:my_js_to_do_submit('my_param');Create "my_js_to_do_submit" to do tasks.
Then you call inside "my_js_to_do_submit"
apex.submit('SAVE')Regards,
Jari
Edited by: jarola on Jan 20, 2011 3:09 AM

Similar Messages

  • On Submit event processing

    Hi all,
    I'm facing a problem to make a plsql process start only when I insert a row in a tabular form.
    I created a tabular form and a after submit plsql process, as well.
    The problem is that plsql process start every submit event. I want it to start only after insert a new row and submit it.
    Is this possible ?
    thanks in advance.

    Yes I have.
    But it triggers event every submit pressure. I'd like to avoid triggering when no really actions occurs.

  • Pre allocated stock process

    Hi Experts,
    I am trying to use the pre allocated stock process.
    It is working fine till the time I move stock to the GI area for Cost center directly from Goods receipt area.
    Now there is a stock of 100 PC in my GI area for cost center.
    When I do the Goods issue to cost center & try to convert TR to TO is giving error that no source bin found. But in this case system should use the same source bin as a destination bin because the stock is existing in that bin.
    The process is working perfect if I try to issue 10 PC instead of 100 PC.
    Can you please help me to solve this problem?
    Thanks,
    Navin

    As per my understanding pre allocated stock scenario finishes when the goods are transferred from goods receipt interim area to goods issue interim area (first TO).
    When you post the GI (in Inventory Management), WM will work as you set it to work in LE-IM interface. If you set auto TR creation, it will create auto TR even if it makes no sense in your example since the goods are already in the proper bin and during the GI SAP consumes them from the interim storage bin.
    (Maybe SAP could not find out a foolproof solution to avoid the creation of such TRs)
    So, second TR has nothing to do with pre allocated stock scenario.
    What you can do:
    - delete the unnecessary TR (Set "Final Delivery" in LB02)
    - do not create the unnecessary TR (e.g. you can set "No Transfer Requiremnt" in MIGO / MB1A)
    - develop your own solution
    Edited by: Csaba Szommer on Nov 21, 2010 5:06 PM

  • Can I submit one process to run many Financial Reports at once?

    I've been asked by one of our HFM customers, about ways to submit 50 FR reports by one command. Best of the process can also be schedulled.
    There is a function called “Batch Reports for Scheduling”. This function can run and refresh a report (built with Financial Reporting) and create a pdf file into a specified target folder.
    The problem with it, is that each report is schedule by a seperate “Batch Reports for Scheduling” function. Since the customer has lots of reports (more than 50), they need to submit them one by one, specify for each one it's parameters values (Year and Period) so it's a time consuming process.
    The customer would like to find an option that will simplify the process by doing all refresh at the same time.
    We are looking for a command line that we could use by a batch (by using .bat for example). We need those commands:
    1. Connect to HFM
    2. Launch “Batched Reports for Scheduling” with right parameter
    3. Disconnect to HFM
    I'd appreciate any idea that would help.
    Thanks in advance for your help.
    Yoram

    Hi Yoram
    There is a command line utility that you can use to run Financial Reporting batches. It is called ScheduleBatch.cmd and can be found in the 'bin' directory under BIPlus (I can't be more specific as it depends which version of FR you are running).
    Take a look at the help attached in the section Scheduler Command Line Interface under the Administrative Tasks for Financial Reporting
    [http://download.oracle.com/docs/cd/E12825_01/epm.111/fr_user/frameset.htm?launch.html]
    These notes are labelled as v11 but this section equally applies to v9.3.1
    I have not used this with HFM but I have uses a windows .bat file to launch multiple FR batches using this feature (against Essbase) and deliver reports to users out of working hours so that they are in their email inbox when they arrive at work.
    Hope this helps
    Stuart Game
    www.analitica.co.uk

  • Pre-populate the process form as part of Role Alignment - Need suggestion

    Hi,
    As part of implementation we are going to take over the Provisioning of AD (Via Groups-->Access Policy) using OIM which was initially configured to provision manually. Now as part of migration we required to assign a base group to the users who has already AD reconciled resource (and align it with policy via SQL updates -->POL_key is process form, OIU_POLICY_BASED in OIU table). We are doing this as part of direct SQL updates. The other part of the requirement to align the process form values using the configured pre-populate adapters (for e.g. if the current value of any attribute is X and the prepopulate adapter suggest that it should be Y then the migration should also update this attribute.) We tried to use the prepopulateProcessForm API of tcFormInstanceOperationsIntf but it seems this is working only when the System Validation is in Pending state. The other option we are thinking of putting java code and then call the prepopulate adapter by passing each input params and updating tha value via API if any update is required. Just wondering if there is anything else we can use as part of bext practices. If anyone has done this kind of implemntation please let us know your inputs. Thanks

    Hero,
    You want to ...
    1. create users
    2. give them privileges
    3. assign them to groups
    4. assign a default groups to users
    You will need to do this in the following sequence of steps...
    1. Populate the user entries in OID, and assign the default group
    2. Create the groups in OID and assign the users to them
    3. Assign the appropriate portal privileges to the groups
    For step 1 and 2, I'll have to refer you to the OID Administrator's Guide for Release 9.0.2.
    This document contains a lot of good information, but in particular, you'll want to review Appendix I ...
    "Migrating User Data from Application-Specific Repositories". This addresses the LDIF migration tool
    and describes the schema elements needed for the IAS user accounts.
    For step 3, the easiest way would be to assign the privileges to the groups through the user interface. Once the groups are defined
    in OID, you can select them via the Portal UI to assign the portal privileges to them.
    The proper place to locate portal instance-specific groups is under the portal instance group base, which is
    cn=portal_groups, cn=groups, <subscriber_base>. The following white paper
    may be helpful to understand the organization of the directory information tree.

  • Pre-compile Javascript

    I use an application-based script to read the system user name and assign it to a variable, that I can read in a field-based script later on in my PDF form. The user name is used to identify the user.
    So far, it works fine, but can very easy be manipulated by a user: He has just to change the script and assign the user name he wants to.
    Now I think about ways to make things not that easy for users. One idea is to pre-compile the script (just like the folder scripts delivered by Adobe) and assign the user name to variable with a cryptic name. My question is now: How can I pre-compile a javascript text file? I use Adobe Acrobat Profession 7.0 and/or Adobe LiveCycle Designer 8.0 embedded in SAP.
    I do not need the perfect solution, only one that is not too easy to get around. I know about alternative scenarios using digital signatures etc.
    But the pre-condition is that the user name shall be used for identification.
    Has anyone an idea?
    I thank you very much.

    In the ESTK2 you can encode a .js script as .jsxbin, which you can later rename .jsx and (under some circumstances) use instead of the original .js file. Give it a go, and if it doesn't work, contact me by email, I might have another idea for you.

  • PRE-UPD and processing

    Hi:
    I have a situation that could do with some fresh thoughts.
    My multi-row data block contains 6 mandatory items. After navigating past the first 3 items I commit_form. The Record is saved to the database. I have to commit_form after the 3rd (dont ask why....!).
    I have an item called "Record Amended" which resides on the same canvas but is in a different data block. The idea being that when the record is updated I use the PRE-UPD to populate the "Record Amended" item with Sysdate.
    The difficulty I am getting now is that when I issue commit_form on 3rd item the user then navigates to populate remaining mandatory items in same block and F10 (commit) is pressed to save the record. But now "Record Amended" is populated because it has been changed by populating remaining three items.
    Which should happen I know but I want to manipulate this functionality to try and stop this happening until record has been re-retrieved and "truly" updated.
    Any ideas on how I might be able to get around this ?
    Thanks
    N.

    Sounds like you need to get the values in the first three items into the database and then maybe retrieve some values related to that -- either a database trigger or something like that is running.
    So why don't you POST the data, but not commit it after the third item is entered?
    Now for the Record_Amended date: Your record is inserted to the database first with partial data, then updated when it is complete. Create a non-base-table item in the record, and a wvi trigger on one of the three initially-entered items that checks :system.record_status. If record status is 'INSERT', set the item to a value indicating the record is just now being inserted. In the pre-update trigger, check this item, and if it is set, do NOT set the record amended date.
    Later, if a user queries the record, the just-inserted item will not be set, so the pre-update trigger can set the Record_Amended date.

  • Create a form that can either end in "Submit" or "Process Payment" depending on the selected fields

    I have designed a Golf Tournament Registration form that includes a multiple choice field with 4 payment options
    1) Pay Online
    2) Mail a Check
    3) Direct Deposit
    4) Other
    When Option 1 is selected, the form should redirect the registee to the PayPal payments page that has already loaded personal information from the earlier fields
    When Option 2, 3, & 4 are selected, the form should redirect the registee to applicable information about how to proceed
    HOWEVER: the submission button at the bottom of Options 2-4 still reads "Proceed to Payment" which is confusing for golf participants who have elected to mail a check.
    *Is there a way to customize the submission button to elimate this possible confusion?

    So I see that I am not the only one with this question and that part of my question has been answered here: http://forums.adobe.com/message/4399918#4399918#4399918
    HOWEVER: is there no way to change the wording on the PayPal "Proceed to Checkout" button?  I just want it to say "Submit"

  • Branch "On Submit: After Processing" timeout problem.

    I have a page that allows users to upload a csv file. After selecting the file and clicking the 'Load' button, a Procedure is kicked off. When the file is small, there is no problem- the Procedure completes, and my Branch takes the user to the next page. However, when a large batch is uploaded, the browser timesout with the following error (IE7):
    "Internet Explorer cannot display the webpage"
    How can I correct this? For now, I would be happy to simply have the page stay in place while the file loads (this can take up to 15 minutes for large files). Ultimately, I would like to have the screen 'grey out' and display a flash like 'loading' message/animation. That way, the user won't be tempted to hit the "Load" button again.
    Any help would be greatly appreciated! I've spent WAY too much time trying to fix this problem and the boss is getting anxious! ;-)
    APEX 3.1 with DB 10g.
    Thanks in advance!
    Alex

    Just to add to my last-
    I tried changing my HTTP Server httpd.conf settings to a higher 'timeout' setting. However, no matter what number I use, it always timesout at 5 minutes (which is 300 seconds - the default value for HTTP Server timeouts).
    This makes me think I'm missing an HTTP setting someplace - or - APEX is somehow overriding the setting - or - my setting changes are not taking (I did restart the HTTP Server after the changes).
    Any Apache server guru's out there who might know what's up?
    Thanks again,
    Alex

  • Pre-processing versus Post-processing Event Handlers

    After looking through the documentation, and a lot of forum posts, I'm still a little unclear as to where custom user modification updates most typically go... if I want to create a customer handler to say transform some data on a user after input on the main OIM form... should that go in the pre or post processing event handler? Or a more basic questions, which transactions or type of events would go in pre-processing, and which would go into post-processing?

    As far as I understand, there is no hard and fast rule as to what goes into pre and what goes into post. If you are doing a trusted recon then there is no pre will 11g and you have only post but if you are doing it from the OIM profile page then you can have either one and would depend upon your use case and requirement.
    Generally post should cover most of your scenarios from the UI unless you have access policies based on event handler derived attributes. If that's the case then you will have to fine tune the ordering of the event handler so that access policy is the last to be triggered.
    -Bikash

  • Multiple Conditional Processes on Submit - Confused!

    I have a Form Page based on a table where the user can update the data. I want to capture changes in a history table.
    Simplified, the tables are:
    Table PKey Varchar Columns
    UPDATEABLETABLE ID1 TEXT1 TEXT2
    HISTORYTABLE ID1 DESCRIPTION
    In addition to the automatic row update process I created 2 conditional processes:
    Process UpdateText1
    Source: INSERT INTO HISTORYTABLE (DESCRIPTION) VALUES ('TEXT1 Changed to ' || :P1_TEXT1);
    Process Point : On Submit - After Computations and Validations
    Condition: Type: Value of Item in Expression 1 != Expression2
    Expression 1: SELECT TEXT1 FROM UPDATEABLETABLE WHERE ID1 = :P1_ID1
    Expression 2: : P1_TEXT1
    Process UpdateText2
    Source: INSERT INTO HISTORYTABLE (DESCRIPTION) VALUES ('TEXT2 Changed to ' || :P1_TEXT2);
    Process Point : On Submit - After Computations and Validations
    Condition: Type: Value of Item in Expression 1 != Expression2
    Expression 1: SELECT TEXT2 FROM UPDATEABLETABLE WHERE ID1 = :P1_ID1
    Expression 2: :P1_TEXT2
    The issue is that if I only change 1 item (either one), both items return a line to HISTORYTABLE. Only if there are no changes or If both have changed I get the expected result.
    I've tried changing the Process Point and sequences, etc. without any improvement.
    Any ideas gratefully received!
    Edited by: user7258268 on 05-Jun-2009 08:14

    Hello:
    If you just need to track changes to a record without needing to know what field in the record was changed a simply 'MINUS' query will work to insert the changed record into the history table.
    insert into history_table
    select col1, col2, col3, col4... from tab where pk=:P_pk
    minus
    select :p_col1,:p_col2,:p_col3... from dual     // p_col1,p_col2.. are page items corresponding to col1,col2...The above code is in a 'After Submit' page process that fires before the 'Automatic Row Processing (DML) ' process
    Varad

  • Multiple GO buttons, all page processes executed, regardless of button pres

    I am trying to get my head around this problem where I have 6 GO buttons on a single page. I only want a single process to be executed of the 6 I have defined, but regardless of which GO button is pressed, all 6 after submit page processes are executed. I have set the "When Button Pressed" selection to match the button ID. In my mind, this should be a one-to-one functionality, but I am getting a one-to-many. Press one Go button, and many processes are executed.
    Can someone clue me in to what I may be missing here??

    If you name all the buttons GO, it makes it hard to distinguish between them. The When Button Pressed dropwdown will show
    GO
    GO
    Why not give them different meaningful names so that you can use them to properly condition your after-submit components? Note that the button name is a back-end thing that users dont see. You can keep all the button labels as Go, if that is what you want.
    Hope this helps.

  • Javascript: doSubmit()

    I would like to do something like
    javascript:doSubmit('foo');alert('&ITEM.');
    There is a After Submit process (for request=foo) that calls a PL/SQL procedure and sets the value of :ITEM.
    It doesnt seem to be working. The page is submitted but the JS alert box is shown before the after submit process has completed, thus showing the incorrect (older) value of :ITEM
    Am I doing something wrong, is there another way to do this?
    Thanks

    html source. You could branch back to the same page
    and emit the same javascript to get an alert box with
    the submitted value. How can I do this? What would I put in the region/item source? I thought JS alert boxes only launched by user explicitly clicking something.
    Of course the alert would have to be in
    an item or region that was displayed
    conditionally based on whether it was a
    pre-submit or post-submit-and-branch rendering caseNot sure how I can do this either. Could you elaborate?
    The page is submited by doSubmit('foo'). The after submut process does its thing and sets the value of &ITEM.. The page has a branch back to itself. Now what?
    Thanks

  • How do I use Javascript to populate a text field based on a selection from a drop down box?

    Greetings,
    I have virtually no experience with JavaScript and I am trying to figure out how to add some basic automation features to an Adobe form.  I have a drop down box called "Hospital_Name" that will contain approximately 7 possible selections.  When the user makes a selection, I would like to have the text field (called "Hospital_Address") below the drop down box populate with the corresponding address for the selection.  I have the "Hospital_Address" text field configured for multiple lines and would like the address to have a line break between the street address and the city/state/zip.
    For example, if the user selected "Hospital 1", the text field would display:
    123 Main St
    Anytown, CA 12345
    Any help or examples you can provide would be greatly appreciated.

    You have the element names within the object within brackets.
    Make sure your brackets are properly placed and matched.
    // Place all pre-population data into a single data structure
    var Location = {
    "--Hospital--":{ line1: " ", line2: " " },
    "Bellevue Medical Center":{ line1: "2500 BMC Drive", line2: "Bellevue, NE 68123" },
    "CHI Bergan Mercy":{ line1: "7500 Mercy Road", line2: "Omaha, NE 68124" }, 
    "CHI Immanuel":{ line1: "6901 N. 72nd Street", line2: "Omaha, NE 68122" }, 
    "CHI Lakeside":{ line1: "16901 Lakeside Hills Court", line2: "Omaha, NE 68130" }, 
    "CHI Midlands":{ line1: "11111 S. 84th Street", line2: "Papillion, NE 68046" },
    "Creighton University Medical Center":{ line1: "601 N. 30th Street", line2: "Omaha, NE 68131" },
    "Nebraska Medical Center":{ line1: "4400 Emile Drive", line2: "Omaha, NE 68105" }
    // some debugging code to see location names;
    console.show();console.clear():
    for(I in Location) {
    console.println(I);
    // end debugging code;
    function SetFieldValues(Hospital_Name) {
        this.getField("AddLine1").value = Location[Hospital_Name].line1;
        this.getField("AddLine2").value = Location[Hospital_Name].line2;
    This is not a beginners task but requires a fair amount of knowledge about the structure of objects, defining strings, and structure of arrays.
    Are you sure you have all the field names correctly spelled and capitalized?
    Do you get any error in the JavaScript console?
    Just trying the line that defines the "Location", I get the following error:
    SyntaxError: invalid property id
    1:Console:Exec
    undefined
    All the form field in a PDF are processed by using JavaScript and any error in any script will stop JavaScript processing.
    It might help to have a link to the problem form.
    Make sure your brackets are properly placed and matched.
    // Place all pre-population data into a single data structure
    var Location = {
    "--Hospital--":{ line1: " ", line2: " " },
    "Bellevue Medical Center":{ line1: "2500 BMC Drive", line2: "Bellevue, NE 68123" },
    "CHI Bergan Mercy":{ line1: "7500 Mercy Road", line2: "Omaha, NE 68124" }, 
    "CHI Immanuel":{ line1: "6901 N. 72nd Street", line2: "Omaha, NE 68122" }, 
    "CHI Lakeside":{ line1: "16901 Lakeside Hills Court", line2: "Omaha, NE 68130" }, 
    "CHI Midlands":{ line1: "11111 S. 84th Street", line2: "Papillion, NE 68046" },
    "Creighton University Medical Center":{ line1: "601 N. 30th Street", line2: "Omaha, NE 68131" },
    "Nebraska Medical Center":{ line1: "4400 Emile Drive", line2: "Omaha, NE 68105" }
    function SetFieldValues(Hospital_Name) {
        this.getField("AddLine1").value = Location[Hospital_Name].line1;
        this.getField("AddLine2").value = Location[Hospital_Name].line2;

  • SUBMIT button and VALUE clause

    I have a jsp screen like below.It shows in a tabular form all the employee data.
    EMPLOYEE DETAILS
    EmpId_______ProcessEmpSalary_____ProcessEmpLeave
    1
    2
    3
    4
    5
    6
    7
    8
    NEXT______PREV____LAST____FIRST
    Under ProcessEmpSalary ,ProcessEmpLeave of each employee I have a submit button and clicking on it the particular employee id has to be processed (for salary or leave).Now I want the employee id to be passed when the submit button of that particular employee is pressed.
    So what I am doing is I put the emp id in the value clause and achieve my purpose.But this results in the display of the emp id over each submit button.It looks ugly and so
    I dont want to use the VALUE clause of the SUBMIT button.........
    So friends please tell me how to achieve it.Someone suggested me to use IMAGE but it doesn't work.Some suggested I use hidden varaible ,but I just don;t understand how is that possible.Some suggested me use javascript to pass the value and throw the form...this make sense but problem is I don't have time to learn javascript now.So please help with some code example how to achieve this result.

    Here is my jsp as it is .Employee id was used for example.In my application it is Submission_Id
    which is used as the key.
    Note:
    The method is given below after the end of this JSP code.
    SubmissionList.jsp
    <%@ page contentType="text/html;charset=WINDOWS-1252"%>
    <%@page import = "oracle.portal.provider.v1.*, oracle.portal.provider.v1.http.*, oracle.portal.utils.v1.*, java.sql.*, ccrspackage.*" %>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1252">
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <TITLE>
    </TITLE>
    </HEAD>
    <BODY BGCOLOR = #FFCC00 FONT SIZE = "+2" >
    <FORM ACTION = 'SubmissionList.jsp' method='post'>
    <%
    //retrieve the existing session
    HttpSession Session= request.getSession(true);
    CCRS OCCRS = null;
    Connect OConnect = null;
    try
    if (request.getMethod().equals("POST"))
    if ( request.getParameter("Exit") != null)
    response.sendRedirect("Default.jsp");
    else
    OCCRS = (CCRS)Session.getValue("OCCRS");
    if (request.getParameter("Search") != null)
    OCCRS.InitialSettingForSubmissionList();
    else
    OCCRS.CreatePageOfSubmissionList(request);
    else
    OConnect = (Connect)Session.getValue("OConnect");
    OCCRS = new CCRS(OConnect);
    OCCRS.InitialSettingForSubmissionList();
    Session.putValue("OCCRS",OCCRS);
    catch (Exception e)
    OCCRS.ProcessError(e);
    //MESSAGE (IF ANY)
    out.println("<TABLE ALIGN=CENTER>");
    out.println("<TR>");
    out.println("<TD>");
    out.println("<FONT COLOR = RED>");
    out.println("<B>");
    out.println(OCCRS.GetDisplayMessage());
    out.println("</B>");
    out.println("</FONT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("</TABLE>");
    if (OCCRS.GetShowRecord() == false)
    String TempValue = "";
    String TempSelected = "";
    String TempText = "";
    out.println("<TABLE ALIGN=CENTER>");
    //Show all the drop down list
    out.println("<TR>");
    out.println("<TD>");
    out.println("<FONT COLOR = BLACK>");
    out.println("<B>");
    out.println("Fiscal Year");
    out.println("</B>");
    out.println("</FONT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<SELECT name = 'Fiscal_Year' >");
    while (OCCRS.NextItrScrFiscal_Year())
    TempValue = OCCRS.GetItrScrFiscal_Year();
    TempSelected = OCCRS.GetItrSelectedScrFiscal_Year();
    out.println("<OPTION value = '" + TempValue + "' " + TempSelected + " >" + TempValue + "</OPTION>");
    out.println("</SELECT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("<TR>");
    out.println("<TD>");
    out.println("<FONT COLOR = BLACK>");
    out.println("<B>");
    out.println("Fiscal Period");
    out.println("</B>");
    out.println("</FONT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<SELECT name = 'Fiscal_Period' >");
    while (OCCRS.NextItrScrFiscal_Period())
    TempValue = OCCRS.GetItrScrFiscal_Period();
    TempSelected = OCCRS.GetItrSelectedScrFiscal_Period();
    out.println("<OPTION value = '" + TempValue + "' " + TempSelected + " >" + TempValue + "</OPTION>");
    out.println("</SELECT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("<TR>");
    out.println("<TD>");
    out.println("<FONT COLOR = BLACK>");
    out.println("<B>");
    out.println("Province");
    out.println("</B>");
    out.println("</FONT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<SELECT name = 'Province_Code' >");
    while (OCCRS.NextItrScrProvince_Code())
    TempValue = OCCRS.GetItrScrProvince_Code();
    TempSelected = OCCRS.GetItrSelectedScrProvince_Code();
    TempText = OCCRS.GetItrScrProvince_Desc();
    out.println("<OPTION value = '" + TempValue + "' " + TempSelected + " >" + TempText + "</OPTION>");
    out.println("</SELECT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("<TR>");
    out.println("<TD>");
    out.println("<FONT COLOR = BLACK>");
    out.println("<B>");
    out.println("Facility");
    out.println("</B>");
    out.println("</FONT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<SELECT name = 'Facility_Code' >");
    while (OCCRS.NextItrScrFacility_Code())
    TempValue = OCCRS.GetItrScrFacility_Code();
    TempSelected = OCCRS.GetItrSelectedScrFacility_Code();
    TempText = OCCRS.GetItrScrFacility_Name();
    out.println("<OPTION value = '" + TempValue + "' " + TempSelected + " >" + TempText + " " + TempValue + "</OPTION>");
    out.println("</SELECT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("<TR>");
    out.println("<TD>");
    out.println("<FONT COLOR = BLACK>");
    out.println("<B>");
    out.println("Status Code");
    out.println("</B>");
    out.println("</FONT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<SELECT name = 'Status_Code' >");
    while (OCCRS.NextItrScrStatus_Code())
    TempValue = OCCRS.GetItrScrStatus_Code();
    TempSelected = OCCRS.GetItrSelectedScrStatus_Code();
    TempText = OCCRS.GetItrScrStatusDesc();
    out.println("<OPTION value = '" + TempValue + "' " + TempSelected + " >" + TempText + "</OPTION>");
    out.println("</SELECT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("</TABLE>");
    // SHOW 2 SUBMIT BUTTONS ,"Next" and "Close"
    out.println("<TABLE ALIGN = 'CENTER'>");
    out.println("<TR>");
    out.println("<TD ALIGN=CENTER>");
    out.println("<INPUT TYPE = 'SUBMIT' NAME = 'ShowRecord' value ='ShowRecord'>");
    out.println("</INPUT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<INPUT TYPE = 'Submit' NAME = 'Exit' value ='Exit'>");
    out.println("</INPUT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("</TABLE>");
    else
    out.println("<TABLE ALIGN=CENTER>");
    //THE COLUMN NAME IS SHOWN
    for(int Row = 0;Row <= OCCRS.GetFilledRow();Row++)
    if (Row == 0)
    out.println("<TR BGCOLOR = 'Black' >");
    else
    out.println("<TR BGCOLOR = 'Teal' >");
    for(int Col = 0;Col <= OCCRS.GetFilledCol();Col++)
    out.println("<TD>");
    out.println("<B>");
    out.println("<FONT COLOR = WHITE >");
    out.println(OCCRS.ReturnNewPageElement(Row,Col));
    out.println("</FONT>");
    out.println("</B>");
    out.println("</TD>");
    out.println("</TR >");
    out.println("</TABLE>");
    out.println("<TABLE ALIGN = 'CENTER'>");
    out.println("<TR>");
    if (OCCRS.GetMoreRecExist())
    out.println("<TD>");
    out.println("<INPUT TYPE = 'Submit' NAME = 'Next' value ='Next'>");
    out.println("</INPUT>");
    out.println("</TD>");
    if (OCCRS.GetPageNumber() > 0)
    out.println("<TD>");
    out.println("<INPUT TYPE = 'Submit' NAME = 'Prev' value ='Prev'>");
    out.println("</INPUT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<INPUT TYPE = 'Submit' NAME = 'First' value ='First'>");
    out.println("</INPUT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<INPUT TYPE = 'Submit' NAME = 'Search' value ='Search'>");
    out.println("</INPUT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<INPUT TYPE = 'Submit' NAME = 'Exit' value = 'Exit'>");
    out.println("</INPUT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("</TABLE>");
    %>
    </FORM>
    </BODY>
    </HTML>
    Here is my method in CCRS class
    This method create a multidimensional array of fixed row
    and column .This array is populated with all the data that has to
    be displayed ,and also satisfies the condition specified by the user.
    This array is subsequently used in the JSP (which calls this method)
    and displays all the row.
    public void CreatePageOfSubmissionList(HttpServletRequest request) throws Exception
    ResultSet ResSet;
    ShowRecord = true;
    DisplayMessage = "";
    if (request.getParameter("ShowRecord") != null )
    ScrProvince_Code = request.getParameter("Province_Code").trim();
    ScrFacility_Code = request.getParameter("Facility_Code").trim();
    ScrFiscal_Year = request.getParameter("Fiscal_Year").trim();
    ScrFiscal_Period = request.getParameter("Fiscal_Period").trim();
    ScrStatus_Code = request.getParameter("Status_Code").trim();
    LastSubmission_Id = 999999999;
    MathematicalSign = "<";
    else
    if (request.getParameter("Release") != null )
    ScrSubmission_Id = request.getParameter("Release").trim();
    Submission_Id = ScrSubmission_Id;
    ReleaseSubmission();
              LastSubmission_Id     =     FirstSubmission_Id;
    MathematicalSign = "<=";
    else
    if (request.getParameter("Process") != null )
    ScrSubmission_Id = request.getParameter("Process").trim();
    Submission_Id = ScrSubmission_Id;
    ProcessSubmission();
              LastSubmission_Id     =     FirstSubmission_Id;
    MathematicalSign = "<=";
    else
    if (request.getParameter("Remove") != null )
    ScrSubmission_Id = request.getParameter("Remove").trim();
    Submission_Id = ScrSubmission_Id;
    RemoveSubmission();
              LastSubmission_Id     =     FirstSubmission_Id;
    MathematicalSign = "<=";
    else
    if (request.getParameter("Prev") != null )
    PageNumber = PageNumber - 1;
    Long Temp = (Long) VecPrevSubmission_Id.elementAt(PageNumber);
    LastSubmission_Id = Temp.longValue();
    MathematicalSign = "<=";
    else
    if (request.getParameter("First") != null )
    Long Temp = (Long) VecPrevSubmission_Id.elementAt(0);
    LastSubmission_Id = Temp.longValue();
    PageNumber = 0;
    MathematicalSign = "<=";
    else
    if (request.getParameter("Next") != null )
    PageNumber = PageNumber + 1;
         VecPrevSubmission_Id.addElement(new Long(FirstSubmission_Id));
    MathematicalSign = "<";
    //initialize the page array
    for(int Row = 0;Row <= MaxPageRow;Row++)
    for(int Col = 0; Col <= MaxPageCol;Col++)
    NewPage[Row][Col] = "";
    Submission_Id = LastSubmission_Id + "";
    Province_Code = ScrProvince_Code;
    Facility_Code = ScrFacility_Code;
    Fiscal_Year = ScrFiscal_Year;
    Fiscal_Period = ScrFiscal_Period;
    Status_Code = ScrStatus_Code;
    BuildQueryForSubmissionList();
    ResSet = Stmt.executeQuery (Query);
    ResSetMetaData = ResSet.getMetaData();
    //remember NumOfFields is O is java variable which starts with 0 and not 1,
    //that is the reason I am subtracting 1 from oracle returned value.
    int NumOfFields = ResSetMetaData.getColumnCount() - 1;
    FilledCol = -1;
    for(int Col = 0; Col <= NumOfFields;Col++)
    //1 is added because JDBC subscripts starts with 1 and not 0
    NewPage[0][Col] = ReturnChangedColumnName(Col + 1,ResSetMetaData);
    FilledCol = FilledCol + 1;
    FilledCol = FilledCol + 1;
    NewPage[0][FilledCol] = "Remove";
    FilledCol = FilledCol + 1;
    NewPage[0][FilledCol] = "Process";
    FilledCol = FilledCol + 1;
    NewPage[0][FilledCol] = "Release";
    FilledCol = FilledCol + 1;
    NewPage[0][FilledCol] = "Preview";
    //Note at this point row number 0 of the array is having the field names
    //Remaining rows (i.e 1,2...etc) will now be populated with field data
    FilledRow = 0;
    MoreRecExist = false;
    while(ResSet.next())
    if (FilledRow == MaxPageRow)
    MoreRecExist = true;
    break;
    FilledRow = FilledRow + 1;
         if     (FilledRow     ==     1)
              FirstSubmission_Id     =     Long.parseLong(ReturnColumnData(1,ResSet));
    FilledCol = -1;
    for(int Col= 0; Col <= NumOfFields;Col++)
    //1 is added because JDBC subscripts starts with 1 and not 0
    NewPage[FilledRow][Col] = ReturnColumnData(Col + 1,ResSet);
    FilledCol = FilledCol + 1;
    LastSubmission_Id = Long.parseLong(ReturnColumnData(1,ResSet));
    Status_Code = ResSet.getString("Status_Code");
    if (Status_Code == null)
    Status_Code = "";
    else
    Status_Code = Status_Code.toUpperCase().trim();
    FilledCol = FilledCol + 1;
    //IF SUBMISSION HAS ONLY BEEN REGISTERED THEN SHOW A REMOVE BUTTON
    if (Status_Code.equals("R"))
    NewPage[FilledRow][FilledCol] = "<INPUT TYPE = 'Submit' NAME = 'Remove' value ='" + LastSubmission_Id + "'></INPUT>";
    FilledCol = FilledCol + 1;
    //SHOW THE PROCESS BUTTON IF SUBMISSION HAS BEEN BEEN REGISTERED
    if (Status_Code.equals("R"))
    NewPage[FilledRow][FilledCol] = "<INPUT TYPE = 'Submit' Name = 'Process' value ='" + LastSubmission_Id + "'></INPUT>";
    FilledCol = FilledCol + 1;
    //SHOW THE RELEASE BUTTON IF THE SUBMISSION HAS BEEN BEEN PROCESSED
    if (Status_Code.equals("P"))
    NewPage[FilledRow][FilledCol] = "<INPUT TYPE = 'Submit' NAME = 'Release' value ='" + LastSubmission_Id + "'></INPUT>";
    FilledCol = FilledCol + 1;
    //SHOW THE PREVIEW BUTTON IF THE SUBMISSION HAS BEEN PROCESSED
    if (Status_Code.equals("P") ||
    Status_Code.equals("C") )
    NewPage[FilledRow][FilledCol] =
    "<img src=\"pdf.gif\" border=\"0\" onClick=\" javascript:window.open('" + StringUtil.replaceString(Preview_URL,"%Submission_Id%",new Long(LastSubmission_Id).toString()) + "', 'SubmissionReport','location=no,menubar=no,toolbar=no,scrollbars=yes,left=' + window.screen.availWidth*1.2/8 + ',top='+window.screen.availHeight*1.2/14 + ',width=' + window.screen.availWidth*3/4 + ',height=' + window.screen.availHeight*6/7 + '')\" style=\"cursor:hand\" >";
    // "<img src=\"/appl/development/ccrs/images/pdf.gif\" border=\"0\" onClick=\" javascript:window.open('" + StringUtil.replaceString(Preview_URL,"%Submission_Id%",new Long(LastSubmission_Id).toString()) + "', 'SubmissionReport','location=no,menubar=no,toolbar=no,scrollbars=yes,left=' + window.screen.availWidth*1.2/8 + ',top='+window.screen.availHeight*1.2/14 + ',width=' + window.screen.availWidth*3/4 + ',height=' + window.screen.availHeight*6/7 + '')\" style=\"cursor:hand\" >";

Maybe you are looking for

  • Creative Webcam Vista

    Anscheinend ist hier alles in Englisch huh? Naja versuch ich mich mal in der sprache i see it'ss all in english Language huh? ok i?m try in this Language.... *rolleye* :angry: So i got a problem with my creative !!!Vista!!! Webcam, Not vista Plus!! I

  • Purchasing set up table

    hello, i am customizing the lo cockpit for purchasing in the following datasources: 2lis_02_hdr 2lis_02_itm 2lis_02_scl the problem lies when i am filling the set up table using oli3bw. i get the following message:                                    

  • How do I duplicate BOM's as I add inventory items

    My company has hundreds of items, but most are just images transfered onto a substrate.  The BOMs for items are complex, but similar.  If I could create 20 standard BOM's and use them as a starting point as I created new items, we would save time and

  • Workspace on OAS 10.1.2.0.2 not working

    Hello All, please help me to deploy Workspace on OAS 10.1.2.0.2 Now after I deployed Workspace, PMA, Financial Reporting and WebAnalysis on OAS 10.1.2.0.2 I gave all availible roles to admin user in Shared Services after all I don't see any more besi

  • Blocked stk to unrstrd stk- movement type?

    Hi All, What is the movement type for moving (transfer posting) from GR blocked stock to unrestricted stock? Regards, V S