Forum Discussion

photon's avatar
photon
Contributor
2 years ago

warnings of deprecated functions

I'm making updates to some BRs that predate any of the current employees and when validating the rules I get warnings that I'd like to resolve. Specifically, these:

 

'Public Shared Overloads Function CreateSubstVarSourceInfo(dbConnFW As DbConnInfo, dbConnAppOrFW As DbConnInfo) As SubstVarSourceInfo' is obsolete: 'This is a temporary function used by Marketplace Solutions for backwards compatibility with old XF versions. Please change your code to use supported functionality.'.

'Public Overloads Function GetBusinessRules(si As SessionInfo, brType As BusinessRuleType) As List(Of BusinessRuleSummaryInfo)' is obsolete: 'This is a temporary function used by Marketplace Solutions for backwards compatibility with old XF versions. Please change your code to use supported functionality.'.

Public Overloads Sub DeleteBusinessRule(si As SessionInfo, brType As BusinessRuleType, brName As String)' is obsolete: 'This is a temporary function used by Marketplace Solutions for backwards compatibility with old XF versions. Please change your code to use supported functionality.'.

 

 Intellisense doesn't show any hints for these. I've searched support. I've searched the docs. I've searched these forums. I get zero hits. So, I'm at a loss for what to do with these. Is there a another source of documentation I'm unaware of?

  • RobbSalzmann's avatar
    RobbSalzmann
    Valued Contributor II

    isSystemLevel is whether the List of BusinessRuleSummaryInfo's is from the current application or the BRs under the System tab.

     

    Public Overloads Function GetBusinessRules(si As SessionInfo, isSystemLevel As Boolean, brType As BusinessRuleType) As List(Of BusinessRuleSummaryInfo)

     

     

     

  • RobbSalzmann's avatar
    RobbSalzmann
    Valued Contributor II

    Intellisense should also provide the updated method signature as one of the choices.

     

     

    • photon's avatar
      photon
      Contributor

      Intellisense shows nothing at all for these. I mentioned that already.

  • RobbSalzmann's avatar
    RobbSalzmann
    Valued Contributor II

    Ah!  One of those.  I've run into a few as well.  Its been a while.  Sometimes I see references to such "mystery" objects in vendor code and marketplace solution code.

  • AlanY's avatar
    AlanY
    New Contributor II

    Looks like a boolean parameter was added to the signature of those functions, but I'm not sure what the boolean is about

    e.g.

    Public Overloads Function GetBusinessRules(si As SessionInfo, ? As Boolean, brType As BusinessRuleType) As List(Of BusinessRuleSummaryInfo)

    • photon's avatar
      photon
      Contributor
      Dim subVarInfo As SubstVarSourceInfo = SubstitutionVariablesHelper.CreateSubstVarSourceInfo(dbConnFW, dbConnApp)
  • RobbSalzmann's avatar
    RobbSalzmann
    Valued Contributor II

    What version is this?  I have access to 7.3 and 7.4 and don't see a SubstitutionVariablesHelper object 

    In these versions, we create SubVar collections as Dictionary<String,String>

    • photon's avatar
      photon
      Contributor

      We're on 7.3.

      This, ScenarioDimHelper, and several other "Helpers" I've found over the years are like this. They apparently exist because they work. However, there's no documentation on what they do and no Intellisense to give any hints.