Время создания
Filters
currency
separator
decimal
report
Studio_Creatio
8.0

Hi All, question please.

I want to make a currency field in my report using separator decimal.

I already follow this instruction :
https://customerfx.com/article/creating-custom-macros-to-format-values-in-word-printables-for-creatio-formerly-bpmonline/

 

 namespace Terrasoft.Configuration
{
   using System;
   using Terrasoft.Common;
   using Terrasoft.Core;
   using Terrasoft.Core.DB;
   using Terrasoft.Core.Entities;
   using Terrasoft.Core.Packages;
   using Terrasoft.Core.Factories;
   using System.Globalization;
     
   [ExpressionConverterAttribute("Money")]
   public class UsrMoneyConverter : IExpressionConverter
   {
       public string Evaluate(object value, string arguments = "") 
       {
           var result = string.Empty;
           if (value != null)
           {
               result = value.ToString();
               double currency;
               if (Double.TryParse(result, out currency))
               {
                   result = number.Format("{0:n}");
               }
           }
           return result;
       }
   }
}

 

Also, I already tried using :

result = currency.ToString("C", new CultureInfo("en-US"));
 

The result always have this error and the report still not have separator currency decimal :

Need advice please.

Thank you.

Like 0

Like

0 comments
Show all comments
path
report
Studio_Creatio
8.0

Hi All, I have a question please.

Do you know how to determine or specify the path that we want to store the report after we click "generate report" ?

For default, after we generate report (in this case is "Offering Letter" report button), report will store in Downloads folder, correct? I am not to default specify in Downloads folder, but for example I want to store it at C:\Project\Report\OfferingLetter.docx

 

Thank you.

Like 0

Like

0 comments
Show all comments
Studio_Creatio
8.0

Me and my team are facing a huge hassle trying to work with git on creatio, a lot of conflicts and compilation issues due to 2 or more developers pushing changes in the same package, that cost us some work to be redone as we had to reset our git repo to the last commit that didn't have issues.

Is there a way that makes working with git easier? tried to use T.I.D.E. but sadly it's not very clear how it works.

Like 1

Like

0 comments
Show all comments
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

5 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.

Ryan Farley,

Are you saying you can set request.preventAttributeChangeRequest within a custom override of the handler crt.HandleViewModelAttributeChangeRequest and that will prevent Creatio from considering that the field has changed? Even if the field was changed by a user in the UI? As that would be great news if so, though I think you possibly mean the existing functionality described in this thread: https://community.creatio.com/questions/mark-pages-field-unchanged-not-dirty-code

Which is useful but sound like it doesn't quite cover the ask of Solem (if I understood it correctly).

Harvey Adcock,

Interesting! Thank you for sharing. It's user change via dcm which I need to check if I allow it or not via crt.HandleViewModelAttributeChangeRequest. 

Harvey Adcock,

I've only seen the preventAttributeChangeRequest shared by Creatio previously, I asked for further clarification on what it actually means but never got a reply. My understanding is that if you set that to true in a given request, other attributes you change within that same request will not trigger the change (and therefore won't mark as dirty). That's only an assumption on my part since it was never explained further when asked. 

Show all comments