Mike Cooper
16-Dec-2010, 06:28 AM
I have a pretty small application and thought that it would be good to use the CodeJock menus for it.
So i created the menus and all works fine. Except that I noticed 1 of the views that I openfrom the menu will only open once and then if it is closed cannot be reopened. At first I thought it was the view, but it is so simple, there is very little code in there at all.
And to further prove the point, if I move the view to any other "position" in the CodeJock menu, it operates fine AND if I open any other view in the 2nd slot on this menu, it will then only open once.
Here is the code... The failing Codejock menu item is the second one "Employee YTD Report"
Object oReportsMenuItem is a cCJMenuItem
Set psCaption to "Reports"
Set psTooltip to "Print Reports."
Set peControlType to xtpControlPopup
//Set pbEnabled to False
Object oPayrollDetailRptMenuItem is a cCJMenuItem
Set psCaption to "Payroll Detail"
Set psTooltip to "Print Payroll Detail"
Procedure OnExecute
Send activate_oPayrollDetail to (Client_Area(Self))
End_Procedure
End_Object
//THIS IS THE ONE THAT ONLY OPENS ONCE.
Object oEmployeeYTDRptMenuItem is a cCJMenuItem
Set psCaption to "Employee YTD"
Set psTooltip to "Employee Year To Date report"
Procedure OnExecute
Send activate_oEMPYTD to (Client_Area(Self))
End_Procedure // OnClick
End_Object
Object oROERptMenuItem is a cCJMenuItem
Set psCaption to "Record of Employment"
Set psTooltip to "Generate/Print an R.O.E."
Procedure OnExecute
Send activate_oIssueROE to (Client_Area(Self))
End_Procedure // OnClick
End_Object
Object oT4RptMenuItem is a cCJMenuItem
Set psCaption to "T4s"
Set psTooltip to "Generate/Print T4/T4 Summary"
Procedure OnExecute
Send Activate_oPrintT4 to (Client_Area(Self))
End_Procedure // OnClick
End_Object
Object oMaxContribsRptMenuItem is a cCJMenuItem
Set psCaption to "CPP/EI Maximum Contributions"
Set psTooltip to "Prints a listing of CPP/EI Contributions by Employee"
Procedure OnExecute
Send Activate_oMaxContributionsRpt to (Client_Area(Self))
End_Procedure // OnClick
End_Object
Object oEmployeeDefTimecardRptMenuItem is a cCJMenuItem
Set psCaption to "Employee Default Timecards"
Set psTooltip to "Prints a listing Employee Default Timecards"
Procedure OnExecute
Send Activate_oEmpDefcardListing to (Client_Area(Self))
End_Procedure // OnClick
End_Object
Object oPayItemRptMenuItem is a cCJMenuItem
Set psCaption to "Pay Item Code Listing"
Set psTooltip to "Prints a listing of Paycard Item Codes"
Procedure OnExecute
Send Activate_oEmpDefcardListing to (Client_Area(Self))
End_Procedure // OnClick
End_Object
End_Object
Every other item and menu item in the program functions fine except for the 2nd choice on this particular menu. Whatever view I open will only open once.
When I debug it, it seems to fire the Activate_.... only once, and then never again.
It has spooked me enough to consider avoiding the CodeJock stuff altogether. Has anybody seen this before?
Mike
So i created the menus and all works fine. Except that I noticed 1 of the views that I openfrom the menu will only open once and then if it is closed cannot be reopened. At first I thought it was the view, but it is so simple, there is very little code in there at all.
And to further prove the point, if I move the view to any other "position" in the CodeJock menu, it operates fine AND if I open any other view in the 2nd slot on this menu, it will then only open once.
Here is the code... The failing Codejock menu item is the second one "Employee YTD Report"
Object oReportsMenuItem is a cCJMenuItem
Set psCaption to "Reports"
Set psTooltip to "Print Reports."
Set peControlType to xtpControlPopup
//Set pbEnabled to False
Object oPayrollDetailRptMenuItem is a cCJMenuItem
Set psCaption to "Payroll Detail"
Set psTooltip to "Print Payroll Detail"
Procedure OnExecute
Send activate_oPayrollDetail to (Client_Area(Self))
End_Procedure
End_Object
//THIS IS THE ONE THAT ONLY OPENS ONCE.
Object oEmployeeYTDRptMenuItem is a cCJMenuItem
Set psCaption to "Employee YTD"
Set psTooltip to "Employee Year To Date report"
Procedure OnExecute
Send activate_oEMPYTD to (Client_Area(Self))
End_Procedure // OnClick
End_Object
Object oROERptMenuItem is a cCJMenuItem
Set psCaption to "Record of Employment"
Set psTooltip to "Generate/Print an R.O.E."
Procedure OnExecute
Send activate_oIssueROE to (Client_Area(Self))
End_Procedure // OnClick
End_Object
Object oT4RptMenuItem is a cCJMenuItem
Set psCaption to "T4s"
Set psTooltip to "Generate/Print T4/T4 Summary"
Procedure OnExecute
Send Activate_oPrintT4 to (Client_Area(Self))
End_Procedure // OnClick
End_Object
Object oMaxContribsRptMenuItem is a cCJMenuItem
Set psCaption to "CPP/EI Maximum Contributions"
Set psTooltip to "Prints a listing of CPP/EI Contributions by Employee"
Procedure OnExecute
Send Activate_oMaxContributionsRpt to (Client_Area(Self))
End_Procedure // OnClick
End_Object
Object oEmployeeDefTimecardRptMenuItem is a cCJMenuItem
Set psCaption to "Employee Default Timecards"
Set psTooltip to "Prints a listing Employee Default Timecards"
Procedure OnExecute
Send Activate_oEmpDefcardListing to (Client_Area(Self))
End_Procedure // OnClick
End_Object
Object oPayItemRptMenuItem is a cCJMenuItem
Set psCaption to "Pay Item Code Listing"
Set psTooltip to "Prints a listing of Paycard Item Codes"
Procedure OnExecute
Send Activate_oEmpDefcardListing to (Client_Area(Self))
End_Procedure // OnClick
End_Object
End_Object
Every other item and menu item in the program functions fine except for the 2nd choice on this particular menu. Whatever view I open will only open once.
When I debug it, it seems to fire the Activate_.... only once, and then never again.
It has spooked me enough to consider avoiding the CodeJock stuff altogether. Has anybody seen this before?
Mike