Can we limit the number of choices in [%3]?

Dear All,
Please see the Query below.
When I run it, a Query - Selection Criteria screen appears.
When I click on the Account Code lookup (this is [%3]) , I am presented with a complete list of Account Codes to choose from.
I want the user to have access only to a few Account codes, say 120, 121, 122.
Where and how should I place the restrictions in my Query so that when the user clicks on the lookup, he is presented with only these 3 Account codes to select from?
Thanks
Leon Lai
Query - Selection Criteria
Posting Date                          ..............
Posting Date                          .............
Account Code                          ..............
[OK]       [Cancel]
declare @frompostdt datetime
set @frompostdt
/*select 1 from jdt1 t0 where t0.RefDate*/ = '[%1]'
declare @topostdt datetime
set @topostdt
/*select 1 from jdt1 t0 where t0.RefDate*/ = '[%2]'
declare @glcode nvarchar(max)
set @glcode
/*select 1 from jdt1 t0where t0.Account = '1240601'*/ = '[%3]'
SELECT
T0.RefDate AS 'Posting Date',
T0.TransId AS 'Trans. No.',
T0.Account AS 'GL Code',
T0.Debit - T0.Credit AS 'Dr / (Cr) Rs'
FROM JDT1 T0
LEFT OUTER JOIN OACT T1 ON T0.[Account] = T1.AcctCode
LEFT OUTER JOIN OACT T4 ON T0.[ContraAct] = T4.AcctCode
LEFT OUTER JOIN OCRD T2 ON T0.[ContraAct] = T2.CardCode
WHERE
T0.Refdate >= @frompostdt
AND T0.Refdate <= @topostdt
AND T1.AcctCode = @glcode

Hi Leon Lai.........
If you want to achieve this then I would suggest you make all the Accounts Confidential or assign some category any any identification mark except those to which you need to make the list of accounts accessible to Users. And make a condition that if this Account is not confidential then it will show in selection box.
I hope this will better help you........
Regards,
Rahul

