Skip to main content
Solved

How to reference custom attribute to list

  • June 12, 2025
  • 1 reply
  • 89 views

Forum|alt.badge.img+4

I have a List that uses a view to display results, and I want to reference a field that is not in the entity to display the results. I would like to know how to write references in file .projection and .client. 

please provide some guidance.

View

 

projection
client
error when i try to add some field
entity

 

Best answer by asanka1055

Hi ​@mardede29 , 

Do you need to keep this field as a read-only field? If so you can fetch the data from other entity directly by changing the projection details like below.

 

projection CustomerCreditAnalysis;

@Override
entity CreditCollectionInfo {
   attribute NCrLimitthb Number {
      fetch = "Customer_Credit_Info_API.Get_N_Cr_Limitthb(company, identity)";
      format = ifscurrency;

   }

}

 

1 reply

asanka1055
Hero (Partner)
Forum|alt.badge.img+9
  • Hero (Partner)
  • Answer
  • June 12, 2025

Hi ​@mardede29 , 

Do you need to keep this field as a read-only field? If so you can fetch the data from other entity directly by changing the projection details like below.

 

projection CustomerCreditAnalysis;

@Override
entity CreditCollectionInfo {
   attribute NCrLimitthb Number {
      fetch = "Customer_Credit_Info_API.Get_N_Cr_Limitthb(company, identity)";
      format = ifscurrency;

   }

}