This explanation assumes knowledge of ASP.NET and provides a basic RedBack example. This page gets passed the Employee Id which it uses to read the First Name. Typically of course we would display many more Employee details, but you get the idea.
string EmpId = ""; string FirstName = ""; private void Page_Load(object sender, System.EventArgs e) { REDPAGESLib.RedObject obj = new REDPAGESLib.RedObject(); REDPAGESLib.RedProperty prop; try { // get id passed in query string from link on report EmpId = Request["id"]; // open SLRBO obj.Open2("rbexamples", "EXMOD:EmpReader", "", "", ""); // now do a read using id passed in from report prop = (REDPAGESLib.RedProperty)obj.Property("EmpId"); prop.Value = EmpId; obj.CallMethod("DoRead"); // get data prop = (REDPAGESLib.RedProperty)obj.Property("FirstName"); FirstName = prop.Value; } catch (Exception ex) { throw ex; } } See the rbexamplesnetcsharp directory to review the page's entire source code. |