Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL (Archived)

SDK Application: Launch SL screen, pass parameter, then Finish

Posted on by 6,405

I am creating a new SDK application that will display all SL Shippers at the Confirm Shipment step, and want to perform a mass update of those Shippers (rather than individually confirming each one). I have most of the code worked out, but am missing how to get the 40.117.00 screen to perform the "Finish" command once the ShipperID has been populated.  The CallApplicWait command will open the screen, but what do I need to do in order for the Shipper screen to call the Edit_Finish command and process the Shipper?

Also, can I call the 40.117.00 screen without displaying it (visible=false)?

Call ApplSetParmValue(PRMSECTION_VBRDT, "ShipperID", bConfirmShippers.ShipperID)

Call CallApplicWait("4011700", "")

*This post is locked for comments

  • Mark E Profile Picture
    Mark E 6,405 on at
    RE: SDK Application: Launch SL screen, pass parameter, then Finish

    What I did was:

                   sivApp = StartAppAndAutomate("4011700.exe", iSolerr, iOSErr)

                   sivApp.Controls("cshipperid_0").Value = bConfirmShippers.ShipperID

                   sivApp.Save()

                   sivApp.Quit()

                   sivApp.Dispose()

                   sivApp = Nothing

    I have a custom screen that shows all the eligible Shippers, and if the Shipper is selected I pass the ShipperID to the launched Shipment Confirmation screen by way of sivApp.Controls, then essentially save and close the screen (similar to the Finish event).

  • hernandezla Profile Picture
    hernandezla 25 on at
    RE: SDK Application: Launch SL screen, pass parameter, then Finish

    Hi Mark

    How do you passed the parameters with the StartAppAndAutomate?

    Thanks

  • Verified answer
    Mark E Profile Picture
    Mark E 6,405 on at
    RE: SDK Application: Launch SL screen, pass parameter, then Finish

    Wound up invoking the Object Model in my SDK program, and used StartAppandAutomate to get what I need accomplished, including the invisible feature I wanted.

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