Skip to main content

Notifications

Microsoft Dynamics SL (Archived)

SDK question

Posted on by Microsoft Employee

I am creating some custom screens and reports to handle the Form 1095-C requirements.  One of the data tables contains various fields for each month of the calendar year and my screen will have a copy forward to the subsequent months feature for these fields.  The field names for each month are similar with the only variance being the month (e.g., JanCode, FebCode, MarCode, etc.) and I would like to make the copy forward logic use a for next loop constructing a variable for the field name as opposed to just having individual code lines for setting each field.  What I cannot seem to determine is if there is a way to set a variable to an SL table/field name and then set the value using that variable containing the field name.  I have done similar things with form objects but not with SL tables and was curious if anyone has done something like this and would have a small code sample as to how they did it.

*This post is locked for comments

  • Apps Mexico Profile Picture
    Apps Mexico 1,090 on at
    RE: SDK question

    Have you tried to do that, with a sql store procedure? or have an inconvenient with this scenario?

    You can execute it, populate the table and read the data again.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans