User Quota setting problem on NAS 5210

Hi All,
NAS 5210 user quota settings displays wrong usage space.
We have set a quota of 15gb per user.
Case No1: Two of the user directories contains 8.1gb of data and user is not able to copy any more data.When we check the status of the quota settings it displays used space as 16GB(which double the space of actual data stored).
Case No2: We tried to test with other user directory(already consists of 5gb data) with same quota settings by copying 8gb of data which was successful and we copied more data into the same directory it went upto 18gb which is more than the actual quota.
Any help is appreciated.
Regards,
Vijay

Could be an issue with ADS integration, check the InfoDocs on the 5210 SSH. Sorry but I can't help further as I only provide support for Linux, *BSD and Solaris systems.                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How to set user quotas on a certain filesystem

    Hi
    It may be simple and easy question but I'm really new to this
    I need to know how to set user quotas on a certain file system in details
    I know it can be done easily in one step in Solaris ZFS
    but how is it done in Linux ?
    Thanks in Advance :)

    See also:
    How to set user quotas on a certain filesystem

  • Different User Quotas

    Hellooos,
    I have setted default user quotas for our ims5.2, but now i need to set different quotas, i.e. certain users to have different account quotas than the rest users of the domain!???

    You can set a users mail message quota via the delegated admin, or via ldapmodify by setting the attribute "mailQuta" to the number of bytes. If you use ldapmodify, the number should be an even power of 2, ie for a 200Mb quota, put in 209715200. I'm not sure if this will cause a problem if you don't follow it, but I do know the iDA will modify your input to conform to the rule.
    HTH,
    Roger S.

  • How to kick guest user when user quota has exhausted

    Hi,
    I have wlc and acs v4.0. Currently, I am using layer 3 security with web authentication and has been succesfully integrated with ACS for authentication. User quota has been set so that when user has reached its quota, may not be able to log in again. But problem occurs when the user has not logged out, it still can connect to network although its account at ACS shows disabled because of its quota limitation. So, is it a way to kick the user out, when the user has reached its quota ?
    Radius accounting has been properly set. and AAA override has been set on appropriate wlan ssid.
    Regards,
    Suwandy

    thanks for your reply.
    do you mean "allow AAA override" ? If so, I have tried it and it works for changing user session by radius server. But the problem is, radius server do not send the user-session parameter dynamically. How can the radius send/calculate the remaining session time to wlc ?

  • Mail Per User Quotas Not Working

    We just migrated from 10.9 server to the new 10.10 server and noticed that our per user mail quotas were no longer working.  If I change the Server app - Mail setting - to have a global mail quota on it work, however, we have a few accounts that we need to leave unlimited and the per user quota will not override the global quota.  So far we have had to leave the global quota disabled because of this.
    Even without global quota turned off - trying to set per user mail limits is still not working.  We are changing it thru the Server app and clicking users - selecting a user - then select edit mail options - and changing the setting for the limit size.  No matter what we set it to - it will not work.
    Does anyone know what command or how to change the per user quota limits from the command line?  I found that Dovecotadm quota -u username  shows you what the quota is, but I am stumped as how to change it via a command line or thru another method since the server app is not working.
    Any help would be appreciated!
    ps. Also posted my doveconf -n file below, but I am missing if there is anything not configured properly.
    bash-3.2# dovecot -n
    bash: dovecot: command not found
    bash-3.2# doveconf -n
    # 2.2.5: /Library/Server/Mail/Config/dovecot/dovecot.conf
    # OS: Darwin 14.1.0 x86_64  hfs
    aps_topic = com.apple.mail.XServer.a1c54f6d-f4ad-4431-b882-0f11570dd637
    auth_mechanisms = cram-md5 plain login
    auth_socket_path = /var/run/dovecot/auth-userdb
    auth_username_format = %n
    debug_log_path = /Library/Logs/Mail/mail-debug.log
    default_internal_user = _dovecot
    default_login_user = _dovenull
    disable_plaintext_auth = no
    first_valid_gid = 6
    first_valid_uid = 6
    imap_id_log = *
    imap_id_send = "name" * "version" *
    imap_urlauth_submit_user = submit
    info_log_path = /Library/Logs/Mail/mail-info.log
    log_path = /Library/Logs/Mail/mail-err.log
    login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c
    mail_access_groups = mail
    mail_attribute_dict = file:/Library/Server/Mail/Data/attributes/attributes.dict
    mail_location = maildir:/Library/Server/Mail/Data/mail/%u
    mail_log_prefix = "%s(pid %p user %u): "
    mail_plugins = quota zlib acl fts fts_sk
    managesieve_notify_capability = mailto
    managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
    mdbox_rotate_size = 200 M
    namespace acl-mailboxes {
      list = children
      location = maildir:/Library/Server/Mail/Data/mail/users/%%u:INDEX=/Library/Server/Mail/Dat a/mail/shared/%%u
      prefix = shared.%%u.
      separator = .
      subscriptions = no
      type = shared
    namespace inbox {
      inbox = yes
      location =
      mailbox Drafts {
        special_use = \Drafts
      mailbox Junk {
        special_use = \Junk
      mailbox Sent {
        special_use = \Sent
      mailbox "Sent Messages" {
        special_use = \Sent
      mailbox Trash {
        special_use = \Trash
      prefix =
    namespace list-archives {
      list = children
      location = maildir:/Library/Server/Mail/Data/listserver/messages/archive/lists/%%u:INDEX=/ Library/Server/Mail/Data/listserver/messages/archive/shared/%%u
      prefix = archives.%%u.
      separator = .
      subscriptions = no
      type = shared
    passdb {
      driver = od
    passdb {
      args = /Library/Server/Mail/Config/dovecot/submit.passdb
      driver = passwd-file
    plugin {
      acl = vfile:/Library/Server/Mail/Config/dovecot/global-acls:cache_secs=300
      acl_shared_dict = file:/Library/Server/Mail/Data/shared/shared-mailboxes
      fts = sk
      quota = maildir:User quota
      quota_warning = storage=100%% quota-exceeded %u
      quota_warning2 = storage=85%% quota-warning %u
      sieve = /Library/Server/Mail/Data/rules/%u/dovecot.sieve
      sieve_dir = /Library/Server/Mail/Data/rules/%u
      stats_refresh = 30 secs
      stats_track_cmds = yes
    protocols = imap lmtp sieve pop3
    quota_full_tempfail = yes
    service auth {
      extra_groups = _keytabusers
      idle_kill = 15 mins
      unix_listener auth-userdb {
        user = _dovecot
    service dns_client {
      unix_listener dns-client {
        mode = 0600
    service imap-login {
      inet_listener imap {
        port = 143
      inet_listener imaps {
        port = 993
        ssl = yes
      service_count = 0
    service imap {
      client_limit = 5
      process_limit = 200
      service_count = 0
    service indexer-worker {
      user = _dovecot
    service lmtp {
      unix_listener lmtp {
        mode = 0600
    service managesieve-login {
      inet_listener sieve {
        port = 4190
    service pop3-login {
      inet_listener pop3 {
        port = 110
      inet_listener pop3s {
        port = 995
        ssl = yes
    service pop3 {
      client_limit = 5
      process_limit = 200
      service_count = 0
    service quota-exceeded {
      executable = script /Applications/Server.app/Contents/ServerRoot/usr/libexec/dovecot/quota-exceeded .sh
      unix_listener quota-exceeded {
        group = mail
        mode = 0660
        user = _dovecot
      user = _dovecot
    service quota-warning {
      executable = script /Applications/Server.app/Contents/ServerRoot/usr/libexec/dovecot/quota-warning. sh
      unix_listener quota-warning {
        group = mail
        mode = 0660
        user = _dovecot
      user = _dovecot
    service stats {
      fifo_listener stats-mail {
        mode = 0600
        user = _dovecot
    ssl = required
    ssl_ca = </etc/certificates/mail.maxxx.com.3524D1A33970C65E8A8DFF78E757DDE3C66AED10.chai n.pem
    ssl_cert = </etc/certificates/mail.maxxx.com.3524D1A33970C65E8A8DFF78E757DDE3C66AED10.cert .pem
    ssl_cipher_list = ALL:!LOW:!SSLv2:!EXP:!aNULL:!ADH:!eNULL
    ssl_key = </etc/certificates/mail.maxxx.com.3524D1A33970C65E8A8DFF78E757DDE3C66AED10.key. pem
    ssl_key_path = /etc/certificates/mail.maxxx.com.3524D1A33970C65E8A8DFF78E757DDE3C66AED10.key.p em
    userdb {
      args = partition=/Library/Server/Mail/Config/dovecot/partition_map.conf global_quota=0 enforce_quotas=yes
      driver = od
    userdb {
      args = /Library/Server/Mail/Config/dovecot/submit.passdb
      driver = passwd-file
    verbose_proctitle = yes
    protocol lmtp {
      mail_plugins = quota zlib acl fts fts_sk sieve
    protocol lda {
      mail_plugins = quota zlib acl fts fts_sk sieve push_notify
    protocol imap {
      mail_max_userip_connections = 20
      mail_plugins = quota zlib acl fts fts_sk imap_acl imap_quota imap_zlib
    protocol pop3 {
      mail_max_userip_connections = 6

    I guess the problem didn't resolve itself, rather it has revealed that it is intermittent (my favorite kind).
    What could made a message sent to a legitimate alias username not get picked up during the imap connection. I know the smtp server accepted the message (see logs above).

  • Users & Quotas

    Hey guys,
    I currently have a Mac Mini running Mac OSX Server 10.6, and i'm trying to achieve users and set disk quotas on their 'home folders'. I tried using Workgroup Manager but the Disk usage that i set didn't work (e.g. set usage to 50mb, but copied a 600mb file over to the folder without any problem).
    Is there a easy solution for htis problem?

    Hi
    Create a User in the LDAP node and apply an appropriate quota. It might also be possible to apply quotas to Users in the Local node although it's something I've never done.
    Read the documentation:
    http://www.apple.com/server/macosx/resources/documentation.html
    Tony

  • Multiple Users/Logging In Problem

    Using Multiple Users I added a second user to our iMac DV400 (blueberry, slot loading) running OS9.2.1. The problem: now we can only log on to the second user's desktop and can't access the primary user's desktop. Since the second user is set up with limited user privileges, we can't access the system programs; most importantly, the Multiple Users program so that we can revert this problem by deleting the second user from the system. Can anyone offer some help?
    Thanks

    Welcome to Apple Discussions pd,
    Start from your Mac OS installer CD (insert it and hold the c key, release the key when you see the "Welome To Macintosh" message)
    Open your hard drive and locate the System folder. Open that and locate the Preferences folder. From that folder, delete the three preference files and one folder with "Multi User" in their names.
    Restart as normal and empty the trash. You will have to re-create the user accounts.

  • User Account Control Problems with Premier Elements 7 32 bit in 64 Bit Windows 7

    I found User Account Control Problems in other forums but didn't see much in Premiere Elements, so I hope this helps others who may be having problems with 32 bit programs in a 64 bit computor. When I first got my 64 bit I didn't have problems.
    Back in February I bought a Quad Core Desktop with Windows 7 64 bit. Haven't been on the forum for 7 months since I wrote in regarding importing video with the Pyro AV Link (Premiere Elements Tips and Tricks). I was having problems importing video which started after March 28 sometime, as that was the last time I didn't have a problem importing VHS. Took me a few months off and on to find out what worked.
    I started uninstalling Windows updates and any programs I had installed back to that point in time. Checked after uninstalling each item. The capture screen would come up on a delayed basis but clicking on capture did nothing. Although no driver is required for IE1394 (so they say) I read where some people using the Legacy driver had fixed some problems, so I switched to the Legacy. Seemed to work great (for a few minutes).
    I had even uninstalled and reinstalled PE7 but no difference. Finally I noticed a shield in the PE7 Desktop icon. Thats weird. Never had that before. Just decided to show up after I had done all of the stuff I mentioned. Turns out at some point in time since I've had the computor Windows 7 decided to flag my 32 bit program as misusing the 64 bit system. User Account Control. I never bothered too much with UAC and just clicked on the yes box wen it popped up asking if I wanted this or that to take control of my computor. I tried using the minimum setting for safety reasons, and then finally turned User Account Control off. Bingo! PE7 capture works again and still working.
    While I am not recommending that people arbitrarily turn UAC off, this appeared to be my problem. I would recommed that they try turning it off before uninstallin a bunch of stuff. Having a restore point may or may not have been a fix for me. I think one of the Windows Updates caused the problem but I am not going to uninstall any more stuff at this point, I have not been back on the internet or installed any more updates in my desktop. I am going to use my laptop for internet and used the desktop for video.
    I am guessing this could be a problem for any 64 bit systems trying to use 32 bit programs. IE: XP,Vista,Windows 7 64 bit. In Vista there is also Data Execution Prevention (DEP) which you can turn on or off, supposedly to prevent misuse of memory (as I understand it), but Win7 either doesn't have it or I haven't found where it's located.
    Maybe this has been covered in the forum somewhere and I missed reading it. Hope I am not too confusing. Anyway, whatever feedback you guys have would be great.  

    John,
        Thanks for your answer, and I did check out the link you suggested. However, I have Windows 7 Home Premium as most people have I think, and the XP program was not available. I started with Vista and now have Win 7. I never could navigate around in XP anyway so am content to just leave User Account Control off.
        Interesting side note to turning UAC off is that my desktop seemed to be using more of the CPUs, where half of them were "Parked" as I wrote in also about 7 months ago when I 1st got my desktop. I am pleased to say that video processing seems to go quicker with UAC off. Have to observe things some more to confirm.
        I just thought if others were having problems after installing Windows Updates and leaving UAC off worked then they could possibly pinpoint a problem.

  • I cannot run You Tube Videos on my Apple Macbook Air MD760HN/B with OS X 10.9.4. the video window displays a message " An error occurred, Please try again later." Learn more. The screen is black with this message. There appears to be some setting problem?

    Macbook Air MD 760HN/B with OS X 10.9.4
    4 GB RAM, 1.4 Ghz intel Core i5
    Problem 1
    I.     On Youtube whenever I try to play a video, I get a message on a black screen "An Error Occurred, Please Try Again later. Learn More."
    2.   I think it is some setting problem, being a new mac user, I am unable to sort it out.
    Problem 2.
    How to select more than one file in a folder to copy or delete. like it can be done in Windows with shift Click together.
    if one has to select say, file 25 to file 37 in a folder with 75 files. select all (command A) works but I cannot select few continuous files.

    Macbook Air MD 760HN/B with OS X 10.9.4
    4 GB RAM, 1.4 Ghz intel Core i5
    Problem 1
    I.     On Youtube whenever I try to play a video, I get a message on a black screen "An Error Occurred, Please Try Again later. Learn More."
    2.   I think it is some setting problem, being a new mac user, I am unable to sort it out.
    Problem 2.
    How to select more than one file in a folder to copy or delete. like it can be done in Windows with shift Click together.
    if one has to select say, file 25 to file 37 in a folder with 75 files. select all (command A) works but I cannot select few continuous files.

  • User Property Sets / UUP -- not showing up

    Hi. We are having problems getting any portal user property sets to show up in any environment other than our dev boxes. We are running 10.2. Our environment consists of our dev workstations, a dev server in 'development' mode, a stage server in 'production' mode, and a production server in 'production' mode.
    On our development boxes, we see the following property sets from the portal admin:
    Groupspace
    CustomerProperties
    BusinessUserProperties
    BusinessEmployeeProperties
    The latter 2 are our UUP property sets. As I said, these sets appear on our dev boxes, but from what I understand, that is expected because the EAR is exploded when published on a dev box.
    Consultants developed much of this portal application for us, including the uup property sets, and they are backing away and not offering any help in this matter. They simply said to use the propegation tools. I used the propegation tool to merge my dev box inventory and our development server inventory, and the differences did indicate the 4 property sets listed above. I selected to add only those 4 property sets to the dev server, exported the merged inventory, and exported it to our dev server with no errors. However, still no property sets showed up. I then pulled down another inventory from our dev server, and it indicated that it still did not have the property sets. I repeated this cycle once more to no avail.
    Things that are confusing to me are:
    1) The 'Groupspace' and 'CustomerProperties' sets appear to be portal default property sets. Wouldn't they be expected to exist in all environments?
    2) I thought that I read if the server you are deploying the EAR to is in 'development' mode, then the property sets should be moved over when deploying the EAR normally. I may be wrong about this as I am on information overload trying to learn these portal aspects under a time crunch.
    3) Where in the portal database are the propertysets themselved defined? I can see the 'PROPERTY_KEY' and 'PROPERTY_VALUE' tables which handle storing the user properties themselves, but I don't see any tables which would define a property set.
    Thanks in advance for any insights to this issue. It is making my week really tough.

    1st, I recommend posting in the WebLogic Portal forum:
    WebLogic Portal
    2ndly, I recommend opening a support case to get assistance if you are under a time crunch.

  • How to convert internal date to the format of user default setting

    In the BDC program, I need to convert the date, such as the sy-datum 20070427, to the format of user default that is defined in T-code SU01, such as YYYY-MM-DD or YYYY.MM.DD, and so on.
    The user format has 6 six kinds, and it is not good idea to write the code to process. So I look for the functions or CLASS method to process. I can use the function 'ITS_GET_USER_DEFAULTS' to get the user default setting of the Date format and Decimal notation.The problem is that I can not find the function or CLASS method to convert the internal date to user's date format.
    The function: CONVERT_DATE_TO_INTERNAL can not do it.
    The CLASS method: cl_abap_datfm=>conv_date_int_to_ext may be do it. But I do know how exchange the parameters, and fail to make it work finely.
    Is there the functions or CLASS method to process it?
    Thanks a lot!

    Hi John,
    create a veriable :
    data: v_date type char10.
    then after getting the date in YYYYMMDD format, write the following statement.
    WRITE SY-DATUM TO V_DATE.
    this might solve your problem.
    Regards,
    Hemant.

  • User Default Setting in CO11N

    Hi,
    In the Goods movements screen of CO11N, is there some sort of a user default setting where the layout can be customized based on user preference?
    Actually, I just have a problem with the material description because it's quite far from the material number.
    It's tedious to always drag the description beside the material number everytime I branch out to the Goods movements screen.
    Thanks in advance!
    Best Regards,
    Armie

    Armie,
    In the goods movement screen drag the material description as required and also arrange the other fields as required by you. Now scroll fully to the right side of the screen, there you would find a layout button click on that and save the layout as shown in the screen shot in the link...
    http://picasaweb.google.com/prasobh.sap.pp/Demo#slideshow/5345357547508821890
    Regards,
    Prasobh

  • Cannot force users to set new password

    Hi I have a Intel Xserve running Server 10.5.8
    My system is running DNS and is an OD master
    I have approx 30 users connected to system
    most are using Portable Home Directories, some are using network accounts.
    It has been decreed that all users need to change their passwords and use a combination of letters, numbers and a set amount of characters.
    I have set up the policy in OD for users and set it to "change password at first login" - This is NOT working on existing accounts and is NOT workig on newly created test accounts either.
    I have then gone into WGM > User > Advanced - and have set up the policy for the user there also, but still is not enforcing the password change or policy.
    Can anyone point me at some helpful information as to how I can overcome this problem, preferably without rebuilding the server and setting up user accounts from scratch.

    you could change parameter
    login/password_expiration_time
    to - let's say 1 and restart all of the instances of that special system. after one day all users would have to change their passwort.
    you could then reset the parameter to 0 (or to whatever value you think adequate) on all instances of the system and restart them ...
    thus having forced all your users to change the password at least once.
    Edited by: Mylene Euridice Dorias on Mar 11, 2008 4:23 PM
    for some users you have to use SU01 ...

  • Beta user: The only problem I've ever had is still there. Scanning a page suddenly develops a mind of its own.

    Beta user and only problem I've ever had is still there in 3.6.7. Scanning a page develops a mind of its own. Suddenly shoots to top or bottom. Never happens in Explorer.
    == This happened ==
    Every time Firefox opened
    == Beta

    You may have switched on [http://kb.mozillazine.org/accessibility.browsewithcaret caret browsing]: press F7 to toggle
    See http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    Tools > Options > Advanced : General: Accessibility: [[ ] "Always use the cursor keys to navigate within pages"
    In Firefox 3.6 and later versions you can disable the F7 shortcut that toggles caret browsing by setting the pref accessibility.browsewithcaret_shortcut.enabled to false.

  • Let end user to set up the query

    Hi all!
    Is there a way to let end user to set up a query/report with forms?
    = users can use a form (whit predefined values) to determine which column(s) shows in the result and can add filters before submit.
    Because a cube is stored in relational tables i think it's not an olap question.
    But here is why i asked this:
    I make an application that query an olap cube. I can make reports with apex from the cube view and from dimension views. But i want to let users to select from the available dimensons and measures and set filters on selected dimensions (on first page) using a form. When user submit the form the second page shows the result.
    Thanks
    Edited by: qenchi on 2009.08.09. 7:27

    Hi,
    This is what I've done in that application example.
    1 - I have two pages. Page 1 is the select columns and filters page and Page 2 is the report
    2 - On page 1, I have created a PL/SQL page process, called P1_CREATE_COLLECTION, that runs "Before Header". This is unconditional and has a Source Process of:
    BEGIN
    IF NOT APEX_COLLECTION.COLLECTION_EXISTS('FILTERING') THEN
      APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY('FILTERING', 'SELECT COLUMN_NAME, DATA_TYPE, ''Y'' SHOW_YN, '''' FILTER FROM ALL_TAB_COLUMNS WHERE OWNER = ''#OWNER#'' AND TABLE_NAME = ''EMP3'' ORDER BY COLUMN_ID');
    END IF;
    END;ALL_TAB_COLUMNS contains records for all columns in all tables. In this example, I'm retrieving a list of all of the columns in the EMP3 table (which is just a copy of EMP plus a few extra fields). I'm also getting the data type for the column, setting the "Show" value to Y and starting with an empty filter string for each column. The actual data is retrieved into a collection called FILTERING. In this way, I can store all of the user's selections for use on Page 2. The IF test just ensures that I don't overwrite the collection if it already exists - that is so that I can keep any settings that the user made when they were last on Page 1.
    This collection gives allows me to store the following:
    SEQ_ID - the collection's sequence ID
    C001 - The COLUMN_NAME
    C002 - The DATA_TYPE
    C003 - The Y/N flag for SHOW_IN_REPORT
    C004 - The filter to be applied to the column
    3 - I created a "SQL Query (updateable report)" report. To do this you need to create a report using the SQL Wizard - any SQL statement will do - then you can change the report type from "SQL Query" to "SQL Query (updateable report)". I haven't found another way to do this.
    The report's SQL was changed to:
    SELECT APEX_ITEM.HIDDEN(1, SEQ_ID) || C001 COLUMN_NAME,
    C002 DATA_TYPE,
    APEX_ITEM.SELECT_LIST(3, C003, 'Yes;Y,No;N') SHOW_IN_REPORT,
    APEX_ITEM.TEXT(4, C004) FILTER
    FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = 'FILTERING'
    ORDER BY SEQ_IDThis is a "manual tabular form" and is based on the collection created by my process.
    4 - I then created a button on the page called P1_CREATE_REPORT. This is just a normal submit button - the branch for this is to Page 2. On the branch, I ticked the option to "reset pagination for this page"
    5 - Finally, on Page 1, I created a PL/SQL process, triggered by my button, and in the "On Submit - After Computations and Validations" process point. The Process code for this is:
    BEGIN
    FOR x IN 1..APEX_APPLICATION.G_F01.COUNT
    LOOP
    APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE(p_collection_name=&gt;'FILTERING', p_seq=&gt;APEX_APPLICATION.G_F01(x), p_attr_number=&gt;3, p_attr_value=&gt;APEX_APPLICATION.G_F03(x));
    APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE(p_collection_name=&gt;'FILTERING', p_seq=&gt;APEX_APPLICATION.G_F01(x), p_attr_number=&gt;4, p_attr_value=&gt;APEX_APPLICATION.G_F04(x));
    END LOOP;
    END;This loops through the tabular form after it is submitted and updates the collection with the Y/N Show values and the filters
    Now onto Page 2
    1 - I created a SQL Query report using *SELECT 1 FROM DUAL".  When created, I changed the report type to "SQL Query (PL/SQL function body returning SQL query)" and change the Region Source to the following code:
    DECLARE
    vSQL VARCHAR2(8000);
    vQ CHAR(1);
    vSEP1 VARCHAR2(2);
    vSEP2 VARCHAR2(6);
    BEGIN
    vQ := CHR(39);
    vSEP1 := '';
    vSEP2 := 'WHERE ';
    vSQL := 'SELECT ';
    FOR x IN (SELECT SEQ_ID, C001, C002, C003, C004 FROM APEX_COLLECTIONS WHERE COLLECTION_NAME = 'FILTERING' ORDER BY SEQ_ID)
    LOOP
      IF x.C003 = 'Y' THEN
       vSQL := vSQL || vSEP1 || x.C001;
       vSEP1 := ', ';
      END IF;
    END LOOP;
    vSQL := vSQL || ' FROM EMP3 ';
    FOR x IN (SELECT SEQ_ID, C001, C002, C003, C004 FROM APEX_COLLECTIONS WHERE COLLECTION_NAME = 'FILTERING' ORDER BY SEQ_ID)
    LOOP
      IF LENGTH(x.C004) &gt; 0 THEN
       IF x.C002 = 'VARCHAR2' THEN
        vSQL := vSQL || vSEP2 || x.C001 || '=' || vQ || x.C004 || vQ;
       ELSIF x.C002 = 'DATE' THEN
        vSQL := vSQL || vSEP2 || x.C001 || '=TO_DATE(' || vQ || x.C004 || vQ || ',' || vQ || 'DD/MM/YYYY' || vQ || ')';
       ELSE
        vSQL := vSQL || vSEP2 || x.C001 || '=' || x.C004;
       END IF;
       vSEP2 := 'AND ';
      END IF;
    END LOOP;
    RETURN vSQL;
    END;This loops through the FILTERING collection twice. The first time to build up a SQL SELECT statement containing all of the columns in EMP3 that the user wants to show
    The second loop then builds up a WHERE clause for the statement based on any filters the user wants to apply. I have used the DATA_TYPE values stored in the C004 field to identify the format of the value in the WHERE clause - either VARCHAR2, which puts the string in quotes, DATE, which casts the string as a date using DD/MM/YYYY format and then any other value (which should be NUMBER), which just outputs the value entered.
    Note that I've used vQ to hold the quote character (CHR(39)) as I find this easier than trying to work out how many single, double or triple quotes I need to get quotes within the string.
    All of this just builds up a string (vSQL) which is returned to Apex at the end of the code so that it can build the report.
    Note that I have also ticked the option under the Region Source setting to show "Use Generic Column Names (parse query at runtime only)". This needs to be done as the columns are changeable.
    2 - I created a button called P2_BACK_BUTTON which branches back to Page 1
    Obviously, this is a very basic example. You could, for instance, go one step further and allow the user to pick the table (SELECT TABLE_NAME FROM ALL_TABLES) or view (SELECT VIEW_NAME FROM ALL_VIEWS). As the final report is being constructed as a string, it doesn't matter how the table/view name is derived. You could also add popups for calendars and calculators, where appropriate, on Page 1.
    Andy

Maybe you are looking for

  • What is wrong with my macbook screen?

    For the last year I have been dealing with a screen that keeps going dark.  If I tilt my screen down and back up it turns back on but if I open it too far it turns off.  Then I will use it for a little while and it will go dark again, repeat.  All da

  • Growlmail not working in Lion 10.7.2

    I cannot get Growlmail to work in the latest Lion update 10.7.2.  Any suggestions?

  • Presets in Photoshop CC

    I have lots of brushes which are stored in the presets folder in Photoshop CS5, as are my other presets. How and were can I copy these too, to use in CC. I have looked at the tutorials for Libraries but it seems not to cover what I want to do which i

  • Select query doubt

    hello all, i am writting this code .....first select is working fine for me as i am getting 5 entires in  table itab which i am expecting... but for second when i loop itab itab then at that time i should get one record  in table itab2 out of second

  • What's the best database app for the ipad2

    looking for a database for my ipad2 - i want to put my books on it so i don't buy the same ones over and over again