Discuss formulas and business rules for your application.
Recently active
Hi all, I need to call this parameter to get the results in a member List of a BR:In this case, I would need to get a list with the values 6620 and 7610 in a Business rule of type spreadsheetPlease, could you help me with any function to call this parameter and get this values?Thank you so much in advance!
Dear community, I'm using some confirmation rules but the output is not what I'm expecting. I'm using a very simple check to see if assets and liabilities are balanced, however it's not running on the expected entities. I have set the Calculation definition for 3 entities which are the parents of the entities managed in the workflow profile. These parents are actually linked to a "parent input" profile type, but all of their children are related to this workflow profile. I have then a confirmation rule that is looking for the assets & liabilities : args.ConfirmationRuleArgs.DisplayValue = api.Data.GetDataCell( _ "A#00068:C#Local:F#F0999:I#Top:C#EUR:V#YTD:O#BeforeAdj - A#00084:C#Local:F#F0999:I#Top:C#EUR:V#YTD:O#BeforeAdj" _ ).Cellamount If System.Math.Abs(args.ConfirmationRuleArgs.DisplayValue) = 0 Then Return True Else Return False End If However when I run these confirmations as a user, I invariably get the output related to the POV entity
Hi All,I want to copy Data seed from one scenario to another scenario.(example current year actual to Prior year actual Scenario with different rate.can anyone help on this
Hello,Is there an event handler or dashboard extender rule that could be used to stop a user from completing a workspace if certain steps are not completed first? I have a workspace that needs to be completed, but only after the import, journals and certain forms are completed first. We don't want to lock the workspace, rather when they go click the "Complete Workspace" button it gives an error message that they need to finish the other steps first. Thank you!
We are still in the development stage of our OneStream implementation. We are currently running 7.4. When v8.0 came out, I started doing some research on .NET6 (and 7). It appears that Microsoft is more focused on CSharp than they are on Visual Basic. I believe, eventually, Visual Basic will be deprecated. With this in mind, and since we are still in development, I was thinking about converting our VB business rules to CSharp and using that language going forward.I would like the feedback of the OneStream Community before I take this project on. Thank you.
Hi everyone! I have two entity hierarchies, one in currency EUR, and one in USD. I need to create a cube view to retrieve the FX rates based on the parent’s currency. I’ve created an account, for example ClosingRate, as a DynamicCalc. I am using this formula to retrieve the rate: api.FxRates.GetCalculatedFxRate(rateType, cubeId, timeId, sourceCurrId, destCurrId) For the destination currency, it’s straightforward: Dim destCurrId As Integer = api.Pov.Cons.MemberPk.MemberId But I am unsure how to set the source currency as variable, I usually either set it to EUR, or USD. Dim sourceCurrId As Integer = Currency.EUR.Id Is there a way to get a parent’s currency? Or, I had another idea. To create a Text1 property at the level of each entity base member, to specify the Parent’s currency. I can retrieve it in the script as a string, but after that I don’t know how to get the Id. Appreciate your help! Thank you!
hi,Two account A and B needs to be subtracted in the source applicaiton and assigned to the third account on destination application in the transformation rule for App2App copy process . Below is my Composite but its throwing error for one-one transformaton mapping. TR Composite Rule:Validaiton error:
Hi guyswe frequently work with data buffer (or sometimes even with setcell) and there's a problem for which I coudn't find a solution. E.g. we have an allocation setting the values to certain intersections in the target data buffer. If among all cells to write some of them are invalid intersection (not within the constraints of the account for one or more Flow/Ud element), there's no error and they are simply not written. From here: is there a function to test an intersection and check whether it's valid or not? Is there a function to do that for the whole databuffer without loops and get the list of invalid records?Even worse, sometimes the target members don't exist and we just get an error. But I need to log the data buffer and investigate each single row to identify where the problem is. Is there a function or a best practice to get a log with the rows in error in case the target members don't exist?We found this function(s) api.Account.IsFlowICOrUDMemberWithinConstraintM
I am debugging some business rules. I would like to add a Console.WriteLine, but I am not sure where that gets written to. I would like to avoid clogging up "Error Logs" and a simple MsgBox is not enough. Any suggestions on where to look? Thank you.
Hoping someone in the community might have a solution for this and is willing to share a snippet of code that will enable us to properly 'clear' any data (including zero) from a specific intersection so that we can delete a metadata member.The DM step "Clear Data" is simply too all-encompassing to use in this case and we need to be more surgical in our approach.Thanks in advance for any assistance.
I have application which has 47 entities and users who have Entity wise rights to upload TB/Reclass and Cube views. So far Admin is downloading TB manually (using view source document) by going through Entity. Now I want to download TB and Reclass files through some business rules (if possible to be schedule to run once in Month) or some procedure for all entities using user who has administrative privilege. Thanks all in advance for your help. Regards, Yashwant
Hi,I need to create an account to calculate two values multiply together.I had set formulapass2 and set the formula as below:api.Data.ClearCalculatedData("A#COG762D:U1#None",True,True,True)api.data.calculate("A#COG762D:U1#None = A#COG931:U1#ALLDEPT * A#KPI142:U1#1520")It shows zeros while A#COG931:U1#ALLDEPT is 100 and A#KPI142:U1#1520 is 25.May I know why? Thank you.
Hi All, I want to seed the data from below source, please help me how to write a code for the below data copy. Target:- api.Data.Calculate("V#PERIODIC:O#Import:U3#" & UD3 & ":U8#UND_UD8:U4#" & CurrWk & "= Source:- RemoveZeros(S#Actual:U4#TOP:T#" & Priortime & " - S#Weekly_Processes:U4#Week_1:T#" & Priortime & " - S#Weekly_Processes:U4#Week_2:T#" & Priortime & " - S#Weekly_Processes:U4#Week_3:T#" & Priortime & " - S#Weekly_Processes:U4#Week_4:T#" & Priortime & ")","A#KPI_PPV_MONTHLY,A#KPI_TOT_PURCH_DPO",,,,,,,,,,,"U8#Top",,,True)
Hi all,I'm currently developing a dashboard for a client and I need to assign a literal value to a dashboard parameter from the BR code. I'll try to explain the issue better:I created the following parameter "test" within a dashboard group: within the BR, I entered the following: In this case, I'm trying to assign the text "SampleText" to the parameter "test".I then created a combo box, I assigned the parameter "test" as a bound parameter, and placed the combo box in the dashboard: My goal is that, once triggered the BR, I will be able to see "SampleText" in the dashboard. Once the BR is triggered, though, no value is assigned to the parameter, and the combo box remains empty. What am I doing wrong?
I am trying to get the Text1 field value using a Business Rule and put this value in a cube view that is being used as Form. Does anyone have done this before? Is it possible to get the Text1 value from the Workflow Profile using BRApi? Thanks for the help.
Hi - Is there an BRAPI to get the current form name from WF Profile ? I was able to get the list of Forms using the below code but I looking for when a user select the form it should return. Let me know if there any BRAPI functions Thanks Dim objBRApiForms As XFFormsForWorkflow = BRApi.Forms.Metadata.GetForms(si,si.WorkflowClusterPk) 'Get the List of Required Forms Dim listfrm As List (Of XFFormSummaryInfo) = objBRApiForms.OptionalForms
Hello Team,I am trying to extract Dashboard specific items using the ExtractDashboardsXml.I can only make it work when I use the Options ExtractAllItems = True.I am running OS 7.4.2I can not find any information on this formula. I would like to have an example on how we should the extractItems. Can you please provide an example? Especially on what is expected in the extractItems. ExtractDashboardsXml(_ ByVal si As SessionInfo, _ ByVal isSystemLevel As Boolean, _ ByVal options As XmlExtractOptions, _ ByVal extractItems As Dictionary(Of XmlExtractItemPk, Boolean) _ ) Thanks!
Is there a setting on the component or even a business rule that allows you to uncheck/unselect/reset a combo box to its original state? I would like it to reset and check the top member or a default member. I don't want all parameters on my dashboard reset just a specific combo box with the click of a button.
Is it possible to pass a bound/delimited list parameter or an XFBR through a dynamic calc? I know you can pass a literal parameter through the calc but was wondering if anyone has passed through another kind of parameter?
Good afternoonI'm writing an extender rule to move some files within the application database file system and am using the following line of codeDim xffProcessData As New XFFile(xfiTargetDataInfo, String.Empty, xfeSource.XFFile.ContentFileBytes)I've highlighted the parameter that I am querying - if I hover over XFFile it says it is "xmldata As String". The process works fine in the example given, but I am curious what could be used in that xmldata parameter - what is it?Thank you!Craig
Hi,I have created a dashboard extender business rule that picks some CSV files from a server, save them in the File Share, extract some info from the file, then delete them.The issue I am having is to find the right folder to use to import and then delete the files.I initially used the Administrators folder in the File Share/Applications/Groups folder, but that folder is not visible to the not in the Administrators group, so the rule works fine for me but not for other users.Then I have tried using the Incoming folder, which let me import the files, but does not let me delete the files.Each folder in the File Share seems to have a different set of security properties, but that is not shown in the File Explorer. What is the purpose of each of the folders in the File Share (is each of them supposed to be used for a specific task?) and which one is better to use for my scope?Thank you
I am trying to get a stored value in Text1 from an Entity relationship:This is the code that at least does not give me an error when it executes but it does not return the Text1 value.Dim myScenarioID As Integer = brapi.Finance.Members.GetMemberId(si, DimType.Scenario.Id, "Actual")Dim myScenarioType As ScenarioType = BRApi.Finance.Scenario.GetScenarioType(si, myScenarioID)Dim myTimeID As Integer = BRApi.Finance.Time.GetIdFromName(si, "2021M6")Dim myEntityID As Integer = BRApi.Finance.Members.GetMemberId(si, DimType.Entity.Id, POVEntity)Dim myParentID As Integer = BRApi.Finance.Members.GetMemberId(si, DimType.Entity.Id, POVParent)' Get relationship Dim relationship As Relationship = BRApi.Finance.members.ReadRelationshipNoCache(si, DimType.Entity.Id, myEntityID, myParentID)' Get the propertiesDim memProperties As New VaryingMemberProperties( DimType.Entity.Id, myEntityID, myParentID )' Get the stored valueDim Text1Value As String = memProperties.GetEntityRelationshipProperties().Text1.G
Hi Community, Do we have a method for adding Finance Business Rule for Cube view Report.Any solution to this would be very helpful and appreciated.Thank you.
Hello,Im wondering if there is a way to hardcode a fieldtoken value when loading data from a csv. For example, I am using the below code:Dim fieldTokens As New List(Of String)fieldTokens.Add("xfText#:[Account]")fieldTokens.Add("xfText#:[Entity]")fieldTokens.Add("xfText#:[Amount]")fieldTokens.Add("xfText#:[EmpID]") '<-- Want to hardcode this to '99999'BRApi.Utilities.LoadCustomTableUsingDelimitedFile(si, .......)But I want to hardcode the results of EmpID to value '99999' before I execute the 'LoadCustomTableUsingDelimitedFile' command. Any help on this would be much appreciated!
Hi, Is it possible to pop up a message to all the active users of an application through a business rule? When the data load starts, we want to pop up a message that the process as started. Ragav.
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.