Similar Messages

  • How can I limit the number of emails retained on my ipad air?

    How can I limit the number of emails that are retained on my iPad Air?  Because of legal requirements of a long-term project, I cannot permanently delete emails relating to that project from my ISP's mail server.  My gmail account contains over 17,000 emails and, upon setting up my new iPad, and updating to ios 7.1.1, I now have all 17,000+ emails taking up space.  I would like to limit the emails by count as I was able to do on my old iPad running ios 5.1.1 OR to retain them based on date range.  I have not found any instructions on the support discussions or general iPad blogs that allow me to do that.  Any way around this problem?
    I also miss the 5.1.1 mail search feature that allowed me to narrow the search by from/to/subject/all.  Does anyone know if that feature is available using some little-known ios 7.1.1 feature?
    Thanks for your help.

    jlfcba wrote:
    IOS 7.1.1 doesn't show a "days to sync" parameter anywhere in SETTINGS/Mail,Contacts,Calendars/ACCOUNTS/GMAIL Account/ GMAIL Acccount Info.  There is nothing in iTunes relating to such an option either.  So, it seems I'm back to square one.
    If you have a decent mail provider like Microsoft Hotmail or Outlook.com mail it does.
    If you have Gmail it does not.  Quite right. Gmail is rubbish.

  • HT2729 I have limited space on my new ipad. How can I limit the number of songs from my itunes on my imac from going to my ipad when I connect the two?

    I have limited space on my new ipad. How can I limit the number of songs from my itunes on my imac from going to my ipad when I connect the two?

    you can do this by keeping the external hard drive connected and doing the following
    -hold shift key down on computer while opening iTunes and a prompt will appear to choose a library
    -select choose library, iTunes should bring up your explorer windows where you can search for the external HD
    -after you find the external HD find the iTunes folder you just copied to it
    -after opening the iTunes folder look for the file that says iTunes library.itl or if you can't see that extenstion just look for a document looking thing in the iTunes folder that shows up as a database file
    -double click the database file and boom iTunes should load your library without having to copy it to the computer
    PS: do make sure that if you are going to do it this way, make sure that the external HD is connected at all times, because if you don't then you will get exclamation marks next to your iTunes songs
    double PS: if you are unsure how to find out if the iTunes library file is a database file just right click it and choose properties and under the type it should say database file
    hope this helps:)

  • Hi, how can I limit the number of emails I can see on my iPhone 5. Every time in delete one and older email gets added from my live.co.uk account (where I want to keep my 2500 emails) I just don't want many on my phone. Thanks

    Hi, how can I limit the number of emails I can see on my iPhone 5. Every time in delete one and older email gets added from my live.co.uk account (where I want to keep my 2500 emails) I just don't want many on my phone. Thanks

    You can't. Why on earth would you attempt to manage 2500 emails with setting up a folder structure or some means of doing so? Simply keeping them in an single inbox is not realistic, no matter what email client you use.

  • How can I limit the number of rows returned by a select stat

    How can I limit the number of rows returned by a select
    statement. I have a query where I return the number of stores
    that are located in a given area.. I only want to return the
    first twenty-five stores. In some instances there may be over
    200 stores in a given location.
    I know is SQL 7 that I can set the pagesize to be 25....
    Anything similiar in Oracle 8i?
    null

    Debbie (guest) wrote:
    : Chad Nale (guest) wrote:
    : : How can I limit the number of rows returned by a select
    : : statement. I have a query where I return the number of
    : stores
    : : that are located in a given area.. I only want to return the
    : : first twenty-five stores. In some instances there may be
    : over
    : : 200 stores in a given location.
    : : I know is SQL 7 that I can set the pagesize to be 25....
    : : Anything similiar in Oracle 8i?
    : If you are in Sql*Plus, you could add the statement
    : WHERE rownum <= 25
    : Used together with an appropriate ORDER BY you
    : could get the first 25 stores.
    Watch out. ROWNUM is run before ORDER BY so this would only
    order the 25 selected
    null

  • How can I limit the number of emails resident in Apple Mail?

    How can I limit the number of emails resident in Apple Mail inbox?

    jlfcba wrote:
    IOS 7.1.1 doesn't show a "days to sync" parameter anywhere in SETTINGS/Mail,Contacts,Calendars/ACCOUNTS/GMAIL Account/ GMAIL Acccount Info.  There is nothing in iTunes relating to such an option either.  So, it seems I'm back to square one.
    If you have a decent mail provider like Microsoft Hotmail or Outlook.com mail it does.
    If you have Gmail it does not.  Quite right. Gmail is rubbish.

  • Can I limit the number of rows returned on a Select?

    Can I limit the number of rows returned on a Select statement? I would be using JDBC in a Java program.

    Use Java prepared statements with the equivalent of this SQL*plus script:
    VARIABLE n number
    EXEC :n := 3;
    SELECT rownum FROM all_objects WHERE rownum <= :n;
        ROWNUM
             1
             2
             3
    EXEC :n := 5;
    SELECT rownum FROM all_objects WHERE rownum <= :n;
        ROWNUM
             1
             2
             3
             4
             5

  • How can i limit the number of taps that open in safari

    How can i limit the number of tabs that open in safari

    preferences-->tabs
    change new pages to never open in new tabs.
    Now you only get the number of tabs that you open yourself with command-T or the new tab button.

  • Newbie question... Can I limit the number of users ...

    Can I limit the number of users accessing a URL?
    My company wants to start making videos available on our intranet web site. Once published, they are planning to send an email to all our employees (5000+) to announce the video. That's a great idea... but who asked the network guy if the network (server too) can take the load? NOBODY.
    Short term solution... can I limit the number of concurrent users hitting a URL? And if possible, can I push a message to the users that try once the limit is reached?
    Limiting the bandwidth is an option, but I will trash the user experience.
    Long term solutions besides bandwidth increase? Cashing servers, WAN accelerators...?
    Help !!!

    This is really not a problem for the WSA to solve.  Typically the WSA is used to control content and provide security for external internet content.  The product does not have the feature you describe.
    However, when it comes to the internal hosting of content - since you are using an internal server, that server should be able to control the amount of traffic it servers, number of connections, etc.
    ~Tim

  • How can I limit the number of attempts to print a web page

    Hi I'm trying to find a resolution for an issue on our network.
    We run several kiosk machines that allow customers to print out documents and web pages. However we are finding that we waste a lot of ink due to user's frequently sending the same print task to the printers.
    Just yesterday we had someone print out over 70 pages because they just keep clicking print.
    I've tried looking for an add-on that would address this but was not able to find one.
    My question is this, Is there an internal setting that can be changed in firefox to limit the number of print attempts to say once every 30 seconds, or even a way to make a dialogue box come on screen saying that the print request is currently processing and not allow more printing until the current task is completed.

    Sorry, there is no setting within Firefox to prevent that from happening. Once the user sees the "native print dialog" box (what is seen when you do Ctrl + P to initiate printing), the operating system and the printer drivers take it from there.
    I have seen something similar to that on kiosk / rental PC's in FedEx Office stores, that notify the user of the cost per page the user wants to send to a printer, and if the user should happen to click again to print the same pages again it asked if you want to spend another $x.xx to print a second copy. Wouldn't be too much different to just shut off the printing of multiple copies of the same document and notify the user of that action.
    My advice is to discuss that with whoever set up those kiosks to being with.

  • How can I limit the number of messages coming into my email accounts on the IOS7

    I don't like the new IOS7 system most annoying is the excess battery useage and need to recharge the other is I can no longer limit the number of emails that are in my cell's email accounts old system let you choose the amount of messages. 
    already did the basic things to eliminate battery drainiage getting rid of open pages which was also annoying to figure out how to use as you can't simply click and hold then delete all open apps running in the back ground you must touch and slide them off the phone. I don't let apps do auto updates.
    They need to do something about the battery and having to have all emails on the phone which likely is sucking up space.
    Any suggestions?

    I don't think it matters what you use as your email client. This is a feature that existed before and was missed in the upgrade to IOS 7. I read on another post that if you contact Apple support they just tell you to report it in Apple feedback.  I just submitted feedback at http://www.apple.com/feedback/  I couldn't find an IOS section to post it to, so I just posted it in the iPhone section. Maybe if enough people do this, Apple will fix it.

  • When I air print from my iPad, I can't limit the number of pages. It just says print and the number of copies and I end up with way more than I want. How do I set it to limit the pages?

    When I air print using FingerPrint from my ipad, it doesn't let me limit the number of pages, and I end up with more pages than I want. It asks if I want multiple copies, but it doesn't ask me number of pages, or which pages. Is there a way to do this?

    When you use an AirPrint compatible printer, you get this option for page range. You are using your computer as the server in order to print, so you probably have to set the range on the computer. While you can print from your printer with this app, I assume that it doesn't give you the same control that you get directly from the iPad when using an AirPrint printer.
    Read this from the FingerPrint support site. Selecting the page range would be part of the formatting of a print job.
    http://fingerprint-support.collobos.com/knowledgebase/articles/66972-i-can-t-for mat-the-print-job

  • Can I limit the number of appointments made by everyone at a specific time and place?

    I want to limit the number of people who make an appointment at a specific time and place.  Can I do this?

    Which Adobe software are you using?

  • How can I limit the number of ros in TextArea?

    As I turn on the line wrap and having used setRows method,
    I cannot limit the number of rows of the textarea into 2.
    How can I limit it?
    Thanks.

    camickr wrote:
    I give up. You don't know specify requirements and I'm not going to prompt you every 5 minutes for more information.
    due to setText method So this implies that the text comes from somewhere, maybe a database, but the user does not type the text directly into the text area.
    If you define the text area with 2 rows, then the third row will not be visible, so I don't see the problem. Just don't add the text area to a scroll pane and the user will never know the third row is there.[http://i188.photobucket.com/albums/z55/nwoedf/temp/error.png ]
    it demonstrates the problem with excess line
    The third row is still visible even I have used setRow(2).

  • Can I limit the number of songs in a genius mix (not a playlist)?

    I would like to limit the number of songs in a Genius Mix (not a Genius playlist). Is this possible in any way, including on iPhone or iPad? If so, how?
    I've seen some earlier answers, but they apply to earlier versions of iTunes. I'm using 10.2.2.

    slab46 wrote:
    Some of us don't have a boatload of free space on our iPods, and limiting the number of songs in the Genius Mix would allow us to synch the lists to the iPod and carry them around.
    You can already do this...
    A Genius mix is limited to how many songs in the selected playlist fit the Genius mix profile.
    A Genius playlist is limited to 25, 50, 75 or 100 songs.
    A Genius playlist is a limited Genius mix.

Maybe you are looking for

  • Windows on a Mac...AHHHHH

    Hi everyone! I put Parallels on my MacBook Pro to run Windows for a grad school assignment. Without missing a beat, Parallels crashes EVERY time I launch it. I see similar posts on here with the standard answer, "Please visit the Parallels forum." I

  • How can I download an iPhoto slideshow to a disc or thumb drive?

    I want to download a slideshow from IPhoto to a disc or thumb drive but it will only give me iPad, Iphone, computer or TV as possible export locations. I want to make copies of a slideshow for friends and family. What's the secret?

  • How i can close viber sent tone

    i am having difficulty regarding the customization in Ios especially regarding the Apps tones one of the worst operating system apple iphone is having i want to listen only call ring dont want to listen app calls ring (eg viber tone ) closing notific

  • Internal reconciliation

    Hello I have the next scenario Incorrect posting with internal reconciliation I think the system should be able to: 1.- Make internal reconciliation for multicurrency BP, not just in local currency. 2.- Reconcile Journal entry, with payment and invoi

  • Mic for my Ipod Nano

    *hi. i have an Apple iPod nano 4 GB Green (2nd Generation) and i need a mic for it, i don't know if it support the Mic or not, can anyone give me some light about that please..thanx* Message was edited by: smileboy