Preservation of variable and drawing on the results of several triggers.

I work on an EEM applet (but may migrate to a TCL script if it becomes necessary) to capture a combination of events.

event manager environment _port1 42195
event manager environment _port2 53429
event manager environment _port3 53429
!
event manager applet EEM_Ports
 event tag Tag_E1 syslog pattern ".*%CP-.-UDP.*$_port1.\$"
 event tag Tag_E2 syslog pattern ".*%CP-.-UDP.*$_port2.\$"
 event tag Tag_E3 syslog pattern ".*%CP-.-UDP.*$_port3.\$"
 trigger occurs 1 period 15
  correlate event Tag_E1 and event Tag_E2 and event Tag_E3
 action 1.0 puts "$_syslog_msg"
I'm running out of two problems with this. First, the script works, but the variables are not retained in case tags. They are treated when the applet is configured, but the running configuration displays the absolute values and changes to environment variables event handler does not get reflected in the applet. It may be a design limitation and I can live with that, if that's the case, but it would be good to know. Secondly, once the applet is triggered, I need to check the results of each event to ensure that they were triggered by the same source. Unfortunately, the _syslog_msg variable $ will only the latest model. Is it possible to get the _syslog_msg $ of all three? Contribution is appreciated.

# 1, you can use Tcl to preserve the variability.

# 2, use load 'action X info type event reqinfo tag TAG' for variables with the specified tag.

Tags: Cisco Network

