Discuss formulas and business rules for your application.
Recently active
I am trying to call a database stored procedure from an extensibility rule. The stored procedure returns an OUTPUT parameter, but I'm unsure how to reference that OUTPUT parameter, using the DBParamInfo object and ParameterDirection setting. Can someone give guidance on the proper usage for OUTPUT. Stored-Procedure CREATE OR ALTER PROCEDURE [dbo].[TEST_OUTPUT_PARAM_PROC] ( @OUT_PARAM_VALUE VARCHAR(100) OUTPUT ) AS BEGIN --Do stuff that needs to be done here SELECT @OUT_PARAM_VALUE = 'Param from Procedure'; END GO Extensibility Rule 'definition DB Call To stored procedure Dim OutParamValue As String = "" Dim tsSQL_CallProcwithOutputParamter As String = "DECLARE RC INT EXECUTE RC = TEST_OUTPUT_PARAM_PROC @OUT_PARAM_VALUE OUTPUT" Dim parameters As New List(Of DbParamInfo) parameters.Add(New DbParamInfo("@OUT_PARAM_VALUE", OutParamValue,ParameterDirection.Output)) 'paramDirection: Using dbC
Hello OneStream Experts: I created an account called MyAcct to store calculation. I run the business rule in Data Management step and put Net Income to MyAcct. api.Data.Calculate("A#MyAcct = A#NETINC") After I run the business rule, the Calc Status in View dimension show CA for both NETINC and MyAcct. However, after I run right click the data cell to run consolidation or Calculation, the value in MyAcct got lost, the calc Status for NETINC became OK. I wonder why my calculated account lost the data value after I run consolidation. Thank you advance for any answers.
Hello OneStream experts: I created and account=MyAccount and put member formula. api.Data.Calculate("A#MyAccount = A#NETINC") I set AccountType=Dynamic Calc Formula Type=Formula Pass 1 I am able to compile the syntax and run the calculation successfully. But MyAccount account member showing no data from my quick view excel sheet. My NETINC account has data. I wonder why the calculation is not working. Thank you for any feedbacks.
Hello - Does anyone used the AWS SDK (Dot Net) to download the file to the OS batch harvest folder? using SIC if so, could you please provide high level steps? Any Help would be appreciated.
Hi, I am trying to create an account member formula where I have Account A divided by Account B, but the scenario in the denominator should be decided based on Text3 in the POV Scenario. E.g. A#10000:S#Actual / A#20000:"& SourceScenario &" SourceScenario = IF Pov.Time + 12 > Scenario Text 3, ThenSourceScenario = Forecast, ElseSourceScenario = Actual This is how far Ive come but it is not working yet: 'Use FC as scenario if POV time is more than 12 months more than last seeded actual month in FC.If api.Pov.Scenario.Text(3) > api.Time.AddTimePeriods(12, True) ThenDenominatorScenario = ":S#FC_WIP"ElseDenominatorScenario = ":S#ActualL4LAtRealRate"End If
Hi, I am using the LoadCustomTableUsingExcel function to load an Excel file to an application table. The function seems to be working fine in most cases. However, I am having issue with tables having unique constraints. The table has Payroll, PeopleGroup and Amount columns. The unique constraint was added because users can also insert into the table using an SQL editor component, so we want to avoid them do be able to insert duplicated rows. When trying to load a row which already exist in the table using the LoadCustomTableUsingExcel function I get the following error (example): “Column ‘Payroll, PeopleGroup' is constrained to be unique. Value 'Payroll_AE, PplGroup001' is already present.” This issue only appears when loading in Merge. Replace works fine. Normally (with table not having a unique constraint) it is not an issue loading rows that are already in the application table because the Merge tag in the Excel file make so that only new rows are added to the table while rows
I am trying to get the Journal Post Group from Workflow Profile Properties Using JournalsEventHandler Business rule. Does anyone have done this before? Is it possible to get the Journal Post Group from the Workflow Profile?
I am trying to revamp the data integration between OneStream and Oracle Financial Cloud. The implementation partner used HttpWebRequest throughout the integration business rules but under platform 8.2 this functionality is now obsolete. Is there a working sample from OneStream on how to employ HttpClient with Oracle?
Hello ... Under platform 8.2, we get warnings in business rules that reference function QueueDataMgmtSequence. Does anyone know what function should be utilized instead? 1) Warning at line 114: 'Public Overloads Function QueueDataMgmtSequence(si As SessionInfo, sequenceName As String, customSubstVars As Dictionary(Of String, String)) As TaskActivityItem' 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.'.
I am looking for a sample code for SqlTableEditorSaveData function to restrict saving No value from my SQLtable editor drop down. I have Yes, No and Yes_optional in my drop down but I don't want user to save No option as yes and no are based on some value criteria but they can select Yes_Optional.
Hello Experts, I am looking to write a Dashboard Extender rule by which I can fetch the list of all the dashboards under a Dashboard Group and set the value as a delimited list to a Parameter. Is it possible ? The idea is to dynamically populate a list with new Dashboards as they are added. Please suggest other workarounds if the above is not feasible. Many Thanks
Hello Everyone,We have been using ExecuteFileHarvestBatch to automate our Data Loads. However I could not make it work for Direct Load profiles.Is anyone aware if we have api support to automate Direct Loads?
OneStream is the best EPM app for consolidation and everything planning - it is going to kill Hyperion / Essbase !! Does anyone have a sample business rule BR for sorting rows in a column based on values in a column. e.g. in screen shot, I want to sort by ascending order of values (NR) in column B in Cubeview? I probably have a written something similar long time ago, but would like to see if someone else wrote a better BR.
Unposting
Hello everyone,I am trying to create a table in OS with the fx rates by calling an APIwhile calling the API, i can get the data needed but i have this error <Type 'SqlBulkCopy' is not defined.> that's doesn't allow me to copy the data in a table in OS.this is a part of the code, the lines in orange are the ones not working. 'create table ' #Region "Create Table Currencies_Mantu" Dim sSQL As String = $" IF OBJECT_ID('Table_rate_mantu') IS NOT NULL BEGIN DROP TABLE Table_rate_mantu END CREATE TABLE Table_rate_mantu ( fromCurrency varchar(255), exchangeRate numeric(18, 5), date varchar(255) ); " Dim strPeriod As String = "" Dim strCurrency As String = "" Dim strPivot As String = "" Dim strclo As Double = 0 Dim vavg As Double = 0 For Each row As DataRow In dt.Rows strCurrency = row("fromCurrency") ' strclo = row("Value1") vavg = row("exchangeRate") strPeriod = row("Date")
hi Experts, i've a member formula (stored calc) to calculate %. My scenario type is periodic. i'm calculating % for various P&L accounts. M1,M2 and M3 %s is correct but for quarter, system is adding M1%, m2% and m3% which is not right. i want to write specific logic for qtr..for example: take quarterly expense and divide by revenue to calculate Qtrly %. is there a way i can override Qtr%? i may use dynamic calc to override V#QTD in report. but just wanted to know if there is more elegant way of doing this. pls guide
I'm trying to pull a Text field from a workflow in a transformation event handler rule but ran into an issue. I originally tried to use api.Workflow.GetWFText1() but that does not work in a transformation event handler rule. Is there a way to get it using a BRAPI
Is the any documentation available on all of the listed functions in OneStream for namespaces/libraries? other than API Overview.
Hi All, I want to ask about my issue on FDXExecuteCubeView. It cannot export annotation columns or columns with text even I have put the parameter includeCellTextCols to True. Here's the annotation column member filter : Fyi, the annotation appears in cube view but not in data table result from FDXExecuteCubeView. Thanks for your help.
Can anyone confirm if a GetDataBuffer function only pulls back real data? In other words it will not return dynamically calculated data (say from a dynamic account) or derived data? Trying to understand the limiitation of what data the function will and will not return. Thanks.
I call a data adapter and store results in DataTable in below snippets. How can I bulk load OneStream data in this DataTable to external database table? External database connection is ready and working in below method. Using dbConnApp As DbConnInfo = BRApi.Database.CreateExternalDbConnInfo(si, externalConnectinoName)brapi.Database.ExecuteSql(dbConnApp, sqlQuery, False) Using ds As DataSet = brapi.Dashboards.Process.GetAdoDataSetForAdapter(si, isSystemLevel, workspaceID, adapterName, resultsTableName, dctVars) If ds.Tables.Count > 0 Then ' If there are >0 tables in the results Using dt As DataTable = ds.Tables(0).Copy() 'Remove unsed columns dt.Columns.Remove("Cube") dt.Columns.Remove("TransformationRuleProfile") For Each Col As DataColumn In dt.Columns BRApi.ErrorLog.LogMessage(si, Col.ColumnName) Next Return dt End Using End If End Using
I would like to export data from existing OneStream dashboard and load it into external database table. I did some research and below is a draft business rule written in Visual Basic. What it does is to call data adapter and store the results. Next step is to load data from DataTable into external database table. Questions is, it gives a warning "Function GetAdoDataSetForAdapter is obsolete", what is the current supported function? Dim dctVars As New Dictionary(Of String, String) Using ds As DataSet = brapi.Dashboards.Process.GetAdoDataSetForAdapter(si, False, "AdapterName", "ResultsTable", dctVars) If ds.Tables.Count > 0 Then ' -- If there are >0 tables in the results Using dt As DataTable = ds.Tables(0).Copy() Return dt End Using End If End Using
Hi, For user maintenance purposes we'd like to extract information like user email address etc, using business rules. I've tried using BRApi.Security.Admin.* but that only seems to support extracting a few of the fields, like name, status and text fields. If anyone has any ideas or suggestions on how to accomplish this, it'd be greatly appreciated if you'd share. Have a good one, Johann
Hi guru's I have created some memberlist logic which should retrieve a list of entities from a datatable. So far so good, the code seems to work (logging returns my expected entities) but the return function doesn't do anything... Looks like I'm missing something but I do not know what...If someone has the magic solution I'll give my kudos 🙂 Thanks alot! Rgrds Jorrit Case Is = FinanceFunctionType.MemberList 'BR String: E#Root.CustomMemberList(BRName=Mars_memberlists, MemberListName=[Mars_CustomMemberList], Striplist=|!prm_StriplistName!|) If args.MemberListArgs.MemberListName.XFEqualsIgnoreCase("Mars_CustomMemberList") Then Dim sStriplist As String = args.MemberListArgs.NameValuePairs("Striplist") ' Build the header Dim listHeader As New MemberListHeader("Mars_CustomMemberList") ' Construct the SQL query Dim tempsql As New Text.StringBuilder tempsql.AppendLine("SELECT UN_ID") tempsql.AppendLine("FROM XFC_Mars_Striplists")
I am working with a Dashboard Extender BR and need to get the value of a cell. In another section of the code I am able to get the value of a cell in the V#Annotation but have not been able to figure out how to get the cell value of the V#Periodic. Any thoughts?
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.