Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL (Archived)

Visual Basic SQL Customization

Posted on by 935

 I have a stored procedure in SQL that I would like to trigger from a custom button on a Dynamics SL form.  Can someone help me do this?  please!? thanks!

*This post is locked for comments

  • dboicourt Profile Picture
    dboicourt 5 on at
    Re: Re: Visual Basic SQL Customization

     So nobody has an answer to this? I have a need to click the start button on the processmanager screen. I realize that autostart should do this, but apparently sometimes it does not.

  • joe Profile Picture
    joe 935 on at
    Re: Visual Basic SQL Customization

    Thank you for the repsonses.  We ended up using ADO to get it to work.  However we still would like to know if its possible to write code to simulate clicking a builtin button. 

    Thank You!

  • Nagesh Boppana Profile Picture
    Nagesh Boppana 295 on at
    Re: Re: Re: Visual Basic SQL Customization

    Not required. what is the error you are getting?

  • joe Profile Picture
    joe 935 on at
    Re: Re: Visual Basic SQL Customization

     does c1 need to be defined?

     Also is it possible to click a builtin SL button via code?  I've tried buttonName_Click but it doensn't work.  

     

    Thanks!

  • Nagesh Boppana Profile Picture
    Nagesh Boppana 295 on at
    Re: Visual Basic SQL Customization

    Hi,

    Use the code something like follwoing in your custom button click event.

    call Sql(C1,storedproc name)

    call sqlfree(c1)

     Regards,

    Nagesh

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans