Need example of a EditDataFormTemplateSpec for Data Form Extension

I am trying to extend the Benefit Catalog Add and Edit with an additional tab. I am able to get the Add to work but when I create the Edit and add the similar code for the DataFormExtension, the new tab is not displayed. The difference is the DataFormInstaceID is for the Edit Benefit Catalog.

<c:DataFormExtension DataFormInstanceID="096cb416-35e2-4067-866a-b321676a1711" RenderStyle="Tab" TabCaption="Critieria"/>

Comments

  • I am facing the exact same issue. Does anyone have an idea why the Edit form is not rendering the extended tab just like it does for Add form?

  • I'd make sure that on the edit form extension that @DATALOADED is getting set to 1 in the load procedure. The extension form won't load if it doesn't think it returned any data. You'll run into this if you have a table extension which might not have data yet for the record your extending.

  • Awesome! You saved the day Ben! You ROCK. It worked now.

  • As you answered quickly, I can't resist asking another question. What can I do to add 2 tabs as an extension? Are multiple extensions can be done? (will it render both? ) or do we need to extend the extension? (for example, I need to extend the Email add/edit forms and add 2 tab: Validation and Attribute) How can I do that? Any idea suggestion is appreciated.

  • I've never done multiple tabs via extensions but you can definitely have multiple extensions against a data form. I'd imagine if you have them adding tabs, you'll end up with a tab for each extension.

  • Ok thanks again for the quick response, Ben. We decided to create a separate page instead of a second tab.

    Can I bother you again with more issues with Extension? Now it shows up in the Extended tab for new records, but when I enter the data in the fields in the extended tab and save, it does not render the tab the next time I open the edit form. I am lost why it disappeared while I can see the data in the extension table. Do you have any tricks that I should look into? I have DATALOADED set to 1 in load procedure.

  • Double check that your select statement is returning the data in the LoadImplementation.

    Check that @DATALOADED is always set to 1 in the return which will allow the extension tab to be show even when there is no data returned.

    I added set @DATALOADED = 1 right before the return.

  • Thanks, Kathy, Yes, I added that and it started showing up initially but once I entered the data in extended fields it disappeared again. :(. Am I missing anything else?