Building Custom Jump Hyperlinks from List blocks

Less than one minute read time.
Setting up a Custom Jump from a list to an ASP page is not difficult as we can see from the image below.



What is not so obvious is how we can cause more than one name/value pair to be included in the QueryString of the hyperlink. In the above example the field oppo_opportunityid is being used. If we want to also include the oppo_primarycompanyid in the hyperlink then we can write in the Custom ID Field

oppo_opportunityid,oppo_primarycompanyid

Note: It must be a comma delimited list.

The same extends to the customization of the lists in ASP pages. The CustomIdField property of the GridColumn Block can be set to a comma delimited list of field names.

var myBlock = eWare.GetBlock("opportunitylist");
var intRecordId = eWare.GetContextInfo("user","user_userid");
var Arg = "oppo_assigneduserid="+intRecordId;
var myGridColBlock = myBlock.GetGridCol("oppo_stage");
with (myGridColBlock)
{
JumpAction= 430;

CustomActionFile = "test.asp";
CustomIdField = "oppo_opportunityid,oppo_assigneduserid";
}
Parents
  • Jeff...I am having an issue with this as well. I am not sure if I am doing it wrong or if there is an issue with the hyperlink that is created. I am not trying to do a "fancy" jump where I have two CustomIdFields. Just a standard jump...at least I think I am. I am using custom entities. I do not end up on the desired record.

    I have tried doing the jump from the screen as shown in your image above. Although the correct id is in the URL, the system always defaults to the first record for the entity in the table.

    I then tried it with code in my asp page as follows....

    //Add Hyperlink to asp page

    var myGridColBlock = TaxList.GetGridCol("retax_Year");

    with (myGridColBlock)

    {

    JumpAction= 430;

    CustomActionFile = "css/css_taxsummary.asp";

    CustomIdField = "retax_retaxid";

    }

    Either method returns the same results..this is what my URL looks like when I am on the incorrect page...

    Note: retax_retaxid=53 is the record I want to display. However, the record that is being displayed is 52. I cannot figure out why.

    My notes

    //From the 2021 year

    //CSS_TaxSummary.asp uses the block RETaxes_Details

    //Displayed record is retax_retaxid = 52 (which is the first record in the list)

    The actual URL

    xxx-crm/.../CSS_TaxSummary.asp

    retax_retaxid=53&

    SID=77200900942234&

    F=xxx_Property/xxx_PropertySummary.asp&

    J=CSS/CSS_TaxSummary.asp&

    Key-1=58&

    Key0=58&

    Key37=60&

    Key50=16252&

    Key58=60&

    T=xxx_Property&

    HiddenRowCount=4&

    NextID=56&

    GridID=12840

    I considered changing ...CustomActionFile = "css/css_taxsummary.asp"; and forcing it to land where I need it to. However, I was not sure how to modify the variable CustomActionFile to create my URL. Would that make sense?

    Any assistance you can provide would be greatly appreciated.

Comment
  • Jeff...I am having an issue with this as well. I am not sure if I am doing it wrong or if there is an issue with the hyperlink that is created. I am not trying to do a "fancy" jump where I have two CustomIdFields. Just a standard jump...at least I think I am. I am using custom entities. I do not end up on the desired record.

    I have tried doing the jump from the screen as shown in your image above. Although the correct id is in the URL, the system always defaults to the first record for the entity in the table.

    I then tried it with code in my asp page as follows....

    //Add Hyperlink to asp page

    var myGridColBlock = TaxList.GetGridCol("retax_Year");

    with (myGridColBlock)

    {

    JumpAction= 430;

    CustomActionFile = "css/css_taxsummary.asp";

    CustomIdField = "retax_retaxid";

    }

    Either method returns the same results..this is what my URL looks like when I am on the incorrect page...

    Note: retax_retaxid=53 is the record I want to display. However, the record that is being displayed is 52. I cannot figure out why.

    My notes

    //From the 2021 year

    //CSS_TaxSummary.asp uses the block RETaxes_Details

    //Displayed record is retax_retaxid = 52 (which is the first record in the list)

    The actual URL

    xxx-crm/.../CSS_TaxSummary.asp

    retax_retaxid=53&

    SID=77200900942234&

    F=xxx_Property/xxx_PropertySummary.asp&

    J=CSS/CSS_TaxSummary.asp&

    Key-1=58&

    Key0=58&

    Key37=60&

    Key50=16252&

    Key58=60&

    T=xxx_Property&

    HiddenRowCount=4&

    NextID=56&

    GridID=12840

    I considered changing ...CustomActionFile = "css/css_taxsummary.asp"; and forcing it to land where I need it to. However, I was not sure how to modify the variable CustomActionFile to create my URL. Would that make sense?

    Any assistance you can provide would be greatly appreciated.

Children
No Data