Dear Community,

 

This article shows us how to create a detail with an editable list.

The next step for us is to add an option to open this record like how you can open a page in the City lookup: https://prnt.sc/x79h2l

How do we add this functionality? 

 

Thank you in advance!

 

Kind regards,

Yosef

Like 0

Like

3 comments
Best reply

Hello Yosef,

I have an article outlining how to do this here https://customerfx.com/article/adding-an-edit-button-to-the-selected-ro…

Hope this helps. 
Ryan

Hello Yosef,

I have an article outlining how to do this here https://customerfx.com/article/adding-an-edit-button-to-the-selected-ro…

Hope this helps. 
Ryan

Ryan Farley,

Works like a charm!

I do however recommend adding the following for consistency:

{
  "className": "Terrasoft.Button",
  "style": this.Terrasoft.controls.ButtonEnums.style.TRANSPARENT,
  "tag": "edit",
  "markerValue": "edit",
  "imageConfig": {"bindTo": "Resources.Images.CardIcon"}
},

This way you get the same icon as the other details.

 

Kind regards,

Yosef

Yosef,

That is true, I do have that in the article as well (it's at the end of the article), however at the time I was doing this for a system where they wanted the "edit" action more obvious to users. However, for consistency with the rest of Creatio, I'd go the route of using the icon as well.

Glad it worked for you.

Ryan

Show all comments

Hi Community,

We are trying to add a inline editing/adding of data for a detail. With the academy link : https://academy.creatio.com/documents/technic-sdk/7-16/adding-detail-editable-list , was able to add the editable list. But the number of fields in the detail is more than 8.  As we can’t have a editable for tiles view.

 

Is there a way to add more column in "select fields to display" and How can I add horizontal to this "select fields to display" in the settings page?

 

Also, how to add horizontal scroll in the mail detail page to scroll and add content if there are more columns?

Like 3

Like

1 comments

Hello Amritha,

 

To add more columns to the "Columns setup" they should be added to the detail object directly and then they will become available in the "Columns setup". Starting from 7.16.4 horizontal scroll in the column setup is available out-of-the-box so please update your app to 7.16.4 to get needed functionality without additional development. As for adding the scroll to the main detail - I am not sure if it is possible since properties like "overflow-y" or "scroll-padding-top" are CSS properties that can be theoretically added to the grid wrap of the detail data grid, but it would be easier to use the "Show more" option at the bottom of the detail rather than developing custom CSS and connecting it as a separate module to the detail schema.

 

Best regards,

Oscar

Show all comments

I have been having issues changing the default behavior when adding a record from a detail with an editable list. After adding the “IsEditable” attribute to my detail schema, whenever I want to add a record from the detail page a new row is added rather than showing the edit page for adding a new record. Is there a way I change this behavior?

Like 1

Like

2 comments
Best reply

Daer Alex, 

 

You can override the method openCardByMode in the detail schema, forcing the detail to open the card instead of adding a row. You can see the original method in the BaseGridDetailV2 schema in the NUI package. 

 

Daer Alex, 

 

You can override the method openCardByMode in the detail schema, forcing the detail to open the card instead of adding a row. You can see the original method in the BaseGridDetailV2 schema in the NUI package. 

 

Dennis Hudson,

 Thank you I was able to override this method and it worked. For anyone  trying to do a similar thing here is the code I added to my detail schema.

 

openCardByMode: function() {
     const cardState = this.get("CardState");
     const editPageUId = this.get("EditPageUId");
     const primaryValueUId = this.get("PrimaryValueUId");
     this.openCard(cardState, editPageUId, primaryValueUId);    
}

 

I just removed the if else statement from the original method:

 

if (this.getIsEditable() && cardState !== enums.CardStateV2.EDIT) { 
    this.addRow(editPageUId);
} else {
    this.openCard(cardState, editPageUId, primaryValueUId);
}

 

Show all comments

Hi Community,

 

We have working editable detail grid, now we have added an "Unlimited length text field" into it. How we can configure this field to make it Multi line field in Editable Detail Grid just like its behavior in edit page.

Like 0

Like

2 comments

I remember reading a post or Academy page about it but I have not tried it yet, myself. I want to know how to do this as well. I think they said you can apply custom CSS. Maybe this link can get you in the right direction. Let me know if you succeed. 

https://community.creatio.com/questions/detail-styles-css

Hello,

 

In your detail schema please add this part of code to "attributes" of your schema:

"UsrStringField": {
                    
                    "contentType": Terrasoft.ContentType.LONG_TEXT
                },

 

where "UsrStringField" should be replaced with the name of your column in the object that represents your detail.

 

Once done you need to refresh the page and once you click on the record in your detail with an editable list you will see this https://prnt.sc/retlu3

 

But as for making this field to be displayed as multi-line text without clocking on the record - it is not possible.

 

Best regards,

Oscar

Show all comments

Hello,

I have a detail into the Activity section in a page in a custom section. I modified the detail to be an editable list by using the method described in the documentation in the Academy. I want to default the Activity type to a new type I created called "Review", see screenshot. The result needed is to have the user click the "+" sign in the detail, a new row is created below of type "Review", and they can start filling in the fields in the editable list. 

 

Also, a second thing, is there a way to have the text wrap in the editable list like it does for a normal detail. If the text in a field is too long, it is cut off. Can I make it so it wraps down and makes the row taller?

Thank you very much. 

Like 0

Like

2 comments

Hello Reid,

The easiest way to achieve this target is to specify "Review" to be an activity type by default (in advanced settings of Activity object http://prntscr.com/oq52rk). This will make all activities created in the application to have the type field being filled in with the value of "Review".

The second way to achieve a target is to create a process that will be triggered upon record adding into this detail and this process will set the value of "Review" for "Activity type" field. So once the record is added and user opens this record as an editable list - he will see needed activity type.

The third variant requires development skills. The method used upon record adding by clicking on "+" sighn is called addRecord. You can create a replacing schema for "ActivityDetailV2" object and specify your own addRecord method that will use ConfigurationConstant for activity type.

And as per your second question - you can set this string field as "Multi-line text" type field http://prntscr.com/oq5d3o and as a result it will be displayed in several rows.

Best regards,

Oscar

Oscar Dylan,

Hello Oscar,

Thank you so much for the response. Yes I am able to do either of the first two options, but the third option is, of course, preferred to make it less confusing for the user. I've tried to figure that out but I think it is beyond our skill at the moment. Need to keep learning. 

As for the multi-line text, it seems that only works in normal fields or details. But if the detail has been modified to be an editable list, it does not wrap the text into multiple lines anymore, even with the multi-line text bool checked. 

Show all comments

I have a detail referencing the Contacts section, that is an editable list detail:

Am I able to make the Contact lookup appear as a link on this view? That is, as link to the linked Contact record.

 

The list view preview shows the Contact as a link:

But not when I view the detail on the linked section??

Like 0

Like

2 comments

Dear Lauren,

You can try to transform the lookup field into hyperlink by referring to this article https://community.bpmonline.com/articles/how-make-url-string-field-clickable-hyperlink

Best regards,

Dean

Hi Dean,

The link needs to be the connected lookup record ... How would I reference this as a link?

Show all comments