How to Dynamically Select the Data File for a Report at Print Time

How do you configure a Crystal report to ask for the file to be reported on as the report is being printed, and allow the user to browse to the file?
The environment is Crystal Reports XI, SP3, with ODBC connection to Sage Timberline Office data version 9.7.  The client names their Payroll unposted time file each pay period, and also needs to report on their posted data file, depending on the time period for the report.  The client will need to select both the date range and the file name.
I have created a SQL statement in Add Command in Database Expert, which prompts for a file name, but it does not let you browse to select a file on the computer.
Therefore, in the prompts when they print the report, the parameter offers the user a default file name similar to the name they currently use, so they only have to change the payroll period end date in the supplied file name to run the report successfully.
The client is concerned that sometimes a user will name their data file differently, and not know how to input the file name into the Crystal report prompt at print time.
My research on dynamic prompts showed you can link to fields inside the data record, but I did not see a way to dynamically link to select the actual files used in the report.
Another question is that the naming convention used by the SQL query is different than the basic Windows file name, but I think I can handle that issue.
The actual file name is typically similar to:
04-10-11 BP NEW.PRT
However, in the SQL query, the record ID looks like:
PRT_00-00-00 BP NEW__TIME
The SQL Statement using a parameter is:
SELECT
"PRT_CURRENT__TIME"."Employee",
"EMPLOYEE1"."Employee_Name",
"PRT_CURRENT__TIME"."Date",
"PRT_CURRENT__TIME"."Units",
"PRT_CURRENT__TIME"."Job",
"JOB1"."BP_Emps_Used"
FROM
"PRT_CURRENT__TIME" AS "PRT_CURRENT__TIME"
INNER JOIN "JCM_MASTER__JOB" AS "JOB1"
ON "PRT_CURRENT__TIME"."Job"="JOB1"."Job"
INNER JOIN "PRM_MASTER__EMPLOYEE" AS "EMPLOYEE1"
ON "PRT_CURRENT__TIME"."Employee"="EMPLOYEE1"."Employee"
WHERE "JOB1"."BP_Emps_Used" = 1
AND
("PRT_CURRENT__TIME"."Date" BETWEEN
{?As of Date} - 41 AND {?As of Date})
UNION ALL
( SELECT
"PRT_NEW__TIME"."Employee",
"EMPLOYEE2"."Employee_Name",
"PRT_NEW__TIME"."Date",
"PRT_NEW__TIME"."Units",
"PRT_NEW__TIME"."Job",
"JOB2"."BP_Emps_Used"
FROM
"{?NEWPRT}" AS "PRT_NEW__TIME"
INNER JOIN "JCM_MASTER__JOB" AS "JOB2"
ON "PRT_NEW__TIME"."Job"="JOB2"."Job"
INNER JOIN "PRM_MASTER__EMPLOYEE" AS "EMPLOYEE2"
ON "PRT_NEW__TIME"."Employee"="EMPLOYEE2"."Employee"
WHERE "JOB2"."BP_Emps_Used" = 1
AND
("PRT_NEW__TIME"."Date" BETWEEN
{?As of Date} - 41 AND {?As of Date})

Hello,
Sorry you'll have to contact Sage on how to do this. We can help you once you get connected but we can't help you get around their connection methods.
There is no Preview Set Database Connection method you can use in CR Designer. The Designer assumes you select it first or use the Set Location option before previewing or refreshing the data.
If you are doing this in the Sage program itself we can't help you, you'll have to contact Sage for assistance.
Sage is an OEM Partner they are responsible for supporting their product and CR. If they have issues help you then they will contact us directly for assistance.
Thank you
Don

Similar Messages

  • How can I get the lesson files for Aperture 3.2.4?

    How can I get the lesson files for Aperture 3.2.4?

    They are only available on the original Installer dvd with the boxed retail version.
    But you can easily use your own photos to try out the tutorial videos. The videos are linked on the Aperture Support page.

  • Where is the data file for the address book located, I need to restore mine from backup but don't know where it is.

    Where is the data file for the address book located, I need to restore mine from backup but don't know where it is to do so.  Putting my Mac Pro onto icloud synching contacts resulted in duplicate and triplicates of the same cards.  I have a few THOUSAND contacts and the last time this happened was on mobile me.  that had a function where you could replace info on the mobile me server with info on the computer.  I see no way to do that on the new cloud.

    In the stupidly hidden user's Library->/Application Support/AddressBook/ labeled as AddressBook-v22.abcddb
    For TM restores, see Pondini's TM FAQs for starters, since I don't use TM.

  • How do I select the correct ram for upgrade to iMac 8,1?

    How do I select the correct ram for upgrade on my iMac 8,1? When I look up information online, I believe that I have SO-DIMM ram. Do I need to purchase SO DiMM? I want to upgrade to Maverick and I think I was told that I need DDR2 or SDRAM. My model # is A1224, if that helps.

    Welcome to Apple Support Communities
    OS X Mavericks requires 2 GB of RAM at least, but I recommend at least 4 GB of RAM.
    You have got an Early 2008 iMac. You can buy more RAM at OWC or Crucial. Your Mac supports 6 GB of RAM

  • Looking for the *.ppd file for an HP P1102w printer (to install in eCS system (= OS/2)

    Looking for the *.ppd file for an HP P1102w printer (to install in an eCS system (=> OS/2)).  (.ppd means
    PostScript printer description, applies even if the printer is _not_ postscript.; available for most printers
    but isn't on the CD!)  Can anyone point me to the file ?
    John H. Lindsay

    The LaserJet P1102 models are 'host-based', which means that they do not understand any of the 'traditional' Page Description Languages (PCL5, PCL6 (a.k.a. PCL XL), PostScript).
    So unless your eCS system (whatever that is) has knowledge of the (various) proprietary and model-specific host-based languages, I don't think that a printer description file would help at all.

  • How do I uninstall the .inf file (for USB)

    I read here how to create and install an .inf file:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/6792BAB18242082786256DD7006B6416?opendocument
    Before I start... How do I uninstall it if required?

    Hey Viking,
    If you installed a driver for the device then all you have to do is uninstall the driver. For example if I wanted to use a DAQPad I would just uninstall NI-DAQ.
    However, Windows ships with drivers for several USB devices. In this case you have a few options. After creating your .inf file and installing it you can go to the device manager and click update driver for the device and then manually select the .inf file you created instead of the default one that windows uses.
    You could also search the inf files on your computer (normally at C:\Windows\inf) for a file that contains your specific vendor and device ID. Then comment out the line that references your device.
    I hope this helps out.
    JoshuaP
    National Instruments

  • How does one change the date format for PlayMemories Home folders?

    I am using PlayMemories Home Version 2.0.00.11271 and have many folders within it which contain only photographs imported from my Sony DSC-H9.  Unfortunately, PlayMemories Home insists upon dating all folders in a month/day/year manner; and this makes little sense if one wishes to have the folders listed in logical chronological order.  How can I change the date format to year/month/day?  Changing the name of each folder, one by one, will take a very long time!  Your helpful advice in this matter will be greatly appreciated.  Thank you. System information:
    Operating system: Microsoft Windows XP Professional
    Service pack : Service Pack 3
    Memory: 1.5 GB
    Processor:         Intel(R) Pentium(R) M processor 1.86GHz
    Max. clock speed: 1.86
    Manufacturer: IBM
    Model: 1847W76
    System language setting: English (United States)
    User language setting: English (United States) 

    I too thought that the folder naming format was obviously wrong and couldn't find a way to change it. I do agree that placing photos in folders according to when they were taken is a great idea. I had been considering writing some software to do just that. After discovering that PlayMemories does it, I had it re-import all my photos. Then I wrote a small Perl script to rename all of the folders into year-month-day format. Included here is the Perl script. It only acts on a single folder - use it on the root folder where all the PlayMemories folders are. It will rename all folders currently in a month-day-year format. I used it without problems but of course there is no guarentee that it is error free. This should work with any common version of Perl. Tom # There should be one command line argument: the directory to act upon
    if ( scalar(@ARGV) == 0 ){
     print "Usage: RenameDirs <dir>\n";
     print " Where dir is the directory containing the directories to rename.\n";
     exit;
    $mydir = $ARGV[0];
    chdir $mydir or die "Couldn't chdir to $mydir: $!";
    opendir(ROOTPHOTODIR, ".") or die "Failed to open the pictures directory $mydir: $!";
    @allphotodirs = readdir ROOTPHOTODIR;
    closedir ROOTPHOTODIR;
    foreach $dir (@allphotodirs) {
     if ( -d $dir ) {
      print "$dir is a directory";
      if ( $dir =~ /^(\d{1,2})-(\d{1,2})-(\d{4})$/ ) {
       print " and has the proper format: month $1 day $2 year $3 and will be renamed to ";
       $newname = sprintf "%4u-%02u-%02u", $3, $1, $2;
       print "$newname\n";
       rename $dir, $newname or die "failed to rename $dir to $newname: $!";
      else {
       print " but is not of the proper format\n"
     elsif ( -f $dir ) {
      print "$dir is a file\n";
     else {
      print "$dir is neither a directory nor a file\n";
    }

  • How to dynamically display the data from a table base on row selection of another table in ADF

    Hi ,
    I have a requirement in ADF. I need to change the data of a table  based on row selection of another Table . Both the table have a Parent Child relationship between them. They have a common attribute say department_id.
                                                                                         For this I created bind variable in view object of employees table and wrote a where clause in the sql query using that bind variable. Then I created method for selection listener of department Table in java bean.
    My method is following
        public void onrowselection(SelectionEvent selectionEvent) {
            RichTable richTable = (RichTable)selectionEvent.getSource();
                            CollectionModel tableModel = (CollectionModel)richTable.getValue();
                            JUCtrlHierBinding adfTableBinding = (JUCtrlHierBinding)tableModel.getWrappedData();
                            Object selectedRowData = richTable.getSelectedRowData();
                            JUCtrlHierNodeBinding nodeBinding = (JUCtrlHierNodeBinding)selectedRowData;
                    oracle.jbo.domain.Number newVal = (oracle.jbo.domain.Number) nodeBinding.getAttribute("DepartmentId");
                    Number pallet = newVal.bigDecimalValue();
                    System.out.println("Selected values " + pallet);
            BindingContext bindingctx = BindingContext.getCurrent();
                          BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
                          DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
                  DCIteratorBinding dciter = bindingsImpl.findIteratorBinding("EmployeesView1Iterator");//access the iterator by its ID value in the PageDef file
                          ViewObject vo =dciter.getViewObject();
                          vo.setNamedWhereClauseParam("DepartmentId", pallet);//enter your value
                          vo.executeQuery();
    It is printing the selected value of department id from department table in the log. But it is not able to pass the value to employees view. It is showing the following error in the log
    "Definition DepartmentId of type Variable is not found in EmployeesView1."
    I will be very thankful if someone helps me to solve this errror or is there any other way to achieve the same requirement.
    Thanks
    Nilesh

    Note quite sure why you simply wont create a viewlink for the viewobject the tables are based on..
    The viewlink attribute will be based on the departmentId and it's a simple master detail relationship which automatically uses ppr.
    However, if both tables are on the same page; using your hack about;
    On the underlying viewobject, define a viewcriteria e.g. "listById" and set your bind variable here.
    I would bind table two to a RichTable component:
    RichTable t2;
    public void onrowselection(SelectionEvent selectionEvent) {
            RichTable richTable = (RichTable)selectionEvent.getSource();
                            CollectionModel tableModel = (CollectionModel)richTable.getValue();
                            JUCtrlHierBinding adfTableBinding = (JUCtrlHierBinding)tableModel.getWrappedData();
                            Object selectedRowData = richTable.getSelectedRowData();
                            JUCtrlHierNodeBinding nodeBinding = (JUCtrlHierNodeBinding)selectedRowData;
                    oracle.jbo.domain.Number newVal = (oracle.jbo.domain.Number) nodeBinding.getAttribute("DepartmentId");
                    Number pallet = newVal.bigDecimalValue();
                    System.out.println("Selected values " + pallet);
                   refreshTable2(pallet);
            BindingContext bindingctx = BindingContext.getCurrent();
                          BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
                          DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
                  DCIteratorBinding dciter = bindingsImpl.findIteratorBinding("EmployeesView1Iterator");//access the iterator by its ID value in the PageDef file
                          ViewObject vo =dciter.getViewObject();
                          vo.setNamedWhereClauseParam("DepartmentId", pallet);//enter your value
                          vo.executeQuery();
    private void refreshTable2(Number pallet){
    RichTable x=getT2();
    CollectionModel cm=(CollectionModel)x.getValue();
    JUCtrlHierBinding jcb=(JUCtrlHierBinding)cm.getWrappedData();
    BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
    DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
    DCIteratorBinding dciter = bindingsImpl.findIteratorBinding(jcb.getName()+"Iterator");
    ViewObject vo =dciter.getViewObject();
    ViewCriteriaManager vcm=vo.getViewCriteriaManager();
    ViewCriteria vc=vcm.getViewCriteria("listById");
    vo.applyViewCriteria(vc);
    vo.setNamedWhereClauseParam("DepartmentId",pallet);
    vo.executeQuery();
    AdfFacesContext.getCurrentInstance().addPartialTarget(getT2());

  • How do I select a data source for my webapp?

    Wel, I'm obviously not looking in the right manual because this ought to be like falling off a log!
    I have developed a web application in JDeveloper 10.1.3 and I'm deploying it (using a WAR file) to an OC4J container in OAS 10.1.3.
    I have created a JDBC data source (JNDI location jdbc/bmra89) to connect to a 9.2.0.7 Oracle database and testing this through the interface is successful. The data source is associated with a new Connection Pool.
    I ensure that a default data-sources.xml file is NOT bundled into my WAR file from JDeveloper (because the database I want to connect to from the OAS is different to the database I want to connect to from the deployed web app) so it should be looking for one it builds itself. In fact, data-sources.xml exists in the j2ee/<webapp_name>/config directory that contains the details of the data source and connection pool I created.
    During deployment of the generated WAR file, I have chosen to Edit the Deployment Plan and in here I have entered the name of the data source (jdbc/bmra89) into the box labelled "defaultDataSource" and the boxes labelled "connectorsPath" and "dataSourcesPath" I've left empty.
    It all deploys OK, but when I try to access a page I get the following error:
    500 Internal Server Error
    JBO-30003: The application pool (model.AppModuleLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1954)
    So, any ideas where I'm going wrong? (I have to admit to being pretty lost with all this!)
    Thanks,
    Andy

    Let's try to do this as easy as I'm capable of explaining.
    Deploy the EAR to the Application server/OC4J standalone that you're trying to configure without modifying or removing any of the files in the EAR or WAR file and using all of the defaults.
    Now start up the Application server control in you choice of web browser, my URL is http://localhost:8888/em.
    After logging into the console select the "Adminstration" Link, and there will be List of Administration Tasks, one of which being the JDBC Resources under, Services.
    After selecting the JDBC Resources "Go to Task" you will see 2 areas, Data Sources and Connection Pools. Somewhere in all of this you should see the jdev-connection-pool-bmra89, jdev-connection-managed-bmra89, and jdev-connection-native-bmra89.
    I normally modify the jdev-connection-pool-xxxxx first to use the correct URL connection. IE- jdbc:oracle:thin:@localhost:1521:bmra89 to jdbc:oracle:thin:@138.51.128.100:1521:bmra89, changing localhost to a specific database IP address.
    Then I'll click the Apply, and then go back and do the same to the jdev-connection-native-bmra89.
    At this point you should be able to test the connections successfully, and get the Web Service to connect.
    I hope I've covered it and that this helps, and you're not being thick. The data sources part of this stuff can be confusing.
    Darren

  • How can I select the default greeting for a voicemail for the iPhone 4s?

    I am wanting to set up the voicemail feature for my iPhone 4s. (I have had this phone for years but never enacted a voicemail!) However, I am having trouble. When I click on the phone settings in my phone, the only options I have in regards to voicemail is to set up or change the password. I am not given the option to set up a voicemail. Whenever I try to set up the voicemail by dialing *86, I am given only the options of changing my password or to set up a custom greeting. I am not able to select the default/standard greeting as it is not mentioned. I am wondering how I can go about this. I am not sure why I don't have the options already available in my phone automatically or why it is not provided as an option when I call to set it up.
    Any help with this?
    Thank you!!

    nnd217, Help is here! The 4S is a great device, sorry to learn that you are having trouble with setting up the VM default greeting. I should be able to shed some light on this situation. If you go to your phone icon, as if you were making a call, you should see the voicemail icon down at the bottom right. Once you select that, in the upper left corner there is an option that says Greeting, so ahead and select that. From there you have two choices, default and Customer. If you select default there will be a check mark in that box, then hit save. You should now have your default greeting in place. If you do not have that or continue to have issues with it, please let me know! Thanks!  ErinW_VZW Follow us on Twitter @VZWSupport If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • Access via command line to the data files for Address Book

    Snow Leopard Server 10.6.8
    Mac Mini 2.66 GHZ Intel Core 2 Duo 4 GB 1067 MHZ DDR3
    I rolled back from Mountain Lion Server to Snow Leopard Server because I needed mySql. At the time I was under AppleCare and they walked me through the steps. However, I ended up with Address Book issues.
    Addressbook user on the Snow Leopard Server was upgraded to Mountain Lion Server. During the rollback process, the Apple tech had me delete the Addressbook user.
    When we finished the rollback, he had me recreate the Addressbook user, but now it is linked to a new, empty data file. I cannot add new contacts nor edit or delete them. So I need to use the command line to view both data store files, find the one that has my data in it and re-attach it to my new Addressbook user.
    Can someone help me with the Command Line commands?
    Thank you,
    Cailyn

    Hi,
    There are a couple of more advanced solution I can think of and I'm actually working on one myself.
    * You can create your own jnlp client that allows you to pass in arguments. That sounds harder than it easy. Building a stripped down jnlp client (e.g. no installer, no applets) using one of the two open-source client as a start takes probably just a couple of days and should be sufficient for in house usage.
    * Another solution is what I'm working on now. You can wrap your own executable around javaws that takes your passed in arguments plus jnlp href and looks up the original in the cache and adds a new one to the cache that it passes on to javaws and suddenly everything works as it should. The magic will be revealed at http://www.geocities.com/vamp201
    - Gerald Bauer

  • How do i get the cdg file for karaoke purchases

    hi i was wondering i have purchased some karaoke albums using itunes and was wondering how i get the cdg files that goes with them in order to use them for karaoke??

    voodoo2k10 wrote:
    even when you purchase the full cd from a karaoke company eg zoom avid sunfly etc ?
    Since you say "purchased some karaoke albums using itunes," I thought your question was about the iTunes Store. If you are asking about commercial Karaoke CDs, you cannot use them in iTunes.
    so they are not cdg just mp3 backing tracks ??
    The ones from the iTunes Store are instrumental backing tracks in AAC format.
    Message was edited by: ed2345

  • How do you make the date change for every entry when inserting.

    Hello, I am making a daily vehicle inspection report for my truck and I would like to make a 7 day calendar but I would like to insert the date ie Monday Feb 22, 2010, Tuesday Feb 23, 2010 etc...and have it change for each day of the week. is there a way to do this? Also can you put an outline or a box around the 6 lines of text that you input.
    Thank you
    Ottoman

    Jerrold Green1 wrote:
    Ottoman,
    As Peter says, you can use a Table for this. You do not, however, need to enter two dates to fill with a series of dates. Dates are an exception to the general Fill rule. Just enter one, and fill down to get successive dates.
    Other exception available:
    a single cell is sufficient for every entries ending with a number :
    president1
    thief2
    king3
    behave this way.
    Durations behave like numbers : two cells are required.
    Yvan KOENIG (VALLAURIS, France) samedi 27 février 2010 18:20:29

  • In Thunderbird, how do I change the date format for the column display?

    I want the date to show as DD-MM-YYYY HH:MM AM/PM. Although this should be really obvious (and I know I've done it in the past), I can't find where to do this and can't find anything in Thunderbird Help on this, not even when I search "Thunderbird, change date format".

    Thunderbird usually uses the computer date and time and settings.
    I'm using Windows and notice that TB is using the short date format which I set up under Regional & Language Options.
    Are you using the International settings or Date/Time settings?
    It should pick up the settings from the 'International' or maybe its called now called 'Language & Text' setting.
    not sure which of these suits your macbook:
    http://www.macyourself.com/2008/08/31/modify-the-default-clock-in-os-xs-menu-bar-to-show-the-full-date/
    http://www.dummies.com/how-to/content/language-text-preferences-on-your-macbook.html
    http://www.dummies.com/how-to/content/how-to-change-your-macs-date-and-time.html
    http://www.youtube.com/watch?v=2zBMl8Vb3wc
    http://support.apple.com/kb/TS3579

  • How can I change the dates on many photos with a fix time of say 20s?

    Before it was possible to change the date on many pictures scanned by adddind a fix increlental of time.
    How can I now change the dates on many pictures taht I have renumbered to keep the same incremental?

    The seconds:
    I just remembered - the time increment is set in Apple Script in seconds -  the variable  "minutes" is just a name for the value "60" and "hours" for "3600". Since "seconds" would have the value "1", there is no predefined constant "seconds".
    If you want an increment of 30 seconds, simply write
    set timeIncrement to 30
    For example
    on run {input, parameters}
      (* copyright leonieDF *)
              set timeIncrement to (1 * hours) + (2 * minutes) + 30
      (* select at least 2 images in Aperture *)
              tell application "Aperture"
      activate
                        set imageSel to (get selection)
                        if imageSel is {} then
                                  error "Please select an image."
                        else
                                  tell (item 1 of imageSel)
                                            set imageDate to value of EXIF tag "ImageDate"
      --set imageDate to get the value of EXIF tag "ImageDate"
                                  end tell
                                  repeat with i from 2 to count of imageSel
                                            set imageDate to imageDate + timeIncrement
      adjust image date imageDate of images {item i of imageSel}
                                  end repeat
                        end if
                        return imageSel
              end tell
    end run

Maybe you are looking for