Время создания
Filters
How_can_we_remove_the_white_spacing_between_fields
Studio_Creatio_enterprise_edition
8.0

Hi Everyone,

Is there any way to reduce white spacing between fields and make their width as per the content. 

Any suggestions are more than welcome.

 

Like 0

Like

1 comments

The key is the type of container the fields are in. If you use a flex row/column container it will collapse unused rows/columns For your case, I think you just need to make the columns less wide. For this you could try adding more columns (click the container the fields are in an change columns from 2 to something like 4?)

Ryan

Show all comments

Hi.

I just wanna ask is there anyway to retract the state of the page after making a change via setting back the value to oldValue and making sure that HasUnsavedData is false so that Save and Cancel will remain hidden?

So far under crt.HandleViewModelAttributeChangeRequest, I've tried setting the value of 
HasUnsavedData to false, but did not work.

Like 0

Like

2 comments

If you're saying that you want to change an attribute value, but not have that show as a "change" and have the page show that it has unsaved data, you can use request.preventAttributeChangeRequest = true; when you set the value and it won't trigger a change request for the change. Or did I misunderstand what you're after? 

Ryan

Ryan Farley,

Yes and no. I added a logic to check some certain values before deciding if the change in DCM stage is allowed or should I retain oldValue. It is something that BR can't do since I needed to do a prompt. 

Yes, I think this will work: request.preventAttributeChangeRequest = true;

Let me try.

Show all comments
How_to_overcome_Freedom_UI_Quick_Filter_limitations_and_apply_a_custom_programmatic_filter_to_a_DataGrid?
Studio_Creatio_enterprise_edition
8.0

Hi everyone,

I am working on a Creatio Freedom UI page (8.3.x) where I have a DataGrid displaying records related to the current record. I need to provide users with a custom filter button that applies an additional filter to the grid programmatically.

Requirement

I have a lookup field, let's call it "Category", on the records displayed in the grid.

The requirement is:

  • The grid already has the standard Freedom UI filters / Quick Filters.
  • I want to add a custom button outside the grid.
  • When the user clicks the button, I want to apply a specific Category value to the grid.
  • The value may come dynamically from another field/page parameter, although for testing I am currently using a hardcoded GUID.
  • The custom filter should work together with the existing grid filters, rather than replacing them.
  • The grid should refresh automatically after applying the filter.

I created a custom request handler for the button:

{
   request: "ApplyGridFiltersRequest",

   handler: async (request, next) => {

       const categoryId =
           "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";

       console.log("Category:", categoryId);

       await request.$context.executeRequest({
           type: "crt.LoadDataRequest",
           $context: request.$context,
           dataSourceName: "MyGridDataSource"
       });

       return await next?.handle(request);
   }
}

This successfully triggers the grid reload.

I can also confirm that the crt.LoadDataRequest is being triggered and that the custom value is available.

However, I haven't found the correct way to inject the filter into the grid's existing filter collection.

  • Apply a filter programmatically to a specific DataGrid datasource?
  • Preserve the filters already applied by the user?
  • Add my custom filter as an additional condition?
  • Trigger the grid reload after applying it?
  • Ideally remove/change the custom filter later without affecting the user's other filters?

Is there a supported request/API for manipulating the DataGrid's filter collection, or is the recommended approach to use a ViewModel attribute/page parameter bound to the grid filter?

I would prefer a supported Freedom UI approach rather than directly manipulating the DOM or relying on internal/private APIs.

Any examples using crt.*Request handlers would be greatly appreciated.

Thanks!

Like 0

Like

1 comments

Overriding the crt.LoadDataRequest and adding an additional filter (if some boolean attribute is set to true, which your button clicking should toggle) is probably your best bet. Instructions on adding a filter to the LoadDataRequest can be found here: https://customerfx.com/article/dynamically-filtering-a-lookup-on-a-creatio-freedom-ui-page/

Note: this will work if and only if the filter never needs to be applied on initial loading of the page, as Creatio bypasses the LoadDataRequest when loading in the first page of results for a list. It's quite annoying and the workarounds are quite messy. But it sounds like it should work for your purposes if you only want to apply the filter after clicking a button.

Show all comments
approval
syntech
approvallist
FreedomUI

Syntech Approval List is a Freedom UI component for Creatio that shows all approvals of any object in one customizable list.

The component solves the problem when to check the approval statuses, you need to open each card and search through the approval history manually.

Key Features

1. Display all approvals in one list

  • shows all visas for a record in one list;
  • automatically pulls approvals for the current record (recordId = $Id);
  • works on record page and section page.

2. Filters

  • record filter (recordId);
  • filter by status (New, Approved, Rejected, etc.);
  • approver filter.

3. Inline setting of statuses

  • setting the visa status directly in the list;
  • owner, date and author are stamped automatically.

4. Columns from related objects

  • the ability to add columns from the parent record;
  • examples: account amount, counterparty name, document type, creation date;
  • context without having to open the card.

5. Customization through Freedom UI Designer

  • adding a component to the page via Designer;
  • properties panel to choose the object whose approvals are shown;
  • settings code for display settings;
  • no-code configuration.

6. Dragging and resizing columns

  • drag-and-drop to change the order of columns;
  • changing the width of the columns;
  • saving settings for the user.

7. Open the original record in one click

  • clicking on the record opens the original card;
  • quick transition to the document without searching.

Compatibility:
Creatio 8.3.0 and up

https://marketplace.creatio.com/app/syntech-approval-list-creatio

Like 1

Like

Share

0 comments
Show all comments
accessibility

Is there any accessibility Feature on creatio to use?

Like 1

Like

0 comments
Show all comments