File dialog with multiple custom patterns

I am in need of being able to user select multple file patterns (*.bin, *.exe...) in a file dialosg similar to the express File Dialog VI where it lists the directory and allows the user to select multiple files from a windows dir listing.  The express VI has a patterns input that takes  multiple patterns separated by a semimcolon but there appears to not be a way of providing a ring control for file type and letting the user select the pattern that he wants to filter the directory listing with.  I.E> > If the user wants to only load files that are *.bin, he only wants to view them in the listing.  How can I do this without mutliple dialog boxes?
Solved!
Go to Solution.

Off-the-shelf might be something like a list box that allows multiple selections.  Or you could drop a cluster of booleans on the FP and parse the selected file types and place ;'s between them.  You could have multiple string controls that the user inputs the file extension and then you programmatically insert a ; I can't think of something off-the-shelf that easily does what you are looking for, these suggestions require a little bit of programming but should get you off to a good start at least.
This is the approach for choosing any desired types from a list.  If you want to choose only one, use a ring or combo box or enum...  Much simpler when only choosing one of many.
Nathan - Certified LabVIEW Developer

Similar Messages

  • File sharing with multiple users on one Mac

    I have two Macs, both of which ca seen each other across the network. My question regards file sharing with multiple users on the same computer. When file sharing, are the files from all users available across the network, or just those of the user presently logged in? The issue is that I am trying to access files from a user who isn't currently logged in, but another user on that computer is. I need to get into that person's documents, but I don't see a way to navigate to their documents folder.

    Right, I got that. But the computer is in constant use by User A, while I need access to User B's files. I could need access at anytime, and it would be a pain to make User A log off and log in as User B everytime. I was just wondering if there is anyway to access User B's files in this situation, without logging User B in.

  • HT201342 File Sharing with multiple devices

    How can we file share with multiple iPads from the Mac in the classroom? I've used instashare and it works really well, but to share with 25+ iPads would be quite time consuming. Is there a way to send to all in one go?

    Right, I got that. But the computer is in constant use by User A, while I need access to User B's files. I could need access at anytime, and it would be a pain to make User A log off and log in as User B everytime. I was just wondering if there is anyway to access User B's files in this situation, without logging User B in.

  • Open Save File Dialog with Default Path

    Hi All,
    I want to open a "Save File Dialog " with some default path.
    Like when user run that script I want to open  a "Save As" dialog box with default path "/Volumes/<shared name>/<folder name>/.. ."
    I am using
    File.SaveDialog(prompt, filter);
    but it doesn't open to the location by default that I want to open.
    Thanks
    Harsh

    look at this thread to see if it helps
    http://forums.adobe.com/thread/1077267?tstart=0

  • SO creation for one internal item with multiple customer code

    Hello,
    We want to create sales order for one internal product for one customer with multiple customer product code.
    SAP allows only one to one relation in customer info record. Is there any work around for having multiple customer product code for our single internal product code in single sales order.
    Regards,
    Balu J Karbhari

    Hello,
    It is not possible. Please check OSS note 626931.
    One alternative approach might be to trying to use the material determination functionality. Please try the below steps and check if it works for you.
    T Code VD51: Create CMIR for Customer & Material
    T. Code VB11: Maintain material determination for all required materials to point to the Material which has the CMIR.
    T Code OVRQ: Substitution reasons. Make the configuration to print Original material . Check  the column ENTRY, so on output the original material will be printed.
    Hope this helps
    Regards
    Sai

  • Save File Dialog with PDF servlet

    I've looked through messages posted relavent to this topic but I'm having trouble finding a solution to my particular problem.
    I'm running a servlet that is used to dynamically generate completed business documents using given a customer number. The servlet loads the customer information, generates a collection of forms as a single pdf document and sends it back to the browser.
    The problem is, the servlet doesn't work in one of the scenarios that is required: we email a link to an adminstrator that clicks on the link to view the documents, e.g.:
    http://myhost/myservlet.srv?custno=1234
    When you click on the link in the email (using Outlook), you always get the "save/open file" dialog box. If you click cancel AND LEAVE THE BROWSER OPEN and click on the link again in the email, everything works fine--the pdf document opens up in Adobe. It's just when the OS has to launch a new browser window that it doesn't work and you get the dialog.
    I've tried using the content disposition header (both inline and attachment). I've tried setting the content length. I've tried adding no cache headers. Nothing seems to work for this particular use case.
    Anybody seen this before? I could really use a hint.

    There are two thing that u can do.
    First try setting the contenttype as text/html and see
    if it works. The reason its opening a download box is
    that the stream is coming as a .pdf header and browser
    is not getting a plug in for the same.
    another way is a bit patchy.
    you have to set some kind of parameter with your url
    that u send in e-mail.
    then depending on this parameter. first send a
    javascript to reload the page.
    something like.
    if (request.getParameter("isMail))
    //send
    javascript:document.location().substring(0,indexOf('&is
    ail');
    else
    //your normal processing
    this way browser will actually resubmit the request
    from browser itself and will resume your normal
    processing.
    Regards
    KuldeepThis is kind of what we finally did. We decided that rather than have the url point directly at the servlet, we had the link point at a jsp that simply digests the parameters and constructs a new url to the servlet and then sends a redirect to the browser to the new url.

  • Unzip.vi only works with 1-internal file, error2 with multiple even in raw form.

    I've attempted to use the LabView unzip tool with several different meathods & I can only get it to work when there's only one file in the zip file. Multiple files continually cause an error in the VI, even when using raw LabView example code/tools. The first file does get unzipped in the specified folder before the error. Error 2 occurred at System Exec.vi. Command was "touch 08131333062007 "Chamber 1.ted"",LabVIEW:  Memory is full.

    Thanks for you response Juan & while this gives me some insight as to where the error is occurring it doesn't solve my problem. You can use the NI provided "Zip Tool.vi" to zip some files & then start a new blank VI & drop in the unzip tool & do nothing with it & run the Untiltled VI like that & it'll prompt for the file & as soon as you select the file...."Error 2", you can even double-click the unzip from the block diagram & use it that way.  I did this as a test to verify that what I'm doing wasn't causing the problem. My actual code uses the "File Dialog Express VI" in a flat sequence to first determine the zip file then the unzip-to location then runs the unzip function. I even get folders if zipped but only one file, no error if there's only one file, the error only occurs with multiple files.
    It appears to be an access issue as if it gets the first file & then trys to re-access for the next. I could handle this if it had functions to close the reference but it doesn't. I did try to take the preview, turn it into an array, run it through a for-loop but there's no way to specify a specific file w/in a zip file.
    Any thoughts?

  • [OIM] Automate AD provisioning with multiple custom rules.

    I am working on setting up provisioning automation and I'm very confused about the best way to do it.
    I need to have OIM do the following when creating an Active Directory Account
    If the user is an employee put them in container X
    if they are a contractor put them in container Y
    If they are a warehouse worker, do not give them an account
    If they are in NY, give them an account with group A
    if they are in Denver, give them group B
    and so on
    So I need to have multiple rules checked and for certain fields to get certain things based on which rules are true. Do I need separate groups and Access policies for each rule?
    Is there a way to make one collection of rules with multiple outcomes leading to multiple mappings?
    rkimbal45
    Edited by: rkimball on Jul 27, 2010 4:19 PM

    Great question but unfortunately there is no straight answer.
    Exactly what you can and should do varies depends on what tradeoffs you are ready to make in your configuration. It is very hard to give a condensed and straight answer that covers all possible configurations and gives you an overview of pros and cons.
    I wrote up a paper on this a while ago that discusses this issue at quite some length. I am posting the excerpt that discusses this specific point below but it really helps if you have the rest of the context in the document.
    Feel free to contact me through linked if you want a copy of the doc.
    Hope this helps
    /Martin
    Role based group memberships
    In some cases you have a requirement that users who fit a certain profile should be given a certain target system role. One common example would be that employees should be added to the employee group and contractors should be added to the contractor group. OIM supports this scenario through the rule, group and access policy system.
    A rule lets you specify that a user that fits a certain profile (i.e. whose userType attribute on the user form is “employee”) should become a member of a certain group. The group membership in turn triggers execution of an access policy. The policy specifies that the user should be given a certain resource object with specific configuration of process form and child form. This in turn can trigger a target system group membership update.
    This works great as long as the specifications for the rules are simple and doesn’t require usage of wildcards. If you have more advanced requirements, i.e. users with department 6200-6500 excluding 6345 should go in this group, you will end up with a lot of rules (299 to be exact). Likewise if you have more advanced requirements around what target system memberships should be given you end up with a lot of access policies. Even if you manage to implement this you can easily end up in a management nightmare with hundreds or even thousands of rules, groups and access policies.
    Another weakness is that access policies can only be used to grant one instance of a specific resource object to a specific user. This is often a crippling limitation.
    One way to escape the limitations of the rules is to use entity adapters attached on insert and update on the user form. This makes it possible to replace large number of explicit rules with a single logical expression. The downside is that the business logic is now defined in code rather than configuration. You could of course write code that loads configuration from a text file, a lookup table or an XML file but that only takes you so far.
    Likewise you can replace the access policies with entity adapters that gives out ROs according to business rules defined in the code. Eliminates some of the limitations but makes the system harder to implement and manage.

  • XML file, with multiple customer records - post DEBMAS over Integr.Process

    Hi all,
    is it possible to map a single XML file message that contains multiple records for customer master to multiple messages ?
    I know that it is possible to do a "multi IDOC " mapping but then the splitting of the messages is done by the IDOC adapter, not earlier.
    I have to process every single customer master record by an integration process to check if its creation or change (and get the customer number).
    When I try in the interface mapping to set the receiver to "0 to unbound" then also the message format of the sender requires two additional hierarchie levels "...message, message1" . My orginal file does not contain these tags.
    Is XI not able to handle this easy requirement without making a university study out of it?
    Thank you very much for your help
    best regards
    Hans

    You need not worry about those tags to be in your file. Those are added while mapping is being executed. All that you need to do is use file content conversion in sender adapter and put your lookup logic in Integration Process and mapping..!!
    You do not need a university degree, if you understadn the concepts..!!
    VJ

  • How do you center dialogs with multiple monitors. code, best practices

    My existing code will take the pixel size of the java app, and using the size of the dialog, it will center dialogs perfectly in the center of the application. This is great for single monitors, but when multiple monitors are introduced it is a problem. With dual monitor, the dialog is split in half between the two monitors.
    I should be able to determine which pixel/frame initiated the user's action; and then i am hoping to get some code or direction on:
    1. how to determine which monitor the user initiated the action on (knowing the px or frame location, how would i do this)
    2. how to center dialog on that monitor
    if possible, it would be appreciated if you can provide some code; i cant find anything on determing pixel size of monitors and this seems to be a little bit of a project to do from scratch. open source, 3rd party, insight, guidance, all is appreciated. thanks !

    This code may help:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class OptionPaneDemo {
        ActionListener al = new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                Component comp = (Component) evt.getSource();
                JFrame f = (JFrame) SwingUtilities.windowForComponent(comp);
                showDialogInUpperRightCorner(f);
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable(){
                public void run() {
                    new OptionPaneDemo().go();
        void go() {
            GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
            for(GraphicsDevice gd: ge.getScreenDevices()) {
                JButton showDialogButton = new JButton("show the dialog");
                showDialogButton.addActionListener(al);
                JFrame f = new JFrame(gd.getDefaultConfiguration());
                f.getContentPane().add(showDialogButton, BorderLayout.NORTH);
                f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                f.pack();
                centerWindow(f);
                f.setVisible(true);
        void centerWindow(Window w) {
            Rectangle windowBounds = w.getBounds();
            GraphicsConfiguration gc = w.getGraphicsConfiguration();
            Rectangle screenBounds = gc.getBounds();
            int x = screenBounds.x + (screenBounds.width - windowBounds.width)/2;
            int y = screenBounds.y + (screenBounds.height - windowBounds.height)/2;
            w.setLocation(x, y);
        void showDialogInUpperRightCorner(JFrame f) {
            JOptionPane pane = new JOptionPane("Hello, world!");
            JDialog dialog = pane.createDialog(f, "title");
            Rectangle dialogBounds = dialog.getBounds();
            GraphicsConfiguration gc = dialog.getGraphicsConfiguration();
            Rectangle screenBounds = gc.getBounds();
            //int x = screenBounds.x + screenBounds.width - dialogBounds.width;
            //int y = screenBounds.y == 0 ? 1 : screenBounds.y;
            int x = screenBounds.x;
            int y = screenBounds.y + screenBounds.height - dialogBounds.height-1;
            System.out.format("(%d,%d)%n", x, y);
            dialog.setLocation(x, y);
            dialog.setVisible(true);
    }

  • In FTP server same file name with multiple vesions

    Hi All,
    My source system is UNIX. in that FTP server they have multiple files with same name  example " abc.dat"; with different versions example"abc.dat;43" "abc.dat;44", "abc.dat;45". . so how to read latest version file like "abc.dat;45"   from sender communication channel with file adapter.
    suggestions please..Thanks in advance.
    Edited by: venkataraonandigam on Jul 15, 2011 3:12 PM

    Hi VenkatRao,
    Sender file adapter configuration has an option "Processing Sequence". In the that select by"Date" or Name .
    If you used placeholders when specifying the file name, define the processing sequence of the files:
    ○       By Name: Files are processed alphabetically by file name.
    ○       By Date: Files are processed according to their time stamp in the file system, starting with the oldest file.
    Otherwise you have to write shellscrit to move the latest version file to a different folder and pick it up from that folder.
    Or
    write adapter module.

  • List with multiple custom content types - Show content type selection option in the list newform page

    In my project I am using SharePoint Online 2013 and there is a custom list with two content types. While creating a new item in that list, can we show the content type drop down list along with other columns? While editing an item I am able to view the content
    type dropdown in the edit form associated with the list. Can we enable the same for the default newform as well?

    In my project I am using SharePoint Online 2013 and there is a custom list with two content types. While creating a new item in that list, can we show the content type drop down list along with other columns? While editing an item I am able to view the content
    type dropdown in the edit form associated with the list. Can we enable the same for the default newform as well?

  • FDK Problem: "Unsaved changes in file" dialog with MIFs

    Hi there
    I have a problem saving MIF files using our FrameMaker API client.
    After we have written out all our content, we're getting prompted to save unsaved changes in the .MIF file.
    We're not sure whether to click yes here or not.
    If we click yes, we then get a save dialog which prompts for a filename,
    but has the default file extension set to .FM.
    When you click "save", another message box appears telling me that I'm trying to save a
    .MIF file in the .FM format and that is not allowed, and asks if I want to save it
    as .MIF. 
    Although this is an a mere annoyance for me, it's probably very confusing for
    customers who use our software, and I'm not sure whats causing it.
    I've tried to address it by modifying the default save parameters within the FAPI
    using this:
    F_PropValsT saveParams = F_ApiGetSaveDefaultParams();
    i = F_ApiGetPropIndex(&saveParams, FS_ModDateChanged);
    saveParams.val[i].propVal.u.ival = FV_DoOK;
    Needless to say, it didn't work. I'm wondering is thee another approach I should
    be using?
    Thanks
    Eric

    Hi Eric,
    I'm not clear if your software is saving the file automatically, or whether the user needs to do it after your process runs. And, I'm not really clear on what exactly you want to happen after your code runs.
    I do think that any open MIF file (even if in binary format, after being opened in FM) will cause that prompt when you attempt to close it manually, even if you have made no changes since the last save. My thought is that FM simply looks at the file extension and generates that behavior accordingly.
    A few options you have (may be more, once I understand the situation better):
    - Let the code close the file itself once it is done, using F_ApiClose(docId, FF_CLOSE_MODIFIED). This, of course, if the interactive user doesn't need to see it.
    - Use F_ApiNotification() and F_ApiNotify to hijack the save request and save the file as MIF automatically, which should allow you to avoid the second prompt.
    - Use notifications to hijack the document closure process itself, simply closing the doc upon request whether it has changes or not. Or, maybe you could add your own prompts. This would take consideration of whether you actually want to allow an interactive user to make changes after the code runs.
    Just some ideas there. If you provide more info on what you want to happen after your code runs (presumably this is the translation thing), I might be able to help more.
    Russ

  • File Sharing with Multiple Users

    I wanted to set up file sharing on a Mac Mini for a group of Windows users. There are two things I wanted to do with this.
    1. Have a folder with a list of commonly used files and folders for the users to access.
    2. Push a backup of certain files that belong to individual users to the Mini for backup. I don't want one user to have access to another user's files on the Mac Mini.
    Is there a preferred method of setting something like this up? Do I create users as Sharing Only users? I'm used to Windows server shares, where I specify the access on a folder level basis. I'm not sure how to do this within OS X. Maybe I'm thinking about this all wrong. Any input would be appreciated.
    Thanks in advance.

    Each user with access to the Mac would have access to its public folder. That would work for one of your tasks.
    It would be no problem to set up a folder for each user on the Mac. Not so sure about the push part. They'd probably need to pull.
    Your main task will be to get the basic sharing going for the PCs. Fortunately, as things are todsy under Leopard and Snow Leopard, that's easier that the other way. I am hoping that the PCs all are running Vista or Win7. What are they running?

  • IDOC to File scenario with multiple directories on same FTP.

    The scenario is IDOC -- to FTP (Receiver file adapter). Based on the condition in the sender IDOC say if EIDKA01-BSART = Y than the directory path on FTP server is 'A' ELSE 'B'.
    There is only one reciever service defined for the FTP server in the Integration Directory. Its not multiple receiver scenario.
    How do we do this?
    Thanks

    Hi !
    Just create an UDF in graphical mapping and put this code inside:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    //get Key of Directory
    DynamicConfigurationKey keyD = DynamicConfigurationKey.create( URLFile, "Directory");
    //Replace value of Directory
    conf.put(keyD,dir);
    where "dir" contains the destination path depending on the EIDKA01-BSART value. When this code executes, if the receiver file adapter has the adapter-specific attributes (directory) checked, then it will set the "directory" value to the one specified in the "dir" variable.
    Regards,
    Matias

Maybe you are looking for