How do I reference "ok" button in file path?

Here's a quick question, I am using the LabVIEW file path control icon, when you hit the little file browser up pops the window where one can browse  and select a file. Once they are happy they can hit the OK button. I am trying to embed this as a part of another program which I want to wait until the OK button is pressed. Where is the property node for the "OK" button? I can't seem to find it.
Attachments:
picture of path.png ‏26 KB
path2.png ‏54 KB

altenbach wrote:
adamsdaq wrote:
I want to wait in the program I am running. The real issue is I have the individual instance of this VI working great, however when I go to run it as a subVI embedded in a higher level program, if the path control is empty or has the wrong value the progam is not giving the operator the time to change it. Thus it would be very nice if some how I could use the operator acknowledging the correct path as a precursor to continuing with the program. I must admit I have very little experience programming in LabVIEW.
You can check the validity of the path, and if it is not suitable, call a file dialog function. Check the new path and also if the dialog go canceled and proceed as needed (ignore error, ask again, etc.)
Expection handling and such really needs to be done in code and LabVIEW has a rich selection of options. Is the path received from a connector to the subVI? Under what conditions is it empty?
I agree.  I also feel it is far better to prevent the user from doing something wrong than it is to let them do it and then try to recover from it.  For instance, I'd keep the "OK" button grayed out until a valid path was entered.  That way you avoid having to recover from "bad path was chosen after pressing 'OK'."
Bill
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

