Notifications
Announcements
No record found.
Hi All,
Filter values for JournalBatchNumber is not getting populated when the excel is loaded and due to this the filter is not working. Users need to put this value manually to see the excel work properly.
Note: We are using custom template.
Please help me in getting this fixed. What is the solution to fix this issue.
User requirement like the below:
Regards
Siddhant Singh
Hi Siddhant,
To be able to have a lookup on the values, the custom entity would need to have a relation with the data entity with the general journal headers.
Like Andre already mentioned, you need to use "Ledger journal table" and "Journal lines" for the custom template. CDS table is not actual in this scenario. For filter, you need to use "Ledger journal table"
Hi Andre Arnaud de Calavon ,
Thanks for the reply
I have created a relation with LedgerJournalHeaderEntity but the value is not getting populated. Is anything else I am missing?
Did you synchronize the database after the build with this change?
Hi Andre,
Yes, I did the build and sync.
Do i need to change anything on template as well?
Siddhant
Do I need to write any code to achive my scenario? Is this scenario is possible or not?
Do any one has any idea regarding this issue? How to fix this issue?
I had a look at some more details now. If the lookup is not working, provide a list of fields on the field group Auto lookup for the entity which you would like to use as a lookup.
I also had to enforce the lookup with some coding. You can find an example of the coding on the data entity CurrenyEntity which uses a lookup to CurrencyISOCodeEntity.
/// /// This method will provide lookup values for the CurrencyCode field. /// /// The array of field information received from the Office app. /// A serialized result string that can be interpreted by the Office app. [SysODataActionAttribute('CurrencyEntityCurrencyCodeCustomLookup', false), SysODataCollectionAttribute('_fields', Types::String), SysODataFieldLookupAttribute('CurrencyCode')] public static str currencyCodeCustomLookup(Array _fields) { OfficeAppCustomLookupRelationResult result = new OfficeAppCustomLookupRelationResult(); result.entityName(ExportToExcelMetadataCache::getEntity(tableStr(CurrencyISOCodeEntity)).PublicEntityName); result.fieldName(fieldStr(CurrencyISOCodeEntity, ISOCurrencyCode)); str resultString = result.serialize(); return resultString; }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 565 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader