Reset form data, show records page by page,  disable delete link if 1row

1. When u click on a Reset button complete form data should be cleared. How to achieve this
2. I have some of the records displaying data.. i got a delete button from datacontrol opertions tab... I need to disable this delete button when the number or rows displayed is only one. how can i achieve this
3. After a search criteria is performed i need only 20 records to be displayed showing 1-20 then there should be a link on next which can take me to next page where i need to show the next set of 20 records .. just like the feature we have in gmail

Hi,
Try this code:
// reset all the child uicomponents
private void resetValueInputItems(AdfFacesContext adfFacesContext,
UIComponent component){
List<UIComponent> items = component.getChildren();
for ( UIComponent item : items ) {
resetValueInputItems(adfFacesContext,item);
if ( item instanceof RichInputText ) {
RichInputText input = (RichInputText)item;
if ( !input.isDisabled() ) {
input.resetValue() ;
adfFacesContext.addPartialTarget(input);
} else if ( item instanceof RichInputDate ) {
RichInputDate input = (RichInputDate)item;
if ( !input.isDisabled() ) {
input.resetValue() ;
adfFacesContext.addPartialTarget(input);
}

Similar Messages

  • How can i delete Record when i click on Delete Link in a report

    hi,
    i have to create report
    select S_NO,BILL_NO,LED_NAME,PUR_LED,VAT,BILL_DATE,ST_GRP_UND,GODOWN_NAME,
    ITEM_NAME,UNIT,QTY,RATE,PER,DIS,AMOUNT,'Delete' from DUMY_AC_LED_PURASEI want to delete corressponding record when i click on Delete Link.
    Here S_NO is P.k.
    How can i delete Record when i click on Delete Link.

    Manoj,
    If something does not work then you should report back on the same thread so that there is continuity to the whole episode. Be as lucid as you can be so that people know whats the scenario. E.g. is not working is not enough. What happens? Does is show error , go blank, goes to another page... all that is important.
    Its for posterity, down the line others will also visit the thread (may be).
    Regards,

  • Two times and dates show on the first page with an old set under the correct set.

    I have a second tine and date showing on the first display page, like a shadow under the correct date and time.  This is happenong on my iphone5, but was also there on my 4.  Any ideas?

    I would go to settings-general- reset all settings, if that doesn't work I'd do a reboot, and finally if I couldn't get that to work I'd do a restore as a new phone.

  • I want to show records on multiple pages in jsp

    hi,
    i am taking records from database through resultset.resultset contains so many records ,i want to show those records page by page on JSP.when user clicks on "next" button then next records should be displayed on JSP page.What should be the solution?
    Thanks.

    Hi
    Surely paging would be better solution for same problem. Here I am attaching some sample code. Just edit as per your requirement so go through that
         if(totalPages>10)
              int nextSkip=end>=totalPages ? 0 : end+1;
              int prevSkip=start==1 ? 0 : start-10;
              if(prevSkip!=0)
                   if(js)
                        prevLink="<a href=\""+linkPage+""+prevSkip+")\" class=\"bgWhiteABlacksmallU\"><Previous</a>";
                        firstLink="<a href=\""+linkPage+"1)\""+" class=\"bgWhiteABlacksmallU\"><<</a>";
                   else
                        prevLink="<a href=\"../"+linkPage+"skip="+prevSkip+"\" class=\"bgWhiteABlacksmallU\"><Previous</a>";
                        firstLink="<a href=\"../"+linkPage+"skip=1\" class=\"bgWhiteABlacksmallU\"><<</a>";
              else
                   prevLink="<span class=\"bgWhiteABlack\"><Previous</span>";
                   firstLink="<span class=\"bgWhiteABlack\"><<</span>";
              if(nextSkip!=0)
                   if(js)
                        nextLink="<a href=\""+linkPage+""+nextSkip+")\" class=\"bgWhiteABlacksmallU\">Next></a>";
                        lastLink="<a href=\""+linkPage+"" + totalPages + ")\" class=\"bgWhiteABlacksmallU\">>></a>";
                   else
                        nextLink="<a href=\"../"+linkPage+"skip="+nextSkip+"\" class=\"bgWhiteABlacksmallU\">Next></a>";
                        lastLink="<a href=\"../"+linkPage+"skip="+totalPages+"\" class=\"bgWhiteABlacksmallU\">>></a>";
              else
                   nextLink="<span class=\"bgWhiteABlack\">Next></span>";
                   lastLink="<span class=\"bgWhiteABlack\">>></span>";
         String completeLink=firstLink+"��"+prevLink;
         completeLink=completeLink+"������"+pageLinks;
         completeLink=completeLink+"������"+nextLink;
         completeLink=completeLink+"��"+lastLink;
         //Set the required attributes for the calling page as this page is included using jsp:include action
         request.setAttribute("pageRecords",pageRecords);//helps displaying the records of the current page
         request.setAttribute("pageLinks",pageLinks);//provides links to the other pages
         request.setAttribute("nextLink",nextLink);//provides link to the next 10 pages
         request.setAttribute("prevLink",prevLink);//provides link to the previous 10 pages
         request.setAttribute("firstRecordPosition",new Integer(firstRecordPosition));//gives the position of the first record in the list
         request.setAttribute("lastRecordPosition",new Integer(lastRecordPosition));//gives the position of the last record in the list
         request.setAttribute("recordSize",new Integer(records.size()));//gives the size of the list
         request.setAttribute("currentPage",new Integer(currentPage));//provides the skip parameter
         request.setAttribute("rowSize", new Integer(rowSize));//provides the rowsize value for the subsequent pages
         request.setAttribute("firstLink",firstLink);//provides link to the first page of the list
         request.setAttribute("lastLink",lastLink);//provides link to the last page of the list
         request.setAttribute("completeLink",completeLink);//complete link with first, previous,pageLinks,next and last links
         String recordStatus = "";
         if(recordSize==0){
              recordStatus ="No Records Found";
         }else{
              recordStatus = firstRecordPosition + " to " + lastRecordPosition + " Record(s) of " + recordSize;
         recordStatus= "<span class=\"bgWhiteABlackb\">" + recordStatus +"</span>";
         request.setAttribute("recordStatus", recordStatus);

  • Reset Form button showing as Submit Form button?

    Hello....
    I have run into an odd issue that I can not figure out.  For the past year, I have been creating and manually distributing various forms to our Sales Engineering group and outside partners.  These forms are all designed from a common template we developed that includes a standard “Reset Form” button.  Upon sending out a new form, I received an email with a screen shot that showed the Reset Form button as “Submit Form”.  The partner went on to say that they thought it was the same as another form they have from me, which also shows a Reset Button as “Submit Form”
    The end user states they are using Adobe 8.1.4.  The forms were developed (9 Pro) LC Designer ES 8.2 and are set to be 8.0 or higher compatible.  This is the first time I have heard of this and cannot figure out the cause.  The label on the canned button itself is being changed from Reset to Submit. 
    Does anyone have any thoughts as to what would cause this and how to correct?  I can not assume that this is the only time this has happened, but it is the first I am hearing of it.
    Thank you and my apologies if this should have gone to another forum group 
    Chris Link, CTS, EAVA
    Sr. Design Engineer

    I have not heard of this before .....can you send the template to [email protected] so I can investigate? Please include a description of the issue in the email.
    Paul

  • How to set rdlc report tablix to show record in one page

    hi all,
    i am in trouble to solve this.
    i want to show the report in the manner in which the tablix column 1 record should continue in the
    same page in column 2.
    LIKE THIS:
    column1      column 2
    1                      6
    2                     7
    3                     8
    4                     9
    5                     10
    and if their is space in the page just continues.
    and if not go to next page.
    i am filling my report with this code:
    Conn.Open()
    Dim sReportDataSource As New ReportDataSource
    Dim drow As DataRow
    Dim row As DataRow = Nothing
    Dim DS As New DataSet
    Dim dt As New DataTable
    DS.Tables.Add("tblstudentsregistrationBA")
    drow = dt.NewRow
    'ADD THE COLUMNS TO THE TABLE
    With DS.Tables(0).Columns
    .Add("BA_I_roll_number", Type.GetType("System.String"))
    End With
    For Each dr As DataGridViewRow In DGVfinal.Rows
    row("BA_I_roll_number") = dr.Cells("rollnumber").Value.ToString
    DS.Tables(0).Rows.Add(row)
    Next
    'Create a report parameter for the sales order number
    sReportDataSource.Name = "DataSet1"
    sReportDataSource.Value = DS.Tables(0)
    RDLCreportview.ReportViewer1.LocalReport.ReportPath = Application.StartupPath & "\Reports\classsubjectlistBA.rdlc"
    RDLCreportview.ReportViewer1.LocalReport.DataSources.Add(sReportDataSource)
    Dim rpEmployeeSSN As New ReportParameter()
    rpEmployeeSSN.Name = "course"
    rpEmployeeSSN.Values.Add(" Course :- " & cmbcourse.Text & "")
    'Set the report parameters for the report
    Dim parameters() As ReportParameter = {rpEmployeeSSN}
    RDLCreportview.ReportViewer1.LocalReport.SetParameters(parameters)
    RDLCreportview.ReportViewer1.SetDisplayMode(DisplayMode.PrintLayout)
    RDLCreportview.ReportViewer1.RefreshReport()
    DS.Dispose()
    DS = Nothing
    RDLCreportview.ShowDialog()
    RDLCreportview.Dispose()
    Conn.Close()
    kindly help me for this.
    thanks in Advance

    Hi sanny007,
    Based on my further research, we can use the following method to word around the issue so that the first table will print every odd row and the second table will print every even row, effectively giving you multiple column output. For more details, we can
    refer to the following steps:
    Add two tables to design surface.
    On the Detail row of the first table, insert two fields, then use the following expression to control the row visibility:
    =iif((RowNumber(Nothing) Mod 2) = 1, False, True)
    On the Detail row of the second table, insert the same two fields, then use the following opposite expression to control the row visibility:
    =iif((RowNumber(Nothing) Mod 2) = 1, True, False)
    If there are any other questions, please feel free to let me know.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to delete the date in podcast or blog page?

    Hi,
    I would like to delete the dates showing on the first page of my podcast and blog pages - how do i do this in iWeb?
    Thank you for your help!
    Boaz

    You don't want to delete that date as it will affect RSS feeds, etc. However you can hide the date.  See this topic:  How to make the 'date' disappear on the...: Apple Support Communities
    OT

  • H:form enctype="multipart/form-data" gets removed

    I tried to create a file upload page using tomahawk 1.1.6, JSF RI 1.2_05-b06-FCS and facelets.
    What I found is that the h:form removes the enctype="multipart/form-data" when rendering the JSF page.
    In the resulting html page the enctype is entirely missing.
    As a result the fileupload doesn't work, since the browser doesn't even send the file.
    I read that JSF doesn't support multipart messages, but with this behaviour it prevents other libs like tomahawk accomplishing this task. Does anyone know whether there a way to solve this issue other then patching the FormRenderer?
    regards,
    Artur

    Please log an issue [1] (if possible include a test case as an attachement).
    [1] https://javaserverfaces.dev.java.net/issues

  • Open single record form for particular record

    It's simple to open tabular form for particular record
    - just add page item, pass value to this item
    and add this item to WHERE clause.
    But what is common approach for single record form?
    Where is it described?

    here is my solution:
    1) create page item which will receive primary key value
    2) look at Sample Application Page 7 - customers edit page -
    you need "Automated Row Fetch", called in "After Header" block

  • Why does my form data gets cleared out when clicking on the back button.

    Can someone explain why does my form selections get cleared out when clicking on the back button.
    I have a JSP page that displays a form with some selections and text boxes. I populate the page and submit the request. The action on the submit call another jsp page, which processes the data and displays the results via a <jsp:include> statement which calls the results page. When clicking on the back button from the results page, it returns me to the form page, but the selections are cleared out.
    1. Is there something in my calling of the pages that causes this behavior and can I prevent it?
    I notice that the behavior is different when using the IE 6.0 version Netscape 7.1. IE clears the page Netscape 7.1 retains the settings.
    If I cannot prevent this behavior does that mean I will have to save the state of the form data. And if I have to save the form data, what would be the easiest method of doing this. I'm a beginner to JSP and Java, but have some ASP experience. I don't understand why the back button in a JSP request clears the form data but a regular HTML page does not can someone explain?
    THANKS.

    the browser doesn't have to remember what you submitted and fill that back in.
    you can't prevent it unless you can ensure a new request to the server in which you can fill the default values in there.

  • I keep getting this pop up. This web page is being redirected to a new location. Would you like to resend the form data you have typed to the new location? Can you please help me figure out how to get this to stop!

    This pop up has been occurring about once a minute when I am on certain sites.
    This web page is being redirected to a new location. Would you like to resend the form data you have typed to the new location?
    How do I get it to stop?

    -> Tap ALT key or press F10 to show the Menu Bar
    -> go to Help Menu -> select "Restart with Add-ons Disabled"
    Firefox will close then it will open up with just basic Firefox. Now do this:
    -> Update ALL your Firefox Plug-ins https://www.mozilla.com/en-US/plugincheck/
    -> go to View Menu -> Toolbars -> unselect All Unwanted toolbars
    -> go Tools Menu -> Clear Recent History ->'' Time range to clear: '''select EVERYTHING''''' -> click Details (small arrow) button -> place Checkmarks on '''Cookies & Cache''' -> click "Clear Now"
    -> go to Tools Menu -> Options -> Content -> place Checkmarks on:
    1) Block Pop-up windows 2) Load images automatically 3) Enable JavaScript
    -> go to Tools Menu -> Options -> Privacy -> History section -> Firefox will: select "Use custom settings for history" -> REMOVE Checkmark from "Permanent Private Browsing mode" -> place CHECKMARKS on:
    1) Remember my Browsing History 2) Remember Download History 3) Remember Search History 4) Accept Cookies from sites -> select "Exceptions..." button -> Click "Remove All Sites" at the bottom of "Exception - Cookies" window
    4a) Accept Third-party Cookies -> under "Keep Until" select "They Expire"
    -> go to Tools Menu -> Options -> Security -> place Checkmarks on:
    1) Warn me when sites try to install add-ons 2) Block reported attack sites 3) Block reported web forgeries 4) Remember Passwords for sites
    -> Click OK on Options window
    -> click the Favicon (small drop down menu icon) on Firefox SearchBar (its position is on the Right side of the Address Bar) -> click "Manage Search Engines" -> select all Unwanted Search Engines and click Remove -> click OK
    -> go to Tools Menu -> Add-ons -> Extensions section -> REMOVE All Unwanted/Suspicious Extensions (Add-ons) -> Restart Firefox
    You can enable your Known & Trustworthy Add-ons later. Check and tell if its working.

  • 28 page Designer 7 .pdf form only shows one page in Acrobat 8

    Help!
    We have .pdf's that were generated with Designer 7.1, containing filled-in form data, but they cannot be viewed under Acrobat 8.1.
    For example, a 28 page .pdf displays OK under Acrobat 6 (with warnings) and Acrobat 7 (error-free) ... but only displays one, blank page (with no errors and no warnings) under Acrobat 8.
    Does anybody have any idea why Acrobat 8.1 is only displaying one page instead of the full 28 pages seen with Acrobat 6 or Acrobat 7?

    Hi -
    Thank you for the reply:
    1. The "Adobe Acrobat" forums ultimately point back to "Adobe Reader" - and this forum. There doesn't appear to be any separate forum for "Adobe Acrobat".
    2. Thank you for the suggestion about Lifecycle Designer.
    I tried to download LifeCycle Designer, but the link pointed to exactly the same "ar 8.1.2" download I'm currently having the problem with. Do I need "Lifecycle Enterprise"?
    3. I've tried multiple different versions of Acrobat Reader 8.1.x, and even Acrobat 8/Pro. They all show only one page: no errors, but no data, either.
    Acrobat 6 and 7, however, show a full 28 pages. Even Linux shows all 28 pages (and reports no errors or warnings in the .pdf). Do you have any idea what could account for this?
    Thank you in advance

  • How to reset the data scroller to fist page, on load of the page.

    Hello,
    My requirements is to reset the datascroller to first in popup.
    In popup page contains datatable and Save and Cancel button. Data SCroller functionality is implemeted for data table. Setting data scroller to first page is done for both Save and Cancel functionalities. And its working fine.
    I'm facing problem when user navigates to next ot last option (i e other than first), and closes the popup using window close, and again try to open the popup, datascroller retains previous value.
    So i wanna to set data scroller onload of the page , how to get the dataScroller compaonent in constructor with out Action Event. or any other alternative exists to reset datascroller to first.
    Need help

    Hey, I got a doubt that who will call the print method in the same program and what about the g.drawString() it is showing any output effect. Finally how the variable n will get initializing to 0 and 1 for two times respectively. Can u please elaborate on this...

  • I keep getting this error message on my Mac after my Mavrick upgrade: This web page is being redirected to a new location. Would you like to resend the form dat

    how do I turn off this notification. I build web stores and this pops up when I access my store now. The stores have a redirect with masking through godaddy.com to hide the source of the store. I have reset fire fox, turned off most of the settings and still having issues. most of the forms on line are outdated.
    Thanks

    There is a way to turn off the warning for a 307 "temporary" redirect. However, bear in mind that customers will still see it, so you may want to reconsider the design for business reasons.
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box that appears above the list, type or paste '''redi''' and pause while the list is filtered
    (3) Double-click '''network.http.prompt-temp-redirect''' to switch its value from true (the default) to false.
    References:
    * [https://support.mozilla.org/en-US/questions/779492 I receive this usually in facebook only. " This web page is being redirected to a new location. Would you like to resend the form data you have typed to the new location?" How can I stop this?] - related to filtering/protection service
    * [https://bugzilla.mozilla.org/show_bug.cgi?id=818850 818850 – The dialog "...new location..." is too annoying and is misleading about the page it comes from] - information about the bug tracking system:
    ** [https://bugzilla.mozilla.org/page.cgi?id=etiquette.html Bugzilla Etiquette]
    ** [https://bugzilla.mozilla.org/page.cgi?id=voting.html Voting]

  • Smart form printing same data  in all the 10 pages for tcode va03

    Hi Experts
    with tcode va03 i am taking print preview of sales document when i go for print preview it is showing all the 10 pages
    with line items but when i take print for all 10 pages it is displaying first page data in all the 10 pages
    i had checked with basis consultant regarding print problem it is fine from their part
    what can be the reason
    Thanks & Regards
    anu

    Hi Anu,
    Welcome to SDN.
    In hope your Sales Document Print Preview is a Smartform. So, in the Smartform first page check for the next page assignement. Also, debug your Smartform for any issues with reference to the looping of data.
    Regards,
    Pranav.

Maybe you are looking for