Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

The ) is missing - error when using custom button with the Launch command to call ROI in Dynamics 2011.

(0) ShareShare
ReportReport
Posted on by

I get an error message in a Crystal Report Windows Forms Viewer window saying... The ) is missing... when using a custom button with the Launch command to call ROI in Dynamics 2011. I have gone to the "books" and followed the examples given but have no success. This command used to work in Dynamics SL 7 before upgrading to Dynamics 2011. Can someone give me a tip on what is wrong?

Below is the code behind my custom button...

 

Sub cmdReport_Click()

    Dim CustId As String * 10

    Dim ParmStr$

 

    CustId = GetObjectValue("ccustid")

    ParmStr = "ROI.EXE " + PRMSEP + "08652/RUN" + PRMSEP + "08652/FORMAT" + PRMSEP + "ARTran.Custid = " + SParm(CustId) + "/WHERE" + PRMSEP + "/PSCRN"

    serr2 = Launch(ParmStr, True, True, 0)

    'Call ApplSetParmValue(PRMSECTION_VBRDT, "", "08652/RUN")

    'Call ApplSetParmValue(PRMSECTION_VBRDT, "", "08652/FORMAT")

    'Call ApplSetParmValue(PRMSECTION_VBRDT, "", "ARTran.Custid = " + SParm(CustId) + "/WHERE")

    'Call ApplSetParmValue(PRMSECTION_VBRDT, "", "/PSCRN")

    'serr2 = Launch("ROI.EXE ", True, True, 0)

 

End Sub

 

*This post is locked for comments

  • Community Member Profile Picture
    on at
    Re: The ) is missing - error when using custom button with the Launch command to call ROI in Dynamics 2011.

    Thank you very much, Barry!! Your answer worked for us!

    Just in case someone needs to see the working code, I pasted the two examples below...

     


     

     

     

    Sub cmdReport_Click()

        Dim CustId As String * 10

        Dim ParmStr$

     

        CustId = GetObjectValue("ccustid")

        'ParmStr = "ROI.EXE " + PRMSEP + "08652/RUN" + PRMSEP + "08652/FORMAT" + PRMSEP + "{ARTran.Custid} = " + SParm(CustId) + "/WHERE" + PRMSEP + "/PSCRN"

        'serr2 = Launch(ParmStr, True, True, 0)

        Call ApplSetParmValue(PRMSECTION_VBRDT, "", "08652/RUN")

        Call ApplSetParmValue(PRMSECTION_VBRDT, "", "08652/FORMAT")

        Call ApplSetParmValue(PRMSECTION_VBRDT, "", "{ARTran.Custid} = " + SParm(CustId) + "/WHERE")

        Call ApplSetParmValue(PRMSECTION_VBRDT, "", "/PSCRN")

        serr2 = Launch("ROI.EXE ", True, True, 0)

     

    End Sub

     

  • Verified answer
    Barry Flynn Profile Picture
    3,090 on at
    Re: The ) is missing - error when using custom button with the Launch command to call ROI in Dynamics 2011.

    In SL2011, it is necessaey to enclose the TableName.ColumnName in curly braces

    Barry

  • Barry Flynn Profile Picture
    3,090 on at
    Re: The ) is missing - error when using custom button with the Launch command to call ROI in Dynamics 2011.

    Test

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,217 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,978 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans