GetTabInfo()
This code sample describes how to generate the names of the custom data type tabs (Table Values, Project, and Customer) and the URLs required to display the correct HTML pages when workflow participants work on their tasks.
Function Assoc GetTabInfo( \ Object prgCtx, \ Record request, \ Dynamic data, \ Integer paneIndex ) Assoc retVal //Set up the URL that is called when workflow participants click //the Table Values tab when working on tasks in their Task list. String myURL = $WebDSP.HTMLPkg.ArgsToURL( request ) String url = $WebWork.WFPkg.SetPaneIndexArg( myURL, \ paneIndex ) if ( !IsFeature( request, 'subpaneindex' ) ) url = $CustMod.CustModPkg.SetSubPaneIndexArg( url, 1 ) end //Return an Assoc that contains the name of the tab, the URL that //is called when a workflow participant clicks the Table Values //tab, and any online help information associated with the tab. retVal.Label = .GetDataTypeObj().fDataName retVal.URL = url retVal.HelpKey = .GetDataTypeObj().OSName retVal.Active = FALSE return( retVal ) end