RuntimeServiceGetViewListCount Method |
Namespace: Advantys.Workflow.Web.Services.Processes.Runtime
Optional Parameters.
These parameters can be used in the query string or as parameters of the SOAP headers (see examples for more information).
query (string) | Allows filtering on the type of query (ADVANCED_SEARCH_LIST, MANAGE_INSTANCE_LIST, ACTIVITY_REAL_TIME_REPORTS, ACTIVITY_REPORTS, ACTIVITY_BY_PROCESS_REPORTS, DATA_LIST). |
showPortal (boolean) | Allows filtering on views available on the user's portal. |
- Return the number of your views: http://yourserver:port/wfgen/ws/ProcessesRuntime.asmx/GetViewListCount<br /> - Return the number of views displayed on the portal: http://yourserver:port/wfgen/ws/ProcessesRuntime.asmx/GetViewListCount?showPortal=true
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { // Variables System.Net.HttpWebRequest httpWebReq = null; // Http web request object System.Net.HttpWebResponse httpWebResp = null; // Http web response object System.IO.StreamReader myReader = null; // To read response stream string url = string.Empty; // URL of the web method of the API string response = null; // string used to display response // Call the Web Service API method (replace yourserver and port with your hostname) url = "http://yourserver:port/wfgen/ws/ProcessesRuntime.asmx/GetViewListCount"; // Prepare the request httpWebReq = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(url); httpWebReq.Method = "GET"; httpWebReq.Credentials = System.Net.CredentialCache.DefaultCredentials; httpWebReq.ContentType = "text/xml; charset=utf-8"; // Gets the stream associated with the response httpWebResp = (System.Net.HttpWebResponse)httpWebReq.GetResponse(); myReader = new System.IO.StreamReader(httpWebResp.GetResponseStream()); response = myReader.ReadToEnd(); httpWebResp.Close(); // Display the XML in the console Console.Write(response); } } }
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Net; using System.Xml; using System.Xml.Xsl; using com.mycompany.www; <br /> public partial class _Default : System.Web.UI.Page { protected RuntimeService myRuntimeService = null; <br /> protected void Page_Load(object sender, EventArgs e) { ViewListHeader myViewListHeader = null; <br /> // Settings and parameters myViewListHeader = new ViewListHeader(); // Set NetworkCredentials with the credentials of the current connected user myRuntimeService = new RuntimeService(); myRuntimeService.ViewListHeaderValue = myViewListHeader; myRuntimeService.Credentials = CredentialCache.DefaultCredentials; <br /> // Call the Web Service API method TextBox1.Text = myRuntimeService.GetViewListCount().ToString(); } } <br />