Similar Messages

  • How to get the loaded client sequence file path/name?

    I added a step in Process model, and wanted to get currently loaded client sequence file name/path. I used the variable of "SequenceFile.Path" but then I realized what I would get is the process model file path, not loaded client sequence file path/name. How can I get loaded client sequence file path/name?
    Thanks!
    Jacky

    I dont understand what you are trying to achieve.  Can you provide more information.
    If you are trying to dynamically load and run a client sequence file at run time you need to make a couple of calls to the TS API from inside the process model, Engine.GetSequenceFileEx to get a reference to your sequence identified by its pathname, and then Execution.ClientFile to tell the process model which sequence you want to run.
    Steve
    There are 10 types of people in the world that understand binary, those that do and those that don't.

  • How can I make Spotlight show the file path

    How can I make Spotlight show the file path in the Spotlight menu for selected file?

    Via Finder certainly, but not in the menu.  You can view the file path in the Spotlight search results display by pressing the ⌘ key (while hovering over a file in the results), though.  The path will display at the bottom of the Quick Look output, or cycle through that location.

  • How to reference Macintosh HD in file path

    How do I reference the Macintosh HD in a file path, in case it is renamed?
    I tried:
    myFile = File ('Macintosh HD/myTxt.txt');
    But nothing happens, when I write to the file.

    Jong, I tried that script on a mac with a single partitioned drive (one side as boot) with about a half dozen external drives/servers mounted. Every other drives mount point should be in '/Volumes/' as suggested… Im at home now on my little iMac this is what I see if I put USB's of the same name in… then go check in terminal…
    Unknown-00-23-12-22-cb-79:~ marklarsen$ diskutil list
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *931.5 Gi   disk0
       1:                        EFI                         200.0 Mi   disk0s1
       2:                  Apple_HFS Macintosh HD            931.2 Gi   disk0s2
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *931.5 Gi   disk1
       1:                        EFI                         200.0 Mi   disk1s1
       2:                  Apple_HFS Time Machine Backups    931.2 Gi   disk1s2
    /dev/disk3
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:     FDisk_partition_scheme                        *471.0 Mi   disk3
       1:                 DOS_FAT_16 JONG                    470.7 Mi   disk3s1
    /dev/disk4
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:     FDisk_partition_scheme                        *471.0 Mi   disk4
       1:                 DOS_FAT_16 JONG                    470.7 Mi   disk4s1
    /dev/disk5
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:     FDisk_partition_scheme                        *471.0 Mi   disk5
       1:                 DOS_FAT_16 JONG                    470.7 Mi   disk5s1
    Here is the pic…

  • How to handle the 'folder button' in the path command throug Event loop ?

    Hi everybody.
    Again a stupid question but I can't find the answer.
    My VI has a dynamic event loop, to execute the right code depending on user action.
    Everything is working well but now I wish to do the following :
    I use a 'path command' with the path entry (like for text) and the folder button.
     the user click on the path entry     ->   something A happens.
     the user click on the folder button  ->   something B happens.
    As the folder button and the path entry are the same command, how to differenciate those two events in the event structure ?
    Maybe there is a value in the node, but I can't find it ...
    Thanks for helping !

    You can't do exactly what you are wanting to do. The problem is that you can't trigger an action based on clicking the browse button. To implement that you will need to hide the browse button that LV creates and put down a button of your own that you can then track and respond to independently.
    Mike...
    PS: what is it exactly that you are trying to accomplish?
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to validate a Particular Directory or file path in Presentation server.

    Hi SAP gurus,
    I am having a requirement where I want to download a file into the Presentation server.
    The file path to download will be provided in a parameter.
    What I want to do is to throw a message to the user if He/She provides a wrong Directory or File path.
    For example :
    Say the user is providing the file download path as " E:\test.txt", but there is no "E" drive or such directory in the presentation. So in this case I should be able to check the wrong Directory provided by the user and throw some message to the user saying there is no such Directory present. Please give a proper directory or similar messages.
    I have found a FM: PFL_CHECK_DIRECTORY but i am not able to use it properly.
    So do you have any FM or any method and its explanation to fulfill my requirement .

    Do it this way:
    tables:
      spfli.
    parameters:
      p_file type rlgrap-filename          " File name
                       obligatory.
    Data:
      t_final_data like table of spfli.
    at selection-screen on value-request for p_file.
    call function 'F4_FILENAME'
       exporting
         program_name        = syst-cprog
         dynpro_number       = syst-dynnr
         field_name          = ' '
       importing
         file_name           = p_file.
    at selection-screen.
      data:
        lw_file  type string.              " File Path
      lw_file = p_file.
    select * from spfli into table t_final_data.
    CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
         filename                        = lw_file
       tables
         data_tab                        = t_final_data.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      if sy-subrc <> 0.
        message 'File not found' type 'E'.
      endif.
    With luck,
    Pritam.

  • How can I reference an external help file from context sensitive help at the control level?

    My goal is to provide context sensitive help for each control displayed on the front panel using a help file created externally. I know that at the VI level I can specify a Help Path; I want the same behaviour for each control inside a VI. I also know about creating a custom control and specifying the Help Path in there, but it doesn't help in this situation, for I have hundreds of controls in my application and I cannot go back and replace each one with a unique .ctl. If I could override each instance of the custom control with unique path data that would do the trick, but that's not how it works.
    Is there a way to add the Help Path information to regualr controls?
    -euge
    ne

    This functionality is not yet built into LabVIEW.
    About all you can do is cut and paste the help for each control into the description for the control. It is tedius but a finite task.

  • How do you reference fonts in config files?

    This font isn't working in my bar so I wanted to change it to lemon or ProggyClean or anything that will make bar actually run. How would I format it to change it to say lemon?
    #define BAR_FONT "-misc-stlarch-medium-r-normal--10-100-75-75-c-80-iso10646-1", "-lucy-tewi-medium-r-normal--11-90-75-75-p-58-iso10646-1"

    Use xfontsel.

  • How to use Client_Host without the exe file path

    Hi,
    i'm using oracle forms 10g,
    in my application the users can upload any type of files (doc,xls,pdf,avi ,.. etc) and any user can download and open any of these files.
    i implement this using client_host and including the path of winword.exe or AcroRd32.exe ,...
    in many cases i don't know where these exe files are installed in the client side or whether it is installed or not.
    i tried this command : client_host('calc.exe') it works and show me the calc without including the path of this exe file.
    what i want to do is to just call the target file(doc,pdf,avi,..) in the client_host without having to precede this with the exe and path like the calc.exe example.
    if you go to start->run and write for example c:\ahmed.mpeg , windows automatically call the real player or any other video software installed and open the movie.
    can we implement this in oracle forms? and how?

    Hi, you attach a procedure to download a file in the local runs from Windows and to close it updates in the database and then delete the local directory
    PROCEDURE OPEN_FILE (V_ID_DOC IN VARCHAR2)
    IS
    -- Open a stored document --
    LC$Cmd Varchar2(1280) ;
    LC$Nom Varchar2(1000) ;
    LC$Fic Varchar2(1280);
    LC$Path Varchar2(1280);
    LC$Sep Varchar2(1) ;
    LN$But Pls_Integer ;
    LB$Ok Boolean ;
    -- Current Process ID --
    ret WEBUTIL_HOST.PROCESS_ID ;
         V_FICHERO VARCHAR2(500);
         COMILLA VARCHAR2(4) := '''';
         BOTON     NUMBER;
         MODO     VARCHAR2(50);
         URL     VARCHAR2(500);
    Begin
         V_FICHERO := V_ID_DOC;
              -- Ruta y nombre del fichero temporal --
              LC$Sep := '\';--WEBUTIL_FILE.Get_File_Separator ; -- 10g
              LC$Nom := V_FICHERO;--Substr( V_FICHERO, instr( V_FICHERO, LC$Sep, -1 ) + 1, 100 ) ;
              --LC$Path := CLIENT_WIN_API_ENVIRONMENT.Get_Temp_Directory ;
              LC$Path := 'C:';
              LC$Fic := LC$Path || LC$Sep || LC$Nom ;
              -- Descargamos el fichero --
              If Not webutil_file_transfer.DB_To_Client
              LC$Fic,
              'TABLE_NAME',
              'ITEM_NAME',
              'WHERE'
              ) Then
              Raise Form_trigger_Failure ;
              End if ;
              -- Abrimos el fichero temporal en local --
              LC$Cmd := 'cmd /c start "" /MAX /WAIT "' || LC$Fic || '"' ;
              Ret := WEBUTIL_HOST.blocking( LC$Cmd ) ;
              LN$But := WEBUTIL_HOST.Get_return_Code( Ret ) ;
              If LN$But <> 0 Then
                   Set_Alert_Property( 'ALER_STOP_1', TITLE, 'Host() command' ) ;
         Set_Alert_Property( 'ALER_STOP_1', ALERT_MESSAGE_TEXT, 'Host() command error : ' || To_Char( LN$But ) ) ;
         LN$But := Show_Alert( 'ALER_STOP_1' ) ;
         LB$Ok := WEBUTIL_FILE.DELETE_FILE( LC$Fic ) ;
         Raise Form_Trigger_Failure ;
              End if ;
              -- Actualizamos el fichero en la BBDD --
         If Not webutil_file_transfer.Client_To_DB
              LC$Fic,
              'TABLE_NAME',
              'ITEM_NAME',
              'WHERE'
              ) Then     
              NULL;     
              Else
                   Commit ;
              End if ;     
         -- Eliminamos el fichero temporal local --
              LB$Ok := WEBUTIL_FILE.DELETE_FILE( LC$Fic ) ;
    Exception
              When Form_Trigger_Failure Then
              Raise ;
    End ;

  • How do I hide a document's file path in the book panel?

    For reasons I don't understand, FM sometimes displays the complete filepath to a document or book, and sometimes it doesn't. How can I keep FM from displaying it?
    Cheers,
    JP

    Hi Anjaneai,
    Thanks very much for this answer. It doesn't really solve my problem but it made me realize I have a much bigger problem to deal with. To make a long story short, I've been working with the book and document files that are stored in an old directory, which I did not expect.  I simply want to move the book file and document files to the same new directory, and have FM handle these files and no others.
    I thought I had already done that, in this way:
    I moved the all the files into the new directory  via drag-and drop (in Explorer). I then  double-clicked  on the book file in the new directory. I opened the chapter, IX, and TOC files by double-clicking on them in the FM book window.
    I then did a "Save Book."   I assumed that saving the book file would save it, and all document files in that new directory. (Remember, all the files had already been moved to the new directory, and I explicitly chose the book file from that directory.)
    So all my files are up-to-date -- they're just in the wrong place except for the book file itself.
    How can I get them to the right place?
    I can't move the chapter files to the new directory "manualIy" and expect FM to find the right ones automatically when you open the book file.
    I can't do an FM "Save as" for .fm files because the Files menu doesn't offer that option for files.
    I can't move the files to the new directory and open them explicitly via double-click because when I do this, FM still fetches the files from the old directory!
    Best,
    JP

  • How can I get currently running script file path in PS CS (8.x)

    Is it possible to retrieve full file name of my script file in Photoshop CS (8.x)?
    Constructions:
    b ScriptName = $.fileName
    and
    b try { some_error }
    b catch(e) { ScriptName = e.fileName; }
    are not works in Photoshop CS

    Hi Mike,
    Based on your description, we can enable the policy setting to see if it helps:
    Computer Configuration\Administrative Templates\System\Logon\Always wait for the network at computer startup and logon
    Besides, regarding how to assign log on scripts, the following article can be referred to for more information.
    Assign User Logon Scripts
    http://technet.microsoft.com/en-us/library/cc770908.aspx
    Moreover, as Carl suggested, instead of using scripts, we can utilize Group Policy Preferences Dive Maps extension to map drives for users.
    Regarding this point, the following article can also be referred to for more information.
    Drive Maps Extension
    http://technet.microsoft.com/en-us/library/cc731729.aspx
    Configure a Mapped Drive Item
    http://technet.microsoft.com/en-us/library/cc770902.aspx
    Best regards,
    Frank Shen

  • How can I reference more than one jar file

    hi, In an applet, I use
    Archive = "foo.jar" to reference this jar file.
    But how can I reference more than one file?
    Thanks.

    Suggestion: spend a few minutes reading the tutorials.
    http://java.sun.com/docs/books/tutorial/applet/appletsonly/html.html
    You can specify multiple archive files by separating them with commas:
    <APPLET CODE="myapplet.class" ARCHIVE="file1, file2"     WIDTH=anInt HEIGHT=anInt>
    </APPLET>

  • How to diable file path prompt?

    Everytime I hit the run button the file path prompt opens up, how can I disable it? I want to manual click the folder icon to open up browse window. Here is my code.
    Attachments:
    path.jpg ‏15 KB

    panoramarts wrote:
    Is there a way to leave it empty and not have the dialog box open?
    What would be the point to run the VI if there is no file to open???
    You could use a loop and an event structure and place the file operations inside an event case that is triggered by a value change of the path control.
    LabVIEW Champion . Do more with less code and in less time .

  • Enable and Disable the file paths

    Hai i have two file paths one logical file path and other is physical file path.
    I took two radio buttons.
    How can i enable and disable the file paths by using these radio buttons.
    When i select the 1st radio button then 1st file path is in enable and second file path in disable mode similarly for the second radio button also.
    It is very urgent .
    With Regards,
    Prasad.Tallapudi.

    i answered in your other post....here is the code again....
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: logfile type string default 'Z_DATALOAD',
    FILE(128) TYPE C DEFAULT 'nittest.txt' LOWER CASE.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_LFILE RADIOBUTTON GROUP G1 USER-COMMAND C1 DEFAULT 'X',
    P_PFILE RADIOBUTTON GROUP G1.
    SELECTION-SCREEN END OF BLOCK B2.
    at selection-screen output.
      if p_lfile eq 'X'.
        loop at screen.
          if screen-name = 'LOGFILE'.
            screen-input = '1'.
            endif.
            if screen-name = 'FILE'.
              screen-input = '0'.
              endif.
              modify screen.
          endloop.
        endif.
        if p_pfile eq 'X'.
          loop at screen.
          if screen-name = 'LOGFILE'.
            screen-input = '0'.
            endif.
            if screen-name = 'FILE'.
              screen-input = '1'.
              endif.
              modify screen.
          endloop.
          endif.
    if the problem gets solved...please close both the posts

  • File Path seems messed up

    I am not sure how it happened, but my directory or file path to my Applications folder is not right.
    It is in my Hard Drive Folder...
    but when I open that folder I can't see 'Applications' folder
    I get to the Application Folder by clicking application in the sidebar

    Try modifying the script posted in this thread to set the visibility of the Applications folder to true.
    (15348)

Maybe you are looking for

  • Trouble transfering videos from pc to blackberry

    i transfered videos from my computer to my blacberry storm 9500 n i cant find them anywhere.The ones i found the images are not showing only the audio is playing can anyone help me please?

  • 5800 XpressMusic can't set Lock Code

    I'm having a problem to set up a password in 5800 XpressMusic. I know the default password is 12345, but I can't change it. Is there anything I can do to fix this issue? Thanks in advance Menu > Settings > Phone > Phone Management > Security > Phone

  • Export to Fixed_Layout EPUB: Paragraph Styles not exporting to CSS class tags

    Hi, As it says, my Paragraph Styles aren't exporting to CSS class tags with a Fixed Layout EPUB. ...But Object Styles are working ok. Seems to work ok when exporting to HTML or Reflowable EPUB... just not Fixed Layout. Any ideas? Cheers Forgot to say

  • Setting up HDD Raid on Envy 6-1055er

    On the laptop has two HDD: 320 SATA and 32 SSD. They are grouped into an RAID. I reduced the size of the array to 60 (function ctrl+i), and now I can not return to the factory settings. ctrl+i function no longer active. How to increase the volume.

  • Message Preview Pane Is Missing?

    Hello, Somehow I did something in cleaning up mail, and now I don't have the default message preview pane showing up in mail. I cannot find a setting to turn it off/on anywhere. Any haelp you could provide would be greatly appreciated. Charley