Embedded xfbrs within a xfbrs would be a nice, but in your case, it isn't needed, why don't you just combine the two function? You can call the inner function first to get the week and then you can call the second function with the information from the first? Both functions seam to be in the same business rule UFP_XFBRString).
I don't have your code, but you probably will find something like this in UFP_XFBRString:
Attention, this is a none working snippet
Public Function Main(ByVal si As SessionInfo, ByVal globals As BRGlobals, ByVal api As Object, ByVal args As DashboardStringFunctionArgs) As Object
Try
....
If args.FunctionName.XFEqualsIgnoreCase("GetPWeek") Then
Return GetPWeek(...)
End If
....
If args.FunctionName.XFEqualsIgnoreCase("NextWeeksInMonth") Then
Dim year As String = args.NameValuePairs("curYear")
Dim week As String = args.NameValuePairs("curWeek")
Return NextWeeksInMonth(..., year, week)
End If
...
Return Nothing
Catch ex As Exception
Throw ErrorHandler.LogWrite(si, New XFException(si, ex))
End Try
End Function
If this is the case, you can simple create a version like this:
Attention, this is a none working snippet
Public Function Main(ByVal si As SessionInfo, ByVal globals As BRGlobals, ByVal api As Object, ByVal args As DashboardStringFunctionArgs) As Object
Try
....
If args.FunctionName.XFEqualsIgnoreCase("GetPWeek") Then
Return GetPWeek(...)
End If
....
If args.FunctionName.XFEqualsIgnoreCase("NextWeeksInMonth") Then
Dim year As String = args.NameValuePairs("curYear")
Dim week As String = args.NameValuePairs("curWeek")
if week = "GetPWeek" then
week = GetPWeek(...)
end if
Return NextWeeksInMonth(..., year, week)
End If
...
Return Nothing
Catch ex As Exception
Throw ErrorHandler.LogWrite(si, New XFException(si, ex))
End Try
End Function
that should do the job if you call:
xfbr(UFP_XFBRString, NextWeeksInMonth, curYear=[|WfYear|], curWeek=GetPWeek)
I hope this gives you an idea how to solve the problem. Please only do it this way, when the BR is a custom business rule and nothing from the market place. When working with functions from MarketPlace solutions, we have other possibilities to solve similar problems.