Hi Community,

I tried to delete a record in the list page with menu option based on below Code. But I got the  Error shown in the image

{

                            "type": 'crt.MenuItem',

                            "caption": 'DataGrid.RowToolbar.Delete',

                            "icon": 'delete-row-action',

                            "clicked": {

                                "request": 'crt.DeleteRecordRequest',

                                "params": {

                                    "itemsAttributeName": "Items",

                                    "recordId": "$Items.PDS_Id",

                                },

                                "useRelativeContext": true

                            }

                        },

Like 0

Like

1 comments

Hello,

Not sure what you are trying to accomplish.

Are you trying to create your own delete button based on the menu item? Then you can try doing it with a "Run Process" option or use the base menu item for the record.

Or are you receiving this error while using the base "Delete" option? In that case, make sure that you don't have connected records for this object (for example detail) because currently there is a problem with the base logic and it won't allow you to delete records with connected objects until version 8.1.

Show all comments

Hi Community,

I tried to override the List page menu in Freedom UI. it successfully worked for edit and copy options. But it won't work for the delete option.

 

"rowToolbarItems": [

                        {

                            "type": 'crt.MenuItem',

                            "caption": 'DataGrid.RowToolbar.Open',

                            "icon": 'edit-row-action',

                            "clicked": {

                                "request": 'crt.UpdateRecordRequest',

                                "params": {

                                    "itemsAttributeName": "Items",

                                    "recordId": "$Items.PDS_Id",

                                },

                                "useRelativeContext": true

                            }

                        },

                        {

                            "type": 'crt.MenuItem',

                            "caption": 'DataGrid.RowToolbar.Copy',

                            "icon": 'copy-row-action',

                            "clicked": {

                                "request": 'cfx.CustomCopyRecordRequest',

                                "params": {

                                    "itemsAttributeName": "Items",

                                    "recordId": "$Items.PDS_Id",

                                },

                                //"useRelativeContext": true

                            }

                        },

                        {

                            "type": 'crt.MenuItem',

                            "caption": 'DataGrid.RowToolbar.Delete',

                            "icon": 'delete-row-action',

                            "clicked": {

                                "request": 'crt.RemoveRecordRequest',

                                "params": {

                                    "itemsAttributeName": "Items",

                                    "recordId": "$Items.PDS_Id",

                                },

                                "useRelativeContext": true

                            }

                        },

Like 0

Like

1 comments

Hi Rakshith,

 

Indeed the delete handler cannot be overwritten, tested in the latest 8.0.8 build. I will create a task for our R&D team to make it possible to customize the logic of this handler. Meanwhile if possible use a business process that is triggered upon record's deletion (it should be marked as a non-background process (start signal of a business process)).

 

Thank you for reporing this issue to us and making the app better!

Show all comments

Hi Community,

I want to override the copy functionality shown in the image. Is it possible to do that in Freedom UI? If possible How can I do that ?

Like 0

Like

2 comments

Are you referring to the list row menu? If so, there is an article covering that topic here: https://academy.creatio.com/docs/developer/front_end_development_freedo…

Ryan

As for the copy item specifically, I believe that request is called "crt.CopyDataRequest". If you handle that request on the list page, you can do what you need and then not call the next handler to avoid the out of the box handling of the copy request.

Ryan

Show all comments

Hi Community,

I want to Highlight a column in a detail in Freedom UI. How can I do that ?

Like 0

Like

1 comments

Hello,



There is no such option now.

 

But we've registered it in our R&D team backlog for consideration and implementation in future application releases.

 

Thank you for helping us to improve our product.

Show all comments

Hi Community,

I would like to know whether we can change a column as mandatory dynamically based on some condition

Like 0

Like

1 comments

Hello,



It could be achieved by business rules. 



Please find more information here.

Show all comments

Hi Community,

Is there any alternative like messages in  Freedom UI ? I want to send message from one client Module to another.

Like 1

Like

2 comments

Hello,

 

Could you please elaborate on your request and describe in more detail what logic exactly you'd like to achieve and how it should work?

Mira Dmitruk,

I want to send a message from page to detail page when I click a button to lock all fields of the detail. 

Show all comments

Hi,

I want to Override the base function shown in the image in the Freedom UI. How do I do that in Freedom UI ?

Like 0

Like

3 comments

Hello,

 

Overriding of 7x methods in FreedomUI page is not implemented, please use another approach to implement your business logic.

Oleg Drobina,

 

Hi, would like to know if the following functions in the images can also not be overridden in FreedomUI.







Thanks in advance Oleg!

 

Abilash,

 

Well, theoretically, but it wasn't tested, you may try overriding the BaseSchemaViewModel itself and method in it (using Ext.override) and try reading the current context in case the method is triggered from the FreedomUI page and process it in a custom way.

Show all comments

Hello.

 

For now

request.$context.LookupPropName = undefined

clear the value, but not triggers any change events on page.

 

How can i clear lookup value on the page with triggering 

crt.HandleViewModelAttributeChangeRequest request?

Like 1

Like

1 comments

Hello,

It looks like the only possible solution for you would be to clear the value inside the business process.

Otherways you just don't trigger the handler.

Show all comments

Hello Community, 

I have a business case where I wanted to load the records to the editable detail on click of a Save Button (We have a custom code written to insert the records to detail). 

I have added a page filter so that the detail should contain only the records where reference Id in detail is current page Id

Currently the records gets loaded when I refresh the entire form page. 

But I wanted to load the detail without refreshing entire page. 

I also tried to reload the detail from code, it didn't worked. 

my page filter is designed such that detail referencecoulmnId = current form page Id

When I reopen the page everything looks good.

Any suggestions is really helpful

 

Thanks

Gargeyi

 

 

Like 0

Like

1 comments

Hello,

 

Please check if the logic you created works when you click the Refresh button from the addon https://marketplace.creatio.com/app/reload-data-button-creatio right after clicking the Save button.

If it does, you can analyze the logic of the Refresh button from the addon and add it to your logic.

Unfortunately, we do not have ready examples of the implementation of this logic.

 

Best regards,

Yuliya

Show all comments

Hi,

I've created a remote angular module for Freedom UI, following the tutorial: https://academy.creatio.com/docs/developer/front_end_development_freedo…

I added my component to Freedom UI library. Thus, I'm able to drag'n'drop my component to page area.

The problem is that my component have some configuration params (a string and an integer), that I can't fill using the no-code designer. I have to do it manually, from source code.

I would like to add such configuration options to component to make it possible to configure a component instance in no-code way.

For example, when I create button I can change its label or action performed on click event. I would like to achieve something similar with my component.

I use Creatio 8.0.7

I will be really grateful for your answers :)

Eryk

 

Like 3

Like

6 comments

Could anyone help me? :)

Hi,

Can you please give more detail on these configuration params you are talking about? Some screenshots would be nice.

Dmytro Vovchenko,



Yes, sure :)

Some elements, like an input, have many configuration options:

 

And my component not:

 

So, I'd like to add similar configuration options to my custom component to reduce amount of coding while using custom angular components.

 

Hi,

Unfortunately for now the system does not support such no-code option.

However, already informed our developers about this option and they will work on this feature in future versions.

Thank you for helping us improve the system.

Hi, has anything changed since last time? :)

Hello,



After reviewing all the information, we inform you that at the moment the system still does not support this kind of no-code option. However, this particular request has been passed on to the responsible team for consideration and implementation in future releases. Task number: PR-29433.

Show all comments