No items found.

Get printable name – fieldId2PName function

This function can comes in handy if you want to get from the code printable name of a given field in the table. Lets say you have a table with some fields and you want to get label that correspond to this field somewhere form the code.

To illustrate this I created new edts and a table, then I drag & drop them into the fields section.

‍

Query table

In order to demonstrate functionality I additionally created also following printableName job

static void printableName(Args _args)

{

   print fieldId2pname(tableNum(Table1), fieldNum(Table1, FirstEdt));

   print fieldId2pname(tableNum(Table1), fieldNum(Table1, SecondEdt));

   pause;

}

‍

As we can see I am passing two arguments fieldId and tableId to the fieldId2pname, the outcome of this will be as follows:

Print Window.

One interesting place where this functions is being utilized in the standard is display method fieldName on EcoResProductDimensionGroupFldSetup table. fieldname is being called on EcoResProductDimensionGroup form grid to reveal the current names of the product dimensions, it is done this way to make modifications to the name of the product dimensions easier.

See more

AGA pomaga – poznaj inteligentnego asystenta do przetwarzania zapytań ofertowych: ANEGIS Generative Assistant

Read article
Text Link

Jak z pomocą narzędzi Power Platform, Microsoft Fabric i AI zrealizować plan na cyfrową transformację? ANEGIS Power Center

Read article
Text Link

Obowiązkowy KSeF startuje za 4 miesiące! Umów się na bezpłatne konsultacje i przygotuj swój system na zmiany

Read article
Text Link
Back to all

Looking for a Microsoft partner? Let's talk about your project

Work with a team that has delivered implementations and projects for dozens of companies. Schedule an introductory call and see:

How to tailor Dynamics 365 to your company's processes, rather than the other way around

Which areas are worth automating to save time and reduce costs

Here is the step-by-step implementation process with Anegis: from analysis to post-launch support

Select a meeting time
Dziękujemy za wiadomość!
Oops! Something went wrong while submitting the form.
Microsoft AI Builder
Microsoft Copilot Studio
No items found.
No items found.
No items found.