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. Application definition was successfully imported, but Entity X has no identifiers defined in the SpecificFinder view.

Application definition was successfully imported, but Entity X has no identifiers defined in the SpecificFinder view.

Scheduled Pinned Locked Moved SharePoint
helpsharepointannouncement
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.
  • H Offline
    H Offline
    hdv212
    wrote on last edited by
    #1

    Hi i created a web service with two method that will be call via sharepoint bdc. my problem is that adf file was successfully imported but it has a warning :

    Application definition was successfully imported. 1 warning(s) found. Consider fixing the warnings and updating the application definition.
    Warning :
    Could not create profile page for Entity News. The error is: Profile page creation for the Entity News skipped. Entity News has no identifiers defined in the SpecificFinder view

    Here is my web service :

    [WebMethod]
    public List<News> GetNews()
    {
    List<News> list = new List<News>();
    using (MySqlConnection con = new MySqlConnection(ConfigurationManager.ConnectionStrings["MySqlConnectionString"].ConnectionString))
    {
    using (MySqlCommand cmd = con.CreateCommand())
    {
    cmd.CommandText = "select id,title,introText,created from jos_content order by created desc,id desc";

                if (con.State != System.Data.ConnectionState.Open)
                    con.Open();
    
                MySqlDataReader dr = cmd.ExecuteReader();
    
                while(dr.Read())
                {
                    list.Add(new News(dr.GetInt32(0), dr.GetString(1), dr.GetString(2), dr.GetString(3)));
                }
    
                dr.Close();
                if (con.State != System.Data.ConnectionState.Closed)
                    con.Close();
            }
        }
        return list;
    }
    
    \[WebMethod\]
    public List<News> GetNewsByID(int id)
    {
        List<News> list = new List<News>();
        using (MySqlConnection con = new MySqlConnection(ConfigurationManager.ConnectionStrings\["MySqlConnectionString"\].ConnectionString))
        {
            using (MySqlCommand cmd = con.CreateCommand())
            {
                cmd.CommandText = "select id,title,introText,created from jos\_content where id=@id order by created desc,id desc";
                cmd.Parameters.Add(new MySqlParameter("@id", id));
    
                if (con.State != System.Data.ConnectionState.Open)
                    con.Open();
    
                MySqlDataReader dr = cmd.ExecuteReader();
    
                while (dr.Read())
                {
                    list.Add(new News(dr.GetInt32(0), dr.GetString(1), dr.GetString(2), dr.GetString(3)));
                }
    
                dr.Close();
                if (con.State != System.Data.ConnectionState.Closed)
    
    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