Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL (Archived)

SL 2011 customization issue when adding buttons

Posted on by Microsoft Employee

I was recently asked by a client to add some functionality to a screen in their company's Dynamics SL 2011 (version 8.01.21219.00). This addition requires that I place a button on one of their screens/pages. From the pieces of related documentation I could find, I understand that I must do this with the Customization Level set to "All Users" and then go into the screen, select "Customize Mode", select the "Customize" dropdown, and then "Insert Object Wizard". From the "Insert Object Wizard" I choose a button (from the Unbound Object Type), give it a name, and then hit "Apply". At this point nothing happens and no button appears on the screen. If I then attempt to add another button with the same name I receive the following error: "System Message 6831: A control with this name already exists in the program. Duplicate names are not allowed. Please choose another name for the new control." This tells me that something is happening whenever I add the new buttons, even though they are not appearing on the screen. I tried checking the VB editor for these controls and they don't seem to appear anywhere (whereas I can find the other existing buttons listed). The other odd part of this is that I can go through the "Insert Object Wizard" and choose any item other than a button and those are all added correctly and displayed in the top corner of the window/screen - it is only the buttons which don't appear when hitting "Apply".

I did some exhaustive searching to find references to this issue, walkthroughs, and/or any other documentation that notes this behavior but haven't been able to find anything so far. Has anyone experienced this issue with adding buttons in 2011 or is there some unlisted step to this process which I am failing to do?

*This post is locked for comments

  • Suggested answer
    Apps Mexico Profile Picture
    Apps Mexico 1,090 on at
    RE: SL 2011 customization issue when adding buttons

    Hi, try this

    • Backup all the customizations of the screen.
    • Delete all the customizations on this screen. Ex: "Delete CustomVBA WHERE ScreenId = '4011000'" 
    • Select All Users Level and add de button.
    • Check if the button appears. If does, then probably have a problem with the existing customization, if not appears, then do this.
      • Select one button that you can see on the screen. Move it a little bit to left or right.
      • Now after you have moved, check the properties of this button, press F4.
      • Copy the top and left properties and paste it on the custom button. Note: Add 10px to one of this properties, such you can see the two buttons.
      • Save the customization and restart the screen.
      • If you can see the custom button the problem was that out of the form edges. If not, try this.
      • Export the customization. 
      • Open the cst with notepad and find the Standart button than you moved to left or right. Copy the line whit the "Parent" property.
      • Find the block with the custom button and replace the "Parent" line.
      • Import the customization and check if you can see the button.

    Regards.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SL 2011 customization issue when adding buttons

    Yes, I failed to mention that adding buttons worked several years ago when my client had first upgraded to SL 2011. Custom buttons were added at that time to several screens, including the one I am currently trying to update.

    I'm betting on something being corrupted at this point, considering that it did work correctly in the past. I'm going to reach out to the Dynamics reseller who did the install and get their feedback on the issue. If they can assist with a getting a solution that doesn't involve a reinstall, I will post back here with the details.

  • Mark E Profile Picture
    Mark E 6,405 on at
    RE: SL 2011 customization issue when adding buttons

    I assumed the control was already there, based on your comment in the original thread:

    If I then attempt to add another button with the same name I receive the following error: "System Message 6831: A control with this name already exists in the program. Duplicate names are not allowed. Please choose another name for the new control."

    If the control name already exists, it should be visible in the Properties window.  If you cannot locate it, I can honestly say I have never had that experience.

    You can always try to uninstall/reinstall the SL Client, maybe some VBA related files did not get installed, or are corrupted.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SL 2011 customization issue when adding buttons

    Hi Mark,

    I just tested out this theory, I went through the insert object wizard and selected a button with the Properties (F4) open. I attempted to add a new button (leaving the name as "Button1" and again as "cmdButtonTest"), both times no button was added after clicking apply and checking the properties window. I then went through the same steps and instead chose a label for the sake of testing. I added the label and it immediately appeared at the top of the window and in the Properties pane.

    I think I can now definitively say that something is wrong where there is an error (which is not displayed) that occurs only when attempting to add a button. Now I just need to determine if anyone else knows what may be going on or if this issue needs to be redirected back to the reseller who initially setup SL 2011 for my client.

    Once again, I appreciate the feedback and the suggestion!

    Ian

  • Mark E Profile Picture
    Mark E 6,405 on at
    RE: SL 2011 customization issue when adding buttons

    I am guessing that the button control is being added, but for some reason is not immediately visible on your Form.  You can determine if the control was added by reviewing the Properties (F4) and see if the name of your control (e.g. Button1) is shown.  If so, then it's just a matter of changing the position properties (Top, Left, etc.) to get it to show on the Form.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SL 2011 customization issue when adding buttons

    Hi Ajit,

    I appreciate the feedback! This was both good and bad to hear - good because it confirmed that I am doing the correct steps to add the buttons, and bad because it seems to confirm that there is something wrong with my client's SL 2011 installation.

    Do you know of any reasons why the other unbound items could be added (label, tab, frame, form) and not the button? I can select any of the other items, hit "apply", and they will be added at the top of the screen. Doing the same process and attempting to add the button results in nothing - no button is added and there is no message box or error dialog explaining what went wrong.

    Have you ever come across this behavior before? Any guesses as to where/how I could begin troubleshooting this problem?

    Thank you for the help,

    Ian

  • Ajit Kannan Profile Picture
    Ajit Kannan 1,240 on at
    RE: SL 2011 customization issue when adding buttons

    Select the Insert Object Wizard (or press F6 if you prefer). One additional point – one of the items on this new list is to Save Changes, you should do this from time to time. The customization system crashes periodically, saving changes will let you pick back up from where you last saved instead of having to start over.

    0333.test.png

    Press Button, fill in the Object Name, and press the Apply button and then press close button. That new button will show on the top of the screen. (The caption will default to the name that you gave the object.)

     

    Thanks,

    Ajit kannan  S R

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