New Empty Block in New Tab

Howdy Folks

Hopefully just a quick question,
I have been testing customization like new tabs and adding external list views into these tabs etc.. and these have been working fine.

But what I want to do is create a new Tab in a company entity,
and add a blank screen/blocks, that I can just customize and add new CRM fields (same way you can add a new field to an existing screen)
(These new fields already exist in the context of the company entity)

So do I need to go down the Custom Page route, or what way would I need to approach this.?

Thanks in advance

Paul

  • 0

    Hi,
    From the above post, it seems that you want to create a blank screen and then add fields on it. For this, when you click on tab in company entity, call your custom page containing code to display empty block. Make sure you have added screen for this block.
    Now to add fields to this screen follow the steps given below,

    1. Go to administration | customization | company | screens.

    2. Select the screen which you have referred in your code.

    3. Add fields which you want to display on screen.

    4. Click on save.

    Now go to main menu area and click on tab you added in company entity, you will find the fields added to your screen.
    Hope this helps!
    Regards,
    Dinesh

  • 0

    Hi Dinesh,

    Thanks for your reply, I am ok with the 2nd part adding fields to screens etc

    But I appear to be having trouble with the Custom Page,

    Would you have an example of Custom asp page with an empty block?

    I know it is along the lines of:


    TEST PAGE


    This works fine and I get the below

     :
    But when I make a reference to

    It gives a 500 error

    Thanks again for your help
    Paul

  • 0
    Hi,
    Below is the sample code for your reference:-

    //' Define Page Mode to Always Edit

    if (eWare.Mode

    //' Create Record Object

    EntityRecord=eWare.CreateRecord("Entity Name");

    // get an empty container block

    Var sContainer = eWare.GetBlock('Container');

    // add the screen which you want

    var sScreenName= eWare.GetBlock('’);

    sScreenName.Title=" ";

    sContainer.AddBlock(sScreenName);

    eWare.AddContent(sContainer.Execute(EntityRecord));

    Response.Write(eWare.GetPage(‘New’));

    %>

    Hope this helps!
    · Regards,
    · Dinesh
  • 0

    Hi Dinesh,

    Thanks for the help and replies - I think I was looking at this from the wrong angle

    I was testing this over the weekend and it turns out I don't need a custom page after all

    I was able to create new empty block, create new screen, add my fields to new screen

    Then create my new tab and lookup my new block

    Thankfully sorted

    Thanks again for the help,

    Paul