Greetings,
I am using ASPRunner.NET Enterprise V9.8. [The best RAD tool on the planet.]
We are building an app using the Bootstrap layout. We have an Edit page separated into sections with various Tabs. Turns out that if you are on, say, the third tab and click Save, it resets to the first tab. Here is a snippet to preserve Tab state across the Saves:
In List page Javascript OnLoad:
//---------------------------------------------------------------------
// From List page, establish that we would start at first Tab
//---------------------------------------------------------------------
localStorage.setItem('CurrentTab', 0);
In Edit page Javascript OnLoad:
//---------------------------------------------------------------------
// Before Save, this event fires to store what Tab user is actually on
//---------------------------------------------------------------------
this.on('beforeSave', function(formObj, fieldControlsArr, pageObj){
localStorage.setItem('CurrentTab', pageObj.getTabs().activeIdx());
});
//---------------------------------------------------------------------
// Set Tab based on what we have stored as Current Tab
//---------------------------------------------------------------------
pageObj.getTabs().activate(localStorage.getItem('CurrentTab'));