Can someone tell me what I am doing wrong when creating these subpanels? They are not showing up..

By clicking on the link you can download the package I created.

For some reasons the subpanels don't show up and I can't see what I am doing wrong.Subpanel.zip

Parents
  • Hi

    Since our community friends have covered the most important stuff, I took a quick look at your packages.

    And I *think* you might be missing additional files in your relationships. 

    For a subpanel to work, it expects a "link" between two modules - not just a conceptual link, but a literal "link" field, which is defined in the vardefs.Link usually defines what is the relationship used and what is the module that you're linking to.

    That might be missing "link" that you're looking for. I don't see them in your Relationships.zip.

    Lets take a sample custom module that you have - Lev_Contracts. In order to create the link you have to define an extension, just like how you define the fields, something like:

    custom/Extension/modules/Accounts/Ext/Vardefs/account_lev_contracts_link.php

    <?php
    $dictionary["Account"]["fields"]["accounts_lev_contracts"] = array(
    'name' => 'accounts_lev_contracts',
    'type' => 'link',
    'relationship' => 'accounts_lev_contracts',
    'source' => 'non-db',
    'module' => 'Lev_Contracts',
    'bean_name' => 'Lev_Contracts',
    'vname' => 'LBL_ACCOUNTS_LEV_CONTRACTS',
    );

    Just ensure that the "relationship" name in the link is correct. If you then do a repair and rebuild, the subpanel should start working. Keep us posted if this worked for you.

Reply
  • Hi

    Since our community friends have covered the most important stuff, I took a quick look at your packages.

    And I *think* you might be missing additional files in your relationships. 

    For a subpanel to work, it expects a "link" between two modules - not just a conceptual link, but a literal "link" field, which is defined in the vardefs.Link usually defines what is the relationship used and what is the module that you're linking to.

    That might be missing "link" that you're looking for. I don't see them in your Relationships.zip.

    Lets take a sample custom module that you have - Lev_Contracts. In order to create the link you have to define an extension, just like how you define the fields, something like:

    custom/Extension/modules/Accounts/Ext/Vardefs/account_lev_contracts_link.php

    <?php
    $dictionary["Account"]["fields"]["accounts_lev_contracts"] = array(
    'name' => 'accounts_lev_contracts',
    'type' => 'link',
    'relationship' => 'accounts_lev_contracts',
    'source' => 'non-db',
    'module' => 'Lev_Contracts',
    'bean_name' => 'Lev_Contracts',
    'vname' => 'LBL_ACCOUNTS_LEV_CONTRACTS',
    );

    Just ensure that the "relationship" name in the link is correct. If you then do a repair and rebuild, the subpanel should start working. Keep us posted if this worked for you.

Children
No Data