Click here to Skip to main content
Rate this: bad
good
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
Sergey Alexandrovich Kryukov at 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 at 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
0 OriginalGriff 310
1 Sergey Alexandrovich Kryukov 166
2 PhilLenoir 164
3 Richard MacCutchan 160
4 Sharmanuj 146
0 Sergey Alexandrovich Kryukov 6,077
1 OriginalGriff 5,115
2 CPallini 2,473
3 Richard MacCutchan 1,597
4 Abhinav S 1,505


Advertise | Privacy | Mobile
Web01 | 2.8.140814.1 | Last Updated 7 Jan 2013
Copyright © CodeProject, 1999-2014
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