DatasetModel Class Throwing Error
 
Forums / SmartComponent Library - Developer Forum / DatasetModel Class Throwing Error

DatasetModel Class Throwing Error

2 posts, 0 answered
  1. Roger Blanchard
    Roger Blanchard avatar
    413 posts
    Registered:
    29 Jun 2018
    02 Sep 2020
    Link to this post
    Does anyone have an idea why the code below would throw the error "Could not locate method "FetchDataByReference" with matching signature in class "Osprey.Pos.Customer.CustomerBusinessEntity". (14457)

    oCustomer = NEW Osprey.Pos.Customer.CustomerDatasetModel (). 
      
      
      oCustomer:Customer:Filter:Email:EQ("rblanchard66@comcast.net").
      oCustomer:Customer:Filter:Run().


    CallStack from ABL error object:
    --> FetchData Consultingwerk.OERA.ServiceInterface at line 843  (C:\ProgressWrk\OspreyVer117102\SmartComponentLibrary\Consultingwerk\OERA\ServiceInterface.r)
        PerformFetchDataRequest Consultingwerk.OERA.DatasetModelPerformer at line 827  (C:\ProgressWrk\OspreyVer117102\SmartComponentLibrary\Consultingwerk\OERA\DatasetModelPerformer.r)
        RetrieveData Consultingwerk.OERA.DatasetModelPerformer at line 1064  (C:\ProgressWrk\OspreyVer117102\SmartComponentLibrary\Consultingwerk\OERA\DatasetModelPerformer.r)
        Fill Consultingwerk.OERA.TableModel at line 1407  (C:\ProgressWrk\OspreyVer117102\SmartComponentLibrary\Consultingwerk\OERA\TableModel.r)
        Run Consultingwerk.OERA.ModelFilter.TableModelFilter at line 112  (C:\ProgressWrk\OspreyVer117102\SmartComponentLibrary\Consultingwerk\OERA\ModelFilter\TableModelFilter.r)
        C:\ProgressWrk\OspreyVer117102\OspreyPOSBackend\Osprey\Pos\Customer\TestDatasetModel.p at line 36  (C:\ProgressWrk\OspreyVer117102\OspreyPOSBackend\Osprey\Pos\Customer\TestDatasetModel.r)
        adecomm/_runcode.p at line 678  (adecomm/_runcode.r)
        C:\Progress\OpenEdge\oeide\eclipse\plugins\com.openedge.pdt.debug.core_11.7.7.00\abl\_debuglauncher.p at line 100  (C:\Progress\OpenEdge\oeide\eclipse\plugins\com.openedge.pdt.debug.core_11.7.7.00\abl\_debuglauncher.p)
  2. Roger Blanchard
    Roger Blanchard avatar
    413 posts
    Registered:
    29 Jun 2018
    03 Sep 2020 in reply to Roger Blanchard
    Link to this post
    I had to manually add the following METHOD in the BE. I have no idea why it was not present. I just rebuilt the BE yesterday. After adding this METHOD the DatasetModel class now works as it should.

    METHOD PUBLIC FINAL VOID FetchDataByReference (poFetchDataRequest AS Consultingwerk.OERA.IFetchDataRequest,
                                                       OUTPUT DATASET dsCustomer):


            THIS-OBJECT:FetchData (poFetchDataRequest, DATASET dsCustomer:HANDLE) .


        END METHOD.
2 posts, 0 answered