Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, June 28, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: passing parameters dynamcailly to a report and calling from SLX web.. Help Needed very urgent
mark
Posts: 70
 
passing parameters dynamcailly to a report and calling from SLX web.. Help Needed very urgentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 May 12 12:42 PM
fiogf49gjkf0d

Dear All,


 


 


I just need help regarding following scenario.


 


I am using SLX 7.5.4 Web. I need to call a report on web on a button click of account detail screen by dynamically passing account id as a parameter.


 


The Report is “Custom Account Detail Report” which aspects one parameter which is accountid


 


In Architect report settings are  main table is Account table and Masteruserid is accountid


 


Externally my report works fine when I manually pass any accountid as parameter.


 


I am using below JS function for calling report.


 


function ShowReportByName(ReportName) {
    if (GLOBAL_REPORTING_URL == "") {
        alert(MSGID_THE_REPORTING_SERVER_HAS_NOT_BEEN);
        return;
    }
    if (ReportName == null || ReportName == "") {
        alert(MSGID_THE_REPORTNAME_HAS_NOT_BEEN_DEFINED);
        return;
    }
    if (Sage.Services.hasService("ClientEntityContext")) {
        var contextSvc = Sage.Services.getService("ClientEntityContext");
        var context = contextSvc.getContext();
        var strTableName = context.EntityTableName.toUpperCase();
        var strEntityId = context.EntityId;
        if (strEntityId != "") {
            var strReportId = GetReportId(ReportName);
            if (strReportId != null && strReportId != "") {
                PopulateGlobals(strReportId, strTableName, strEntityId);
                var url = "ShowReport.aspx";
                window.open(url, "ShowReportViewer", "location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=no,toolbar=no,width=800,height=630");
            }
            else {
                alert(MSGID_THE_REPORT_COULD_NOT_BE_LOCATED_FOR)
            }
        }
        else {
            alert(MSGID_THE_CURRENT_ENTITY_IS_UNDEFINED);
        }
    }
    else {
        alert(MSGID_UNABLE_TO_SHOW_THE_DETAIL_REPORT);
    }
}


 


I am giving the report name as parameter at client click. But still it is asking for the parameter.


 


 


Could you please help me with this..


 


I have also tried below JS function which is in  reportutil.js of slxlclient portal  file but it is not working it is still asking for parameter to pass manually.


 


 


function ShowReport(ReportNameOrId, EntityTableName, EntityId) {
    if (GLOBAL_REPORTING_URL == "") {
        alert(MSGID_THE_REPORTING_SERVER_HAS_NOT_BEEN);
        return;
    }
    if (ReportNameOrId == null || ReportNameOrId == "") {
        alert(MSGID_THE_REPORTNAMEORID_IS_UNDEFINED_IN);
        return;
    }
    if (EntityTableName == null || EntityTableName == "") {
        alert(MSGID_THE_ENTITYTABLENAME_IS_UNDEFINED_IN);
        return;
    }
    if (EntityId == null || EntityId == "") {
        alert(MSGID_THE_ENTITYID_IS_UNDEFINED_IN);
        return;
    }   
    var strReportId = GetReportId(ReportNameOrId);
    if (strReportId != null && strReportId != "") {
        var strTableName = EntityTableName.toUpperCase();
        var strEntityId = EntityId;
        if (strEntityId != "") {
            PopulateGlobals(strReportId, strTableName, strEntityId);
            var url = "ShowReport.aspx";
            window.open(url, "ShowReportViewer", "location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=no,toolbar=no,width=800,height=630");
        }
        else {
            alert(MSGID_THE_CURRENT_ENTITY_IS_UNDEFINED);
        }
    }
    else {
        alert(MSGID_THE_REPORT_COULD_NOT_BE_LOCATED_FOR)
    }
}


 


Thanks in advance

[Reply][Quote]
Peter Ormon
Posts: 8
 
Re: passing parameters dynamcailly to a report and calling from SLX web.. Help Needed very urgentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 May 12 7:23 AM
fiogf49gjkf0d

Mark,


ShowReport should work for the scenario.  Try removing the parameter prompt from the report since you're already passing it in the function call.


 


Peter

[Reply][Quote]
Lori
Posts: 8
 
Re: passing parameters dynamcailly to a report and calling from SLX web.. Help Needed very urgentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 May 12 11:13 AM
fiogf49gjkf0d

Also see http://community.sagesaleslogix.com/t5/Developer-Web-Discussions/passing-parameters-dynamcailly-to-a-report-and-calling-from-SLX/m-p/142261/highlight/true#M1688

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/28/2025 12:31:44 AM