Get a string from a selected path

Hello

I have the following piece of code in my script (which works fine)

Dim result: result = DirListGet ("C:\","*.adf","filename","FullFileNamesRecursive")

Instead of simply using the phone book "C:\". ", I would like to invite the user to choose one.

I tried to use Application.DlgPathSelect as PathNameGet select a path, but I don't know how to put a string representing the path selected in the above DirListGet method.

Thanks in advance,

Omar

Advertisement

Hello Omar.

Use it like this

If "IDOk" = PathDlgShow ("select a directory for the adf files", "C:") then
Dim result: result = DirListGet (OutPutPath, "*.adf", "filename", "FullFileNamesRecursive")
end if

Greetings

Andreas

Tags: NI Software

Similar Questions

  • Get a string from an iterator object. Help

    Hello community,

    I have this code fragment in my application and it complains about this line:

    strGUID = (String) it.next ();

    I'm trying to get the string that I'm pulling in the loop so I can handle. The funny thing is that I am able to print the entire string like this:

    out.println (attrName + "=" + it.next () + "< br >");

    But I wan to store this string in a variable, and I can't. The code is below. I have bolded two statements that I try to use to store the string in a variable, and it does not work. Advice please?


    If (uploading! = null) {}
    out.println ("< tr >");
    out.println ("< td valign = top > < attributes b >: < /b > < table >");
    Iterator iter = attrs.keySet () .iterator ();
    out.println ("< td >");
    String strguid = ""; " *
    While (iter.hasNext ()) {}
    String attrName = (String) iter.next ();
    Set attrVals = attrs.get (attrName) (HashSet);
    If ((attrVals! = null) & &! attrVals.isEmpty ()) {}
    Iterator it = attrVals.iterator ();
    While (it.hasNext ()) {}
    out.println (attrName + "=" + it.next () + "< br >");
    * strguid = (String) it.next (); *
    }
    }
    }

    Strange that it fixes the problem now, but when you "which tried" above it did not work.

  • get the label from a selection of radio in a box of radio buttons

    I use a control of radio buttons, with four selections of radio in there.  I understand that this is an enumerated type, so the value is a 'number '.  When wire you this control to a statement button, the case is automatically generated with the selections radio labels.  Is there a way to capture the label of the button that was chosen?    I'm using LabVIEW 8.0 for this project.  Thanks in advance for your time.

    Hi bj,.

    Just use a FormatIntoString with the format specifier '%s '...

  • Cannot get the "&lt; FEFF &gt;" string in the selected text [indesign CS6]

    Hello world!

    I can't get the string to the selected text. The selected text contains several xml tags.

    In adobe indesign cc version of 2014, the selected text is bring the string «< FEFF >» tags

    In indesign adobe cs6 version cannot get the string "< FEFF >. they do ""-empty space.

    Screen Shot 2015-09-23 at 6.01.25 PM.png

    Are the above-selected text contains several xml tags.

    but I get content using script code can't get the string.

    Screen Shot 2015-09-23 at 6.02.51 PM.png

    the script gives the result, xml tags are converted to "". ""  I expect "< FEFF >.

    I expect the output is: "< FEFF > Applescript < FEFF > < FEFF > selected text < FEFF > < FEFF > < FEFF >."

    Please help me...

    Thank you

    John Peter.

    the script gives the result, xml tags are converted to "". ""  I expect to ''.

    The xml tags are not converted to "" but "\uFEFF" (zero-width space non-bec), it is the character used to represent the tags in a text frame. Looks like the apple script converts a hexadecimal representation unicode values.

  • [JDev12c, ADF] How to get the value of a field from the selected line in af:table and...

    Hallo,

    I want to double click on a line of an af:table to call a page that displays a form (based on a View object) with the details of the selected line.

    I need to go to the second page the value of a field on the line that is selected on the first page.

    How can I do this? In particular, how can I get the value of a field from the selected line? How can I call the second page on double-click on the af line: table?

    Thank you

    F.

    Why would user, you need to pass a value of the line to the shape?

    The framework selects the line you want to display in the form. All you have to do is to show the form with the selected line. It is the framework automatically as long as you use e vo even the same data control.

    Timo

    Post edited by: Timo Hahn
    And the handling double-clicks is described here http://www.oracle.com/technetwork/developer-tools/adf/learnmore/56-handle-doubleclick-in-table-170924.pdf

  • I have photoshopCC, but some how I get pop ups saying that my path for cs6 is expires, and then I buy and get a licience no, well I have not because I have a year of photoshop and lightroom CC. How can I get rid of this message from the trial please my

    I have photoshopCC, but some how I get pop ups saying that my path for cs6 is expires, and then I buy and get a licience no, well I have not because I have a year of photoshop and lightroom CC. How can I get rid of this message from the Marie trial please

    Go to Photoshop forum

  • [ADF, JDev12.1.3] (1) creating a "select a Choiche" from a query 2-fields and 2) to get the key of the selected element?

    Hallo,

    I have a VO based query, that query is like that...

    Select field1 as keyField, Field2 as valueField

    table

    By dragging the VO istance in the page I want to create a Choiche a Select...

    The list should show only the values of valueFields.

    Moreover, in my bean I need to get the keyField to the selected line (not the valueField).

    You kindly could you tell me which is the right approach to create the list choiche and what code I use to get the keyField to the selected item in the list?

    Thank you very much

    Federico

    Google would be useful.

    https://tompeez.WordPress.com/tag/afselectonechoice/

  • Get literal string when using CLOB

    Hi, I am using Oracle 11.2.0.3 on Windows 2003 R2 and I have a procedure to extract the different bits of XML and GML of an XMLType column. GML for a record can be one or more geometries and I need to derive a unique SDO_GEOMETRY to and convert to WGS84. I created a function called MULTI_GML_TO_SDOGEOM in which I analyze my GML as a CLOB. I can add it to a SQL_STMT variable which is also a CLOB. In the treatment of 10,000 records, this function worked well for 8000 in vain, then when he struck a record that had more than 4,000 characters in GML (seven geometries) with an ORA-01704 string literal too long. I am in debug on each line of the function and found the function failed on the open cursor statement
    OPEN c_geoms FOR sql_stmt;
    I don't understand why I get this error that the total length of sql_stmt for registration failed, it is about 7500 characters and I use CLOB which must be able handle length. I don't know if I have not used the CLOB correctly or maybe I need to use something DBMS_LOB package but I can't find any decent examples and I don't really know why it does not work in any case.
    Here's the function:
    CREATE OR REPLACE FUNCTION MULTI_GML_TO_SDOGEOM (
       geometry_components IN CLOB)
       RETURN sdo_geometry
    IS
    v_count             NUMBER;
    v_gml               XMLType;
    v_gml_rec           XMLType;
    v_gml_clob          CLOB;
    v_gml_clob_rec      CLOB;
    sql_stmt            CLOB;
    v_sdogeom           SDO_GEOMETRY;
    v_sdogeom_all       SDO_GEOMETRY;
    varray_sdogeom      SDO_GEOMETRY_ARRAY;
    
    
    TYPE t_ref_cursor  IS REF CURSOR;
    c_geoms         t_ref_cursor;
    
    BEGIN
    
    varray_sdogeom := SDO_GEOMETRY_ARRAY();
    
    IF geometry_components is not null THEN
    
      v_gml := XMLType ('<GeometryComponents xmlns:gml="http://www.opengis.net/gml/3.2">'||geometry_components||'</GeometryComponents>');
    
      v_gml_clob := v_gml.getClobVal();
    
      SELECT count(*) INTO v_count FROM XMLTable ('declare namespace gml="http://www.opengis.net/gml/3.2"; (: :)
                                                 //polygon' PASSING v_gml);
    
      If v_count > 0 THEN
    
        sql_stmt := 'WITH gml_input AS (SELECT XMLType ('''||v_gml_clob||''') as gmldata from dual)
                     select poly.spatial_location from gml_input,
                                                     xmltable (xmlnamespaces (''http://www.opengis.net/gml/3.2'' as "gml"),
                                                              ''GeometryComponents/polygon/gml:Polygon''
                                                               PASSING gmldata
                                                               COLUMNS
                                                               spatial_location XMLTYPE PATH ''//gml:Polygon'') poly
                     UNION ALL
                     select point.spatial_location from gml_input,
                                                     xmltable (xmlnamespaces (''http://www.opengis.net/gml/3.2'' as "gml"),
                                                              ''GeometryComponents/polygon/gml:Point''
                                                               PASSING gmldata
                                                               COLUMNS
                                                               spatial_location XMLTYPE PATH ''//gml:Point'') point';
    --    dbms_output.put_line (sql_stmt);
    
    
        OPEN c_geoms FOR sql_stmt;
    
        LOOP
    
          FETCH c_geoms INTO v_gml_rec;
          EXIT WHEN c_geoms%NOTFOUND;
    
          v_gml_clob_rec := v_gml_rec.getClobVal;
    
          sql_stmt := 'SELECT SDO_CS.TRANSFORM(SDO_UTIL.FROM_GML311GEOMETRY ('''||v_gml_clob_rec||'''), 8307) FROM dual';
    
          EXECUTE IMMEDIATE sql_stmt INTO v_sdogeom;
     
          varray_sdogeom.EXTEND;
    
          varray_sdogeom(varray_sdogeom.COUNT) := v_sdogeom;
    
        END LOOP;   -- c_geoms fetch
    
        CLOSE c_geoms;
    
        select SDO_AGGR_SET_UNION(varray_sdogeom, 0.005) INTO v_sdogeom_all from dual;
    
      END IF;  -- v_count > 0
    
    RETURN v_sdogeom_all;
    
    END IF;
    
    END MULTI_GML_TO_SDOGEOM;
    /
    
    show errors
    Unfortunately I can't add the data, I'm processing as it is classified, but here's a dummy sample of the type of GML, I'm analysis although this is short enough to make it work:
    <GeometryComponents xmlns:gml="http://www.opengis.net/gml/3.2">
    <polygon xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:srv="http://www.isotc211.org/2005/srv"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:mgmp="http://www.mod.uk/mgmp" xmlns:smr="http://www.mod.uk/smr"
    xmlns:xlink="http://www.w3.org/1999/xlink"><gml:Polygon gml:id="bp2" srsName="EPSG:4326">
    <gml:exterior>
    <gml:LinearRing>
    <gml:posList srsDimension="2">175 -40 176 -40 176 -39 175 -39 175 -40</gml:posList>
    </gml:LinearRing>
    </gml:exterior>
    </gml:Polygon>
    </polygon>
    </GeometryComponents>
    And even if this function is normally called by procedure, this is a double call
     select MULTI_GML_TO_SDOGEOM ('<GeometryComponents xmlns:gml="http://www.opengis.net/gml/3.2">
    <polygon xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:srv="http://www.isotc211.org/2005/srv"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:mgmp="http://www.mod.uk/mgmp" xmlns:smr="http://www.mod.uk/smr"
    xmlns:xlink="http://www.w3.org/1999/xlink"><gml:Polygon gml:id="bp2" srsName="EPSG:4326">
    <gml:exterior>
    <gml:LinearRing>
    <gml:posList srsDimension="2">175 -40 176 -40 176 -39 175 -39 175 -40</gml:posList>
    </gml:LinearRing>
    </gml:exterior>
    </gml:Polygon>
    </polygon>
    </GeometryComponents>') from dual;
    Thanks in advance.

    Hello

    I don't see why you use dynamic SQL statements here.
    As mentioned above, you do a lot of things wrong and unnecessary, the first being not not using bind variables.
    So, I see many serialization/construction on XMLType which only adds more load.

    Basically, the function can be simplified to:

    create or replace function multi_gml_to_sdogeom (
      geometry_components in clob
    )
    return sdo_geometry
    is
    
      v_sdogeom_all       SDO_GEOMETRY;
    
    begin
    
      select SDO_AGGR_SET_UNION(
               cast(
                 collect(
                   SDO_CS.TRANSFORM(SDO_UTIL.FROM_GML311GEOMETRY(spatial_location), 8307)
                 )
                 as sdo_geometry_array
               )
             , .005
             )
      into v_sdogeom_all
      from (
        select xmlserialize(content x.column_value) as spatial_location
        from xmltable(
               xmlnamespaces ('http://www.opengis.net/gml/3.2' as "gml")
             , '/GeometryComponents/polygon/(gml:Polygon|gml:Point)'
               passing xmlparse(document geometry_components)
             ) x
      ) ;
    
      return v_sdogeom_all;
    
    end;
    
    SQL> select multi_gml_to_sdogeom('
      2  
      5  
      6  
      7  175 -40 176 -40 176 -39 175 -39 175 -40
      8  
      9  
     10  
     11  
     12      45.67, 88.56
     13    
     14  
     15  ')
     16  from dual ;
    
    MULTI_GML_TO_SDOGEOM('
     
    

    Published by: odie_63 on 8 Jan. 2013 18:02

  • How can I get the message from thunderbird to stop coming when I opened my email?

    How can I get the message from thunderbird to stop coming when I opened my email?

    Press the alt key to make the call of menu bar
    Select Tools-Options-general
    Disabled the Start Page

  • Get 7 Volume Info.vi returns an error when you try to get the information from disk on the cRIO-9025

    Hello

    I use a cRIO-9025 controller and want to get the information from the c: disk volume using the function to read the Volume information in the palette file I/O. When I run the function with the path as "C:\". ", the function returns a 7 error indicating that the path is incorrect.

    I used this function before with cRIO but unfortunately I have not any older devices with me to check this out now. I'm using LabVIEW 2009 SP1.

    Thank you very much!

    See you soon!

    Sankah2k

    On real-time targets VxWorks, the root of the path of the file is here (in lowercase). Try and let us know if it works. You would be better to use the constant path of the file to understand what looks like the path of the root directory.

  • How to get the string (specified by row and column) of txt file with labview

    Hello world

    How to get the string (specified by row and column) of txt file with labview

    THX

    As far as I know, a text file has no column.  Be more specific.  Do you mean something like the 5th word on line 4, where the words are separated by a space, and lines are separated by a newline character?  You can read from the spreadsheet String function and set the delimiter to a space.  This will produce a 2D channels table.  Then use the table to index and give the line number and column number.

  • I paid for software that is not downloadable, because I have vista. Can I get a refund from Microsoft?

    I paid for software that is not downloadable, because I have vista. Can I get a refund from Microsoft?

    Hello

    This is not Microsoft

    you don't say what the name of the software

    and there's an old saying: "buyer beware."

    and read this;

    always check the compatibility of vista programs on the link below

    http://www.Microsoft.com/Windows/compatibility/Windows-Vista/default.aspx

    If a program is compatible with vista you can try right click on the setup.exe, and then selecting run as administrator

    It is not compatible with vista, you can try running it in a previous operating system mode

    This does not work for all programs

    read the information below

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-compatibility-mode/

  • I get a message from msnupdate.exe

    I get a message from msnupdate.exe, and when I click on it it says that it is a program not identified, in order to cancel it. I did some research and news is mixed is this a virus? I ran the Norton security, Malwarebytes and superanti spyware and they find nothing. I tried to find the download free skybot but I'm not sure to find the right one. Help, please.

    Hi Alexis570,

    Step 1:

    MSNUpdate.exe is part of the process of automatic update MSN. This indicates that the latest version of MSN has finished downloading and is waiting to complete the installation. It is quite persistent and ask permission whenever you exit MSN.

    For more support on this, post your request here by selecting of MSN Explorer:https://support.msn.com/Default.aspx?wa=wsignin1.0

    Step 2: Online virus scanner.
    1. visit the following link and scan full service: http://onecare.live.com/site/en-us/default.htm

    Bindu R - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Getting a string of an agent customized by groovy

    I have a number of custom scripts agent and I can retrieve values using the query function:

    def qryService = server.get ("QueryService")

    qryStatement = qryService.createStatement ("metrics from table where monitoredHost.name = servername spanning from date time time_span")

    metricValue = avg (qryService.executeStatement (qryStatement))

    I can get the digital values appearing as ObservedValues in the script if editor I come down on the Forum, but I was not able to get the string values that are listed without comment by "ObservedValue".  The avg() statement above won't work of course for a string, but take it from me either Gets an empty container ([{} {}] or something that I have not been able to analyze (I'm a sysadmin, my JAVA and groovy is limited).)  I tried to use topologyobject instead of QueryService but I did not have what I wanted.

    I would like suggestions.

    Right you are, that works.

  • get the values of the selected items to RichSelectManyChoice

    Hi all

    I have a RichSelectManyChoice

    When the user clicks on the "submit" button I want to get the values of the selected items...


    ----------------------------------------------------------page.jspx-----------------------------------------------------------------------------

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "version ="2.1"xmlns:f =" " http://Java.Sun.com/JSF/core "

    ' xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "> "

    < jsp:directive.page contentType = text/html"; Charset = UTF - 8 "/ >

    < f: view >

    < af:document title = "untitled1.jspx" id = "d1" > "

    < af:messages id = "m1" / >

    < af:form id = "f1" >

    < af:panelGridLayout id = "pgl1" >

    < af:gridRow height = "100%" id = "gr1" >

    < af:gridCell width = '100% ' halign = "stretch" valign = "stretch" id = "gc1" >

    <! - content - >

    < af:selectManyChoice value = "#{bindings." CountriesView1.inputValue}.

    label = "#{bindings." CountriesView1.label}"id ="smc1.

    valuePassThru Binding = "#{suspect." Country}"="true">

    < f: selectItems value = "#{bindings." CountriesView1.items}"id ="si1"/ >

    < f: validator binding = "#{bindings." CountriesView1.validator} "/ >"

    < / af:selectManyChoice >

    < / af:gridCell >

    < / af:gridRow >

    < / af:panelGridLayout >

    < text af:button = "Button 1" id = "b1" action = "#{suspect.valide}" / >

    < / af:form >

    < / af:document >

    < / f: view >

    < / jsp:root >

    ---------------------------------------------------------------------------------------------------------------------------------------

    --------------------------------------------------------------------suspect.java-------------------------------------------------------------------

    package test.view;

    import com.sun.org.apache.xpath.internal.operations.String;

    Import oracle.adf.view.rich.component.rich.input.RichSelectManyChoice;

    public class suspect {}

    RichSelectManyChoice campaign private;

    String string = null;

    public suspect() {}

    ????????????????????????????????????????

    }

    public void valide() {}

    }

    {} public void setCountry (RichSelectManyChoice country)

    This.Country = country;

    }

    public RichSelectManyChoice {} getCountry()

    back country;

    }

    }

    ---------------------------------------------------------------------------------------------------------------------------------------------------------


    Anyone has an idea please?

    Hello

    You can use

    JUCtrlListBinding listBindings = (JUCtrlListBinding) getBindings () .get ("CountriesView1");

    Object [] str = listBindings.getSelectedValues ();

    for (int i = 0; i)< str.length;="" i++)="">

    System.out.println (STR [i]);

    }

    in this loop, you will get all the values of selectManyChoice, for details see Ashish Awasthi (Jdev/ADF) Blog: using the selection Multiple (component selectManyListbox & selectManyCheckbox) in ADF

    hope it helps

Maybe you are looking for

  • How can I change the fonts, is it "BOLD", etc. in a new message?

    I use TB 31.5.0. When you compose a new message in HTML, I don't see a way to easily change the fonts, the font size, "BOLD", etc. I have 'compose messages in HTML format' ticked. My wife says she thinks this device used to be there in earlier versio

  • Access - how to create the only list email address?

    Printing envelopes from mail lists - via Microsoft Excel? Access - how to create a list of only email addresses? Wearing my 'new' status, step by step instruction would be appreciated.

  • I'll have to set up a new iphone5s bad

    I have trouble to set up a new iphone5s. left that it plugged in all night. Still not able to use.

  • RT vi no need to stop feature?

    Just kind of a general question about target RT applications. As I see that we don't need a stop feature programmed on the side of the RT. Appropriate management of errors. But I don't see no matter what scenario why we would stop RT apps? If we chan

  • 0x8007066f kb2597112 installation error

    Now, I tried half a dozen times to install Office 2003 update security KB2597112 without success. The error message is 0x8007066F and popup 'resolution' is pretty useless; the FAQ does not mention this error, and none of the other links work! Go to t


HashFlare