Save without closing
Version 3.0.5.
I am working with tabs and next button. The next button takes me to the next tab fine.
I would like to save the form without closing but it can't seem to get it to work.
I added a button to call the next tab and add this to the click
fd.sourceFormParam(window.location.href);
return true;
It does not work.
However fd.save().click(); does work but it closes the form.
My code to get next tab:
$("#fd_tabcontrol-0").tabs();
$(".nexttab").click(function() {
var active = $( "#fd_tabcontrol-0" ).tabs( "option", "active" );
//Attempt 1
//fd.save().click();
//Attempt 2
//fd.sourceFormParam(decodeURIComponent(window.location.href));
// return true;
//Attempt 3
//var uri = fd.setUrlParam(decodeURIComponent(window.location.href), 'FDRedirectWithID', 'fd_Item_Edit.aspx?ID=');
// fd.sourceFormParam(uri);
//return true;
$( "#fd_tabcontrol-0" ).tabs( "option", "active", active + 1 );
//return true;
});
I have commented out my what does not work. I have tried to add a button called "save without closing" with the code
fd.sourceFormParam(window.location.href);
return true;
added to the click method. It did not save.
Any thoughts?
I need to save when going to the next tab.
I am working with tabs and next button. The next button takes me to the next tab fine.
I would like to save the form without closing but it can't seem to get it to work.
I added a button to call the next tab and add this to the click
fd.sourceFormParam(window.location.href);
return true;
It does not work.
However fd.save().click(); does work but it closes the form.
My code to get next tab:
$("#fd_tabcontrol-0").tabs();
$(".nexttab").click(function() {
var active = $( "#fd_tabcontrol-0" ).tabs( "option", "active" );
//Attempt 1
//fd.save().click();
//Attempt 2
//fd.sourceFormParam(decodeURIComponent(window.location.href));
// return true;
//Attempt 3
//var uri = fd.setUrlParam(decodeURIComponent(window.location.href), 'FDRedirectWithID', 'fd_Item_Edit.aspx?ID=');
// fd.sourceFormParam(uri);
//return true;
$( "#fd_tabcontrol-0" ).tabs( "option", "active", active + 1 );
//return true;
});
I have commented out my what does not work. I have tried to add a button called "save without closing" with the code
fd.sourceFormParam(window.location.href);
return true;
added to the click method. It did not save.
Any thoughts?
I need to save when going to the next tab.
If you only want it for the edit form:
Have this code inside the onclick property of the "save & move forward" button:
Replace "fd_tabcontrol-0" (in two places) for whatever is the id of your tab control.
Tell us if you'll be wanting this for the new form as well
Have this code inside the onclick property of the "save & move forward" button:
Code: Select all
var active = $( "#fd_tabcontrol-0" ).tabs( "option", "active" );
$.cookie("fd_tabcontrol-0", active+1);
fd.sourceFormParam(window.location.href);
fd.save().click();
Replace "fd_tabcontrol-0" (in two places) for whatever is the id of your tab control.
Tell us if you'll be wanting this for the new form as well
Thank you.
It does save but it seems the fd.save().click(); takes back out to the main list view (Allitems.aspx) instead of the next tab.
As far as the new form goes I can pass for now. I just get the basic information then let the user save and redirect to the edit form. This allows the user to use the related forms with out any issues. Even with 3.0.5 I never quite got the related forms to work properly on the new forms just the edit form.
We typically have 5-10 related forms with in each form. Each form may use 5-20 tabs. It can be a night mare if they think the form is saved and they close it before hitting the save button.
Thank you again.
It does save but it seems the fd.save().click(); takes back out to the main list view (Allitems.aspx) instead of the next tab.
As far as the new form goes I can pass for now. I just get the basic information then let the user save and redirect to the edit form. This allows the user to use the related forms with out any issues. Even with 3.0.5 I never quite got the related forms to work properly on the new forms just the edit form.
We typically have 5-10 related forms with in each form. Each form may use 5-20 tabs. It can be a night mare if they think the form is saved and they close it before hitting the save button.
Thank you again.
Not sure if it is relevant but we were having a refresh/redirect issue and applied the >NET framework hotfix located here https://support.microsoft.com/en-us/kb/3062825.
Our issue was related to issue #8. The latest HotFix resolved it.
Our issue was related to issue #8. The latest HotFix resolved it.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 22 guests