web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

itemname function not recognizing field name

(0) ShareShare
ReportReport
Posted on by

I am trying to use item name to get an item from a combo box. The combo box is a list of months abbreviated to the 3 letter form. What I am trying to do is pre populate this field with the current month. This is in the LinePre of a scrolling window. The error I get is that my field an Unknown Identifier.

Here's the code

    // '(L) PlanStartMonth' of window Compensation_Plan_Assignments = "JAN"; --- This I tried just to verify the name and reference work.
     RMC_StartMon of table RMCSC_RepPlanXref = itemname(field '(L) PlanStartMonth' of window Compensation_Plan_Assignments ,month(sysdate()); ---Here I set the table field from the name returned by the function. This part is not working.
    '(L) PlanStartMonth' of window Compensation_Plan_Assignments =  RMC_StartMon of table RMCSC_RepPlanXref  ; -- here I set the combobox value to the name returned previously.

If the function does not recognize the qualifier, is there another method to use the field? Or do I somehow have to locally create some sort of reference locally or get it from an SQL procedure? Is there another way to return what I want from dexterity directly.

*This post is locked for comments

I have the same question (0)

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Dan Liebl Profile Picture

Dan Liebl 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans