Ejemplo n.º 1
0
    protected override void InstantiateCustomFields(IConciergeAPIService proxy)
    {
        // important - custom fields need to know who their context is
        cfsSectionFields.MemberSuiteObject = targetSection;

        var pageLayout = targetSection.GetAppropriatePageLayout();

        if (pageLayout == null || pageLayout.Metadata == null || pageLayout.Metadata.IsEmpty())
        {
            divOtherInformation.Visible = false;
            return;
        }

        // setup the metadata
        cfsSectionFields.Metadata   = targetSection.DescribeObject();
        cfsSectionFields.PageLayout = pageLayout.Metadata;

        cfsSectionFields.Render();
    }
Ejemplo n.º 2
0
    protected override void InstantiateCustomFields(IConciergeAPIService proxy)
    {
        cfsSectionFields.MemberSuiteObject = targetSection;

        var pageLayout = targetSection.GetAppropriatePageLayout();

        if (pageLayout == null || pageLayout.Metadata == null || pageLayout.Metadata.IsEmpty())
        {
            divOtherInformation.Visible = false;
            return;
        }

        // setup the metadata
        cfsSectionFields.Metadata   = targetSection.DescribeObject();
        cfsSectionFields.PageLayout = pageLayout.Metadata;

        cfsSectionFields.AddReferenceNamesToTargetObject(proxy);

        cfsSectionFields.Render();
    }