Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
v3.4.6 install SRP_EDITOR_SERVICES
I've just installed SRP Editor v3.4.6 into OI10.2.3(b2), and tried compiling one of the Super Strings examples. It seems I'm missing the SRP_EDITOR_SERVICES program? It's being called from SRP_Editor_Compile_Services().
Cheers, M@
Cheers, M@
Comments
Mine worked fine for OI9 but when I installed it to an OI10 folder, the utilities dll was deleted but not replaced.
For me that means I don't get to test the super string because I fail upon opening the app with a different function call missing.
Where is the editor Version drawn from?
It looks like SYSOBJ/$SRP_EDITOR_SERVICES is missing from the SRP Editor RDK for OI10. It's there in the OI9 RDK.
I now have the same symptoms Chris just reported
The statusbar is the app's mdi, not the editor. The two may or may not be related as I updated both the editor and the controls before testing.
It may be a ribbon control thing.
Controls is now 4.2.6.8. It was on about 4.1.14
If so, then this would have been good to note straight away. Please confirm (especially you Chris) and then perhaps move the issue to the Ribbon control forum.
If you were on a old version of the Controls, maybe they predated the use of LayoutChildControl (v 4.2.2 I think)?
For OI 9.4.6, I had to add some code (as per Kevin's notes) to a localised version of the FW_MAIN_EVENTS Create (right before the frame is set to Visible) to use Kevin's 'new' LayoutChildControl method for the Ribbon Control.
That sorted out a LOT of my issues in this space regarding the statusbar.
There is a thread in the Ribbon Control forum that has some code samples.
I wasn't experiencing the issue at the time, so I just let it slide and thought it had been addressed.
I have no reference to the layoutchildcontrol method in the app, so I guess everyone let it slide. :D
Not for me. There must be specific circumstances..
@MattCrozier what do you get?
Compile Function Age_Invoice(Inv.Date, Age_Date, Type) ** to age the invoice according to invoice date and no of days/months Declare Function Unassigned If Unassigned(Type) Then Type = 'DEBTOR' If Unassigned(Age_Date) Then Age_Date = Date() Age.Period = '' If Type = "DEBTOR" then Gosub AgeDInvoice End Else Gosub AgeCInvoice End Return Age.Period ************ AgeDInvoice: ************ DEBTORS.AGING.PERIOD = XLATE('GROUP_MASTER',0,37,'X') IF DEBTORS.AGING.PERIOD = 'M' THEN REP.MTH = Field(Oconv(Age_Date,'D/E'),'/',2) INV.MTH = FIELD(OCONV(INV.DATE,'D/E'),'/',2) DAYS.OS = Age_Date - INV.DATE IF DAYS.OS > 91 THEN AGE.PERIOD = 4 END ELSE MTH.OS = REP.MTH - INV.MTH IF DAYS.OS < 0 THEN MTH.OS = 0 IF MTH.OS < 0 THEN MTH.OS += 12 BEGIN CASE CASE MTH.OS = 0 ; AGE.PERIOD = 1 Case MTH.OS = 1 ; AGE.PERIOD = 2 CASE MTH.OS = 2 ; AGE.PERIOD = 3 CASE MTH.OS > 2 ; AGE.PERIOD = 4 END CASE END END ELSE *process weekly aging AGE.PERIOD = INT((Age_Date-INV.DATE)/7)+1;*number of weeks IF AGE.PERIOD > 4 THEN AGE.PERIOD = 4 END IF AGE.PERIOD < 1 THEN AGE.PERIOD = 1 Return ************ AgeCInvoice: ************ REP.MTH = Field(Oconv(Age_Date,'D/E'),'/',2) INV.MTH = FIELD(OCONV(INV.DATE,'D/E'),'/',2) DAYS.OS = Age_Date - INV.DATE IF DAYS.OS > 91 THEN AGE.PERIOD = 4 END ELSE MTH.OS = REP.MTH - INV.MTH IF DAYS.OS < 0 THEN MTH.OS = 0 IF MTH.OS < 0 THEN MTH.OS += 12 BEGIN CASE CASE MTH.OS = 0 ; AGE.PERIOD = 1 Case MTH.OS = 1 ; AGE.PERIOD = 2 CASE MTH.OS = 2 ; AGE.PERIOD = 3 CASE MTH.OS > 2 ; AGE.PERIOD = 4 END CASE END Return
This is what I get:
What OI10 version?
SRP Editor 3.4.7.1
looks like this issue was back in 3.4.6 as well.
Correction, not ALL compiles give an error.
Do you have any clues as to what the reason might be?
Note line numbers are correct in the editor (the paste added a blank on line 1.
declare function Get_Property
VersionSystem = Get_Property("SYSTEM", "VERSION")
and see if you get a vnav compile error on VersionSystem.
Just in case this gives you a clue - I disabled the vnav checking in the options and I still get vnav warnings (reopened the editor)
If you include a #pragma output statement, does this show any difference in what's actually being compiled?
Created a clean install of 10.2.3 - no issue.
So, I now need to do a bit of detective work.
I had previously in this process updated a clean release 10.2.3 with beta 2 and using EXAMPLES compiled that code no errors. Then ran my dev copy of OI (not the app run) , then swithech back to the clean copy, compiled ok, then added those 2 lines of code and got the vnanv issue.
I then overwrote the clean upgraded copy with a full install of beta 2 now cant get the last 2 lines added vnav issue.
I will now try upgrading the clean with the upgrade.
then depending on results:
Re-upgrading my dev copy with the issue.