Defaulting New Rows to be Added to the Bottom of an Editable Detail List in Creatio

When working with an editable detail in Creatio, when the add button is clicked, the default behavior is that the new row is added to the top of the detail list. This might not be the behavior you want, especially if the detail rows represent some “sequential” things, and the new row will represent the next item in the sequence. This is what is looks like by default:

In our scenario, we are numbering the rows, so it’s confusing to have the next numbered row appear at the top.┬áLuckily, you can easily change this default behavior to add new rows to the bottom of the detail list. To change this, simply open the detail schema and add the following code:

getAddItemsToGridDataOptions: function() {
    return { mode: "bottom" };
}

Now, with this code in place, we’ll get this new behavior, where new rows are added to the bottom.

ABOUT THE AUTHOR

Ryan Farley

Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix, now Infor CRM, since 2001 and believes in sharing with the community. His new passion for CRM is Creatio, formerly bpm'online. He loves C#, Javascript, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!

You have Successfully Subscribed!