Tuesday, June 2, 2009

Override BDC default Action

Create a new Property element in the Properties element of the Entity.  Give it an attribute of DefaultAction and specify the name of the Action we defined earlier. 
Default

Specify your custom Actoin with Name="Default".

eg.        
      Action Position="1" IsOpenedInNewWindow="false" Url="{0}" ImageUrl="" Name="Default"
    

When you import the application definition, you will receive a warning like the following. 
"Could not create profile page for Entity MyEntity.  The error is: Default action exists for application ‘MyInstance’, entity ‘MyEntity’.  Profile page creation skipped.
This really isn’t an error.  It is just telling you that since you specified a default action, it did not automatically generate a profile page for the entity.

No comments: