From a variable scenario

Hello gurus,


I have a table that contains the names of my scenario and the frequency of their spear.


Scenario_name | On a daily basis. Weekly | Monthly
Scen1 |    1    |     0      |    0
Scen2 |    1    |     0      |    0
Scen3 |    0    |     1      |    0


I have to make a package that will run every day and which is to be launched all the scenarios with 1 as the value for the daily column. In this example, Scen 1 and 2 Scen must be executed.
Same thing for the weekly and monthly frequency.


Do you know how I can achieve this? Is this possible in a package?


I tried to use a variable to ODI to set 'the scenario name' of my object of OdiStartScen, but it did not work. The name of the scenario: MyProject.MyVar



Thanks in advance for your help.



Concerning

You should be able to pass the name of the script as a parameter to the ODIStartScen tool. Try surrounding your variable between single quotes, e.g. ' #MyProject.MyVar '.

Tags: Business Intelligence

Similar Questions

  • From js Variable to CF

    I need to be able to pass a variable from javascript data to Cold Fusion. Is it possible to do? Something like the ToScript in Coldfusion that allows to transmit a CF variable to javascript.

    Or, is it possible to write data values to a database using javascript directly? I have a set of data, which is collected and transmitted via javascript. So, my thought is to move these data values in js to Coldfusion to rewrite them in the database. But I would like to know if there is a better way to do it.

    Thank you
    Ros

    Before CF8 you would be using CFAjax and AjaxCFC or roll your own.

    http://www.indiankey.com/cfAjax/

    http://www.robgonda.com/blog/projects/AjaxCFC/

    Your on your own to roll your own.

  • From Session variables

    OK quick question. To enable session variables you must first do the < application sessionmanagment = 'Yes '... Where is the appropriate place for them. For some reason any it won't let me not put inside the component itself. So should I put inside a method inside the component? If Yes, should it be a certain kind of like an onrequest method or something like that. And when I allow inside of the methods, the session starts only when some method with the application tag is called?


    allow them. For some reason, it wont let me being put inside the
    the component itself.

    ...

    You start them in the file of the application. Either CFAPPLICATION. Ft3/min or
    CFAPPLICATION. CFC Tho, I don't know why you could not start their
    elsewhere, it's the normal way.

    ...

    You can place the tag in any .cfm file that you like.
    Put in the application.cfm file is for the convienance having
    It automatically included every any cfm file in the same and the Sub -
    directories in the form of application.cfm files.

    But when you use the application.cfc file, this is handled a bit
    differently. Basically, the application.cfc IS the
    tag. To set things like sessionmanagement, use you this scope in
    the constructor of the application.cfc file.

    It is covered in the documentation of the application.cfc file.


    The following code example from the top of an Application.cfc defines the
    the application name and properties:








  • calling the function of query of VO from bnd variables as parameters

    Hi all

    I Package SQL pack1 with 2 functions (par1, par2) funct1 return funct2 (par1, par2) R2 return R1.

    I have VO, vo1 query

    Select pack1.funct1 (bind1, bind2) as attr1,

    (bind3, bind4) funct2 as attr2 value

    See criteria VC1, like af:query. application of vo1 results as table results

    When the search button is touched

    get the error

    java.sql.SQLException: parameter IN or OUT to missing index: 1.

    Is this way of the function call?

    Thank you

    -shiva

    This indicates that DB schema on which the application is connected at run time does not recognize the

    Pack1. "" funct2.

    To verify your actual DB plan (which application uses running - may differ from the design schema time!) to see if there is pack1.funct2

  • From 2 variables in servlet adf

    Hello

    I use jdeveloper 11.1.2.4.0

    If I go through a variable fine

    /DownloadFile? Ref_no = #{backingBeanScope.download_upload_bean.pdfUrl}

    but in passing two variables I get an error

    Internal server error 500

    /DownloadFile? Doc_type = #{backingBeanScope.download_upload_bean.my_doctype Ref_no = #{backingBeanScope.download_upload_bean.pdfUrl}}

    Kind regards

    Steve

    I wasn't looking for it, but what happens if you use the same construction as when using query parameters in a URL.

    In other words, use "&" to add additional parameters. In your case that add to the following

    /downloadfile?Ref_no=#{backingBeanScope.download_upload_bean.pdfUrl}&doc_type=#{backingBeanScope.download_upload_bean.my_doctype}
    

    Luke

  • Invoke VMScript and escape from the variables

    Hello, VMTN,.

    I have what is probably a simple question.  I have a set of functions that are passed to two variables; the name of a virtual computer and NIC to enable\disable in Windows in this VM.  The name of this NETWORK adapter has spaces, which is the Network Interface 4.  The service continues to set the command to inject as:

    $cmd = "game of the name of the interface c:\windows\system32\netsh.exe interface =""$NICtoEnable" "admin = ENABLED"

    It then calls the cmdlt invoke-vmscript as follows:

    ScriptType bat - invoke-VMScript - VM $VMName GuestCredential - $GuestCredential - $cmd ScriptText

    and it does not return the output, but I get "Invalid parameter" in return.  What that tells me, that is it runs netsh in the virtual machine, but on parameters is not set correctly.  I don't know that it is because I have not properly escaped the $NICtoEnable variable in $cmd of the GET passed to-ScriptText.  I also tried, instead of double quotes, using single quotes ('... ") does not.

    Any help would be greatly appreciated and thanks in advance.

    Best,

    @dboftlp

    Try your $cmd like this

    $cmd = "c:\windows\system32\netsh.exe interface set interface name=" + '"' + $NICtoEnable + '"' + " admin=enabled"
    

    The trick is to move the quotes around the name of the NIC, where single quotes around the double quotes.

  • Use of global variable from local variables for business rules

    Someone at - it guidelines on the use of overall compared to the local variables for the business rules? I really don't like the world no matter what, so if someone has a compelling reason to use overall.

    If I use a local variable in the world, is there a single character required for the local variable or no problem with the help of the same name local var in all of business rules.

    Thank you

    Hello

    I bet you have a background in programming. Don't let the 'global' nomenclature lure you into thinking that "bad design - not encapsulated, etc" with regard to business rules. According to John, this area, variable overall are a vehicle to reduce maintenance.

    For example if you have a variable in which all its used BR called CurrMonth and its always the current month, it create once, maintain his assignment in one place and use it anywhere. In this case 'global' is in fact less.

    Kind regards
    Robb Salzmann

  • reading data from a variable, separated by "|" and insert into the table

    Hi experts,

    I have a file on FTP and I read the file. Now what I have to do is to separate the data and insert them into a table. I have already created the table with the required fields.

    How can I get data from str?

    code below

    declare
    File1 UTL_FILE. TYPE_DE_FICHIER;
    VARCHAR2 (1000) filename: = "GTECHFILES";
    Long str;
    Start
    File1: = UTL_FILE. FOPEN (filename, 'agent_dump_csv.rep', 'r', 32767);
    loop
    UTL_FILE. GET_LINE (File1, str);
    -dbms_output.put_line (' value is :'|| to_char (STR));
    end loop;
    UTL_FILE. FCLOSE (file1);
    exception
    When no_data_found then
    dbms_output.put_line ("END OF FILE");
    UTL_FILE. FCLOSE (file1);
    while others then
    UTL_FILE. FCLOSE (file1);
    dbms_output.put_line (' ERROR: ' |) SQLCODE |': ' | SQLERRM);
    end;

    You must use ' \ [^ |] +' like regexp:

    SQL> create table mytab (a varchar2(20), b varchar2(20), c varchar2(20));
    
    Tabella creata.
    
    SQL> declare
      2  str varchar2(100):= 'qwureer|iftsdfsuif|123134';
      3  begin
      4    insert into mytab
      5      values (regexp_substr(str,'[^|]+',1,1),
      6              regexp_substr(str,'[^|]+',1,2),
      7              regexp_substr(str,'[^|]+',1,3));
      8  end;
      9  /
    
    Procedura PL/SQL completata correttamente.
    
    SQL> select * from mytab;
    
    A                    B                    C
    -------------------- -------------------- --------------------
    qwureer              iftsdfsuif           123134
    

    Max
    [My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/01/17/supporto-di-xml-schema-in-oracle-xmldb/]

  • Parsing XML from a Variable String

    I looked at the docs and spending the afternoon at the research on the web and can't understand this.  It's a question of combination SAX parser and java.io.  The SAX parser will be an InputStream or an InputSource, but I can't seem to find a way to transform a string containing the XML to one of them to move to the parser.  Someone knows how to do this?

    TIA,

    Allen

    Never mind!  I finally found it:

    String xml;
    ByteArrayInputStream ba= new ByteArrayInputStream(xml.getBytes());
    

    Thanks for watching!

    Allen

  • 1 block from Intailization to handle multiline Variables does

    Hello

    I have a senario where we must pass multiple values for the particular user. so I created the session variable and there I went from the Variable.
    for example user: ABC, unit: 1, 2, 3 access.

    where in the block of intailization I m using.
    Select 'Variable', unit
    table
    where user = 'ABC '.
    and here 'Variable' is defined as a variable.


    Now we want to improve the senario where we must pass several segments in the same way.
    for example user: ABC, unit: 1, 2 3, Fund: X, Y, Z access.
    so can I use same block of intailization,
    Select the unit, 'Variable_fund', 'Variable', funds
    table
    where user = 'ABC '.
    Here, 'Variable' seize unit and "Variable_Fund" will capture the values of funds.
    or do I have to create the new block of intailization for the new segment?

    Thanks in advance...

    are the Sun unit and darkens the funds raised by a single fact table?

    and on which table do you put below the conditon... or dim?

    Kernel ". Dim - g/l account "." Code for the unit"= VALUEOF (NQ_SESSION. ("' THE VARIABLE ') OR VALUEOF (NQ_SESSION. ("' The VARIABLE ') = 0 OR
    Kernel ". Dim - g/l account "." The Fund Code"= VALUEOF (NQ_SESSION. (' "VARIABLE_FUND") OR VALUEOF (NQ_SESSION. (' "VARIABLE_FUND") = 0

    Just try to put the above code in the filter business under the user/group permissions model and it should work...

    If it is then turned

    Kernel ". Dim - g/l account "." Code for the unit"= (VALUEOF (NQ_SESSION. ("' THE VARIABLE ') OR VALUEOF (NQ_SESSION. (("" The VARIABLE ') = 0) and
    (Kernel". Dim - g/l account "." The Fund Code"= VALUEOF (NQ_SESSION. (' "VARIABLE_FUND") OR VALUEOF (NQ_SESSION. (("" VARIABLE_FUND ") = 0)

    See if it helps...

    Also can you explain what groups are and what you want to implement security...

    Thank you
    Ashish

  • Using variables in a procedure

    Hello experts,

    I am new in odi, but did very well but I'm not reached to use variables ate a bunch of odi.
    Let me explain the problem:

    (1) I create three variables non-persistent to odi that retrieves the value of a sql statement select, like this, for example:

    Select '< % odiRef.getPrevStepLog ("SESSION_NO") = >' FROM DUAL; (Variable name-SESS_NO)
    Select '< % odiRef.getPOP ("POP_NAME") = >' FROM DUAL; (Variable name-INTER_NAME)
    Select '< % odiRef.getPrevStepLog ("STATUS") = >' FROM DUAL; (Variable name-FLAG_STA)
    ...

    (2) then I create an odi procedure that insert values into a table of newspaper: insert into < table_name > values ('#SESS_NO', 'INTER_NAME', '#FLAG_STA')

    (3) then I create a package that has the following:

    Interface (success)-> procedure (with the insert statement)

    The question is, where do I put the variables? Everywhere where I put them, the operator gives me an error message which, during the execution of the insert statement, indicate that the variable has no value. I'm trying to insert then before the intervention, (Interface (success)-> var1 (success)-> Var2 (success)-> Var3 (success)-> procedure (with the insert statement)), but they, of course, an error because the previous step of the var1 var2, where should be the interface.

    I'm trying to create a scenario (new package) with the variables and the main package becomes like this:

    (Interface (success)-> script (new package) (success)-> procedure (with the insert statement)

    But the error still occurs, and no value is assigned to the variables.

    Any help will be appreciated gratefully.

    Thanks in advance,

    Daniel huh

    Published by: user10470648 on November 10, 2008 04:11

    Hi Daniel,.

    Sorry for my delay to answer you...

    To solve the problems...

    (1) OK

    (2) you must repeat the "refresh state variable' running after each interface or the procedure. It is possible to paralallel the execution but it's a different architecture.

    (3) on the variables, simply drag and drop it to the package and leave it as declaring type. This wll allow you, after creating a scenario, use these variables as stamped.

    I'll send you an ODI paper on how to use it (in replay to the email you sent me)

    This help you?

    Published by: Cezar Santos on 11/12/2008 11:34

  • Number of the results in the report variable

    Hello everyone,

    I need help in TestStand reports. I use TestStand 2014 and 2014 of Labview, both 32 bits.

    The situation is like this: I am running a test with test steps 3. The first stage of the test is a step of "additional results" which records the device under test info (versions of the hardware software etc...). This information appear in the report and the result data in the database (table prop_result). The next 2 steps are the steps 'real' which measures something.

    In the report, there is a call from the variable "Number of results" (see the screen attached capture) and you see a '3 '. There are actually only 2 steps of 'real' test as I don't want to consider the first step of "additional results" as a test step. How can we affect the variable 'Number of results' so that it does not count this first step? I tried to use the properties-> Run Options-> record result of the for Option set to "Disable". It works and the number of results appeared as "2", but the device under test info do not appear in the report and not in the prop_result of the database table.

    In general, how can I get the number of results of account not a step, but continues to display the result in the database and report? Is there an API where I can access and modify its value (number of results value) such as: "Number of results" - 1?

    Hope someone can point me in the right direction. I have attached the release of the report, as well as the file in the sequence.

    Yours,

    chati

    I ment, you can change the XML seq.--> \Components\Models\TestStandModels\reportgen_xml.seq generator (Ref http://www.ni.com/white-paper/3977/en/).

    It's the AddReportHeader, you need to change. Or more specific step 9 (in teststand 2012) which is a statement-->

    Parameters.ReportHeader += "<" +="" fileglobals.reportelementname="" +="" "="" type='UUT' "="" +="" "="" title='" + ResStr("MODEL", "RPT_HEADER_TITLE") + "' "="" +="" "="" link='" + Locals.UUTItemNameForLink + "' "="" +="" "="" uutresult='" + Str(Locals.Status) + "' "="" +="" "="" stepcount='" + Str(Parameters.StepCount) + "' "="" +="" "="">\r\n".

    and then, you can modify the varabel StepCount using some filtering by using for example a subsequnce that counts only the type of measures that your customer wants to be counted.

    There might be ways esier there, but that's what I'd do.

  • CNV cannot find variable on network

    I start my exploration of the network (NVC) with examples of variables.  Excellent examples.

    Using the project of polling stations, I have the program running on a PC writer.  On another PC, I have the player running program.  I modified slightly so that the path of the network would be selectable by using the sample browser project.

    The drive cannot find the variable network writer.  The browser popup (where the player is running) is the PC that hosts the writer program.  So it's good, in the sense that it checks the two computers are on the same network and subnet.

    But in the browser, the tree is not all associated network variables.  This seems to be a simple problem, but I can't find.

    Also, if I run the application Reader on the same computer that hosts the application to the writer, this popup browser detects the attached network variable.  So, I know that on the same PC, writer and reader work.  Just not on my network (which is kinda the whole point!)

    Here you will find two documents that I have found useful when configuring the network variable scenario:

    Software configuration and firewalls hardware to support National Instruments products

    LabVIEW static Variables through Windows 7 firewall

  • Access can be set to a local variable

    Hello

    In a sequence, I want to access a local variable of the 'container' type, but the container element must be defined programmatically from another variable (an element in a table). Basically, it would look like this:

    For each Locals.TestList / / TestList is a table of 9 channels, current item is stored in Locals.CurrentTest.

    Locals.TempVariable = Locals.ResultList. / / Locals.ResultList is a container of

    End                                                                                                        // strings. Each string variable name is the same as the elements in TestList

    Is this possible?  What is the syntax for the "", so that TestStand include variable structure?

    Thank you

    Benoit

    Hello

    Locals.TempVariable = evaluate ("Locals.ResultList" + Locals.TestList [Locals.CurrentTest])

    Who could do if I understand your needs. The evaluation parameter must be a string, so if you pass the search string for your container, Evaluate will return the content of this place that is Locals.ResultList.

    Concerning

    Ray Farmer

  • Shared variables, analysis engine and multiple targets

    I'm looking for some general tips on my LabVIEW project structure.

    The project consists of a laptop with LabVIEW, a connected joystick and a CompactRIO connected via ethernet. I ran the cRIO mode Interface FPGA, but a change in some things causes the project to have be moved to scan mode.

    From now on, the code on the portable computer updates the shared variables on the cRIO and bed from the variables shared on the cRIO for surveillance. I want to shared variables on the cRIO because he will also need to work without the connected laptop. Before moving the cRIO for scan mode, I found that I had to first run the code of the laptop and then run the code cRIO, or shared variables would not release properly. Now that I spent to scan mode, I have to run the code cRIO first, and even then the shared vars do not properly communicate for more than a few seconds and are well laggier.

    My ideal project solution is a system that can operate with or without the connected laptop and obviously do not have these questions shared variable. I would like the autostart code on the cRIO and ask the user to execute the code of the computer laptop, if necessary, but in the past, it doesn't seem to work with shared variables.

    I'm really confused about why this is happening. I hope I explained my problem well enough. I really don't want to display the entire project here, but I can email to people if they are willing to take a look. Thank you for taking the time to read this.

    I'm under LabVIEW 2010 SP1 with FPGA, DSC modules and robotic in real time. I have the updated Feb 11 driver and NOR-RIO 3.6.0 installed and completed all updated on my RT cRIO.

    I do this kind of thing all the time...

    Move all your NSV libraries on the cRIO.  Of the project, you must deploy on the cRIO and then they are persistent until you reformat.

    Your windows GUI application, you can set static NSV tags on the block schema or use the API SV dynamic R / w.  Also you can bind GUI controls and

    indicators directly to the NSV cRIO (it's what I do) also I create a library of 'mirror' in the PC HMI that is linked to the library of cRIO.  This library has DSC Citadel

    data record enable and automatically records the historical traces of all my important data - very nice.  Libraries hosted PC can be set to autodeploy in the version of the app.

    the project also has an option of autodeploy to the development environment that normally, I turned off.  If you have a PC at the cRIO binding configuration so be careful

    on any kind of autodeployment because this will eventually force the cRIO app stop when you deploy.  To work around this problem, you can use the PSP (IP address rather than project binding

    process name) and use of the DSC deploy library s vi in your HMI application.  Once you use the scan engine, you can use the app DSM (Distributed System Manager) to view, DIF and

    each of you IOV and NSV graphic on your network.

Maybe you are looking for