Forum Discussion
Manasa
2 years agoNew Contributor III
Hi Marta,
One approach would be to use a button and a dashboard extender rule to do this.
Create a button that calls the rule as shown below, passing the member's name and the text5 value (modify as needed).
and use the below code to update the property.
Dim selectionChangedTaskResult As New XFSelectionChangedTaskResult()
Dim memberName As String = args.NameValuePairs.XFGetValue("Name")
Dim propertyValue As String = args.NameValuePairs.XFGetValue("Value")
Dim member = BRApi.Finance.Members.GetMemberInfo(si, DimType.UD2.Id, memberName,True)
Dim UD2Properties As UDVMProperties=member.GetUDProperties()
UD2Properties.Text5.SetStoredValue(ScenarioType.Unknown.Id, DimConstants.Unknown, propertyValue)
selectionChangedTaskResult.WorkflowWasChangedByBusinessRule = True
selectionChangedTaskResult.IsOK = True
selectionChangedTaskResult.ShowMessageBox = True
selectionChangedTaskResult.Message = "Text 5 updated"
Return selectionChangedTaskResult
Thank you.
Related Content
- 3 years ago
- 11 months ago
- 12 months ago
- 11 months ago