Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...ISearchable ProblemISearchable Problem
Previous
 
Next
New Post
3/25/2008 11:52 PM
 

When development module Product, I am working part Isearchable. When Run (F5) , system a message arross:

An exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll but was not handled in user code

Additional information: The multi-part identifier "dbo.Product_Category.CategoryID" could not be bound.
The multi-part identifier "dbo.Product_Category.ModuleID" could not be bound.

code

 

{

public SearchItemInfoCollection ISearchable.GetSearchItems(ModuleInfo ModInfo)

 RelationCollection relation = new RelationCollection();SortExpression sorter = new SortExpression();ResultsetFields fields = new ResultsetFields(8);// filter.Add(PredicateFactory.CompareValue(ProductItemPropertiesFieldIndex.ItemId, ComparisonOperator.Equal, itemid));

fields.DefineField(

fields.DefineField(

fields.DefineField(

fields.DefineField(

fields.DefineField(

fields.DefineField(

fields.DefineField(

fields.DefineField(

sorter.Add(

relation.Add(

relation.Add(

 

 

dao.GetMultiAsDataTable(fields, dynamicList, 0, sorter,

 

 

{

nData.Rows.Add(aRow.ItemArray);

}

ProductItemPropertiesFieldIndex.PropertiesId, 0, "PropertiesID");ProductPropertiesFieldIndex.Name, 1, "Name");ProductPropertiesFieldIndex.Code, 2, "Code");ProductPropertiesFieldIndex.Description, 3, "Description");ProductPropertiesFieldIndex.FormulaParam, 4, "FormulaParam");ProductPropertiesFieldIndex.DataType, 5, "DataType");ProductItemPropertiesFieldIndex.PropertiesValue, 6, "PropertiesValue");ProductItemPropertiesFieldIndex.ItemId, 7, "ItemId");SortClauseFactory.Create(ProductPropertiesFieldIndex.DataType, SortOperator.Descending));ProductPropertiesEntity.Relations.ProductItemPropertiesEntityUsingPropertiesId, JoinHint.Inner);ProductItemPropertiesEntity.Relations.ProductItemsEntityUsingItemId, JoinHint.Inner);DataTable dynamicList = new DataTable();TypedListDAO dao = new TypedListDAO();null, relation, true, null, null, 0, 0);DataTable nData = dynamicList.Clone();foreach (DataRow aRow in dynamicList.Rows)

SearchItemInfoCollection

 

{

 

SearchItem =

SearchItem.Title =

SearchItem.Description = row[

SearchItem.Author = 1;

SearchItem.ModuleId = 653;

SearchItemCollection = new SearchItemInfoCollection();foreach (DataRow row in nData.Rows)SearchItemInfo SearchItem;new SearchItemInfo();"EPortal.Products";"Name"].ToString();//int.Parse(row["ModuleId"].ToString());

SearchItem.SearchKey = row[

SearchItem.Content = row[

}

SearchItemCollection.Add(SearchItem);} SearchItemCollection;}

return

"ItemID"].ToString();"Name"].ToString();

 

 

 

 

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...ISearchable ProblemISearchable Problem


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out