fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Custom RDD

Custom RDD 06 May 2020 12:23 #14384

  • leon-ts's Avatar

  • leon-ts

  • Topic Author


  • Posts: 84
  • Hi,

    I am starting to transport the custom driver that we in our team developed to simulate the operation of RDD DBFCDX with MS SQL. This driver fully imitates the operation of DBFCDX, but with the database on a SQL Server. XSharp has a different approach to writing RDD than VO. I see that I need to rewrite my RDD to a class. The question is: from which class do I need to inherit my class?

    Best regards,
    Leonid

    Please Log in or Create an account to join the conversation.

    Custom RDD 06 May 2020 12:32 #14385

  • robert's Avatar

  • robert


  • Posts: 1676
  • Leonid,
    You don't really need to inherit from a class as long as your class implements XSharp.RDD.IRdd.
    But you may want to inherit from XSharp.RDD.Workarea.
    See github.com/X-Sharp/XSharpPublic/blob/fea...ore/RDD/Workarea.prg .
    This class has some properties and method implementations that you may want to use.

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    Custom RDD 06 May 2020 12:49 #14387

  • leon-ts's Avatar

  • leon-ts

  • Topic Author


  • Posts: 84
  • Robert, thanks for the tip!

    In RDD for VO, there are common functions that do not directly depend on DBFCDX, and we did not program their implementation, but left the default implementation from Host RDD. Therefore, in XSharp, I need to inherit my class from some class that already has a basic common implementation. I will look at XSharp.RDD.Workarea. Thanks!

    Best regards,
    Leonid

    Please Log in or Create an account to join the conversation.

    Custom RDD 18 May 2020 10:57 #14631

  • leon-ts's Avatar

  • leon-ts

  • Topic Author


  • Posts: 84
  • Hi to all,

    Is there any point in XSharp (as opposed to VO) passing an RddList list to UseArea instead of a single name, such as "DBFCDX"?

    In VO for DBFCDX, we passed a list of three elements based on the following hierarchy:
    CAVODBF
    _DBFCDX
    DBFCDX

    I looked at the Runtime sources in XSharpPublic and didn’t understand if this makes any sense now?

    Also, my colleague conducted an experiment in XSharp with passing only "DBFCDX" strings to UseArea instead of RddList (with three names, as in VO), and it worked great.

    Best regards,
    Leonid

    Please Log in or Create an account to join the conversation.

    Custom RDD 18 May 2020 16:10 #14636

  • robert's Avatar

  • robert


  • Posts: 1676
  • Leonid,

    The RDDList is no longer required (but supported).

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    Custom RDD 18 May 2020 16:25 #14637

  • leon-ts's Avatar

  • leon-ts

  • Topic Author


  • Posts: 84
  • Robert,

    Thanks for info!

    Best regards,
    Leonid

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1