Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

ROI.EXE

(0) ShareShare
ReportReport
Posted on by

I have developed an SL screen using the SDK where I want that screen to then launch a crystal report through ROI but I need to pass a parameter value to the report to be used as part of a select criteria.  So, my screen has a print button which uses CallApplicWait to launch ROI passing a couple of parameters (one being the ROI report ID followed by the /RUN parameter and the second parameter being the filter value (a calendar year) with PRMSEP value between the two parameters.  This successfully launches the report but I have been unable to figure out how to pick up the second parameter of the ROI call within the Crystal Report definition so it can be used as a filter.  There does seem to be a U2lsol4 function for this purpose.  If anyone knows how the Crystal Report formula should be defined to pick up this second parameter it would be most appreciated.

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: ROI.EXE

    Ajit,

    Thanks for the response.  What you provided was how to pass parameters from the program code to ROI including things like wanting to do a print preview.  This part I already knew.  What I was looking for was how to retrieve a passed parameter from the Crystal Report side.  In my case, the front-end screen has a field for the calendar year that I want to pass to the report and have Crystal Report then use that passed calendar year as a filter to limit the report to that year.

  • Ajit Kannan Profile Picture
    1,246 on at
    RE: ROI.EXE

    Hi Rick,

    Below are the sample code to pass the multi parameters 

    Dim ParmStr As String

            ParmStr = "XXXXXX/RUN" & PRMSEP

            ParmStr = ParmStr & "XXXXXX/FORMAT" & PRMSEP

            ParmStr = ParmStr & " {TableName.Project} = " & SParm(Buffervalue.project) & " and {TableName.pjt_entity} = " & SParm(Buffervalue.pjt_entity) & "/WHERE" & PRMSEP

            ParmStr = ParmStr & "/PSCRN"

            Call CallApplicWait("ROI", ParmStr)

    Thanks,

    Ajit Kannan  SR

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

#1
Community Member Profile Picture

Community Member 136

#2
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 102 Super User 2025 Season 1

#3
REUser Profile Picture

REUser 8

Featured topics

Product updates

Dynamics 365 release plans