How to get result directory?

Hi,
I'd like to save file from tested page to result directory. How can I get the path?
Br,
Tamas

Hi Tamas,
This has come up before, but I can't remember if we got to the bottom of it. To get the results path you should be able to:
String resultsPath=getSettings().getResultReportFolder();
But it always returns null for me.....so I have to bow out of this one and hopefully someone else out there has an answer.....
Regards
Wayne.

Similar Messages

  • How to get folder(directory path only not file path) from local file system

    Hi Firends,
    How to get folder(directory path only not file path) from local file system , whenevr i will click on browse button.
    Please give reply for this one , if anybody knows.
    Thanks,
    Anderson.

    Hi Anderson,
    if you're using flash.filesystem.FileReference - then it is run in black box - except of filename, size and creation data (and few other properties available after some operation succeeded). This is part of security features in Flash runtime (described in header section):
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference .html
    This for example implies that user can download a content to local machine - but that content cannot be loaded back into Flash runtime. For this you would need either Air runtime flash.filesystem.File:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.h tml
    (so you would created Air runtime based application: desktop or mobile but not web, even as standalone project) or you would need one of 3rd party tools that add file access/file information features to standard Flash runtime applications converted to standalone native applications.
    hth,
    kind regards,
    Peter

  • How to get a directory listing in XE?

    So how would you best get a directory listing?
    There was a lovely thread about using dbms_scheduler to make external calls:
    Re: External procedure calls supported?
    Which discussed how to run an external prcoedure. So using that technique would an approach be:
    create procedure get_dir(p_dir varchar2)
    --get sequence for directory call
    --call 'synronous dbms_scheduler that executes "ls -l > /tmp/listing[sequence]
    --create external table temp_dir_[sequence]
    --load it into a global temp table ala ASKTOM http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584
    --drop the external table
    Someone on Asktom said they were going to do it via dbms_pipe but was not forthcoming with an example.
    I'm not sure I like creating and dropping an external table every time this procedure is called and I feel I am missing a technique (or a good idea) to make this work effectively.
    Kind Regards,
    James
    Got the link to the 'External procedure calls support' wrong.
    Message was edited by: jcrockart

    Ok.
    Well here is the solution... Can I make it better?
    FROM OS (oracle user):
    vi ~/get_dir.sh
    #!/bin/sh
    ls $1 > /tmp/$2
    exit 0
    ##end
    FROM SYS:
    create directory OS_TMP as '/tmp';
    grant read,write on directory OS_TMP to hr;
    grant create table to hr;
    FROM HR:
    create global temporary table DIR_LIST
    ( filename varchar2(255) )
    on commit delete rows
    --create the following:
    CREATE OR REPLACE procedure get_dir_list (
    p_directory     in varchar2
    IS
    l_jobname VARCHAR2 (100);
    BEGIN
         l_jobname := DBMS_SCHEDULER.generate_job_name (prefix => 'get_dir_list');
         dbms_output.put_line(l_jobname);
         --dbms_output.put_line('ls '||p_directory||' > /tmp/blah');
         --creat syncrhous job
         DBMS_SCHEDULER.create_job (
              job_name => l_jobname,
              job_type => 'EXECUTABLE',
              job_action => '/home/oracle/get_dir.sh',
              number_of_arguments => 2,
              enabled => FALSE,
              comments => 'directory listing for '||p_directory);
         DBMS_SCHEDULER.set_job_argument_value (l_jobname, 1, p_directory);
         DBMS_SCHEDULER.set_job_argument_value (l_jobname, 2, l_jobname);
         -- Run job synchronously.
         DBMS_SCHEDULER.run_job (job_name => l_jobname, use_current_session => TRUE);
         -- Remove job after run
         DBMS_SCHEDULER.drop_job (l_jobname);
         --create external table
         execute immediate '
              create table '||l_jobname||'_ext
              file_name               varchar2(1000)
              organization external (
              type          oracle_loader
              default     directory os_tmp
              access parameters (
                   records delimited by newline
                   fields terminated by '',''
                   missing field values are null
                   file_name)
              location ('''||l_jobname||''')
              reject limit unlimited';
              execute immediate '
              INSERT INTO DIR_LIST(FILENAME) select file_name from '||l_jobname||'_ext
    END;
    --test it
    exec get_dir_list('/home/oracle')
    GET_DIR_LIST14
    PL/SQL procedure successfully completed.
    hr>select * from dir_list;
    FILENAME
    apex
    apex_3.0.1.zip
    get_dir.sh
    go.log
    go.txt
    test.sh
    6 rows selected.
    hr>
    Apologies for butchering Dietmar Aust dbms_schedule example.
    I can't drop the external table as the data in the global temporary table will be lost, so I will have to periodically clean up after this procedure.
    Please somebody feel free to give me the one line solution ;-)
    Regards,
    James

  • How to get result without single cotes in ''Cast(Multiset( '' Result.

    select cast(multiset(select column_name
    from user_tab_columns
    where table_name = 'DAILY_PRODN_MIS'
    and column_name like '%STOCK%'
    order by column_name) as tab_type) result from dual;
    RESULT
    TAB_TYPE('BAGS_STOCK', 'BLUE_DUST_STOCK', 'CEMENT_STOCK', 'CEMENT_STOCK_33', 'CEMENT_STOCK_43', 'CEMENT_STOCK_53', 'CK_ADJ', 'COAL_IND_D_STOCK', 'COAL_IND_D_STOCK_ADJ', 'COAL_IND_E_STOCK', 'COAL_IND_E_STOCK_ADJ', 'COAL_IND_F_STOCK','OCK_ADJ', 'MTD_COAL_IMP_D_STOCK_ADJ', 'MTD_COAL_IMP_E_STOCK_ADJ', 'MTD_COAL_IND_A_STOCK_ADJ', 'MTD_COAL_IND_B_STOCK_', 'YTD_COAL_IMP_B_STOCK_ADJ', 'YTD_COAL_IMP_C_STOCK_ADJ', 'YTD_COAL_IMP_D_STOCK_ADJ', 'YTD_COAL_IMP_E_STOCK_ADJ')
    How can i get result without single cotes for each column.

    Your query currently returns a collection type (tab_type) whereas it appears you want to return a delimited string.
    There are actually quite a few ways to achieve this - with your own function, with a user-defined aggregate functions (e.g. Tom Kyte's stragg), with the MODEL clause or with CONNECT BY, e.g.
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> SELECT table_name,
      2         SUBSTR (MAX (SYS_CONNECT_BY_PATH (
      3            column_name, ',')), 2) column_names
      4  FROM  (SELECT table_name, column_name,
      5                ROW_NUMBER () OVER (
      6                   PARTITION BY table_name
      7                   ORDER BY column_id) column_order
      8         FROM   user_tab_columns
      9         WHERE  table_name = 'BANK_ACCOUNT'
    10         AND    column_name LIKE '%U%') utc
    11  START WITH column_order = 1
    12  CONNECT BY column_order = PRIOR column_order + 1
    13  AND    table_name = PRIOR table_name
    14  GROUP BY   table_name;
    TABLE_NAME           COLUMN_NAMES
    BANK_ACCOUNT         ACCOUNT_NAME,ACCOUNT_NUMBER
    SQL>

  • How to get result of PING whether TRUE/FALSE and prompt message to user?

    Hi all!!!!
    In Forms 6i, I need to know how to get the result of a ping if the ping is sucessful or not. It should prompt the user whether the connectivity is there or not after the ping statement which is HOST('PING 191.10.10.40'). As of now, when the user select the desired LOV, the corresponding HOST statement is executed. But if the connectivity is not there, the user is left in blank with a hanging situation... So can we not prompt the user if the connection has been failed or not?
    Regards

    Hi,
    You can try this.
    Redirect the output of the ping test to a file. Read the file using TEXT_IO and see if the test is passed. For ex
    host('ping <your_ip> > c:\ping_test.log');Will redirect the ping output to ping_test.log file under c:\ drive.
    Open the file using TEXT_IO and check if you have the text "Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)". If you have, then the host is reachable. Otherwise its not. Depending on that, you can change the flow of your application.
    -Arun

  • How to get result of Select from stored function.

    I need to get result of select from a stored function.
    In the end of my stored function I makes final select (four columns).
    How it can be retrived from function?

    Hi,
    A function can only return one value, but it sounds like you want to return 4 values.
    The one value that you return can be a record, with many columns, such as a ROWTYPE, or a TYPE that you define.
    You can return an XMLTYPE that has whatever elements you want.
    You can write a procedure that has several OUT parameters. (You can have OUT parameters in a function, but a lot of people find that confusing.)
    In very special circumstance, you might consider returning a string that is a delimited list of values, such as '7639,SMITH,,17-DEC-1980'.
    Someoneelse has a good point.
    We could give a better answer if you ask a specific question, like:
    "I have this table ...
    I want a function such that, if I call it with these parameters ... I get ...
    but if I call it like this ... then I get ..."

  • How to get the directory name using vnode address

    All,
    I am writing a C program and need info on the following:
    1. I have got the vnode address of the current directory. my question is "How to get the inode information (in particular, directory name) from the vnode address ?". What calls i need to use in order to get the info ?
    2. Any helpful web sites containing the above information ?
    Thanks in advance

    package x.y;
    import java.io.File;
    public class Test {
        public static void main(String[] args) {
            System.out.println(new File(Test.class.getResource("").getFile()).getAbsolutePath());
    }

  • How to get result of MDM validation expression with type warning?

    I need  to get result of MDM validation expression with type WARNING (in automatic execution),
    but - method validationResult.getFailedValidations(..) returns validation if it has type ERROR,
    so all Warnings treated only as success despite it returned false or true.
    My question - how can I get that 'false or true' expression resut for validation.
    thanks

    Hello Vladimir
    By my opinion, hook warning exception isn't make sense because after warning message data will be change(upload).
    Moreover  if you start validation from WF Warning exception doesn't work at all.
    If you want to do some data changes you should use and hook Error exception.
    Regards
    Kanstantsin Chernichenka

  • How to get result

    hi
    i created a java source coded below
    CREATE OR REPLACE JAVA SOURCE
    NAMED "Welcome"
    as import java.lang.*;
    public class Welcome
    public static void main(String s[])
    System.out.println("Welcom to java");
    java created.
    but how to get the result "welcome to java"
    how call or execute Welcome class file.
    thanks any one help
    bye

    Try this:
    CREATE OR REPLACE JAVA SOURCE NAMED Welcome
    as
    import java.lang.*;
    class Welcome
      public static void main(String s[])
        System.out.println("Welcome to java");
    CREATE OR REPLACE PROCEDURE welcome
    AS LANGUAGE JAVA NAME 'Welcome.main(java.lang.String[])'; 
    set serveroutput on
    call dbms_java.set_output(2000);
    exec welcome;

  • How to get Result Count Content By Search Webpart (ContentBySearchWebPart)?

    I'm writing a webpart that extends the out of the box ContentBySearchWebPart.
    Does any one know how to get the search result count from this webpart?
    I did not find any property?

    Hi 
    Thanks but you are referring to the "Search Webpart". I am referring to the "Content Search" or often called "Content by Search" which is different. It's the one under Content Rollup.
    Although very similar they're not - Content Search WP doesn't have that property.
    What I am really after is to hide the whole webpart if there are no results coming back. I tried to figure it out and even write a jQuery that would search for the text "There are no results" message which comes from the webpart when result count=0
    and hide the parent webpart that way. There will be a short flash once the page loads rendering the webpart for a split second and then disappear by jQuery - which is not great UI experience.
    There is this property: "ShouldHideControlWhenEmpty" but it doesn't do anything when there are no results. The webpart is still visible. Webpart has a the Title and the Border around it so when there are no results the title and the border show
    up with no results. Like I said I want to hide the whole thing in that case.
    So I thought I could extend the OOTB ContentBySearchWebPart and get a hold of some kind property that would get me the result count. If the results count is 0 simply I would hide the webpart server side.
    Thoughts?

  • How to get current directory and enviroment variables

    Hello, 
       1.- Is there a global variable to get the actual (project, where is DSB and DSQ files) directory? 
       2.- Is there a way to get User directory like reading enviroment variables from Operative System? 
    Thanks in advance.
    PD: I'm using Dasylab12
    Solved!
    Go to Solution.

    Yes, use System Strings
    For example, ${DATA_FOLDER}.
    The easiest way to get the list is to right click and select Global Strings. The bottom half of the dialog box lists system strings, including date, time, the name of the worksheet, with or without path, the DEFAULT folders for worksheet, data, other, black box, etc. 
    - cj
    Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.

  • How to get result after click alert view by itms-services://?action=download

    hi,
    is any possible to get result after click alert view by using [[UIApplication sharedApplication] openURL:@"itms-services://?action=download-manifest&url...
    when i close app, the alert view ([[UIApplication sharedApplication] openURL) is aleady exist, is it not uialertview?, i can't find any alert view by
    for (UIWindow *keyboardWindow in [[UIApplication sharedApplication] windows])   {
            if ([[keyboardWindow description] hasPrefix:@"<UIALERT"] == YES) {
                isExists = YES;
    any help, thanks.

    I have the MS-6968 device and i want to use driver 1.4.x or 3.0.x. I found the driver 1.4.2.10 but i cannot find any WIDCOMMSecurity code.
    So, can anyone give me a link for BTWPatcher.exe???
    It cannot be found here (Jon's Bluetooth ) anymore.
    Thanks

  • How to get result set

    Hi all,
    Please tell me how to get the below required out put.
    this is my table and data
    with t as (select 11 plcy,1 nm from dual union all
    select 11 plcy,2 nm from dual union all
    select 11 plcy,3 nm from dual union all
    select 11 plcy,5 nm from dual union all
    select 22 plcy,1 nm from dual union all
    select 22 plcy,2 nm from dual union all
    select 22 plcy,3 nm from dual union all
    select 33 plcy,1 nm from dual union all
    select 44 plcy,2 nm from dual union all
    select 55 plcy,4 nm from dual union all
    select 66 plcy,3 nm from dual )
    select * from t
    this my required output.
    from above query required output is below
    plcy      nm
    11      5
    33      1
    44      2
    55      4
    66      3
    if pass nm = 5 then 11
    if i pass nm= 1 then 33
    if i pass nm=2 then 44
    if pass nm = 4 then 55
    if i pass nm =3 thne 66
    it means it has only one value from plcy
    11 5
    33 1
    44 2
    55 4
    66 3
    thanks,

    Something like this:
    SQL > with t as (select 11 plcy,1 nm from dual union all
      2             select 11 plcy,2 nm from dual union all
      3             select 11 plcy,3 nm from dual union all
      4             select 11 plcy,5 nm from dual union all
      5             select 22 plcy,1 nm from dual union all
      6             select 22 plcy,2 nm from dual union all
      7             select 22 plcy,3 nm from dual union all
      8             select 33 plcy,1 nm from dual union all
      9             select 44 plcy,2 nm from dual union all
    10             select 55 plcy,4 nm from dual union all
    11             select 66 plcy,3 nm from dual
    12  )
    13  SELECT     MAX(plcy) plcy
    14  ,  NM
    15  FROM       t
    16  GROUP BY NM
    17  ORDER BY PLCY
    18  /
          PLCY         NM
            11          5
            33          1
            44          2
            55          4
            66          3

  • SUBMIT RFGLBALANCE WITH selection criteria, then How to get resulted itab?

    Hi Experts,
    Am looking to develop a similar report which is doing by SAP at detail/item level, but am looking to develop a SUMMARY level.
    SAP report is = FS10N (bhind prog. is RFGLBALANCE / RFGLITEMS )
    my_alv = shuld show only TOTALS / SUMMARY line
    Almost the selection screen is same in both cases.
    So, I wanna to use the same prog. by using SUBMIT from my_alv_report.
    So, when I use
    SUBMIT RFGLBALANCE
      WITH ..........................
      WITH ........................
    AND RETURN.
    then, my_alv_report control goes to RFGLBALANCE prog. there my input is processed and the output internal table is populating in RFGLBALANCE.............so, now, I wanna to get / fetch / pull this populated internal table into my_alv_repor and there by using the same for my alv display.
    ( I know that, if both r Z prog.s/ Z_BAPIs, then, I can use EXPORT & IMPORT )
    So, pls. let me know that,
    Is it possible ?
    If so, How to get it done?
    SUBMIT Syntax pls.
    thanq

    thanq.
    so, then, Can I use like, *INCLUDE RFGLBALANCE*(Standard Prog.) in my_alv_report, I mean, like
    report my_alv_report message-id Z1.
    INCLUDE RFGLBALANCE.
    own_Logic.
    thanq

  • How to get result of select query from  oracle  in VC

    Dear All ,
    I have a application in oracle which insert the data in the oracle database table.
    Now i want to show all the data that has been inserted into the database table in my VC application but i don't know how to handle select query in VC.
    Regards
    Krishan

    Hi Goivndu
    Thanks for your reply .
    I know all those things.
    I have created the system & alias  for my backend oracle system.
    I can also see all the stored procedure that are there in my oracle system.
    I just want to know how to write a select query in a stored procedure .
    you can insert data , Update data through oracle procedure but i don't think there is any way to get the result of select query in stored procedure .
    If you know any way to do that please do let me know .
    Regards
    Krishan

Maybe you are looking for