request.element.isStatic = 0; dsFilterIDlist = 0; listBlogs = true; request.blogMgr = StructNew(); request.blogMgr.blogid = 0; //request.blogMgr.listblogs = true; if ( StructKeyExists(request.params,"list") ) { listBlogs = val(request.params.list); if ( listBlogs ) saveFilterSelections(blogid=0); } // Build the session.blogMgr if ( StructKeyExists(request.params,"blogID") ) { // if a list if IDs has been passed in via the URL go ahead a override any other criteria dsFilterIDlist = EncodeForHTML(request.params.blogID); // Save Fitler Values to Session scope if ( LEN(TRIM(dsFilterIDlist)) ) saveFilterSelections(blogid=dsFilterIDlist); } else { // Check filter session for the Page ID to use for filtering (or default to 0) dsFilterIDlist = readFilterBlogID(); } request.blogMgr.blogid = dsfilterIDlist; if ( Len(trim(request.blogMgr.blogid)) EQ 0 OR NOT application.ptBlog2.data.isCFUUID(inStr=request.blogMgr.blogid) ) { request.blogMgr.blogid = 0; listBlogs = 1; } You are editing the page. This will only show the datasheet element so filters can be updated.
#blogDashboardMenu()#
var retStr = ''; retStr = retStr & '
'; retStr = retStr & ''; retStr = retStr & 'List Blogs to Manage'; retStr = retStr & ''; retStr = retStr & '
'; WriteOutput(retStr);
var retData = StructNew(); lock timeout="60" name="blogMrgFilter" type="readonly" { if ( StructKeyExists(session,"blogMgr") AND StructKeyExists(session.blogMgr,request.page.id) ) retData = session.blogMgr[request.page.id]; } return retData; var retVal = 0; var filterData = readFilterSelections(); if ( StructKeyExists(filterData,"blogid") ) retVal = filterData.blogid; return retVal; lock timeout="60" name="blogMrgFilter" type="exclusive" { if ( !StructKeyExists(session,"blogMgr") ) session.blogMgr = StructNew(); if ( !StructKeyExists(session.blogMgr,request.page.id) ) session.blogMgr[request.page.id] = StructNew(); session.blogMgr[request.page.id].blogid = arguments.blogid; }