Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL (Archived)

SL Customization- Can I use a checkbox with a user defined date field?

Posted on by Microsoft Employee

Hello,

I am attempting to customize the Vendor maintenance screen to add a checkbox associated with a user defined date field.

Is this possible.  I am unable to select the date field when attempting to set it up.  It does show other non-date user defined fields

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SL Customization- Can I use a checkbox with a user defined date field?

    Use a text box object for the date field.  Then you will be able to select a user date field and then an integer or character field for the check box (or use an unbound control.)

  • DelmerJohnson Profile Picture
    DelmerJohnson 25 on at
    RE: SL Customization- Can I use a checkbox with a user defined date field?

    I'd agree with Gregory Smith's suggestion of an unbound field for the checkbox if you don't need to store whether it was checked or not, otherwise use a different (date or numeric) user field for the checkbox and display the date (a different user field) in a second control if they need to edit it.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SL Customization- Can I use a checkbox with a user defined date field?

    They actually just want a checkbox and then an associated date field to indicate the expiration date.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SL Customization- Can I use a checkbox with a user defined date field?

    Another way you can do it is to add an unbound field into the screen for the check box and then use SetBufferValue to set the user date field based upon the check event of the check box.

    Of course you also have to use the GetBufferValue and SetObjectValue statement to read the user date field and set the unbound control used for the check box accordingly on the Vendor ID check event.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SL Customization- Can I use a checkbox with a user defined date field?

    I don't think you can do that as the checkbox object can only be associated with a type that can be True/False (Integer or Character).  I assume that you want to use the date field because your other user fields are already being used.  If so you could use one of the unused S4Future fields but in that case you might have a conflict with a future version that uses that same field.  

    A better approach might be to create a custom table with a link to the vendor ID table and include it with the screen to store the results of the Check Box.  It's more programming because you have to include the table with the screen and write code to handle the database updates, deletes and insertions to the custom table.  

  • DelmerJohnson Profile Picture
    DelmerJohnson 25 on at
    RE: SL Customization- Can I use a checkbox with a user defined date field?

    What is your reason for using a checkbox with a date field? There may be a way to do it, but a checkbox only allows two values, in this case probably "1900-01-01" for false and some other arbitrary date for true. Are all the other user fields already in use?

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans