After a SELECT INTO, the use of the result as a parameter to another SQL variable?

Hello world

My apologies for these basic questions, but I need your help in order to run the report in STATSPACK (spreport.sql) in a NON-interactive manner.

To do this, I need 3 parameters:

  1. begin_snap
  2. end_snap
  3. report_name

I have a version of the report named spreportBH.sql. This sql receives 3 parameters and generates the report success.

SQL > @spreportBH.sql 923 1111 /u01/BHB/test4.txt

For this example begin_snap=923, end_snap=1111 and report_name is /u01/BHB/test4.txt

My problem is that the snapid must be calculated based on the date.

To achieve this goal, I can query the table STATS$ SNAPSHOT.

For example, this query gives me the 923:

Select min (snap_id)

de PERFSTAT . STATS$ SNAPSHOT

snap_time >= TO_DATE ('12-06-2014','dd-mm-YYYY');


I know that I can put the value in a variable. For this, I'm doing:


sqlplus "virtue sysdba" s < <!   1 > > ${fichier_de_sortie} 2 > > ${error_file}

DECLARE

firstSnapId NUMBER;

BEGIN

Select min (snap_id) INTO firstSnapId

of PERFSTAT. STATS\$ SNAPSHOT

where snap_time > = to_date ('12-06-2014', ' dd-mm-YYYY');

END;

/

!


How can I use firstSnapId to call @spreportBH.sql?

I'd appreciate any help that can give me.

Thank you d ' attribute

Bety



Hi, Bety,

So, you want to call a script in SQL * more.  I'm not suggesting using PL/SQL use SQL * Plus Substitution Variable instead.

-The following command of the COLUMN said that everything which appears in a column called

-firstSnapIdCol will also go in a variable of substtitution called firstSnapId

COLUMN firstSnapIdCol new_value by firstSnapId

Select min (snap_id) AS firstSnapIdCol  

of PERFSTAT. STATS$ SNAPSHOT

