Prompt Question

I want to prompt for a range of date on <Creation Date> object
FOR EXAMPLE
The requirment would be to show the Daily sales of the company where
1. promt -> ask user for the beginng date
2. prompt-> todays date should be there and then the user should be able to change it to select whatever date he wants in case if he doesnt want the todays date in the seconed prompt . Now i know that we can use the between clause for the range , but the question is how to fullfill the 2nd prompt request?
I hope i have clearify the situation enough

Hi,
If I understand correctly you want to have the second prompt that proposes the current date as default value but you want the user to change this proposition by another date.
I built somtimes ago a universe that shows how to deal with this kind of situtation.
Here are samples I built on the demo database "Island Resort Marketing" on SQL Server.
First, create a derived table on the table that contains the date coulumn you want to use:
select * from
(select 'Current date' as invoice_date_char, convert(datetime,convert(varchar,getdate(),111),111) as  invoice_date
union
select distinct convert(varchar,invoice_date,111), invoice_date
from Club.dbo.Sales)   a
Then, create an object (or a filter) that uses the prompt with the current date:
Dates.invoice_date_char = @Prompt('Select date','A','Dates\Invoice Date Char',mono,constrained,,{'Current date'})
Didier

Similar Messages

  • Command Prompt Questions

    Hi I have a question on command prompt coding, Can someone please tell me where can i find it?It would be great if you guys can move my below question to that location.
    Hi All,
    I have the following Copy Command which copies files from one location to another
    XCOPY D:\Test C:\Test /i
    Now i would like to have the files copied from D to C everyday based on the date for today, i googled around and found this one which is working fine
    XCOPY D:\Test C:\Test /D:01-19-2015.
    The thing here is i want the date to be automated as i would like to schedule a job for this one which would copy the files daily automated .
    Can someone please help me with this?
    PLease let me know if you have any questions.
    Thanks

    I'd avoid ITCG. Bill and jrv will just tell the OP to post in the platform forum, as the question is about how to use a utility and not about scripting.
    Just my two cents.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)
    Hi Mike,
    That's sad, really, as your suggestion is a batch file, which I thought were welcome there.
    By the way, congratulations!
    http://powershell.org/wp/2015/01/17/announcing-our-2015-powershell-heroes/
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Command prompt question

    Hi,
    Is it possible to just start the command prompt in a certain directory. ie. my java programs are in the file C:\Java\myprograms. Can I start the command prompt so that its already in that folder?
    Thanks,
    Cam

    As long as you have set the PATH environment variable
    correctly, the operating system will be able to find
    and run an executable file (java.exe, javac.exe, etc)
    from any directory.
    If you need to set the PATH variable, read #5 of the
    Installation Instructions for the version of Java
    that you have installed.o yeah i know all that i just want to start command prompt in the folder where all my projects are stored so i dont have to type a bunch of commands to get to it. im not sure if its even possible but i just thought someone might know...

  • Simple prompt question

    I want to run a java program from the DOS command prompt where it can prompt the user to input somethings. How do I do this? Thanks.

    Something like this:
    import java.io.*;
    public class MyClass
      public static void main(String[] args)
        System.out.println("Hi there!  Please type something: ");
        Buffered reader reader = new BufferedReader(new InputStreamReader(System.in));
        String userString = reader.readLine();
        System.out.println("You typed \""+userString+"\", thanks for playing."); 
    }

  • Dashboard Prompt Question and Header

    Hi,
    How can I make the the years chosen in the prompt appear as year-year in the header?
    Now, when I choose a year 2005-2008, it appear as 2005,2006,2007,2008 (I use @{Year}).
    Is there anyway to make it appear as 2005-2008?
    Thanks pros.

    Hi,
    Try this code.....
    <script type="text/javascript">
    var length1;
         var year_first;
         var year_last;
    var temp=new Array();
         temp = '@{year}'.split(",");
         length1 = temp.length;
         year_first=temp[0];
         year_last=temp[length1-1];
    document.write("Year range is "+ year_first +"-" + year_last);
    </script>
    Regards,
    Arul
    Edited by: ArulV on Jul 7, 2011 2:19 AM
    Edited by: ArulV on Jul 7, 2011 2:28 AM
    Edited by: ArulV on Jul 7, 2011 2:28 AM

  • SSH/Terminal/Command Prompt Question

    Is there a way at school to ssh into mu computer using command prompt, copy the file i need to the desktop of the pc i am using? Is there any way to do that. I can do that GUI from a PC laptop to mac in the same house using login credinteals, but this is remote, any suggestions?

    The GUI from a PC to your Mac would be TeamViewer.com
    TeamViewer.com is free for personal use, and has both Mac and PC versions. The connections are secure, and TeamViewer.com includes file transfer capabilities.
    For pay, you can do file transfer using LogMeIn.com. It has a free option for screen sharing, but file transfer requires a for pay option.
    The ssh route. More work, but it can be effective.
    With respect to ssh on the PC, you can use PuTTY, or a Cygwin.com environment (maybe others).
    The fun part is configuring your home router so that port 22 is forwarded to your Mac, and getting a dynamic DNS name from No-IP.com or DynDNS.org so that you can easily.
    PortForward.com has documents providing step-by-step guides on how to setup port forwarding for a huge list of routers
    <http://portforward.com/>
    Finally you will need to enable System Preferences -> Sharing -> Remote Login which allows ssh connections to your Mac.
    Now you can use scp or sftp from a PC client to transfer files to/from your Mac. There are also PC sftp clients available for secure transfers via an ssh connection (but you still need to do all the configuration work on your home router and Mac).

  • 2 iPhone 4s on the same iTunes account, now we have mixed contacts

    I've been using my iPhone 4S for quite some time and my wife and I also have iPads (1 and 2). We have always synced the music, books and apps between each device. We finally just got her an iPhone 4S several months ago. So, we just downloaded the latest 6.1.1 IOS upgrade and I must have answered a prompt/question wrong in the set up...because now all of her contacts migrated into my phone and all mine went into hers. We both have a zillion contacts now and don't want them on each other's phone. Also, if someone texts me or texts her, we BOTH get the text message on both phones.
    I'm sure there's just a setting somewhere but I can't find it :-) Can someone help me out?
    Also, if we manually delete her contacts from my phone that I don't want, will they delete from her iPhone, too? Thanks!!!
    RMF

    Thanks for the help. Took a bit of time and I'll need her phone (when she's back) to get it all straight...I think! :-)

  • How can I retrieve a Login Password

    Hello. I have two login icons when I start my eMac. I am able to log into the main one I use all the time, . However there is another one on there that I believe I made up for a test of sorts. Now I cant recall the login password on this one even though it gives me a prompt question. Is there any way I can find
    the password for it? Thanks.

    There is no way to retrieve a password, but you can reset it from the "Accounts" system preference if you are using an administrator account.

  • How to delete iphone music library

    Hi there.
    I have had itunes match since it was released, but have it currently turned off so I can clean up my library a bit.
    I have IOS 6.1 on an iphone 5 connected to itunes 11.0.1
    I wish to delete all of my iphone music library. That is: I wish to remove all songs off my iphone but keep all songs on my macbook pro itunes library
    I have my settings to manage songs manually and up until today I could delete the whole iphone library when I wanted (select all>delete)
    I can check the songs, none are greyed out. I can right click and delete/highlight and hit the delete key or highlight and edit>delete. However it doesn't go any further.
    The songs stay where they are on my iphone, on the iphone library in itunes and there is no prompt question, asking if i wish to keep the file or throw it to trash etc.
    I have searched but seem to only find answers here about deleting songs one by one on my iphone. i have 7000 songs i want deleted on here!
    I am hoping someone an help.
    Thankyou
    side note: I am finding turning off itunes match on my iphone settings annoying. I can switch itunes match "off" but when I leave settings and go back in, match has turned itself back on....URGGHH

    Yep I understand it is in the cloud, I used to be able to take the music off there though.
    I have just tried another method, Settings>Music>Show All Music
    and this seems to have helped. It has gone from 7000 songs to 2!
    I still don't want them in my itunes iphone library when I connect my phone....Any help removing the songs so they aren't on the iphone library in itunes would be a massive help
    Thanks for your help so far!

  • Predefined filters in OLAP Universe

    Hello
    I am trying to create a pre-defined filter in an OLAP Universe on top of SSAS 2008. We use BOXI 3.1
    Here is my object Structure
    Date(Folder) -> Year(Folder) -> Year(Dimension object).
    However when i try to create a simple filter as below
    <FILTER
    KEY="[Date].[Year].[Year]"><CONDITION
    OPERATORCONDITION="InList"><CONST
    ANT CAPTION="@Prompt('Calendar
    Year(s)','A','Date.Year\Year',multi,constrained)"/></CONDITION></FILTER>
    I keep getting "Parse Failed UNV0023 Invalid Definition" error.
    What am i missing here?
    Thanks
    Edited by: ramaks on Dec 30, 2009 7:00 PM

    Hi,
    Are you sure that the parent class of the "Year" object is "Date.Year"?
    The correcxt syntaw for @Select is @Select(parent class\object name)
    If you have an error you hit the same problem in the @Prompt that would be like this: @Prompt('Question','A','parent class\object name',multi,constrained)
    Didier

  • Everything is in english except the login page??

    Hi i bought this macbook pro second hand from a china girl, this set should be bought in singapore but i think she did some settings to it and the login page wont stop showing in chinese? sometimes when they prompt question it just came out in chinese while all my settings is in english... please help because it looks so ugly with all those chinese characters while i want it all in english pure english....

    OS X: How to change the language displayed in the login window

  • Cannot display page

    Hi, whenever i go into my browser it comes up with the cannot display page message. I have just recently got Bigpond ADSL wi-fi. I can connect to the network that the router has made but I cant connect to the internet. If i directly connect my laptop to the router (via a ethernet cable) i can use the internet.
    Please reply ASAP as i need the internet.
    Thanks

    Go to your Network panel in System Preferences. There, click on the "Show" drop down menu>Network Port Configurations. Airport ought to be checked and at the top of the list (you can click/drag it there, if necessary). Other boxes ought to be unchecked.
    Select "apply".
    Next, click the "Show" drop down menu and select "Airport". Then go to either your TCP or PPP panel, depending on the ADSL set-up. There, IP address numbers ought to be assigned. Also, if you are using TCP, enter these codes in the DNS servers box:
    208.67.222.222
    208.67.220.220
    Select "apply".
    Try Safari (make sure Airport is active in the Menu Bar - if it's not, make it active and select your wi-fi connection, which ought to be listed). Also, select "Use Interference Robustness".
    If you still cannot connect to the Internet, go back to the Network Panel and select "assist me". In the next panel, select "diagnostic". Go through the steps, answering the prompt questions. This will perhaps help get you connected. If there are changes, you'll need to select "apply" again in the Network panel.
    Try Safari. Post back with results.
    iMac G5 Rev C 20" 2.5gb RAM 250 gb HD/iBook G4 1.33 ghz 1.5gb RAM 40 gb HD   Mac OS X (10.4.8)   LaCie 160gb d2 HD Canon i960 printer

  • JUnit - Strange Test Case running problem

    Hi Everyone,
    I am very new to J Unit testing. Here's my problem. I have a project set up in Net Beans. Inside the project, there is a folder named "tests". This folder contains the following class:
    public class Bob
        public static void main(String[] args)
            System.out.println("Hello");
    }There are other classes inside of this folder that extend TestCase and TestSuite. They are functionally working according to J Unit testing (they prompt a JUnit Test Results panel in Net Beans with Pass or Fail).
    The problem that I am having upon running/executing the class "Bob", NetBeans treats it as a JUnit test case and brings up a Pass/Fail panel. I do not want this to happen. I just want this class to print "Hello" as if it was not a Test. Do you guys have any idea what the problem is? My "Bob" class has nothing imported.
    Also, I have another question. Is there a way that I can take INPUT from a user when running a Test Case (such as using the Scanner class)? My test cases seem to skip over the Scanner.nextLine() code for some reason.
    Thanks in advance.

    Hi BigDaddy,
    Thanks for the suggestion, however I am unsure of what you mean by injecting the scanner. Here is an example of what I would like to do:
    public class BenchmarkTestSuite extends TestSuite
        public static void main(String[] args)
            try
                Scanner scan = new Scanner(System.in);
                System.out.print("Enter the number of iterations for read: ");
                readIterations = scan.nextInt();
                .... etc
            catch(Exception ex)
                ex.printStackTrace();
        .... etc
    }Here, the prompted question for the user gets ignored for some odd reason. I would like for the tests to not start until the question has been answered by the user. NetBeans is strange. I commented all of the test methods to see if the question gets printed to the console, and it does not.
    Thanks.

  • Delete iCloud Account - Notes

    1. I have a me.com account
    2. I tried to delete my icloud account from my ios 7
    3. After I press Delete Account, a prompted question comes out : " What would you like to do with iCloud data......  KEEP ON MY IPHONE or DELETE FROM MY IPHONE "
    If I choose KEEP ON MY IPHONE everything stay except NOTES? Why NOTES does not stay on the iphone? I know it stay on the cloud but why not on the phone?
    thank you

    This might be obvious but is the "notes" tab on or off?

  • Imac admin password

    On a non network iMac with one account, when requested for an Administrator name & Password I use the logon name and password ( as I believe they have to be the same) yet they are not accepted. After 3 attempts I get the memory prompt question indication the name part must be correct, but the password is not accepted...curious me thinks.???
    Any guidance please .....
    Thanks
    m167

    Have you read for possible solutions over in the "More Like This" thread over here?----------------------->

Maybe you are looking for