none
External content type associations RRS feed

  • Question

  • Hi,

    I moved one table named 'Sectors' from sharepoint to SQL Server and created an external content type and external list to be able to access this table from sharepoint.

    The table, however, has a self-relation, each sector can be related to another sector.

    I'm able to create the association using sharepoint designer and the relationship works, I get the option to choose the related sector when adding or editing a sector.

    However, the information displayed about the related sector is only the Id of the sector. I couldn't find a way to display the Title field, which contains the name of the sector.

    Is there a solution that allows me to show the title of the related sector?

    Thank you in advance!

    • Edited by Dennes Friday, May 4, 2018 9:01 AM
    Friday, May 4, 2018 8:59 AM

All replies

  • Hey

    Do you mean to set up a lookup field?

    In the setting page, you can set gather info from title field but not ID.


    Justin Liu Office Servers and Services MVP, MCSE
    Senior Software Engineer
    Please Vote and Mark as Answer if it helps you.

    Friday, May 4, 2018 9:15 AM
  • Yes, something like a lookup field... on an external content type. Is there a settings page for the external content type? 

    I can't even see it on the list of content types.

    Cheers,


    Dennes [http://bufaloinfo.cloudapp.net] Inscreva-se em meu treinamento on-line de T-SQL - [http://bufaloinfo.cloudapp.net/Cursos/linguagemsql.aspx]

    Friday, May 4, 2018 9:22 AM
  • I doesn't have a external list currently.

    Can you try to add a lookup field in the external list?

    I am not sure whether columns can be edited or created in external list.


    Justin Liu Office Servers and Services MVP, MCSE
    Senior Software Engineer
    Please Vote and Mark as Answer if it helps you.


    Monday, May 7, 2018 3:03 AM
  • Hi,

    How about creating two external content types and add associations between them?

    The reference:

    https://docs.microsoft.com/en-us/sharepoint/dev/general-development/create-associations-in-sharepoint

    Best Regards,

    Dean Wang


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Wednesday, May 9, 2018 2:48 AM
    Moderator
  • Hi, Dean,

    That's what I did, almost worked.

    However, instead of bringing the title of the related item, it brings the id of the related item.

    Have I made something wrong with the association?

    Regards,

    <g class="gr_ gr_18 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="18" id="18">Dennes</g>

    • Edited by Dennes Wednesday, May 9, 2018 8:22 PM
    Wednesday, May 9, 2018 8:13 PM