Window in “Ore pune te detajuara” in Elif Program does not appear.

Home Forums Bugs Window in “Ore pune te detajuara” in Elif Program does not appear.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1210
    SaraAhmati
    Participant

    I was givenĀ  a task to create a new report for Detailed Employee Work Hours in Elif program. When I run the project, I click my report, no window appears.

    I rechecked my code and it results that I have use the function to create a new report but I have not called it anywhere. Below, I will provide the function used:

    private DXTabItem DetailedEmployeeWorkHours(ref DXTabItem itm, string elemName, string menu_label)
    {

    var filters = new DetailedEmployeeWorkHours();

    string tabId = GetReportTabID(elemName, filters);

    var repView = new ReportView(menu_label, “DetailedEmployee\\WorkHours\\DetailedEmployeeWorkHours.repx”, filters);

    if (filters != null)
    {
    repView.GenerateReport<Models.ReportModels.HR.DetailedEmployeeWorkHours>();
    }

    repView.GenerateButton.Click += (obj, ev) =>
    {
    if (repView.isReportGenerated && HelperFunctions.GenerateReportInNewTab())
    {

    var tabx = new DXTabItem();

    CreateDetailedEmployeeWorkHoursReport(ref tabx, elemName, menu_label, repView.Filters);

    _tabsDevDashboard.Items.Add(tabx);
    _tabsDevDashboard.SelectedItem = tabx;
    }
    else
    {

    repView.GenerateReport<Models.ReportModels.HR.DetailedEmployeeWorkHours>();
    }
    return;
    };

    itm = UIHelper.createDevTab(“Ore te detajuara pune”, tabId, repView, this);

    return itm;
    }

     

    You should call the function to use it as well so the window can appear when you click your new report created.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.