where snap_time > = to_date (6 December 2014 ", 'dd-mm-YYYY');

-Now that firstSnapId has a value, we can use it like this:

@spreportBH.sql & firstSnapID 1111 /u01/BHB/test14.txt

Tags: Database

Similar Questions

  • How to do a select on the results of a stored procedure?

    Hello

    I am new to Oracle. I work with SQL Developer.

    I'm doing a simple select on the results of a stored procedure call. I don't know how to do it. Here's what I have so far:

    declare
    type ref_cursor is ref cursor;
    results ref_cursor;
    Start
    MyStoredProcedure (123 results);
    Select * from results;
    end;
    /

    but he said to me:

    Error from the 1 in the command line:
    declare
    type ref_cursor is ref cursor;
    results ref_cursor;
    Start
    GET_TAX_TYPE_BY_TAX_ENTITY_KEY (60670100000000, results);
    Select * from results;
    end;
    Error report:
    ORA-06550: line 6, column 15:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 6, column 1:
    PL/SQL: SQL statement ignored
    06550 00000 - "line %s, column % s:\n%s".
    * Cause: Usually a PL/SQL compilation error.
    * Action:

    Obviously, select * results; is not the right way to do it. But what is?

    Thanks for any advice forthcoming.

    If a SQL cursor is built by a reporting system, a Java application, a c# program, or a PL/SQL call - the database doesn't care, because he doesn't know the difference. A Select SQL cursor created in PL/SQL through the ref cursor interface, won't be faster than the same SQL select in Eclipse. If the SQL source code is the same, the same cursor SQL program will be used by both.

    What give you BIRT is the flexibility of the use of code Server (PL/SQL) to create the slider - this code doing business and technical decisions on how to design side than SQL, Select. Which is a good thing because it summarized the data model and the complexity BIRT server technique.

    So my choice would be to use the procedural interface and return to the reporting system for the rendering of the ref Cursor.

    The question of a slider running via the slider (selection of a cursor), is questionable. Yes, there are a set of specifications that allows to do this kind of thing. But it must be very firmly justified and careful design because it really is an exception. I personally (blame my DBA) would need a justification because it is much more of an exception. I have never seen it put in place in production in more than a decade of DBA'ing, despite the developers try to use such a hack - as it has always been much more powerful and the deployment of alternatives.

    The concept for robust and efficient code for Oracle is: Maximise SQL. Minimize the PL/SQL (or Java / c# / etc.).

    That means when it comes to database power, write an SQL program to do. Stop thinking of SQL as a language of data recovery a single simplistic statement. Think of it as a programming language. Extremely complex problems can be resolved with a single SQL, which requires easy code 100 + lines of PL/SQL, Java, or c#. Write SQL programs. Not SQL one-liners for a grinding program PL/SQL or Java data.

    Why then PL/SQL? It is the best language to manage the creation of SQL, dealing with the process flow, conditional processing, and so on of exception handling. It is less than SQL (such as Java and c#) in the treatment of the data.

  • My iPod stop now, it won't turn even after be plugged into the power supply for more than an hour

    IiPod touch than 64 GB itself now cut an hour plug into the current af it starts

    Press the sleep/wake and home buttons and keep them for at least 10 seconds.

    If this is not enough, take a look at these articles Support from Apple:

    If your iPhone, iPad or iPod touch does not respond or does not turn on - Apple Support

    Use iTunes to restore the iPhone, iPad or iPod to factory settings - Apple Support.

    As a final step, try recovery mode. Turn off your unit, then plug it to your computer with the hold home button. Hold down Home button until you see the logo on the screen of your iPhone iTunes. After that on your computer, you should see the iTunes window saying that your iPhone needs to be restored to factory settings. Click Restore.

    More info here:https://support.apple.com/en-us/HT201263

    If these steps do not work, contact Apple and ask for help.

    https://www.Apple.com/support/iPhone/contact/

  • assign the value to a selection of the result of a query control

    I want to assign a value to my controls with the result of the query.

    It works for CFINPUT TEXT, but it does not work to SELECT

    I want to know are there any way tp affect my drop-down list value based on the result of questy.

    I have CFSTOREPROC as follows:

    < cfstoredproc procedure = "PSP" >

    < cfprocparam value = '#form. "IDNumber #" CFSQLTYPE = "cf_sql_integer" >

    < name cfprocresult = resultset "spResult" = "1" >

    < / cfstoredproc >

    < type CFINPUT = 'text' id = "txtIDNumber" value = "" #spResult.IDNumber # "/ >"

    I am able to name a TEXT of ENTRY CF as above the code value,

    < select id = "lstNumber" value = "#spResult.lstNumber #" > < / select >

    but it does not affect the value of my result of the query to SELECT entry.

    Is it possible to assign a value to the query result SELECTION control?

    I tried to use JavaScript that works if I pass a number, but it does not work if I pass a query result,

    Your help is very appreciated,

    Kind regards

    Iccsi,

    @Iccsi,

    My bad!  Yes, you will either need to the CFOUTPUT tag (that you commented out in your code) but without specifying a query or change the CFLOOP query CFOUTPUT = "Notes".  If one of these should work:

    OR

    -Carl V.

  • Copy the result of a join to another table

    Hi all

    I want to copy the join of two tables in another table. I tried the following approach, but I have error

           insert into new_copy  values (ID,name,na_name)   
           SELECT
             name
            FROM
              country u
            INNER JOIN
              (
                SELECT
                 na_name
                FROM
                  country2 st
              )
              s
            ON
              u.id = s.ID;
    
    1. insert into new_copy (ID, name, na_name)
    2. SELECT i.id, u.name, s.na_name
    3. COUNTRY u
    4. INNER JOIN s countries2 ON u.id = s.id

    must be done

  • selection of the results aggregated into a PL/SQL block gives me ORA-00934

    Hello

    I have a simple table of objects on the map that were inclusive. That is to say:
    CREATE TABLE tbl (
      id NUMBER(11,0), -- Id of this record
      parentId NUMBER(11,0), -- Id from some parent table
      bb_sw_lat FLOAT, -- SW bounding box corner - Latitude
      bb_sw_lng FLOAT, -- SW bounding box corner - Longitude
      bb_ne_lat FLOAT, -- NE bounding box corner - Latitude
      bb_ne_lng FLOAT -- NE bounding box corner - Longitude
    );
    
    INSERT INTO tbl VALUES (1, 1, 10, 10, 20, 20);
    INSERT INTO tbl values (2, 1, 5, 5, 35, 35);
    INSERT INTO tbl values (3, 1, -5, -20, 0, 0);
    INSERT INTO tbl VALUES (4, 2, 9, 9, 10, 10);
    INSERT INTO tbl values (5, 2, 1, 1, 1, 1);
    I can query the number of entries for a parent entity and the use of aggregate functions calculate the framework encompassing total for the parent entity:
    SELECT
      count(*),
      NVL(MIN(bb_sw_lat),0),
      NVL(MIN(bb_sw_lng),0),
      NVL(MAX(bb_ne_lat),0),
      NVL(MAX(bb_ne_lng),0)
    FROM tbl
    WHERE parentId=1;
    but the same select cannot be put to the PL/SQL block:
    DECLARE
      cnt NUMBER;
      sw_lat FLOAT; sw_lng FLOAT; ne_lat FLOAT; ne_lng FLOAT;
    BEGIN
      SELECT
        count(*) INTO cnt,
        NVL(MIN(bb_sw_lat),0) INTO sw_lat,    -- ORA-00934: group function is not allowed here
        NVL(MIN(bb_sw_lng),0) INTO sw_lng,
        NVL(MAX(bb_ne_lat),0) INTO ne_lat,
        NVL(MAX(bb_ne_lng),0) INTO ne_lng
      FROM tbl
      WHERE parentId=1;
    END;
    can someone please explain to me why and what to do with it? Examples are executable as they are, it should be fairly easy to reproduce.

    Thank you very much!

    Kuba

    Published by: user3620664 on May 14, 2009 02:14 added formatting

    without testing, just an IN

    DECLARE
      cnt NUMBER;
      sw_lat FLOAT; sw_lng FLOAT; ne_lat FLOAT; ne_lng FLOAT;
    BEGIN
      SELECT
        count(*),
        NVL(MIN(bb_sw_lat),0),
        NVL(MIN(bb_sw_lng),0),
        NVL(MAX(bb_ne_lat),0),
        NVL(MAX(bb_ne_lng),0)
     INTO cnt,
      sw_lat,
      sw_lng,
      ne_lat,
      ne_lng
       FROM tbl
      WHERE parentId=1;
    END;
    

    Published by: Alex Nuijten on May 14, 2009 11:19

  • erase the images loaded into the Gallery of xml to load another game

    I can't understand how to unload my already populated xml Gallery, before loading the new features:

    Here, the functions I want:

    //following 2 functions will be called by a button :
    
    
    // removes previously placed objects 
    function clearLoadedPictures():void {
      //
      
      //
    }
    
    // Load another ,xml to load new pictures set - ok : works fine
    function LoadNewPictures():void {
            //
            i_g = 0;
            //
               // xml data
                var xml_gallery:XML                = new XML();
                var xml_gallery_List:XMLList        = new XMLList;
                // XML data loader...
                var xmlUrlReq:URLRequest   = new URLRequest("xml/gallery2.xml");// gallery2.xml will replace gallery.xml already loaded
                var xml_gallery_UrlLoader:URLLoader = new URLLoader(xmlUrlReq);
                //
                xml_gallery_UrlLoader.addEventListener(Event.COMPLETE, xml_gallery_Complete);
                xml_gallery_UrlLoader.addEventListener(IOErrorEvent.IO_ERROR, xml_gallery_LoadFailed);
            
     }
    

    Here Gallery of xml code:

    var _mc:item;
    var total:int;
    var i_g:int;
    var id:int;
    //
    var btn_Gallery_Ready:Boolean;
    //
    
    var speedX:Number;
    var spaceR:Number;
    
    var img_gallery_Loader:Loader;
    //
    
    i_g = 0;
                //
               // xml data
                var xml_gallery:XML                = new XML();
                var xml_gallery_List:XMLList        = new XMLList;
                // XML data loader...
                var xmlUrlReq:URLRequest   = new URLRequest("xml/gallery.xml");
                var xml_gallery_UrlLoader:URLLoader = new URLLoader(xmlUrlReq);
                //
                xml_gallery_UrlLoader.addEventListener(Event.COMPLETE, xml_gallery_Complete);
                xml_gallery_UrlLoader.addEventListener(IOErrorEvent.IO_ERROR, xml_gallery_LoadFailed);
                //
                bottom24.gallery.content_mc.addEventListener(MouseEvent.ROLL_OVER, startScroll);
                bottom24.gallery.content_mc.addEventListener(MouseEvent.ROLL_OUT, stopScroll); //
    
    // xmlComplete function
            function xml_gallery_Complete(e:Event):void 
            {
                
            xml_gallery = XML(e.target.data); // 
                xml_gallery_List = xml_gallery.item;  // <item> in gallery.xml
                total = xml_gallery_List.length();
                spaceR = xml_gallery.attribute("space"); // specified in gallery.xml file as is : <gallery space="119" speed="0.2">
                speedX = xml_gallery.attribute("speed");
                //
                init_gallery();
    
            }//;
    
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
            function xml_gallery_LoadFailed(e:IOErrorEvent):void {
                trace("Load Failed: " + e);
            }
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
            function init_gallery()  // 
            {
                
                //bottom.gallery.content_mc.itemHolder_mc.
                
                _mc = new item(); //
                _mc.alpha = 0;
                //_mc.imgMask_mc.scaleY = 0;  // condition pour apparition des timbres ds la gallery - OLD
                _mc.imgMask_mc.alpha = 0; // condition pour apparition des timbres ds la gallery - NEW
                _mc.x = i_g * spaceR;
                
                _mc.btn.id = i_g; 
                _mc.btn.mouseChildren = false;
                 
                bottom24.gallery.content_mc.itemHolder_mc.addChild(_mc);
                //
                Tweener.addTween(_mc, {alpha:1, time:0.8, transition:"easeOutExpo"});
                //
    
                //
                _mc.online_mc.alpha = 0; //invisible sans roll over
    
                //
                
                if (xml_gallery_List[i_g].url != "")
                {
                    _mc.btn.buttonMode = true;
                    _mc.online_mc.visible = true;
                    //
                    btn_Gallery_Ready = true;
                    //
                }
                else 
                {
                    _mc.btn.buttonMode = false;
                    _mc.online_mc.visible = false;
                    //
                    btn_Gallery_Ready = false;
                    //
                }
                //
               
                //
                
                //
            var imgRequest:URLRequest = new URLRequest (xml_gallery_List[i_g].image); //
             img_gallery_Loader = new Loader(); // var imgLoader:Loader;
                img_gallery_Loader.load(imgRequest); //
                //
                img_gallery_Loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imgLoading);
                img_gallery_Loader.contentLoaderInfo.addEventListener(Event.COMPLETE, img_gallery_Complete);
                //
                i_g++;
        
            }
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
            function imgLoading(event:ProgressEvent):void // tiny preloader in bottom thumbs pics
            {
    
        _mc.preloader_mc.width = Math.round(img_gallery_Loader.contentLoaderInfo.bytesLoaded / img_gallery_Loader.contentLoaderInfo.bytesTotal * 100);
            }
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    
            function img_gallery_Complete(event:Event):void
            {
                _mc.imgHolder_mc.addChild(img_gallery_Loader);
                
                Tweener.addTween(_mc.imgHolder_mc, {_saturation:0.9, time:0.6});// desaturate scrolling thumbs
                //_mc.imgHolder_mc.alpha = 0.5; // test
                
                // apparition des timbres ds la gallery, ici fade in : - NEW
                Tweener.addTween(_mc.imgMask_mc, {"alpha":1, delay:i_g / 20, time:0.4, transition:"easeOutExpo"});// test
                // apparition des timbres ds la gallery, ici image apparait de haut en bas : - OLD
                //Tweener.addTween(_mc.imgMask_mc, {"scaleY":1, delay:i_g / 10, time:1, transition:"easeOutExpo"});
                
                // la ligne de preloader qui diminue vers la gauche :
                Tweener.addTween(_mc.preloader_mc, {"scaleX":0, delay:0, time:1, transition:"easeOutExpo"});
                
                //
                _mc.btn.addEventListener(MouseEvent.ROLL_OVER, onMouseOver);
                _mc.btn.addEventListener(MouseEvent.ROLL_OUT, onMouseOut);
                _mc.btn.addEventListener(MouseEvent.CLICK, onMouseClick);
                //
                
                if (i_g < total)
                {
                    init_gallery();
                }
               //
            }
    


    Thank you

    If you try to remove all the children from bottom24.gallery.content_mc.itemHolder_mc, you can use:

    {while (bottom24. (Gallery.content_mc.itemHolder_mc.numChildren>0)}

    bottom24. Gallery.content_mc.itemHolder_mc.removeChildAt (0);

    }

  • How to modify a statement "select into" how to use a cursor

    The following code fails with an exception too many lines. How can I modify statement Select Into the procedure to use a cursor?
    CREATE OR REPLACE PROCEDURE Track_Asset(
       business_date IN NUMBER DEFAULT NULL,
       missing_table_name  OUT VARCHAR2) 
    IS
       ln_business_date NUMBER;
        incorrectdateformat EXCEPTION;
    BEGIN
       IF business_date < 0 
       THEN
          RAISE incorrectdateformat;
       ELSE
          DECLARE
            ln_business_date NUMBER;
          BEGIN
             SELECT MAX(business_date) 
             INTO ln_business_date
             FROM sproof ;
          EXCEPTION
            WHEN NO_DATA_FOUND THEN
             dbms_output.put_line('NO MATCH FOUND'); 
            WHEN OTHERS THEN
            dbms_output.put_line('ORACLE ERROR :' || SQLERRM);        
          END;
          
          DECLARE
            missedfeedfnd EXCEPTION;
          BEGIN
             SELECT 'Missing Value : ' || table_name 
             INTO missing_table_name 
             FROM ( 
                SELECT UPPER(table_name) table_name 
                FROM filespec
                WHERE data_table_name IN ('TABLE1','TABLE2','TABLE3') 
                MINUS ( 
                SELECT DISTINCT UPPER(first_table_name) 
                FROM dpca
                WHERE business_date = ln_business_date 
                AND first_table_name IN ('TABLE1','TABLE2','TABLE3') 
                GROUP BY UPPER(first_table_name) UNION 
                SELECT UPPER(first_table_name) 
                FROM dpca
                WHERE business_dt_num = TO_NUMBER( SUBSTR('201111', 1, 6) || '01' )
                AND first_table_name = 'TABLE4' 
                GROUP BY UPPER(first_table_name) ));
                
                IF missing_table_name  IS NOT NULL THEN
                   dbms_output.put_line('Missing Value : '|| missing_table_name);
                   RAISE missedfeedfnd;
                ELSE
                  NULL;
                END IF;
          EXCEPTION
             WHEN TOO_MANY_ROWS THEN
       DBMS_OUTPUT.PUT_LINE (' SELECT INTO statement retrieved multiple rows');
              WHEN missedfeedfnd THEN 
              raise_application_error ( - 20003, 'Missed Feed');
          END;
        END IF;
          EXCEPTION
       WHEN incorrectdatevalue 
       THEN
          raise_application_error ( - 20001, 'Incorrect/Bad Date Entered');
    END;

    OK, try this - OUT param will be filled with the table names comma-separated list:

    PROCEDURE Track_Asset(
       business_date IN NUMBER DEFAULT NULL,
       missing_table_name  OUT VARCHAR2)
    ...
    ...
    
    cursor c_table_names is
    select datatablename
    from   ( select upper(datatablename) datatablename
             from   filespec
             where  data_table_name in ('TABLE1','TABLE2','TABLE3'                                 )
            MINUS
            ( select upper(first_table_name)
              from   dpca
              where  business_dt_num = [-- this date is retrieved by getting the MAX(business_date) from sproof table]
                     and fus_data_table_name in ('TABLE1','TABLE2','TABLE3'
                                                )
              group  by
                     upper(first_table_name)
             UNION
              select upper(first_table_name)
              from   dpca
              where  business_dt_num = to_number( substr('201111',1,6) || '01' )
                     and first_table_name = 'TABLE4'
              group  by
                     upper(first_table_name)
            ));
    
    ...
    ...
    begin
       ...
       for rec in c_table_names
       loop
           missing_table_name  := missing_table_name  || rec.datatablename ||',';
       end loop;
       missing_table_name  := rtim(missing_table_name , ',');
    ...
    ...
    end ;
    

    HTH

    Published by: user130038 on December 28, 2011 08:46

  • Impossible to insert xml data into the table

    HII All,
    I'm unable to parse the following xml file and insert them into the table.


    Version of DB
    ======
    SQL> SELECT *
      2  FROM V$VERSION;
    
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    My DB Table
    Create table rgh_xml_storage
    (
    user_id       varchar2(4000),
    to_type          varchar2(4000),
    mail_id          varchar2(4000),
    subject         varchar2(4000),
    sentDateTime    varchar2(4000)
    )
    Published by: RUSSO April 7, 2011 04:19

    Hello

    Please provide all pertinent details!

    Please correct my insert if statement it must be.

    You have a few bad XPath.
    Here's a way to unnest correctly repeated elements:

    SQL> select x1.user_id,
      2         x1.subject,
      3         x1.sentDateTime,
      4         x2.to_type,
      5         x2.mail_id
      6         --x1.messageBody
      7  from xmltable(
      8    '/emailMessage'
      9    passing xmltype(bfilename('TEST_DIR','email.xml'), nls_charset_id('CHAR_CS'))
     10    columns user_id      varchar2(4000)  path 'headerInformation/sender/user/@userID',
     11            subject      varchar2(4000)  path 'headerInformation/subject',
     12            sentDateTime varchar2(4000)  path 'headerInformation/sentDateTime',
     13            messageBody  clob            path 'messageBody',
     14            my_xml       xmltype         path 'headerInformation/recipients'
     15   ) x1,
     16   xmltable(
     17    '/recipients/recipient'
     18    passing x1.my_xml
     19    columns to_type      varchar2(4000)  path '@type',
     20            mail_id      varchar2(4000)  path 'user/@emailAddress'
     21   ) x2
     22  ;
    
    USER_ID              SUBJECT                                          SENTDATETIME                   TO_TYPE   MAIL_ID
    -------------------- ------------------------------------------------ ------------------------------ --------- ------------------------------------------
    RC58522              Re: CAA - Schlesinger ' Arnold   - LP01115771    Fri Oct 10 13:31:53 EDT 2010   to        [email protected]
    RC58522              Re: CAA - Schlesinger ' Arnold   - LP01115771    Fri Oct 10 13:31:53 EDT 2010   cc        [email protected]
    RC58522              Re: CAA - Schlesinger ' Arnold   - LP01115771    Fri Oct 10 13:31:53 EDT 2010   cc        [email protected]
    RC58522              Re: CAA - Schlesinger ' Arnold   - LP01115771    Fri Oct 10 13:31:53 EDT 2010   cc        [email protected]
    RC58522              Re: CAA - Schlesinger ' Arnold   - LP01115771    Fri Oct 10 13:31:53 EDT 2010   cc        [email protected]
    RC58522              Re: CAA - Schlesinger ' Arnold   - LP01115771    Fri Oct 10 13:31:53 EDT 2010   cc        [email protected]
    RC58522              Re: CAA - Schlesinger ' Arnold   - LP01115771    Fri Oct 10 13:31:53 EDT 2010   cc        [email protected]
    RC58522              Re: CAA - Schlesinger ' Arnold   - LP01115771    Fri Oct 10 13:31:53 EDT 2010   bcc       [email protected]
    RC58522              Re: CAA - Schlesinger ' Arnold   - LP01115771    Fri Oct 10 13:31:53 EDT 2010   bcc       [email protected]
    RC58522              Re: CAA - Schlesinger ' Arnold   - LP01115771    Fri Oct 10 13:31:53 EDT 2010   bcc       [email protected]
    RC58522              Re: CAA - Schlesinger ' Arnold   - LP01115771    Fri Oct 10 13:31:53 EDT 2010   bcc       [email protected]
    RC58522              Re: CAA - Schlesinger ' Arnold   - LP01115771    Fri Oct 10 13:31:53 EDT 2010   bcc       [email protected]
    RC58522              Re: CAA - Schlesinger ' Arnold   - LP01115771    Fri Oct 10 13:31:53 EDT 2010   bcc       [email protected]
    
    13 rows selected
     
    
  • Select / option with cfquery - how to pass the value selected in the downform field

    I have a form that has a drop-down list selection/basic option using a cfquery result.  I would use the value that the user selects to pre-fill an editable field "title" more far along on the form.  For example:

    < do action = "" index.cfm? fuseaction = sendEmail "method ="POST"name ="email_approval"enctype =" multipart/form-data">"
    < table width = '500' border = "1" cellspacing = "0" cellpadding = "2" align = "center" >
    < b >
    < td align = "left" > request ID: < table >
    < td align = "left" width = "100" > < b > < cfoutput > #RequestId # < / cfoutput > < / b > < table >
    < td align = "left" > Application: < table >
    < td align = "left" width = "400" > < b > < cfoutput > #this_request.app_abbrev # < / cfoutput > < / b > < table >
    < td align = "left" > WR / RD #: < table >
    < td align = "left" width = "400" > < b > < cfoutput > #this_request.request_number # < / cfoutput > < / b > < table >
    < /tr >
    < b >
    < td align = "left" > Email Type: < table >
    < td align = "left" colspan = "2" >
    < select name = "approval_type" size = "1" >
    < cfoutput query = "approval_types" >
    < option value = "" #approval_types.approval_descrip # "style =" do-size: 8pt "> #approval_types.approval_descrip # < / option >"
    < / cfoutput >
    < / select >
    < table >
    < td align = "left" > < table >
    < td align = "left" > Date: < table >
    < td align = "left" > < b > < cfoutput > #dateformat (Now (), ' MM/DD/YYYY') # < / cfoutput > < / b > < table >
    < /tr >

    < cfset subjectLine = "#RequestId #" & "" & "Request approval" and the "#approval_types.approval_descrip #" >
    < script type = "text/javascript" language = "JavaScript" >
    < cfoutput >
    var #toScript (subjectLine, "jsLine") #.
    < / cfoutput >
    < /script >

    < script type = "text/javascript" language = "JavaScript" >
    setValue() function
    {
    document.getElementById('subject').value = jsLine;
    }
    < /script >


    < b >
    < td align = "left" > subject: < table >
    < td align = "left" colspan = "5" >
    "< b > < input type ="Text"name ="topic"required ="Yes"size ="70"maxlength = onClick =" setValue () "70"; ' > < / b >
    < table >
    < /tr >
    .......

    When the user gets to the field for the object the onClick préremplira the field with the value combined with < cfset subjectLine = "#RequestId #" & "" & "#approval_types.approval_descrip #" & "Application for leave" >.  regardless of what is selected, it uses the first element in the query list because it is what is rendered when the form is loaded (who won).  I tell me that I need an onChange event of javascript for the select statement for the drop, but can not find a way to pass this variable javascript back to form CF.  Any ideas, or am I stuck?

    Thanks in advance for your ideas!

    Unless you use a more recent version of CF (I think 7 or 8-9), in which case if the form is a FORM, and then select is a CFSELECT, and the fields are CFINPUT, you can use BIND = "" in the CFINPUTs to detect the @change of the CFSELECT and fill accordingly. "

    ^_^

    PS: I love JavaScript, I'm a JScriptin' fool, sometimes... but if this can be managed by CF, why not?  (shrug)

  • Validate if something is selected in the command prompt

    Hello-

    How can I check if something is selected in the command prompt? In the report, I have to do < function1 > when there is only option selected in the prompt else < function2 >. I tried with variable presentation. So, my syntax in the column:

    -CASE when @{Var}['@']{'abc'} = 'abc', then 'Nothing is selected in the prompt' else 'this value in the prompt' end

    It works fine when only a single value is selected in the command prompt. When there are multiple values selected, it gives an error.

    Is there another trick to achieve this?

    Thank you!

    Instead of checking for is null or "variable presentation, it would be easy.

    just in case where to check it cool - bi.com you could get an idea of how validate the variable presentation.

    If brand aid

  • Developer SQL 3.2: Impossible to browse the java source into the base of

    Hello:

    I noticed a regression in SQL Developer 3.2 with respect to 3.1 (under windows).

    from SQL Developer 3.1.7.7.42 I was able to browse the java sources stored and compiled in the database.
    The 'Invisible', 'Source', 'Policies' tabs have been correctly filled. If I had to complain about something, the names of the classes were 'shortened' while I saw "c932e55e_PrintDebug" instead of "my/company/application/package/PrintDebug".

    I tested version 3.2.
    Now, the names of classes are complete, but the tabs are empty. I am also unable to recover the source of a class (as was in 3.1)

    This happens to other people?

    Thank you
    Andrea

    Hello Andrea,

    Thanks for reporting this. Looks like you will have to keep available alongside 3.2 3.1 for now. I logged a bug:

    Bug 14535076 - FORUM - REGRESSION - IMPOSSIBLE to BROWSE the JAVA SOURCE INTO THE base of

    Kind regards
    Gary
    SQL development team

  • iMac is slow and I would like to improve his speed/performance.  Ran ETREcheck - here are the results:

    EtreCheck version: 2.9.12 (265)

    Report generated 2016-05-01 17:52:49

    Download EtreCheck from https://etrecheck.com

    Time 08:31

    Performance: Below average

    Click the [Support] links to help with non-Apple products.

    Click [details] for more information on this line.

    Problem: Computer is too slow

    Hardware Information:

    iMac (21.5 inch, mid 2011)

    [Data sheet] - [User Guide] - [warranty & Service]

    iMac - model: iMac12, 1

    1 2.5 GHz Intel Core i5 CPU: 4 strands

    12 GB of RAM expandable - [Instructions]

    BANK 0/DIMM0

    OK 2 GB DDR3 1333 MHz

    BANK 1/DIMM0

    OK 2 GB DDR3 1333 MHz

    0/DIMM1 BANK

    OK 4 GB DDR3 1333 MHz

    BANK 1/DIMM1

    OK 4 GB DDR3 1333 MHz

    Bluetooth: Old - transfer/Airdrop2 not supported

    Wireless: en1: 802.11 a/b/g/n

    Video information:

    AMD Radeon HD 6750M - VRAM: 512 MB

    iMac, 1920 x 1080

    Software:

    OS X El Capitan 10.11.4 (15E65) - since the start time: about 6 days

    Disc information:

    WDC WD5000AAKS-402AA0 disk0: (500,11 GB) (rotation)

    EFI (disk0s1) < not mounted >: 210 MB

    Recovery HD (disk0s3) < not mounted > [recovery]: 650 MB

    Macintosh HD (disk 1) /: 498,91 go-go (375,32 free)

    Encrypted AES - XTS unlocked

    Storage of carrots: disk0s2 499.25 GB Online

    OPTIARC DVD RW AD - 5690H)

    USB information:

    AudioEngine Audioengine D1

    Computer, Inc. Apple IR receiver.

    Card reader Apple

    Apple Inc. FaceTime HD camera (built-in)

    Apple Inc. BRCM2046 hub.

    Apple Inc. Bluetooth USB host controller.

    Lightning information:

    Apple Inc. Thunderbolt_bus.

    Guardian:

    Mac App Store and identified developers

    Kernel extensions:

    / Library/Application Support/LogMeIn/drivers

    com.logmein.driver.LogMeInSoundDriver [no charge] (1.0.0 - 2012-07-19) [Support]

    / Library/Extensions

    [loading] com.sophos.kext.sav (9.4.52 - SDK 10.9 - 2016-04-05) [Support]

    [no charge] com.sophos.nke.swi (9.4.52 - SDK 10.9 - 2016-04-05) [Support]

    / System/Library/Extensions

    [loading] com.rim.driver.BlackBerryUSBDriverInt (0.0.74 - 2016-04-05) [Support]

    [no charge] com.rim.driver.BlackBerryUSBDriverVSP (0.0.74 - 2016-04-05) [Support]

    Launch system officers:

    [loaded] 8 tasks Apple

    [loading] 153 tasks Apple

    [operation] 73 tasks Apple

    [killed] 4 tasks Apple

    4 processes killed due to lack of RAM

    Launch system demons:

    [loaded] 43 tasks Apple

    [loading] 143 tasks Apple

    [operation] 93 tasks Apple

    [killed] 10 tasks Apple

    10 killed process lack of RAM

    Launch officers:

    [failure] com.adobe.ARMDCHelper.cc24aef4a1b90ed56a... plist (2015-11-07) [Support]

    [operation] com.logmein.logmeingui.plist (02 / 02/2013) [Support]

    com.LogMeIn.logmeinguiagent.plist [no charge] (2013-04-08) [Support]

    com.LogMeIn.logmeinguiagentatlogin.plist [no charge] (2013-04-08) [Support]

    [operation] com.rim.BBAlbumArtCacher.plist (2012-04-19) [Support]

    [operation] com.rim.BBLaunchAgent.plist (2012-04-19) [Support]

    [operation] com.sophos.uiserver.plist (2015-09-26) [Support]

    [operation] net.culater.SIMBL.Agent.plist (2013-04-03) [Support]

    Launch demons:

    [loading] com.adobe.ARMDC.Communicator.plist (2015-11-07) [Support]

    [loading] com.adobe.ARMDC.SMJobBlessHelper.plist (2015-11-07) [Support]

    [loading] com.adobe.fpsaud.plist (2016-04-15) [Support]

    com.LogMeIn.logmeinserver.plist [no charge] (2012-07-19) [Support]

    [operation] com.memeo.Memeod.plist (2009-09-30) [Support]

    [operation] com.rim.BBDaemon.plist (2012-04-19) [Support]

    [operation] com.sophos.common.servicemanager.plist (2016-02-11) [Support]

    User launch officers:

    [failure] com.adobe.ARM. [...]. plist (2013-02-18) [Support]

    [market] com.akamai.single - user - client.plist (2015-09-23) [Support]

    [operation] com.amazon.music.plist (2015-03-07) [Support]

    com.apple.AddressBook.ScheduledSync.PHXC... plist [loading]

    [operation] ws.agile.1PasswordAgent.plist (2014-09-18) [Support]

    Items in user login:

    Hidden OpenDNS Updater Application (/ Applications/OpenDNS Updater.app)

    Nikon Message Center 2 launch application (/ Applications/Nikon/Nikon Message Center 2 software / Nikon Message Center 2.app/Contents/SharedSupport/Launch Nikon Message Center 2.app)

    Eye - Fi Helper Application (/ Applications/Eye-Fi/Eye-Fi Helper.app)

    MemeoAgent Application (/ Library/Application Support/Memeo/Memeo Backup/Agents/MemeoAgent.app)

    Other applications:

    [ongoing] 2BUA8C4S2C.com.agilebits.onepassword4 - helper

    [performance]    P72E3GC48.com.Dashlane.DashlaneAgent

    com [running]. Growl.GrowlHelperApp.96032

    com [running]. Memeo.MemeoAgent.92832

    [ongoing] com.opendns.OpenDNS_Updater.72352

    [ongoing] com.Sophos.AutoUpdate

    [ongoing] com.Sophos.Configuration

    [ongoing] com.Sophos.InterCheck

    [ongoing] com.Sophos.notification

    [ongoing] com.Sophos.scan

    [ongoing] com.Sophos.sxld

    [ongoing] fi.eye.helper.98912

    [loading] 383 tasks Apple

    [operation] 223 tasks Apple

    [killed] 11 tasks Apple

    Plug-ins Internet:

    JavaAppletPlugin: 15.0.1 - 10.11 (2012-08-14) check the version of the SDK

    FlashPlayer - 10.6: 21.0.0.226 - SDK 10.6 (2016-04-25) [Support]

    QuickTime Plugin: 7.7.3 (2016-03-25)

    AdobePDFViewerNPAPI: 15.009.20069 - SDK 10.8 (2015-09-30) [Support]

    Flash Player: 21.0.0.226 - SDK 10.6 (2016-04-25) [Support]

    AdobePDFViewer: 15.009.20069 - SDK 10.8 (2015-09-30) [Support]

    CANONiMAGEGATEWAYDL: 3.1.0.2 (2009-09-08) [Support]

    EPPEX plugin: 3.0.5.0 (2009-07-29) [Support]

    Default browser: 601 - SDK 10.11 (2016-03-25)

    GarminGpsControl: 4.0.2.6 Beta - SDK 10.6 (2012-11-16) [Support]

    iPhotoPhotocast: 7.0 - 10.8 SDK (2013-04-19)

    User Plug-ins internet:

    CitrixOnlineWebDeploymentPlugin: 1.0.104 (2013-04-11) [Support]

    Dashlane: Dashlane 1.0.0 - SDK 10.7 (2014-04-11) [Support]

    Safari extensions:

    Ka-block! -David Graham & Josh Peek - http://kablock.com (2016-04-22)

    AdBlock Ultimate - Secure Download - https://adblockultimate.net/ (2016-02-07)

    Ghostery - GHOSTERY, Inc. - https://www.ghostery.com/ (2016-03-11)

    EverNote Web Clipper - Evernote Corp. - http://evernote.com (2016-02-07)

    Keeper® Password Manager & Digital Vault - Keeper Security, Inc. - https://keepersecurity.com (2016-03-11)

    DuckDuckGo - DuckDuckGo - http://duckduckgo.com (2015-07-13)

    1Password - AgileBits - https://agilebits.com/onepassword (2016-03-29)

    AdBlock - BetaFish, Inc. - https://getadblock.com (2016-04-29)

    Adblock more - Eyeo GmbH - https://adblockplus.org/ (2016-03-26)

    WOT - WOT Services Ltd. - http://www.mywot.com/ (2016-04-22)

    YoutubeWide - Pedrocc - http://www.pedrocc.com/safari (2014-10-22)

    Dashlane - Dashlane Inc. - http://www.dashlane.com (2016-02-07)

    Save on Pocket - Read It Later, Inc. - http://getpocket.com/ (2015-11-07)

    Blur - Abine, the society for the protection of personal information online. - https://www.abine.com (2016-05-01)

    TrafficLight - Bitdefender SRL - http://trafficlight.bitdefender.com/ (2016-02-07)

    3rd party preference panes:

    Akamai NetSession preferences (2015-09-23) [Support]

    Flash Player (2016-04-15) [Support]

    Growl (2006-12-30) [Support]

    Time Machine:

    Time Machine not configured!

    Top of page process CPU:

    13% WindowServer

    Dock of 10%

    7% launchd

    6% kernel_task

    1% Memeod

    Top of page process of memory:

    2.83 GB com.apple.WebKit.WebContent (8)

    2.08 GB Safari

    917 MB kernel_task

    467 MB softwareupdated

    406 MB iTunes

    Virtual memory information:

    310 MB free RAM

    12,00 GB used RAM (2.47 GB being cached)

    134 MB used Swap

    When you see a beachball cursor or the slowness is particularly bad, note the exact time: hour, minute, second.

    These must be run as administrator. If you have only one user account, you are the administrator.

    Run the Console application in one of the following ways:

    ☞ Enter the first letters of his name in a Spotlight search. Select from the results (it should be at the top).

    ☞ In the Finder, select go utilities ▹ of menu bar or press the combination of keys shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad and start typing the name.

    The title of the Console window should be all Messages. If it isn't, select

    SYSTEM LOG QUERIES ▹ all Messages

    in the list of logs on the left. If you don't see this list, select

    List of newspapers seen ▹ display

    in the menu at the top of the screen bar.

    Each message in the journal begins with the date and time when it was entered. Highlight date back to the time you noted above.

    Select the messages entered since then until the end of the episode, or until they begin to repeat, whichever comes first.

    Copy messages to the Clipboard by pressing Control-C key combination. Paste into a reply to this message by pressing command + V.

    The journal contains a large amount of information, almost all this is useless to solve any particular problem. When you post a journal excerpt, be selective. A few dozen lines are almost always more than enough.

    Please don't dump blindly thousands of lines in the journal in this discussion.

    Please do not post screenshots of log messages - text poster.

    Some private information, such as your name, may appear in the log. Anonymize before posting.

    When you post the journal excerpt, an error message may appear on the web page: "you include content in your post that is not allowed", or "the message contains invalid characters." It's a bug in the forum software. Thanks for posting the text on Pastebin, then post here a link to the page you created.

    If you have an account on Pastebin, please do not select private in exposure menu to paste on the page, because no one else that you will be able to see it.

  • Working with the results of the Action generated Poweshell

    Hello

    I have an action from orchestrator of a powershell script/function that I use regularly. The function is supposed to return a System.Object with email content (n, fromAdd, body, etc) that I would use in a script task.

    The problem I'm having is that I can't access these results in my work of scriptable. I know that the performance of the action a PowerShellRemotePSObject (and I have reviewed the literature on 'Working with PowerShell results'), but none of my attempts to explore the values give the results, I'm looking for. I'd appreciate any help to know what I'm missing.

    Thank you

    Thank you once again Ivo. Sorry for the delayed reactions. I took a peek at the solution you provided but had a few mistakes - there was no GetFilter() function defined for the call to psObject.getRootObject () .getProperty ('from'). After fiddling around with the results, I found my solution.

    I basically closed the rootobject of the return value of invocation of script that turns out to be a collection data structure (last result in the enumeration in italics/bold).

    .....

    rootObject var = psObject.getRootObject

    (rootObject element)

    {

    System.log (rootObject [index])

    }

    [10:43:33.159 2013-12-10] [I] DynamicWrapper (Instance): [PowerShellPSObject]-[class com.vmware.o11n.plugin.powershell.model.result.PSObject] - VALUE: com.vmware.o11n.plugin.powershell.model.result.PSObject@e9e592

    ....

    It turns out that the value of back in my Powershell script is the last element in the collection. from there, I could get my values:

    System.log (rootObj [rootObj.length - 1] .getProperty ("to"));

    System.log (rootObj [rootObj.length - 1] .getProperty ("from"));

    System.log (rootObj [rootObj.length - 1] .getProperty ("Subject"));

    System.log (rootObj [rootObj.length - 1] .getProperty ("body"));

    System.log (rootObj [rootObj.length - 1] .getProperty ("logFile"));

    I don't know if this will always be the case with psObject return values of Powershell called scripts, but several tests will help.

    Thanks for your time.

  • How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    I have only:
    D: / images (where are necessary + not need files)
    -a list with only the necessary files
    -a list with new names for the files needed
    Thank you.

    Hi Pustiu,

    Thanks for posting in the Microsoft Community.

    You want to know how to select the files in a folder using a list with the files you want and after that rename only the files using another list with desired new names.

    I would have you post your query in the TechNet forums because it caters to an audience of it professionals.

    Your query will be better addressed there.

    Check out the link-

    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/threads

    We know if you need help. We will be happy to help you. We, at tender Microsoft to excellence.

    Thank you.

Maybe you are looking for