Skip to main content

Notifications

Microsoft Dynamics SL forum
Unanswered

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.

  • 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans