Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi..
Am new to sage crm and i have to create new searchscreen with firstname,lastname and email. For that i created seperate list called Person_List and screen called Person_Screen.
Following is my asp code,
C#
<!-- #include file ="..\crmwizard.js" -->

<%


eWare.SetContext("Find");
if (eWare.Mode<Edit) eWare.Mode=Edit;

searchContainer=eWare.GetBlock("container");
searchContainer.ButtonTitle="Search";
searchContainer.ButtonImage="Search.gif";

TabBlock="Test Screen";

EntryGroup=eWare.GetBlock("Person_Screen");
ListGroup=eWare.GetBlock("Person_List");

searchContainer.AddBlock(EntryGroup);
searchContainer.AddBlock(ListGroup);


C#
if ( !Defined(EntryGroup.RecordCount) || (EntryGroup.RecordCount > 0)) {
    eWare.AddContent(searchContainer.Execute(EntryGroup));
} else {
    eWare.AddContent(searchContainer.Execute());
}

UserId = eWare.GetContextInfo("User", "user_userid");
  var nolockstable = "Person";
  var nolocks = eWare.CreateQueryObj("DELETE FROM Locks WHERE Lock_TableId ="
  + " (SELECT bord_tableid"
  + "  FROM Custom_Tables"
  + "  WHERE bord_name='" + nolockstable + "')"
  + " AND Lock_CreatedBy = " + UserId);
  nolocks.ExecSql();

  //writing that into asp.page
Response.Write(eWare.GetPage(TabBlock));

%>



Now in my crm screen,am getting only this code and search screen not coming...guide me
Posted
Comments
Sergey Alexandrovich Kryukov 7-Jan-13 1:02am    
Screen not appearing? Check the monitor power and cable. :-)
Or did you mean something else?

And tag it: "ASP.NET", "C#", platform or whatever...
—SA
Priyaaammu 7-Jan-13 3:55am    
hello...before giving the comment,see the full details what i gave...already mentioned the tag,did you see that?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900