Enable Submit Button at User Level and Disable at Block Level

I developed a query_find form having empno field:
Once the Employees‘s data is returned, then the new form that opens up should have the following fields.
Employee Name
Employee Number     
Salary
Address
Notes
and submit button.
i have taken Employee Name,Employee Number,Salary,Address,submit button in xx_emp block.
and i have given Query Data Source as xx_EMP_v view.
and Notes related to xx_dum_emp block and for this query data source as xx_emp_details table(here notes field is contorl item)
And i have written the following code in the submit button
IF :xx_dum_emp.NOTES IS NOT NULL
THEN
INSERT INTO xx_emp_details
(employee_number,
employee_id,
employee_name,
address,
salary,
notes
VALUES (:xx_emp.employee_number,
:xx_emp.employee_id,
:xx_emp.employee_name,
:xx_emp.address,
:xx_emp.salary,
xx_dum_emp.notes
END IF;
commit;
I have taken all the fields in the same canvas.
Requirement:
Submit Button should be enable for the specific user.For other users it should be in disable mode.
so i have written code in POST_QUERY of the calling block as below:
IF l_name = 'TESTUSER'
THEN
SET_ITEM_PROPERTY ('XXMZ_EMP.SUBMIT',
enabled,
property_true
ELSE
     SET_ITEM_PROPERTY ('XXMZ_EMP.SUBMIT',
enabled,
property_false
END IF;
It's working fine.
Suppose i query with empno 10 it will return Employees‘s data.So in that form i just enter some text in the Notes field
then click on submit.then close the form.again query with the same number then i need to disble Submit button at this level.
Is it possible to Disable the Submit Button?

Hi Dhana;
If your issue about Forms Customization please follow below and see its helpful:
Subject: Customization in Oracle Applications Doc ID: 743490.1
Subject: Forms Customization Doc ID: 69995.1
Subject: Setup & Usage (Customization) Doc ID: 104697.1
Please see "Oracle Developer Guide" available at:
Applications Releases 11i and 12
http://www.oracle.com/technology/documentation/applications.html
Also see:
http://oracle.anilpassi.com/forms-customization-steps-in-oracle-applications.html
http://oracle.anilpassi.com/a-new-custom-form-in-oracle-apps.html
I hope those are can be helpful for you
Regards
Helios

Similar Messages

  • Selection screen, dynamic enable and disable of blocks

    Hi,
    i have several parameters in different blocks.i want to enable one block and disable other blocks depending on the radio button selection. could some one help me on this.
    for eg.
    radiobutton1.  under this text entries for date, time etc.
    radiobutton 2. under this text entries for location from, location 2,phone etc.
    so, if i select radio button 1 all the remaining text entries under other radio buttons should be disabled. how to do this.
    your help would be appreciated.
    Thanks,
    kranthi.

    Hi Kranthi,
    I am not sure what you meant by disabling all the selection screen fields. Are you saying ALL the selection screen fields or all fields that don't belong to the selected radio-button.
    Anyway, here is a sample code how you manipulate the selection screen. The key options to use are 'modif id', 'at selection-screen output' and 'loop at screen'.
    *------------------------ Selection Screen ---------------------------*
    SELECTION-SCREEN BEGIN OF BLOCK selscr WITH FRAME TITLE text-000.
    PARAMETERS: p_rad1   RADIOBUTTON GROUP rad1 USER-COMMAND a DEFAULT 'X',
                p_rad2   RADIOBUTTON GROUP rad1,
                p_rad3   RADIOBUTTON GROUP rad1.
    *-- Selection Screen for radio button 1
    SELECTION-SCREEN BEGIN OF BLOCK rad1 WITH FRAME TITLE text-001.
    PARAMETERS:     p_date   LIKE sy-datum DEFAULT sy-datum MODIF ID one.
    SELECT-OPTIONS: s_uzeit  FOR  sy-uzeit MODIF ID one.
    SELECTION-SCREEN END OF BLOCK rad1.
    *-- Selection Screen for radio button 2
    SELECTION-SCREEN BEGIN OF BLOCK rad2 WITH FRAME TITLE text-002.
    PARAMETERS: p_werks   LIKE t001w-werks MODIF ID two.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(6) text-003 MODIF ID two.
    SELECTION-SCREEN POSITION 8.
    PARAMETERS: p_chk  AS CHECKBOX DEFAULT 'X' MODIF ID two.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK rad2.
    *-- Selection Screen for radio button 3
    SELECTION-SCREEN BEGIN OF BLOCK rad3 WITH FRAME TITLE text-004.
    PARAMETERS: p_matnr   LIKE mkal-matnr MODIF ID tri,
                p_verid LIKE mkal-verid MODIF ID tri.
    SELECTION-SCREEN END OF BLOCK rad3.
    SELECTION-SCREEN END OF BLOCK selscr.
    AT SELECTION-SCREEN OUTPUT.
      IF p_rad1 = 'X'.
        LOOP AT SCREEN.
          IF  screen-group1 = 'TWO' OR
              screen-group1 = 'TRI'.
            screen-input = 0.
            screen-invisible = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF p_rad2 = 'X'.
        LOOP AT SCREEN.
          IF screen-group1 = 'ONE' OR
             screen-group1 = 'TRI'.
            screen-input = 0.
            screen-invisible = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF p_rad3 = 'X'.
        LOOP AT SCREEN.
          IF screen-group1 = 'ONE' OR
             screen-group1 = 'TWO'.
            screen-input = 0.
            screen-invisible = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    If you want to hide all the, I mean all except the radio-buttons, then simply loop at screen and modify every entry except the radio-button entries to screen-active 0. Something like this.
    LOOP AT SCREEN.
      IF SCREEN-NAME = 'RAD1' OR
         SCREEN-NAME = 'RAD2 OR
         SCREEN-NAME = 'RAD3'.
      ELSE.
        SCREEN-ACTIVE = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    Srinivas

  • When i placed a AccessKey to Submit Button (Eg: AccessKey="S"), and pressed Shift + Alt + S, the focus is going to Submit button and as well as Submit operation is also performed. Is this the expected behaviour in FireFox for AccessKeys

    When i placed a AccessKey to Submit Button (Eg: AccessKey="S"), and pressed Shift + Alt + S, the focus is going to Submit button and as well as Submit operation is also performed. Is this the expected behaviour in FireFox for AccessKeys

    What were you expecting when using an accesskey?
    I use that also on this forum to submit my posts:
    <pre><nowiki><input accesskey="s" class="btn btn-important" value="Post Reply" type="submit">
    </nowiki></pre>

  • How can i put a submit button in a survey and it send to my email

    how can i put a submit button in a survey and it send to my email?

    Hi williamm89908146,
    You need to open the form in which you want to put the submit button,
    then you have to choose 'Add new field' under Tasks pane on the right Hand side of the window.
    Choose 'Ok' Button
    Place the button at desired Location
    Change the field name to 'Submit'
    Click on 'All Properties' (Button Properties window Will open up)
    Click on Actions Tab and then on 'Select Action:'
    Choose 'Open a web Link' from the Drop Down Menu and then Click 'Add'
    another window will appear in which you have to type this:    mailto:[your email address], eg: mailto:[email protected] later click close
    Click Close Form editing on the right hand side of the window
    Clicking on the Button would open up your default email client and your address would appear in 'To' field.
    Please feel free if you face any challenges in following through these steps.
    Regards,
    Rahul

  • Help with creating a form, I want to add a check box to enable me to unlock certain fields and deselect the block again

    Help with creating a form, I want to add a check box to enable me to unlock certain fields and deselect the block again

    Look to the right under "More Like This". Your issue has been discussed many many times. The error you are seeing is because you do not have enough free "contiguous" space on your hard drive. Read the other threads that address this issue to find how to solve the issue.
    Or, put "The disk cannot be partitioned because some files cannot be moved" into the search box at the upper right of this page.

  • Modify User (OIM 11gR2 PS1): How to enable "submit" button for custom udf fields?

    I made some new attributes following oracle documentation for create user, modify user, and view user details forms. create user and view user details are working fine, but I'm not being able to copy/paste the following code in custom modify user attributes to enable the submit button for modify user form change: #{pageFlowScope.cartDetailStateBean.attributeValueChangedListener} . Any ideas? Thanks.

    Export the sandbox and edit userModifyForm.jsff to set value change listener property for the new attribute as below
    valueChangeListener="#{pageFlowScope.cartDetailStateBean.attributeValueChangedListener}"
    http://docs.oracle.com/cd/E27559_01/admin.1112/e27149/customattr.htm#autoId4

  • Disable a button under certain circumstances and disable input fields

    Scenario: My user receives a PDF (dymanic XML) where they fill in fields and click a Submit button to send the data to the server. They receive a confirmation copy of the form back. In our older version of Livecycle, the confirmation form was locked down - no fields were editable, the Submit button was disabled. We still need the ability to not input/change any data on the confirmation copy and not be able to click the Submit button. Under ES4, everything started out editable.
    On the confirmation copy, there are messages that I check. When those messages are present I would like to hide the buttons (optimal solution) or at the very least, disable them so the user cannot resubmit the form again.
    I've managed to put Javascript in place to lock down all input fields, I just can't get the script to work to hide the buttons. I'm beginning to wonder if the script to lock down all input fields is causing the scripts to hide the buttons to not work.
    Sample code to disable editing of input fields:
    - had to provide this code at the table level so that when a table flows to a second page, the fields are locked. When I put it at the page level or top level of the hierarchy, it only worked on the one page when I need it to cover fields that have flowed on to a second page. Even at the table level, there are still some tables that remain open until a change is made, then the fields on the second page become locked.
    - when this is entered at the subform level, second page of the subform is modifiable
    rfqHeader.rfqHeader.IssuerInfo::ready:layout - (JavaScript, client)
    if (rfqHeader.rfqMessages.Message.rawValue != null)
    // Get the field containers from each page.
    for (var nPageCount = 0; nPageCount < xfa.host.numPages; nPageCount++)
    var oFields = xfa.layout.pageContent(nPageCount, "field");
    var nNodesLength = oFields.length;
    // Set the field property.
    for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++)
    oFields.item(nNodeCount).access = "readOnly";
    Sample code to make the button hidden:
    rfqHeader.rfqFooter.button.SubmitButton::initialize - (JavaScript, client)
    if (rfqMessages.Message.rawValue != null)
    this.presence = "hidden" ;
    Any help and suggestions would be welcome!
    Thanks, Josie.

    Hi Josie,
    I think, for what you are trying to do, you must be in the doc:ready to be able to do this.
    All because the doc:ready is the last event to be fired when a form is reopen...
    rfqHeader.rfqFooter.button.SubmitButton::docReady - (JavaScript, client)
    if (rfqMessages.Message.rawValue ! = null)
    this.presence = "hidden" ;

  • PDF form with one submit button that prints form and sanves PDF with data with a unique file name

    We have a long medical form that patients can fill out at kiosks as they wait to see a doctor. We want one button so that the patient can print out the form with one click (and finish filling it out by hand if it's not finished already) and the same button click will save the form with a unique file name (using last name, first name, date, and/or email address so that the identity of the person who filled out the form will be readily apparent to anyone who wants to grab the user's responses later). Is Acrobat capable of doing something like this? LiveCycle Designer maybe? And if we continue with the PDF form and add a submit button, is there a way to program the button click to print and to save?
    Thank you in advance of any suggestions that might accomplish this task.

    I am not sure about the print, but it can probably be done -- possibly with a bit of JavaScript. As to the saving of the form, that is not reasonable at a kiosk. You would want the data submitted to a server (particularly with patient data), no e-mail or accessible drive. You can collect the data and put it in a database or import it to the form for printing yourself.

  • Submit button to create PDF and XML attachment in a single email message

    All,
    We have to submit both an XML file and a PDF file in a single email as the user expects both formats. They do not want to extract the XML from the PDF file. (The PDF file contains some information that is not in the XML but is used for documentation purposes.) We are using Livecycle Designer 8.
    I currently have Javascript code in a button to attach an XML file but would also like to attach a PDF version in the same email:
    event.target.submitForm({cURL
    :"mailto:" + vSubmitTo +"?subject="+LEASEIMPORT.ValidationCheck.Subform55.EmailSubject.rawValue+"&body=Please find the 2 files file to be imported ",cSubmitAs:"XML",cCharset:"utf-8"});
    Thanks in advance
    Lester

    Bill, thanks for replying. I thought I should explain our scenario:
    We have designed a PDF form for data input. This form is distributed as a "stand-alone" PDF - not residing on a server. The user fills in the form which produces a legal document. The user then hits a submit button which produces an XML document which is emailed to a person in the organisation who uses the XML for import into another application. However they also require the PDF document to be emailed as this contains supplementary information which is not contained in the XML file. (i.e. some fields are not exported with the XML file).

  • Enabling 'submit' button in email activity

    All,
    version:11.1.1.4
    I'm trying to configure an email activity in an async bpel as below
    <body><form action="http://localhost:7001/soa-infra/services/default/AdvanceShipNotice/AdvanceShipNoticeResend?WSDL"> First name:<br> <input type="text" name="firstname" value="Mickey"> <br> Last name:<br> <input type="text" name="lastname" value="Mouse"> <br><br> <input type="submit" value="Submit"> </form></body>
    The deployment went through fine, but when I got an email it just print the above html body as simple text.  What am I missing?  Please advise.
    thanks
    sen

    Hi,
    Can you try converting this Message to CDATA by using toCDATA() Method.
    Regards,
    Vyshali M

  • How can i disable a submit button and execute submit_action method on click

    Good Day,
    On my page I have a submit button that execute the submit_action method of the page backing bean that submit data captured on the page into a database and activate another class that send mail at the same time on a click of the submit button,the mail process takes a while before returning back to the page.I was able to disable the submit button to prevent the user from keep click while the process is running but the issue is on clicking the submit button it only disable the submit button without executing the submit_action method of the page backing bean.How can i disable the submit button and execute submit_method of the backing bean at the same time.
    Thanks in advance.

    I tried this out on one of my pages to see if it works.
    First, I added the following JavaScript to my submit button's onClick event:
    this.disabled=true; return true;When I clicked the submit button, it was disabled but the form was not submitted.
    I deleted the JavaScript from the onClick event and added the following JavaScript to the form's onSubmit event:
    var button = document.getElementById("form1:submitButton"); button.disabled=true; return true;When I click the submit button, it was disabled and the form was submitted but the button's action method was not called.
    The next thing I tried was to change the onSubmit event code:
    var button = document.getElementById("form1:submitButton"); setTimeout("button.disabled=true", 500); return true;This seemed to work. The difference was that I added a 1/2 second delay before disabling the button.
    See if that works for you. If not then I'm fresh out of ideas.

  • How to remove submit buttons on workspace and use submit buttons on PDF instead?

    I am working with LiveCycle ES2. I will get submit buttons automatically render on workspace according to routes i designed after User component. However, I do not want that submit buttons on Flex. I would like to use submit buttons on PDF as designing in LiveCycle Designer.
    Could you please give a suggestion on this?
    Mac

    You would also want to ensure that the Adobe LiveCycle Form Bridge is not on the form.
    Here are some scenarios, from the Workbench help, which may help:
    If your process uses Adobe XML forms (XDP files), you can render the form to PDF and then use the Inject Form Bridge operation. To render to PDF, you use the renderPDFForm operation that the Forms service provides.
    Workspace ES provides a Complete button that users click to submit their forms. However, forms can also include submit buttons. When the Inject Form Bridge operation is used on a form, Workspace ES either hides the submit button, or disables the Complete button.
    Form design
    Result
    Design: The form includes no submit button.
    Result: Workspace ES disables the Complete button and users cannot submit the form.
    Design: The form includes one submit button.
    Result? Workspace ES hides the submit button and enables the Workspace ES Complete button.
    Design: The form includes a button (indirect submit) that points to a submit button (direct submit)
            Indirect-submit buttons always take precedence over direct-submit buttons, even if multiple submit buttons exist. Workspace ES always shows the indirect submit buttons.
    Result: Workspace ES hides the submit button and enables the Workspace ES Complete button.
    Design: The form includes multiple indirect-submit buttons that point to one or more direct-submit buttons.
    Results: Workspace ES disables the Workspace ES Complete button. The user must click the appropriate button on the form to submit it.
              The user can still save a draft version of the form or take the form offline
    Design: The form includes either an indirect- or direct-submit button in a repeating subform.
    Result: Workspace ES excludes these buttons for submitting the form in Workspace ES.
    Note: When the submit button that was added to the form design with the Process Fields form object to the form design is hidden, the button still provides the functionality for submitting the form.
    Submit requests are handled by Workspace ES, which acts as an intermediary between the LiveCycle ES server and the form. Also, forms can be used both offline and online.
    Hope that helps.

  • Disabling radio button/ submit button while ppr is in process

    hi all,
    In our project we have a PPR event on radio buttons ie user can only select one address as primary out of 10 (let say).
    its working fine... but the problem is that the execution of ppr takes some time lets say 1-2 sec(fairly enough i suppose) and if user selects any other radio button or click on submit button page hangs up and an error (not the same error everytime) occured as the ppr has not been completed yet.
    We want to know if there is any way to disable or grey out those buttons (radio/submit) while page is rendering (ie ppr is executing) to restrict user from clicking those buttons.
    any help would be appreciated
    thanks in advance
    Shivdeep Singh

    Hi,
    Instead PPR on radio buttons, Use radiogroup for all the radio button and set intial value for one radio button to true.
    You can get the selected radio button value in processFormRequest by using following
    String radioGroupValue = pageContext.getParameter("RadioGroup");
    Thanks,
    Kumar

  • Submit buttons are gone on many websites and other sites are just messed up since 3.6.13

    Messed up: MSN Hotmail
    I have a multiple blueish overlay over the words "Inbox" & "Folders"
    The overlay has wording...more actions for Inbox or Folders/depending on which word it is laying over. (This is only in the Firefox browser)
    I wish to remove that option not knowing how it got there and it serves me no purpose.
    Several sites, and I cannot name them all so I will name one "YahooAnswers" where one answers a question and hits the "Submit" button. The submit button is now gone and there is no indication that it ever was there. The mouse "can see it" and activate the empty spot (and it is only after activation does the word "Submit" reappear.
    Both of these issues are only when I use the Firefox browser and it seem with the update version 3.6.13
    I am using XP.
    My only recourse (to me) is to kick it back to an older browser version.
    I have used Opera and there is none of this problem anywhere.
    I.E.6sp1 is clean as well.

    See:
    * http://kb.mozillazine.org/Website_colors_are_wrong
    * http://kb.mozillazine.org/Websites_look_wrong
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • 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

  • Some Songs On iPod Don't Display Artwork Until Center Button is Pressed

    Okay, I just got my computer revamped so I had my itunes library file and all the songs saved but I reinstalled iTunes. Now some songs on my ipod are acting weired by displaying all the song info to the left (the firmware calls for them to center whe

  • Problem while creating Physical standby database on remote Server

    Hi I try to create a physical standby datbaase using OEM 10gr2, it is working when I create on same server. No issue but when I try to create same on remote server it is giving below warning and process failing. Please let me know what needs to be do

  • Does apple tv work with att uverse

    Does apple tv work well with att uverse service?

  • Oracle 8 DB Level Stats

    Hi, Please have a look at a portion of the stats taken from a report.txt file of an Oracle 8.0.5 DB supporting 11.0.3 SVRMGR> Rem The total is the total value of the statistic between the time SVRMGR> Rem bstat was run and the time estat was run. Not

  • 6680 DKU-2 Cable error

    I am using a 6680 phone with a DKU-2 cable on windows xp, whenever i plug the phone in windows comes up with the error 'USB device not recognized' and the connectivity wizard stops at the third stage when it says to plug it in, also no message comes