Allowing user to specify directory

How can the user specify the directory where they would like to save the document which will be printed to using printStream?
Is it a similar technique as JFileChooser?

Implode wrote:
How can the user specify the directory where they would like to save the document which will be printed to using printStream?
Is it a similar technique as JFileChooser?I wouldn't call it "similar". The JFileChooser can itself be configured to allow the user to choose only directories.

Similar Messages

  • Solution to allow users to specify which columns of a sql report to search

    Starting Point:
    1) You have an existing SQL Report.
    2) You want to provide functionality to search through the result set.
    Start -----
    1) add a text_item for searching PX_search where X is page number
    2) add a button which resubmits the page. Go
    3) You modify your query by adding the following to the end of the where clause.
    and (PX_SEARCH is null or instr(column_name1,PX_SEARCH) > 0 )
    4) So far so good but it only allows searches on 1 column, so you add a few other columns
    and (PX_SEARCH is null or instr(column_name1,PX_SEARCH) > 0 or instr(column_name2,PX_SEARCH) > 0 or instr(column_name3,PX_SEARCH) > 0 )
    Now when you enter some text if it is in any of the columns that row will be displayed.
    This can be good or bad depending on your requirement. lets say my users want to specify the column they are searching on.
    5)further enhancement
    i) add a LOV to your page which queries the all_users data dictionary view
    select column_name d, column_name r from all_users where table_name = 'MY_TABLE_NAME' and column_name not in ('COLUMN_NAME1,COLUMN_NAME2) order by column_name
    The idea here is to use the oracle data dictionary to get all the columns for your table(s) and ignore the columns you do not want.
    ii) add an item to your page e.g. PX_select_column which gets populated from the list of values.
    Now for each column you are going to allow a search on, the sql needs to be modified.
    Lets pretend that my firstcolumn is called member_id, my second column is called firstname and my third column is lastname
    Before we had this SQL
    (select * from table where 1=1)
    and (PX_SEARCH is null or instr(memberid,PX_SEARCH) > 0 or instr(firstname,PX_SEARCH) > 0 or instr(lastname,PX_SEARCH) > 0 )
    Remember we have added PX_SELECT_COLUMN which should contain what we have selected from the LOV.
    iii) So now we modify the query to be as follows:
    and (PX_SEARCH is null or decode(:PX_SELECT_COLUMN,'MEMBERID',instr(memberid,PX_SEARCH),0) > 0 or
    decode(:PX_SELECT_COLUMN,'FIRSTNAME',instr(firstname,PX_SEARCH),0) > 0 or
    decode(:PX_SELECT_COLUMN,'LASTNAME',instr(lastname,PX_SEARCH),0) > 0 )
    The user can now choose which column to filter their results on.

    Here is a basic one (http://apex.oracle.com/pls/otn/f?p=2230:1). You can select an object type and put in criteria for the object name like '%b%'. The SELECT statement is dynamically generated with only the pieces of the WHERE clause that are needed. You do not need all the DECODE and INSTR OR logic.
    The main part of this example is the computation of the SQL SELECT statement:
    DECLARE
      v_sql VARCHAR2(2000) := 'SELECT *'||CHR(10)||'  FROM USER_OBJECTS';
      v_and BOOLEAN := FALSE;
      v_where VARCHAR2(2000);
    BEGIN
      -- P1_OBJECT_TYPE has value of 'ALL' for '%'
      IF (:p1_object_type != 'ALL') THEN
        v_sql := v_sql || chr(10) ||
                 ' WHERE object_type = '''||:p1_object_type||'''';
        v_and := TRUE;
      END IF;
      IF (:p1_object_name IS NOT NULL) THEN
        IF (v_and) THEN
          v_sql := v_sql || chr(10) ||
                   '   AND object_name LIKE UPPER('''||:p1_object_name||''')';
        ELSE
          v_sql := v_sql || chr(10) ||
                   ' WHERE object_name LIKE UPPER('''||:p1_object_name||''')';
        END IF;
        v_and := TRUE;
      END IF;
      :p1_sql := v_sql;
      RETURN (v_sql);
    END;Mike

  • How to allow only the specified users/groups to open my pdf files...

    Hi there,
    I'm looking for resources/documents describing how to allow only the specified users/groups to open my pdf files by the Java API...
    I've found a sample code creating a policy in the following document.
    http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/wwhelp/wwhimpl/js/html/w whelp.htm?context=sdkHelp&topic=learn_lc_sdk_invokeremoting
    ( API Quick Starts (Code Examples) > Rights Management Service API Quick Starts > Quick Start: Creating a new policy using the Java API )
    But the sample code doesn't set recepients( users/groups ) who can open the pdf file.
    How can I make it ?
    Any samples ? or Does anybody can tell me which Java classes/methods I should use ??
    Policy#addPolicyEntry(PolicyEntry policyEntry) ??
    PolicyEntry#setPrincipal(Principal principal) ??
    or none of them ?
    Any hints are appreciated !
    Thanks.

    I'm not exactly sure what you are tying to do here, but typical approach when issuing one PDF par user/groups scenario goes like:
    1. Create policy for specific purpose and add principal (user/group)
    2. Apply policy on server side
    3. Deliver the file (via email etc...)
    If you are looking for sample codes, try quick start.
    http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/js/html/w whelp.htm?&accessible=true
    If you go "API Quick Start/Rights Management Service API Quick Starts", you might find something useful. I think you need "Creating Policies" or "Modifying Policies" for step 1 above, and "Applying Policies to PDF Documents" for step 2.
    Hope this helps.

  • How can I allow users to access SQLPLUS?

    Hi everyone,
    I have been charged with the task of creating an Oracle server on a CentOS VM. Installation and configuration is complete and SQL is working fine for the database admin user "oracle." I copied the environment variables to the .bashrc file for "oracle" and SQLPLUS starts without a hitch.
    Here is where I need a little guidance...
    I need to create basic Linux user accounts that will have access to the database, so they can then in turn log into their SQLPLUS accounts. The problem is, all of the database files and software are in located in the user "oracle's" directory. This means that no one but "oracle" and root have access to these files because they are the only ones with proper permissions.
    Before I put a ton of time into this, I thought I would pose these questions to the Oracle Linux community:
    1) Could I enable a specific Linux group (ex. "Oracle Users") to have access to the main database folder or possibly all folders along the path? I am hoping this would allow any users I put in the group access to the folders, and essentially the SQLPLUS application. (here is ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1)
    2) If that is not an option, will I need to make a completely new database and locate it in a location that all users can access?
    I understand that my first idea may not be the SAFEST method, but this is only for a small class of students learning how to use SQL and writing queries. There will be no sensitive information at risk. This would be a quick fix until I learned more about Oracle and how to use it.
    Thank you everyone.

    It certainly is rather a question for the General Database forum, though I doubt you will get a lot of happy replies for such a basic question.
    You can use / as sysdba OS authentication through SSH or using the server console, provided the user's account belongs to the "dba" user group. For remote connection through sqlnet you need create a $ORACLE_HOME/dbs/orapw$SID password file.
    If you would like to know more about this:
    Connecting / as sysdba is used for OS authentication. It ignores password credentials stored in the database and allows any user belonging to the OSDBA system group to connect to the database. Connections as sysdba will always connect to the SYS schema of the database, regardless of any username or password specified. Using OS authentication relies on the BEQ protocol, which connects to the database directly, without using the Oracle Listener process.
    The "oinstall" group will give access to the database software repository. There could be different oracle home installations, each with a different oracle user/owner like "oracle_prod1" and "oracle_prod2", but both users must be able to read/write the shared oraInventory, in which case both users must have read and write access to the oraInventory directory, hence the oinstall group.

  • How to allow users to mount a Samba shares on a WXP

    Through lots of reading I've managed to get an understanding of how to mount SMB shares at bootup by placing the proper edits in /etc/fstab. While having the shares of the server, running Contribs.org SME Server 6.01 (recently known as Mitel SME Server) and acting as a samba server, being mounted at startup is perfect since the server is always on. This is not the best idea for the XP workstation since it isn't always on. Here is a copy of my present fstab file with x's replacing the passwords.
    fstab               [B---]  0 L:[  1+19  20/ 21] *(1085/1086b)= .  10 0x0A
    # /etc/fstab: static file system information
    # <file system>        <dir>         <type>    <options>          <dump> <pass>
    none                   /proc         proc      defaults            0      0
    none                   /dev/pts      devpts    defaults            0      0
    none                   /dev/shm      tmpfs     defaults            0      0
    tmpfs                  /tmp          tmpfs     defaults            0      0
    sysfs                  /sys          sysfs     defaults            0      0
    usbdevfs               /proc/bus/usb usbdevfs  defaults            0      0
    /dev/cdroms/cdrom0     /mnt/cd   iso9660   ro,user,noauto,unhide   0      0
    /dev/cdroms/cdrom0     /mnt/dvd  udf       ro,user,noauto,unhide   0      0
    /dev/floppy/0          /mnt/fl   vfat      user,noauto,unhide      0      0
    //192.168.2.2/stuff    /mnt/silicon2 smbfs username=kingnubian,password=xxxxxxx,user
    //192.168.2.105/e-smith   /mnt/silicon1 smbfs username=kingnubian,password=xxxxxxx,users,noauto
    /dev/discs/disc0/part5 swap swap defaults 0 0
    /dev/discs/disc0/part1 / xfs defaults 0 1
    I would like users with an account on the Linux box to mount the remote share on the XP box without needing to SU and consequently need the root password. When trying now to mount "e-smith" (The share on the XP box) as a user using "mount /mnt/silicon1" I get a message about needing to be SU.

    To allow users to mount smb shares you need to make smbmnt suid:
    # chmod +s /usr/bin/smbmnt
    Note however that the user needs to own the directory used as mountpoint. So I don't know how to make 'mount /mnt/silicon1' in your setup work for all users.
    For the users to be able to unmount the smb shares as well you need:
    # chmod +s /usr/bin/smbumount
    Now users can do 'smbmount //server/share mountpoint -o username=whatever' or simply 'mount mountpoint' if the details are specified in fstab. To unmount root can do 'umount mountpoint' or users can do 'smbumount mountpoint'.
    Don't confuse smbmount with smbmnt - the first is the command you use to mount shares manually, the second is the one that should be suid and is used both by smbmount and by mount -t smb.
    Hope this helps.
    -bogomipz

  • [SOLVED] C : How to block opening files "above" a specified directory?

    SOLVED: Used
    man 3 realpath
    Hello Archers,
    I have this one problem I've been struggling with. I kind of solved it but the solution's hackish.
    My question is how do you prevent the opening of files "above" a specified directory? The reason behind this is that I'm writing a simple sharing server, something like Xyne's quickserve, but in C and with a GTK GUI. I'm using the libmicrohttpd library.
    The program works this way: the user selects a port and a directory to be "served", and then he can access the files under the directory he chose. However, there obviously needs to be a way to prevent the user from opening files above the directory by using ".."'s for example.
    For now, I simply plan on rejecting all queries containing ".." (http://github.com/houbysoft/quickshare/ … hare.c#L59), but that's obviously very imperfect -- and you could get around it if there is a symlink in the directory for example.
    Any pointers will be very appreciated, thanks.
    Last edited by y27 (2010-03-17 02:59:14)

    tavianator wrote:
    man realpath wrote:BUGS
           The  POSIX.1-2001  standard  version of this function is broken by design, since it is impossible to
           determine a suitable size for the output buffer, resolved_path.  According to POSIX.1-2001 a  buffer
           of  size PATH_MAX suffices, but PATH_MAX need not be a defined constant, and may have to be obtained
           using pathconf(3).  And asking pathconf(3) does not really help, since, on the one hand POSIX  warns
           that  the  result  of  pathconf(3) may be huge and unsuitable for mallocing memory, and on the other
           hand pathconf(3) may return -1 to signify that PATH_MAX is not bounded.   The  resolved_path == NULL
           feature,  not  standardized  in  POSIX.1-2001,  but standardized in POSIX.1-2008, allows this design
           problem to be avoided.
    So be careful to either pass resolved_path as NULL and bite the potential unportablilty bullet, or copy canonicalize_file_name or canonicalize_filename_mode from gnulib.
    Yeah, I am passing NULL.

  • Creating a windows user in Active Directory

    I am trying to create a user in Active Directory that can log on as any other Windows user, but when I try to log into Windows, I get the following error message:
    "The local policy of this system does not allow you to logon interactively".
    Are there any attributes or objectclass settings that must be set for the user to allow interactive logons?
    Thanks in advance!

    This has nothing to do with JNDI, the object class or attributes.
    I assume that you are trying to logon locally to the domain controller with the new user that you have just created.
    By default, the domain controller's policy only allows specific users or members of a group to logon locally at the domain domain controller's console.
    Either edit the domain controller'sgroup policy and add your newly created user to the list of users permitted to logon locally, or add the user to a group which has already been granted permission to logon locally.

  • Adding a user in Active Directory

    Hi fellows,
    I am having a serious problem in creating a new user in active directory. i am using LDAP JNDI code. I can delete and update users attributes, but fail to create users.
    ctx.createSubcontext("newuser,full domain", attributes);
    when i specify a new user in "newuser" it gives exception invalidnameexception. I don't understand how to create a new entry within the directory structure of predefined tree. by the way, i can create users by active directory explorer but java application is giving exceptions.
    Any help will be highly appreciated.

    A DistinguishedName is of the form e.g. "cn=username, ou=Users,dc=hostname,dc=com". In other words it contains attribute names and values for each name component. Evidently your DN doesn't do that.

  • The Specified Directory Does not Exist

    Hi expert
    could you help me with my problem , this word " The Specified Directory  Does Not Exist" its some stupid question , isn't it ?
    this is my sitiuation    :
    1.  BPC version is SAP BPC 5.0.512
    2. we are using  MS Excel 2003
    our user  do some modification from BPC  WEB (the BPC open excel file with many macro and add-in etc ...  ), then user save using Save Dynamic Template  sub menu from eTools menu , and raise message "The Specified Directory Does not Exist < directory path>/eEXCEL. "
    the questions Are .
    1. Could anyone explain why BPC try to save in Client Local Direcory not is BPC Server 
    2. Could  anyone help me how to resolve the problem ?
    (i am appolagize with my bad english )
    thanks.

    HI nvsleman ,
    I had the same problem and I manually copied the eExcel folder (on my local harddrive) from a working application to the application in question.
    Hope this helps
    Sabine

  • Specified directory does not exist

    Hi there,
    I'm having a wierd problem, and can't seem to find a way around it.
    I'm logging into my clients' version 5 SP10 application, and the "Finance" app works fine: all dimensions downloaded, all folders created locally, etc (today is the first day I've used my PC with this appset so I didn't have these locally previously).
    However, when I switch to my "interco" app, or any other, I get this error (NOTE: my user profile folder is on D not C):
    "The Specified directory does not exists: D:\Jason\Documents\Outlooksoft\<Server Name>\<User>\App Info\<Appset>\<Application>\eExcel"
    Sorry, not very easy to read!
    It doesn't seem to create these folders. But if I do it manually (through My Computer), the next time I log in I don't get the error - presumably because the folder has been created.
    My colleague has the exact same problem from the exact same application set, and we are using different Windows OSs (he is on XP and I'm on Vista) so it can't be that.
    Any ideas? I have worked at this client many times, but not since SP10 was applied - could that be the cause of the problem?
    Thanks as always!
    Jason

    Jason,
    I had the same issue with a few applications. SAP tech advised me to copy an application and it should re-create folder structure. Another approach is to process application without selecting any options - should also re-create folder structure, but I can't confirm this one.
    And 3rd way is to copy folder structure from a good (working) version of the same application into the "broken" one.
    Hope that helps,
    Akim

  • Allow user to edit their own Address Book server entry

    Hiya.
    I'm looking for a way to let users edit their own information in the Address Book Server/Open directory. I've made sure the main group for users is in the AB Read-Write Groups group in WGM.
    I've even checked the box in Server Admin that says "Allow users to edit their own contact information", but after adding the account to an address book client and authenticating as a user (For example, myself), I can't edit my own contact info anywhere that will push to the server.
    Is there any way to do this?
    Thanks!

    You'd need to write a php script or something to interface with applescript…

  • Error creating user home in directory

    Hello All,
    I installed the Jdeveloper with patch p8751878 to work on 11.5.10.2.  This is on a win7 64bit machine.
    My environment and system variables have the following:
    Variable= JDEV_USER_HOME
    value=C:\p8751878_11i_GENERIC\jdevhome\jdev
    When I try to launch the Jdeveloper getting the following message:
    Eror creating user home in directory C:\p8751878_11i_GENERIC\jdevhome\jdev.  Please restart JDeveloper with a new user home specified.
    Error stack shows the following
    java.io.IOException: Error copying file C:\p8751878_11i_GENERIC\jdevhome\jdev\system9.0.3.5.1453\Classic.kdf
    at oracle.ide.MultiCopier.copyDirectory(Ide.java:3356)
    Any suggestions as to what could be causing this (pls. excuse if this has been asked before..)?
    Thanks,
    Monkey

    Does anyone know how Raptor determines where it will create it's user home???
    On our development network I keep getting the noted error message, regardless of Windows 2003, 2000, or XP. So Im starting to think we may have some Windows policy that is preventing the creation of the .raptor folder that Raptor creates when it first starts up.
    On my laptop, which is not tied into the development network, I dont have this problem.

  • Query running backgroup how to download result to specified directory?

    Hi Expert,
    according to the current business requirement, I have create a query via SQ02 AND SQ01 and it runs smoothly, but now the user want to run this query periodically every 10 mins and want to write the result into spicified dirctory in the desktop.
    I write a ABAP code in the query and use the function module GUI_DOWNLOAD, it works in online execution, but when I schedule this query as background, the system can not download the result into specified directory and the system prompts error:FES--022.
    do you have any good idea?
    thank you in advance!

    xioliu,
    I don't think that is possible as long as it is executed in the background. Options for the background will be 1) to send an e-mail from the program with attachment, or 2) save it into SAP Server and pull that via ftp into whatever the server the user has access to.
    Cheers,
    Akio

  • Allow users to save form data

    I am throughly confused about what I need, so I'm sorry, I'm sure this thread is a duplicate of several that are out there, but most of it seems to talk over my head.
    I have a VERY old version of Adobe Acrobat (version 5.0, yes gasp in horror).  I have the VERY old version of Acrobat Distiller (version 5.0).  I have a form that was created in these versions of Acrobat.  It works perfectly, even in the new version of Reader (v9), excpet that the form data can't be saved, not a shocker.
    What software do I need to purchase to get my old form to allow people to save the form data, WITHOUT them having to download any extensions for their Reader?
    I hope that makes sense.

    Hi,
    LiveCycle Reader Extensions ES is part of Adobe's server product and can be very expensive. In addition to the cost of the sever component, you need to pay a fee to Adobe to apply the reader extensions to each form. It is intended for government agencies and large organisations.
    The ability to reader enable a form from within Acrobat is intended for ad-hoc forms that won't be going out to a lot of people.
    When you design a form in LC Designer, you can specify the target version of Acrobat/Reader (in the File/Form Properties/Defaults). This allows you to check that all of the functionality that you build into the form, will work for your users.
    When you reader enable the form it will still work with the target version that you have set in LC Designer.
    When you reader enable with the full LC Reader Extension ES server product, you are basically turning ON features for users with Reader.
    However when you reader enable using Acrobat, you are turning ON features like allowing users to save data. But at the same time Adobe are turning OFF some features like data connections.
    It really depends on how many data processes you want with the form. If it is small then stick with Acrobat. If you are a large organisation looking to improve data collection and processing then you should look at LC Reader Extensions ES.
    Hope that helps,
    Niall

  • Restrict Users to specified Operating Unit

    Hi all
    can any one tell me how can restrict users to specified operating unit
    Regards
    Thanks

    To do this, we create new responsibilities for the Operating unit, and we define the operating unit by setting profile option 'MO: Operating Unit' at responsibility level.
    Then , we assign responsibility to users according to the operating unit they are allowed to access.
    I don't know if there are other solutions ?

Maybe you are looking for

  • 8 inch deep hole for ATT box in front yard

    My AT&T box is about 8 inches down in my front yard causing a big hole that my 18 month old son loves to fall into.  How can I get AT&T to fix this issue and bring the box up to ground level?  The same problem exists across the street.  I've tried ca

  • Wierd behavior from MySQL queries

    I have a really frustrating problem in my JSP app that only seems to be occuring sporadically... I have to deploy it on an NT machine that is available right now. I'm using Tomcat/MySQL. I've had it on a W2000 machine and it has worked fine. To compl

  • Back up music but not movies?

    I'd like to utilize the backup feature for the music I've purchased from itunes. But I've recently also bought movies and videos, but because I dont have a DVD burner (only a cd burner), I'm stuck. Is there a way to burn the music (only) but not the

  • HT1688 Is anyone having issues with iOS7 Siri? (iPhone 5s)

    On multiple occasions during the day I'll ask Siri to remind me....  With a long pause she'll say "I'm really sorry but I can't take your request right now please try again later.  Then I'll try right after and she'll work.  Very frustrating.  iOS6 w

  • With 2 monitors, can I swap the primary and secondary screen?

    In other words, I have 2 different sized monitors, one running from ADC, the other DVI, but it is defaulting to using the smaller screen as the primary one which I don't want. I can't swap the leads round because I can't convert ADC to VGA so i need