Similar Questions

  • just upgraded to ch 2014, when using contact sheets and by adjusting the results of font sizes in the spacing between the images bigger and bigger while the size of police remains the same. See you soon,.

    upgrade to ch 2014, when using contact sheets and by adjusting the results of FontSize to spacing between the images grows while the font remains the same size.

    Someone at - it ideas on why this is happening.

    See you soon,.

    PAul

    Hi Paul,.

    There is a bug in the script that affects text attributes. We are now studying.

    In the meantime, xbytor updated the plug contact to work around the problem. You can find it here: ContactSheetX 2.1 released

    Kind regards

    Steve

  • Can I fade in and out on the same track several times in After Effects?

    Hi all

    I was wondering if it is possible to fade in and out, on the same track, several times. Like, I have this audio I want to fade at the beginning-48db to + 0 dB, and at the end of the song I want it to go from + 0 dB to-48db. I don't know if it's possible, but I can't get it to work. Can I get more than two keyframes for the same way?

    Thank you for taking the time to read my question.

    Marco van Lindt

    I do not recommend the use of AE to do any sort of audio work, but yes. You can have hundreds of keyframes by track. If you set the value, we must add another keyframe. There is no that?

  • Executing a system command and to display the results in the material master

    I need to change and existing TestStand application. I need the string that is returned when you type 'set computername' from a cmd prompt and show the result above all test reports. Would it be a step type call executable? And how I would get it in StationGlobal.computerName? Finally, how can I make it appear at the top of the test report?

    Sorry to ask so many questions from beginner but it was the trial during the test.

    Thank you

    Amherst

    If you have LabVIEW, you can call the following (VI attached), to get the computer name.  It uses the Exec System to access the CMD prompt.

    Take a look at the VI and see if you can use it for any other command 'Set', that you may need.

    Thank you

    PH

  • The Variable value based on the results of SQL query

    With the help of OBIEE 11.1

    Is it possible to set the value of a variable presentation of the results of a SQL statement?

    Scenario:

    I have 2 topics.

    SubjectArea1

    Text1

    Date1

    SubjectArea2

    Field1

    Field2

    UpdateDate

    I have an analysis that uses only the SubjectArea2.

    Using a dashboard quickly, the user must be able to select Text1 in the other topic area (SubjectArea1).

    Assuming that selection will be stored in a variable of presentation (SelectedText),

    The filter in the analysis should be something like

    Upper UpdateDate to @{SelectedDate}

    How can I set a variable (SelectedDate) using a SQL statement?

    Something like this:

    SELECT "Date1" TO "SubjectArea1" WHERE "Text1" = @{SelectedText}

    So the command prompt text selection should give a date that is used to filter the second review?

    If so:

    The prompt on SA1.textCol

    hidden analysis who is invited on SA1.texCol has SA1.dateCol in the criteria

    Analysis SA2.dateCol is filetered on basis of the results of another analysis (any value analysis hidden SA1.dateCol)

  • Need help with the analytical function select maximum and minimum of the results of the column

    Hey there OTN.

    I have an interesting application that I was hoping you would be able to help me with. I have a requirement to conditionally select the max and min of a column in bi-editor and since my editor works from an OBIEE analysis, I need store MAX and MIN of the column values in separate columns to match with. See the example below. You will notice that there are 4 stores including today's sales. I must have OBIEE through all the results of the column for sales, then choose the max of the dataset object. I can't use MAX here because he will choose the MAX of the line which will return only sales of this line. Instead, one must analyze all sales results and choose the appropriate column. Any idea on how to do this in OBIEE/publisher? Or is this not possible.

    Day Store Sales Sales of MAX Sales MIN
    05/11/15Store 1500080001000
    05/11/15Store 2750080001000
    05/11/15Store 3100080001000
    05/11/15Store 4800080001000

    I'm waiting for your answers. Thanks in advance!

    PS: I will always mark messages that are useful and eventually mark it as correct answer if we come to a resolution!

    See you soon.

    You can't do the same thing with RANK ("dirty")?

    Rank ("dirty") = 1: the max value in the result of sales

    RANK (-1 * "Sales") = 1: the min in the result of sales value

    I guess you can and then format the cells based on these values, where a value of 1 is the max or min according to the RANKING formula you used...

  • Count (*) that is a conditional statement and then if the result

    HI: This is table_1:
    with Table_1
    as
    (
          select to_date('01-JUL-2009 20:10','DD-MON-YYYY HH24:MI') incident_date, 2005 Policy_no  from dual
          union all
          select to_date('04-MAR-2009 12:12','DD-MON-YYYY HH24:MI') incident_date, 2009 Policy_no  from dual
          union all
          select to_date('25-JUL-2010 23:30','DD-MON-YYYY HH24:MI') incident_date, 2013 Policy_no  from dual
    )
    select * from Table_1
    with Table_2
    as
    (
          select to_date('01-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('04-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2005 Policy_no, 100 agr_line_no, 'BIKE' object  from dual
          union all
          select to_date('01-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('04-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2005 Policy_no, 200 agr_line_no, 'BUCKS'  from dual
          union all
          select to_date('01-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('04-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2005 Policy_no, 300 agr_line_no, 'CELL'  from dual
          union all
          select to_date('01-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('04-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2005 Policy_no, 400 agr_line_no, 'CAR'  from dual
          union all
          select to_date('01-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('04-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2005 Policy_no, 500 agr_line_no, 'HOUSE'  from dual
          union all
          select to_date('01-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('09-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2009 Policy_no, 100 agr_line_no, 'BIKE' object  from dual
          union all
          select to_date('01-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('09-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2009 Policy_no, 200 agr_line_no, 'BUCKS'  from dual
          union all
          select to_date('01-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('09-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2009 Policy_no, 300 agr_line_no, 'BEACH'  from dual
          union all
          select to_date('01-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('09-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2009 Policy_no, 400 agr_line_no, 'CAR'  from dual
          union all
          select to_date('01-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('09-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2009 Policy_no, 500 agr_line_no, 'HOUSE'  from dual
          union all
          select to_date('20-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('29-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2013 Policy_no, 676 agr_line_no, 'CAR'  from dual
    )
    select * from Table_2
    I need to perform a count (*) on agr_line_no on the condition that there is other other objects 'CAR' that is to say if forpolicy_no = 2005 the count should be 4.

    Be Table_1 to table_2 on Policy_no and all columns in table_1 must be selected as well as an additional column called Object_many.

    Object_many is based on the count (*) from table_2 it is if the number is > 1, 'Y' must be returned to another "n".

    Also, there must be a clause where clause that is to say when table_1.incident_date between .cover_start_date table_2 and table_2 .cover_end_date

    Final result should look like this
     with Table_1
    as
    (
          select to_date('01-JUL-2009 20:10','DD-MON-YYYY HH24:MI') incident_date, 2005 Policy_no, 'Y' Object_many from dual
          union all
          select to_date('04-MAR-2009 12:12','DD-MON-YYYY HH24:MI') incident_date, 2009 Policy_no, 'Y' Object_many from dual
          union all
          select to_date('25-JUL-2010 23:30','DD-MON-YYYY HH24:MI') incident_date, 2013 Policy_no, 'N' Object_many from dual
    )
    select * from Table_1
    Thanks in advance!

    Banner:
    Oracle Database 11 g Release 11.2.0.2.0 - 64 bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production."
    AMT for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    with Table_1
    as
    (
          select to_date('01-JUL-2009 20:10','DD-MON-YYYY HH24:MI') incident_date, 2005 Policy_no  from dual
          union all
          select to_date('04-MAR-2009 12:12','DD-MON-YYYY HH24:MI') incident_date, 2009 Policy_no  from dual
          union all
          select to_date('25-JUL-2010 23:30','DD-MON-YYYY HH24:MI') incident_date, 2013 Policy_no  from dual
    ), Table_2
    as
    (
          select to_date('01-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('04-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2005 Policy_no, 100 agr_line_no, 'BIKE' object  from dual
          union all
          select to_date('01-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('04-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2005 Policy_no, 200 agr_line_no, 'BUCKS'  from dual
          union all
          select to_date('01-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('04-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2005 Policy_no, 300 agr_line_no, 'CELL'  from dual
          union all
          select to_date('01-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('04-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2005 Policy_no, 400 agr_line_no, 'CAR'  from dual
          union all
          select to_date('01-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('04-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2005 Policy_no, 500 agr_line_no, 'HOUSE'  from dual
          union all
          select to_date('01-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('09-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2009 Policy_no, 100 agr_line_no, 'BIKE' object  from dual
          union all
          select to_date('01-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('09-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2009 Policy_no, 200 agr_line_no, 'BUCKS'  from dual
          union all
          select to_date('01-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('09-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2009 Policy_no, 300 agr_line_no, 'BEACH'  from dual
          union all
          select to_date('01-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('09-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2009 Policy_no, 400 agr_line_no, 'CAR'  from dual
          union all
          select to_date('01-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('09-MAR-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2009 Policy_no, 500 agr_line_no, 'HOUSE'  from dual
          union all
          select to_date('20-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_start_date, to_date('29-JUL-2009 20:10','DD-MON-YYYY HH24:MI') Cover_end_date, 2013 Policy_no, 676 agr_line_no, 'CAR'  from dual
    )
    --
    -- end-of-test-data
    --
    select
    table_1.policy_no,
    max(table_1.incident_date) incident_date,
    case when count(table_2.agr_line_no) > 1 then 'Y' else 'N' end object_many
    from table_1
    left outer join table_2
       on table_2.policy_no = table_1.policy_no
       and table_2.cover_start_date <= table_1.incident_date
       and table_2.cover_end_date >= table_1.incident_date
       and table_2.object != 'CAR'
    group by
    table_1.policy_no
    order by
    table_1.policy_no;
    

    I assumed policy_no either the primary key in Table_1 - so max (table_1.incident_date) will work.

    If you have an index on Table_2 on coverage dates, then the construction above could be better than one between. Otherwise between will be quite OK ;-)

  • Issue temporary Variables and columns of the Table

    Hello

    I have a table with two columns advanced region and add line features.

    First column is a messageChoice and the other column has two grains of messageLovInput. And according to the value of messageChoice that I have to make a fake messageLovInput.

    Now, I have attached SPEL with messageLovInput and attached to a partial action of fire with messageChoice.
    For what I create a PVO and added two variables in it.

    But now when I select any value of choice message its not showing regions lOV properly. It always shows lov single area only. No other one based on the value selected in the drop-down list.



    I hope I am clear.

    Satya

    Satya

    Rather than create a PVO I create transient attributes in the area of advanced table VO itself. So that you can get the reference to the line for each line.

    Thank you
    -Anil
    http://oracleanil.blogspot.com/

  • Find files and then PUT the results?

    Is it possible to perform a search and then PUT all the found files (download files from search results)?

    I around 255 files in my site updated occasionally to an asset from the library and I can't understand an easy way to download these files on the server without doing it manually on a basis of individual records.

    Any ideas?

    In the files window, click the icon in the upper right (the
    "Venetian blind" icon on a PC, in the header with the word "Files" bar)

    There, select Edit/SelectRecently modified

    --

    E. Michael Brandt

    www.divaHTML.com
    divaGPS | divaFAQ

    www.valleywebdesigns.com
    JustSo PictureWindow

    --

    HSMM_Imaging wrote:
    > Unfortunately, sync is to find about 2000 update files (which can or)
    > not be good to do... not sure because there are multiple users update files.
    (> primarily PDF - on the web server).
    >
    > I want to only download the files that have been disrupted by the library item.
    > 2000 vs 255 files are a big difference.
    >
    > I realize only if I synchronize files and support through the 2000 first
    > files, it can be easier as soon as I change the library item. The thing is, I
    > know 2000 files are not actually "obsolete." It is only through a server
    > local and the changes to the file management that makes things appearing all these files
    > need to sync.
    >
    > Of anyway, if I could download it all the files have only the library item in
    > them, it would make things MUCH easier. I was trying to achieve this by making a
    > the library item tag search query and then download all the results.
    >
    > Does not seem that is possible if... or is it?
    >

  • Divergence in the view 'real size' and PDF export the result

    I work with a document and leave me perplexed by the size when I export to PDF. When I export it and open it, the font size is considerably larger than those of my document in view "actual size." In addition, the page sizes are also larger, 60% larger.

    In addition, the size of the PDF file can vary on different computers?

    I am creating an ebook so I want to open a favorable for everyone, if possible size...

    You need guidelines?

    Take a look at this thread...

    http://forums.Adobe.com/message/3023679#3023679

  • Populate drop-down list with the results of several drop-down lists

    Hi, I am creating a form where the results of two drop-down lists then would fill another drop-down list. I'm not new to javascript, but I'm new to using it in Acrobat, so while I found some answers to this: Drop-down list fill in multiple fields of text. I don't know where to implement this, if it is still the right thing, I'm looking for pipes for

    Oh and I use Acrobat Pro DC. Any help would be much appreciated!

    OK, you can create a function at the level of the document that is called in the Validate event of each of the two first drop down menus, something like:

    Function in JavaScript to the document level

    function updateDropdown() {}

    Get references to the drop-down menus of entry

    var F1 = getField ("DropdownList1");

    var F2 = getField ("DropdownList2");

    Refer to the output drop-down list

    F3 var = getField ("DropdownList3");

    Get the values of input field, as strings

    var s1 = event.target = f1? Event.value: f1.valueAsString;

    var s2 = event.target = f2? Event.value: f2.valueAsString;

    Fill the drop-down list of output with the elements, or deselect it if either input dropdown is 'empty' (single topic area)

    If (s1 = "" |) s2 === " ") {

    F3.clearItems ();

    } else {}

    F3.setItems (["", s1, s2]);

    }

    }

    In the two first downs Validate event, call this function like this:

    updateDropdown();

    You can of course name the function you want. More information about the properties and the methods used in the code are available in the Acrobat JavaScript documentation.

  • Report - search and search in the result of the color.

    Hello

    I have a report (not an interactive report).
    On top, there is an element: P5_Category and a button to send.

    My Source of report is:

    Select * from DETAIL_TABLE where CATEGORY = *: P5_Cateogry *.

    Now, if users enter 'SYSTEM' in: P5_Category,.

    The report displays all items that contain 'SYSTEM' in the category.

    Now I want SYSTEM in red color, whenever it appears in the CATEGORY FIELD

    How to get there

    Shijesh,

    There is a feature that is standard for APEX for awhile, but it can be a little hard to find if you the is not used.

    NON-INTERACTIVE reports:
    If you look at the report attributes, then look under the column attributes of the item you are interested in having highlighted (with red text), you'll find a section called column formatting. According to this article, you will find a field called "Highlight words" this field to identify which text should be red. You can use a variable to determine what elements you want highlighted.

    So in your example, you find the details of the 'CATEGORY' in your report and the words option FIELD highlighted the value:

    * & P5_Category.*

    I hope this helps.

    -Tim St. Hilaire

    Published by: Hadi on August 24, 2008 14:36

  • Getting data from tables msql and e-mailing the result

    Here is some code that I'm eager to collect data from two tables msql and send by email to a user. (This is to remind the user of their user name and password in a weak security situation - that they have submitted their email address)

    I glued some elements of other pages together, hoping it will do what I want.

    At present, it fails with the message

    "You have an error in your SQL syntax. Check the manual for your version of the MySQL server for the right syntax to use near Test "in line 1", after posting $org as requested (as a test)

    I would be grateful if someone can debug this problem, or otherwise advise.

    <? php require_once('.. /.. / Connections/tormented3.php');? >
    <? PHP
    now, the recordset to email a link to the training
    $colname_rstSix = "1";
    If (isset($_GET['email'])) {}
    $colname_rstSix = (get_magic_quotes_gpc())? $_GET ['email']: addslashes($_GET['email']);
    }
    @mysql_select_db ($database_tormented3, $tormented3);
    $query_rstSix = sprintf ("SELECT ck_organisation FROM chk_sixmonth WHERE ck_email = ' %s", $colname_rstSix);
    $rstSix = mysql_query ($query_rstSix, $tormented3) or die (mysql_error ());
    $row_rstSix = mysql_fetch_assoc ($rstSix);
    $totalRows_rstSix = mysql_num_rows ($rstSix);
    Recordset to the end
    $org = $row_rstSix ["ck_organisation"];
    echo $org; temporary test. Yes, it sends a correct text to monitor

    now recordset to the Organization link to access details

    @mysql_select_db ($database_tormented3, $tormented3);
    $query_rstPword = sprintf ("SELECT username, passwords password organization FROM WHERE = ' %s", $org);
    $rstPword = mysql_query ($query_rstPword, $tormented3) or die (mysql_error ());
    $row_rstPword = mysql_fetch_assoc ($rstPword);
    $totalRows_rstPword = mysql_num_rows ($rstPword);

    Start with routine e-mail
    $start = "your information to update access the website of the mental health of Torbay.
    Your host username";// set up the e-mail header
    $username = $row_rstSix ["username"];
    $pword = $row_rstSix ["password"];
    $message. = '$start $username. Your password is $pword\n please update your entries. « ;
    If (mail ($email "Recall information Access",
    $message, "in: . ((" [email protected] \r\n")) { }
    header ('location:http://www.sample.org.uk "") ;// Redirect to the page if the email has been sent successfully
    "exit";
    } else {}
    $error == ' < style p = "color: red;" > an error has occurred, your email could not be sent. Please try again < /p > ';
    }

    ? >

    Thank you very much.

    I assumed that your first successful query because SELECT... ck_organisation your $org echo printed what you expected.

    Isn't the second query SELECT... Organization which is a failure? Have you tried the echo method or die in this query? Or is it the one that displays "the query is empty?

    Try changing the following code snippet and we'll see what happens. I've added a couple more conditions where you can send them to the form. I added also oblique (') around the domain names in the second query, just in case any of those are reserved words in MySQL (I don't get them, but they are available in the MySQL online documentation).

    mysql_select_db($database_tormented3, $tormented3);
    $query_rstSix = sprintf("SELECT ck_organisation FROM chk_sixmonth WHERE ck_email = '%s'", $colname_rstSix);
    $rstSix = mysql_query($query_rstSix, $tormented3) or die(mysql_error());
    $totalRows_rstSix = mysql_num_rows($rstSix);
    if (!$totalRows_rstSix) {
      // no record exists with email $colname_rstSix
      // Alert user and let them try again.
      exit;
    }
    $row_rstSix = mysql_fetch_assoc($rstSix);
    //end recordset
    $org = $row_rstSix['ck_organisation'];
    echo $org; //temporary test. Yes, it does send correct text to monitor
    
    //now recordset to link organisation to access details
    // mysql_select_db($database_tormented3, $tormented3); // not needed. Still selected from above
    $query_rstPword = sprintf("SELECT `organisation`, `username`, `password` FROM `passwords` WHERE `organisation` = '%s'", $org);
    echo "$query_rstPword
    "; $rstPword = mysql_query($query_rstPword, $tormented3) or die(mysql_error()); $totalRows_rstPword = mysql_num_rows($rstPword); if (!$totalRows_rstPword) { // no record in passwords with $org // Decide what you want to do in this situation. // exit; ??? } $row_rstPword = mysql_fetch_assoc($rstPword);

    --
    Mark A. Boyd
    Keep-on-Learnine :-)

  • How to store the results in several digital Test

    My VI returns two double individual (not in a table), output power and frequency

    I am configuring a multiple digital test in TestStand but struggling to store readings.

    Using the following, I get an error.

    Output power of VI: Step.Result.Measurement ["Measurement 0"]. Data

    VI output frequency: Step.Result.Measurement ["Measurement 1"]. Data

    Would appreciate some advice.

    Thank you

    Got, it works

    Results were to be stored in Step.NumericArray [0], Step.NumericArray [1] and not Step.Result.Measurement ["Measurement 0"] as I've had.

    Thank you

  • The results of several requests to write to files of a PACKAGE

    I am writing a PACKAGE to print 8 query results to separate files. Every file gets a static header and footer dynamic. Footer include rowcount and some totals. Queries are not dynamic SQL statements and take no parameters.

    Here's what I'm trying. In any case, I mean it's the best, that's just what I think.

    PACKAGE BODY

    CURSOR_1 IS...

    CURSOR_2 IS...

    CURSOR_3 IS...

    ...

    PROCEDURE Write(I_Cursor CURSOR) AS
    BEGIN

    I_CURSOR OPEN;
    Check-in I_CURSOR LOOP

    UTL_FILE. PUT_LINE
    END LOOP;
    CLOSE I_CURSOR;

    Writing of the END;

    Execution of the PROCEDURE

    AS

    BEGIN

    Write (Cursor1)

    Write (Cursor2)

    ...

    END

    Cursors cannot be passed, so Write() will not work. The answer that I've seen is to use a REF CURSOR, however, cannot open a REF CURSOR. Unless I'm misundertanding the subject.

    At the end of the day, what I really want to do, is use a table to contain the name of the CURSOR, if possible.

    Sliders DBMS_SQL. VARCHAR2_TABLE;

    Cursors (1): = "Cursor_1";

    Cursors (2): = "Cursor_2";

    FOR all other cases IN Cursors.FIRST... Cursors.LAST
    LOOP

    Write (Cursor_Name)
    END LOOP;

    (1) is this a good approach?

    (2) is there a way to move a CURSOR to a PROCEDURE and that the PROCEDURE open it?

    I could just repeat the code for each SLIDER. I was hoping to avoid duplication and to make it very simple and clear for anyone to comment on a specific to run for some reason request any.

    You can then use something like:

    PACKAGE BODY
    IS
    sys g_sql_list. OdciVarchar2List: = sys. () OdciVarchar2List
    "first select statement.
    "second select statement."
    "third select statement."
    ...
    );
    Write PROCEDURE)
    number of p_sql_id
    )
    IS
    v_cur sys_refcursor;
    BEGIN
    V_cur OPEN FOR g_sql_list (p_sql_id);
    LOOP
    EXIT WHEN v_cur % notfound;
    UTL_FILE. PUT_LINE
    END LOOP;
    CLOSE V_cur;
    Writing of the END;
    Execution of the PROCEDURE
    IS
    BEGIN
    FOR v_i IN 1.g_sql_list.count LOOP
    Write (v_i);
    END LOOP;
    END;
    END;

    SY.

Maybe you are looking for

  • HP ENVY laptop - 17-n065na: envy 17 gray screen

    Hi all HEELLPP! Recently, one of my two HP Envy 17 laptops began to gray out on some Web sites that have fields to fill up on them.  Even connecting this forum is not allowed. The other is perfectly fine.  Someone at - he of heard about this problem

  • Canvio Basic HDD - light flashes then stops

    Hey all. A few weeks ago I bought a disc hard extern canvio basics, it worked like a charm.Since yesterday it does really more, the LED flashes once or twice, then stops, whereas when I touch the case, in my view, that the drive is running. However,

  • Note your comments - what's the problem?

    I tried to write a VI such that each time when you press the OK button, the digital display will increment one. But it does not work as expected. I use the method of feedback node. Help, please.

  • HP Envy 5530 - how to do a stand alone facility

    My elderly mother just bought a 5530 a special offer for QVC.  They did look like a wonderful thing, and said the printer can be set up by itself, without connecting to a computer and receive photos, etc. via internet.  My mother wants to receive pho

  • I can't record with sound recorder?

    I tried recording with tape recorder, but it says that I record with another application, but unfortunately I'm not recording with another application. Why is this happening? It's the same thing in camstudio. Please help me with this problem, I need