Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. Modifying BDCM files

Modifying BDCM files

Scheduled Pinned Locked Moved SharePoint
databasecsssharepointhelpquestion
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    al yero net
    wrote on last edited by
    #1

    Hello!! I created an external content type from a sql database using sharepoint designer 2013. My database has a table named UsedRooms and has Id, Place and Description columns. I just define Read Item and Read List methods. Then I created an external list using that content type and I have the information from my database. When I exported my bdcm file I found that my ReadList is just a query to sql. In this case: select [Id], [Place], [Description] from [UsedRooms] Order by [Id](more or less) I want to add another column on my external list to have the total of places used, { Count(Place)}, I though I can achieve that changing that query to: select [Id], [Place], [Description], Count(*) from [Customers] group by [Id],[Place], [Description] order by [Id], but I can't see nothing new on my list. I created one typedescriptor of type Int32 in my return descriptors named PlacesCount and changed my query to: select [Id], [Place], [Description], Count(*) as PlacesCount from [Customers] group by [Id],[Place], [Description] order by [Id], Now, the external list said error: "Unable to retriev data". I did the same thing for sharepoint 2007, Why is not working in 2013??:confused:

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups