TableIODelete Error
 

TableIODelete Error

6 posts, 1 answered
  1. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    26 May 2020
    Link to this post
    I am seeing this error in my log file when I delete a record from using the toolbar. The record is deleted just fine but I happened to notice this today. It appears it is the only SCL form that does this. Any ideas?


    [20/05/26@12:54:15.260-0400] P-010236 T-004056 1 4GL ORS_ERR        An Progress.Lang.SysError has occurred:
    [20/05/26@12:54:15.260-0400] P-010236 T-004056 1 4GL ORS_ERR        Could not locate method 'TableIODelete' with matching signature in class 'Osprey.Host.LabelHdr.LabelHdrMaint'. (14457)
    [20/05/26@12:54:15.260-0400] P-010236 T-004056 1 4GL ORS_ERR        LabelHdrToolbar_ToolClick Osprey.Host.LabelHdr.LabelHdrMaint at line 2308  (C:\ProgressWrk\OspreyVer117102\OspreyHost\Osprey\Host\LabelHdr\LabelHdrMaint.r)
    [20/05/26@12:54:15.260-0400] P-010236 T-004056 1 4GL ORS_ERR        OnToolClick Consultingwerk.SmartComponents.Implementation.SmartToolbarController at line 2015  (C:\ProgressWrk\OspreyVer117102\SmartComponentLibrary\Consultingwerk\SmartComponents\Implementation\SmartToolbarController.r)
    [20/05/26@12:54:15.260-0400] P-010236 T-004056 1 4GL ORS_ERR        OnToolClick Osprey.CustomClasses.SmartComponents.OspreyToolbarController at line 496  (C:\ProgressWrk\OspreyVer117102\OspreyFramework\Osprey\CustomClasses\SmartComponents\OspreyToolbarController.r)
    [20/05/26@12:54:15.260-0400] P-010236 T-004056 1 4GL ORS_ERR        SetupApp.p at line 211  (C:\ProgressWrk\OspreyVer117102\OspreyHost\client\host\SetupApp.r)
    [20/05/26@12:54:15.260-0400] P-010236 T-004056 1 4GL ORS_ERR        C:\ProgressWrk\OspreyVer117102\OspreyHost\client\host\OspreyHost.p at line 531  (C:\ProgressWrk\OspreyVer117102\OspreyHost\client\host\OspreyHost.r)
    [20/05/26@12:54:15.260-0400] P-010236 T-004056 1 4GL ORS_ERR        adecomm/_runcode.p at line 678  (adecomm/_runcode.r)
    [20/05/26@12:54:15.260-0400] P-010236 T-004056 1 4GL ORS_ERR        C:\Progress\OpenEdge\oeide\eclipse\plugins\com.openedge.pdt.debug.core_11.7.5.00\abl\_debuglauncher.p at line 100  (C:\Progress\OpenEdge\oeide\eclipse\plugins\com.openedge.pdt.debug.core_11.7.5.00\abl\_debuglauncher.p)
  2. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    26 May 2020 in reply to Roger Blanchard
    Link to this post
    I get the same error on a save as well but the record is still saved just fine.

    [20/05/26@13:06:58.791-0400] P-005480 T-003432 1 4GL ORS_ERR        An Progress.Lang.SysError has occurred:
    [20/05/26@13:06:58.791-0400] P-005480 T-003432 1 4GL ORS_ERR        Could not locate method 'TableIOSave' with matching signature in class 'Osprey.Host.LabelHdr.LabelHdrMaint'. (14457)
    [20/05/26@13:06:58.791-0400] P-005480 T-003432 1 4GL ORS_ERR        LabelHdrToolbar_ToolClick Osprey.Host.LabelHdr.LabelHdrMaint at line 2290  (C:\ProgressWrk\OspreyVer117102\OspreyHost\Osprey\Host\LabelHdr\LabelHdrMaint.r)
    [20/05/26@13:06:58.791-0400] P-005480 T-003432 1 4GL ORS_ERR        OnToolClick Consultingwerk.SmartComponents.Implementation.SmartToolbarController at line 2015  (C:\ProgressWrk\OspreyVer117102\SmartComponentLibrary\Consultingwerk\SmartComponents\Implementation\SmartToolbarController.r)
    [20/05/26@13:06:58.791-0400] P-005480 T-003432 1 4GL ORS_ERR        OnToolClick Osprey.CustomClasses.SmartComponents.OspreyToolbarController at line 496  (C:\ProgressWrk\OspreyVer117102\OspreyFramework\Osprey\CustomClasses\SmartComponents\OspreyToolbarController.r)
    [20/05/26@13:06:58.791-0400] P-005480 T-003432 1 4GL ORS_ERR        SetupApp.p at line 211  (C:\ProgressWrk\OspreyVer117102\OspreyHost\client\host\SetupApp.r)
    [20/05/26@13:06:58.791-0400] P-005480 T-003432 1 4GL ORS_ERR        C:\ProgressWrk\OspreyVer117102\OspreyHost\client\host\OspreyHost.p at line 531  (C:\ProgressWrk\OspreyVer117102\OspreyHost\client\host\OspreyHost.r)
    [20/05/26@13:06:58.791-0400] P-005480 T-003432 1 4GL ORS_ERR        adecomm/_runcode.p at line 678  (adecomm/_runcode.r)
    [20/05/26@13:06:58.791-0400] P-005480 T-003432 1 4GL ORS_ERR        C:\Progress\OpenEdge\oeide\eclipse\plugins\com.openedge.pdt.debug.core_11.7.5.00\abl\_debuglauncher.p at line 100  (C:\Progress\OpenEdge\oeide\eclipse\plugins\com.openedge.pdt.debug.core_11.7.5.00\abl\_debuglauncher.p)
  3. Mike Fechner
    Mike Fechner avatar
    319 posts
    Registered:
    14 Sep 2016
    Answered
    27 May 2020 in reply to Roger Blanchard
    Link to this post
    What kind of object is Osprey.Host.LabelHdr.LabelHdrMaint?

    And what's happening in the LabelHdrToolbar_ToolClick method?
  4. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    27 May 2020 in reply to Mike Fechner
    Link to this post
    Hey Mike,

    LabelHdrMain is a smartwindowform.

    I did find the issue and it is in the ToolClick method as you mentioned. I looked at this a dozen times yesterday and did not see the issue. The DYNAMIC-INVOKE will cause the issue as the ToolClick is called for all the click events (TableIO, etc). This is the first form I used the DYNAMIC-INVOKE so I did not have to keep adding logic to the CASE statement.

    Thanks for responding.


    CASE e:Tool:Key:
        
        WHEN "Excel" THEN
        DO:
         IF THIS-OBJECT:ultraTabControl1:ActiveTab:Key = "LabelHdr" THEN
          THIS-OBJECT:LabelHdrBrowser:ExportToExcel().
         ELSE IF THIS-OBJECT:ultraTabControl1:ActiveTab:Key = "LabelItem" THEN
          THIS-OBJECT:LabelItemBrowser:ExportToExcel().
        END.            
        
        WHEN "Refresh" THEN
        DO:
         IF THIS-OBJECT:ultraTabControl1:ActiveTab:Key = "LabelHdr" THEN
          THIS-OBJECT:LabelHdrAdapter:RetrieveData().
         ELSE IF THIS-OBJECT:ultraTabControl1:ActiveTab:Key = "LabelItem" THEN
          THIS-OBJECT:LabelItemAdapter:RetrieveData().
        END.
        
        OTHERWISE
        DO:
         DYNAMIC-INVOKE (THIS-OBJECT, e:Tool:Key).
        END.

        
       END CASE. 
  5. Daniel van Doorn
    Daniel van Doorn avatar
    17 posts
    Registered:
    18 Jun 2018
    27 May 2020 in reply to Roger Blanchard
    Link to this post
    As a general rule of thumb, never ever use OTHERWISE in the toolclick event method, the form does not own the ribbon. Even apart from the SmartComponent Library reserved keywords, I can place a button on the ribbon from the menu, which will appear in every form and the SmartComponent Library menu classes will handle that nicely, but the toolclick event method of your form will fire.   
  6. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    27 May 2020 in reply to Daniel van Doorn
    Link to this post
    Yep, thanks.
6 posts, 1 answered