losing data stored in list when next page selected in pageablelistview with checkbox - wicket

How do I not lose stored data of selected items in a pageable list view with checkbox when I change the page. please view my earlier post for code.
Visit page:
checkbox in pageablelistview in wicket

You can either:
store the data using Ajax the moment the checkboxes are set/unset.
try to prevent the user from leaving the page by javascript. See here

Related

sharepoint online, set edit item view as default instead new item view

I am working in a small SharePoint project to let school students pre-order the lunch online.
the main idea is the student can login to a school site, fill an order form.
I try use a list form to do it, just simply put a InfoPath form as web part on the home page.
When students open the site, he can fill the order form directly.
but the problem is the default view of this web part is always the new item form. so when a student already make the order, then login to site again,
how can I let him see his order and edit it instead a new order form.
another way may be use the form library, but i don't know how can i transfer the filed from the form to a list. because at last we still need a list instead a bunch of documents to get the summary of order.
Thank you for help.
Perhaps you can use a custom list and show that on the homepage?
A 'custom list' by default only has a title column but by adding more columns through the list settings you automatically add form fields on its new item form.
Since you are creating an order form you might want to hide the title column. Go to the settings of the list, then advanced settings, allow editing of content types. Then back in the list settings click the 'item' content type, then the title column then click the radio button for hidden.

How to redirect to another page with Gravity forms drop down value?

I am trying to create a form in Gravity Forms that consists of a drop down menu. The drop down has names of pages on the site in labels and then corresponding values of page addresses in values. I am trying to send the user to page that they select. How would this be accomplished?
Actually, using the hook here:
http://www.gravityhelp.com/documentation/page/Gform_confirmation
You could grab the value of the dropdown and then redirect based on their selection once they submit the form.
Javascript.
// get your select element and listen for a change event on it
$('#the_drop_down').change(function() {
// set the window's location property to the value of the option the user has selected
window.location = $(this).val();
});
via: Redirect automatically when selecting an item from a select drop-down list
That post covers issues like IE compatibility and using a jQuery version.

How to get all the pages validated, not just the current one, when submitting a form?

First I created a form in Orbeon Forms with Form Builder. Next I made it a multi-page form as described in Create a wizard or multi-page form with Form Builder.
The problem I'm facing is that when submitting the form, validation only occurs on the currently visible sections. When submitting, I would like all sections to be validated even though only one section may be visible. What would be the best way to achieve this?
I would recommend you change the code of your "Next" button so it doesn't switch to the following page if there are errors on the current page. You can do so by adding an if "guard" on the <xforms:setvalue> inside the "Next" button, that reads:
if="xxforms:instance('fr-error-summary-instance')/valid = 'true'"
This will also make things easier for users: if you let them navigate to page 2 while there are errors on page 1, when they try to save while on page 2, you will somehow have to tell them that the error is on a previous page, and provide a way for them to navigate to that page.

Display Additional Form on Update - RadGrid

I'm using a RadGrid for changing record status's. Users have the ability to select a status from a dropdown and update that record with that status. Depending on the status chosen, when the user clicks update I want to popup an additional form so the user can fill out more data required for the update. I'm not sure the best way to go about implementing this. Any suggestions are appreciated.
One way is to use the RadWindow like a modal and pop it up to the user via client-side JavaScript. We use RadWindows in our applications and it works. Or, the RadWindow supports a Nested Grid or View that you can have as a record's child; so you can have the master record, click on the arrow on the left and expand the record to view a nested grid of data, or a custom view (via the NestedViewTemplate property). You can also have the form in a DIV, hide it, then show it via JavaScript too.
Those are two ways.
HTH.

Wicket - need FilterForm ajax events for GoAndClear button events

I've added a FilterForm with GoAndClear buttons to an AjaxFallbackDefaultDataTable. The filtering is working fine except for refreshing my table. I have a dropdown that changes the number of rows to show which does a target.addComponent(my AjaxFallbackDefaultDataTable) which doesn't reload the data but refreshes the. If I use this after I click a Go or Clear button then the table shows the proper rows, item count, and page links.
How can I handle Go and Clear clicks on my FilterForm to update my AjaxFallbackDefaultDataTable?
In the onsubmit method for the filter form just call .renderComponent() for the table.