08-25-2023 02:03 PM
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?
08-25-2023 06:18 PM
Intellisense should also provide the updated method signature as one of the choices.
08-28-2023 10:02 AM
Intellisense shows nothing at all for these. I mentioned that already.
08-28-2023 10:06 AM
If you can post your code maybe we can help you with it.
08-28-2023 10:26 AM
Dim subVarInfo As SubstVarSourceInfo = SubstitutionVariablesHelper.CreateSubstVarSourceInfo(dbConnFW, dbConnApp)
08-28-2023 10:29 AM - edited 08-28-2023 10:30 AM
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>
08-28-2023 10:49 AM
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.
08-28-2023 11:06 AM - edited 08-28-2023 11:07 AM
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.
09-26-2023 01:20 PM
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)
09-26-2023 01:30 PM - edited 09-26-2023 01:33 PM
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)