Closed ma3yta closed 4 years ago
Hi, I will take a look and get back to you.
I'm just back from vacation and my brain isn't yet in full XBRL mode so this might take some time :( Meanwhile if you already haven't done so, you could maybe take a look at the sample code in SBRInstanceTests.cs and see if that gives some ideas?
@dgm9704 resolved. thanks
var entity = new Entity("http://www.ato.gov.au/abn", "18641935846");
instance.SetDimensionNamespace("h04", "http://sbr.gov.au/dims/RprtPyType.02.00.dims");
var segment = new Segment(instance);
segment.AddExplicitMember("ReportPartyTypeDimension", "h04:ReportingParty");
entity.Segment = segment;
Yes, I think the problem is that because my code is a bit stupid, the instance reference needs to be set before adding the member, otherwise the member doesn't have access to the namespaces, and they don't get set afterwards. This is not intuitive behaviour and it isn't mentioned anywhere. I apologize for this and will try to either fix this in the future, or at least make it obvious that things need to be done in a certain order (which is always bad imho) I am glad that you got it working though, nice job!
thank you for making this repo public.
My Code:
Actual Result:
<xbrldi:explicitMember dimension=":ReportPartyTypeDimension">ReportingParty</xbrldi:explicitMember>
Expected Result:
<xbrldi:explicitMember dimension="h04:ReportPartyTypeDimension">h04:ReportingParty</xbrldi:explicitMember>