Click here to Skip to main content
12,401,832 members (61,297 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: CRM
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,
<!-- #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);

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 6-Jan-13 18:57pm
Comments
   
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


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 7 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100