10-13-2021 02:10 PM - edited 10-14-2021 07:49 AM
Among the many tools that ONECommunity has is the ability to post your code with some built in formatting.
When your writing a post if you select on the icon in yellow </>
A window will pop up that will allow you to post your code. You should use the HTML/XML
When posting code all code should be commented properly.
'Example Code
Dim strLine As String = args.Line
Dim sections As List(Of String) = Stringhelper.SplitString(strline, "-", vbNullString)
Dim stracct As String = sections(0)
Return stracct
10-14-2021 02:38 PM
Will you be able to add the ability to format code as VB.NET? The HTML/XML works ok, but it doesn't have the same color coding that exists in OneStream/VB.NET
'I am a comment
args.ConfirmationRuleArgs.DisplayValue = api.Data.GetDataCell("A#Headcount").cellAmount
If args.ConfirmationRuleArgs.DisplayValue > 0 Then
Return True
However, for OneStream code it would be ideal to have formatting that matches OneStream. So, something like this:
'I am a comment
args.ConfirmationRuleArgs.DisplayValue = api.Data.GetDataCell("A#Headcount").cellAmount
If args.ConfirmationRuleArgs.DisplayValue > 0 Then
Return True
10-15-2021 10:30 AM
We will discuss with Khoros to see what is possible. However coping and pasting the code from here into OneStream will color code it again.