raining010 Posted October 5, 2013 Share Posted October 5, 2013 Hi, Admin does DF supply an action, that could return to the previous page? I didn't find it. No matter which page comes to this one, while click this button, it could return to the previous page. Thanks Link to comment Share on other sites More sharing options...
AzeoTech Posted October 6, 2013 Share Posted October 6, 2013 There isn't a built in function to do precisely that, but we added the push() and pop() functions on variables to make it easy to implement yourself. Basically create two sequences, setPage() and popPage(). SetPage() looks like this: function setPage(string newPage) global string pageStack // declare just in case pageStack.push(page.strCurrentPage) page.strCurrentPage = newPage then popPage() looks like this: page.strCurrentPage = pageStack.pop() That's it. Now whenever you want to change the page, call setPage(), and whenever you want to go back, call popPage(). Link to comment Share on other sites More sharing options...
raining010 Posted October 6, 2013 Author Share Posted October 6, 2013 Thank you very much Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.