Custom ASP page does not show tabs

  • Hello, I made a new table in CRM, added some screens and so on, as I did with other table previously. My entry page shows a list of records, and it's called from the main entity by clicking on a tab.

    All works fine, except when I click the tab, my summary screen appears, but tabs on top are gone. Other tabs in the same entity are working fine. What I'm missing?

     

  • I don't have an answer for you but I too am experiencing the same issue you are.  Hopefully someone has a solution.

  • It sounds like you are losing context in your page.

    You can force a tab group to appear by passing its name to the GetPage method:

    e.g.

    CRM.AddContent(myBlock.Execute(Arg));

    Response.Write(CRM.GetPage("TabGroupName"));


  • Thanks Jeff, can you provide more details here. I'm copying part of my code, on CRM 6.1o:

    Page begins with:

    var sURL=new String( Request.ServerVariables("URL")() + "?" + Request.QueryString );

    List=eWare.GetBlock("<LISTNAME>");

    List.prevURL=sURL;

    List.CaptionFamily="Personas";

    container = eWare.GetBlock('container');

    container.AddBlock(List);

    What I cannot understand is I have similar pages with other custom content which is working fine, no errors at all. Let me know if your code goes at the beginning or the end, thanks much!

  • Note:  In Sage CRM 6.2 the convention changed so that the object is called 'CRM' rather than 'eWare'.  You can still use 'eWare' but it is deprecated.  Also from Sage CRM 7.0 new include files were provided.  

    In a new page written for Sage CRM 7.0

     

    [code language ="javascript"]
    <!-- #include file ="sagecrm.js"-->
    <%
    var myBlock = CRM.GetBlock("ListName");
    var strURL=new String( Request.ServerVariables("URL")() + "?" + Request.QueryString );
    myBlock.prevURL=strURL;
    var myBlockContainer = CRM.GetBlock("Container");
    with (myBlockContainer)
    {
      AddBlock(myBlock);
    }
    CRM.AddContent(myBlock.Execute(Arg));
    Response.Write(CRM.GetPage("TabGroupName"));
    %>
    [/code]

    For Sage CRM 6.1, I would write

    [code language ="javascript"]
    <!-- #include file ="accpaccrm.js"-->
    <%
    var myBlock = eWare.GetBlock("ListName");
    var strURL=new String( Request.ServerVariables("URL")() + "?" + Request.QueryString );
    myBlock.prevURL=strURL;
    var myBlockContainer = eWare.GetBlock("Container");
    with (myBlockContainer)
    {
      AddBlock(myBlock);
    }
    eWare.AddContent(myBlock.Execute(Arg));
    Response.Write(eWare.GetPage("TabGroupName"));
    %>
    [/code]

     


  • Thanks Jeff, in order to have it working, where does Arg comes from?

    eWare.AddContent(myBlock.Execute(------->Arg<----------------));

  • Sorry

    Arg is the SQL whereclause e.g.

    var Arg = "fieldName="+intRecordId;