Assign Action step of input parameters programmatically

I hope someone could indulge my laziness about the types of data ranging from passage of TestStand 2013f1 to LabView 2015 SP1.

Since the 'something' in TS data type and the type of a variant in LV do not play nice, I have to manually switch the type of TS data to LV I have this by adding an entry to the VI that accepts a string describing the type of data to TS.  I then use the 'TypeOf' TS function to obtain this string descriptor.  It works well; However, I call this action many, many times with different types of data.  I'm afraid I won't update the entry TypeOf operator every time that I instantiate this VI.  This would produce an error of execution, which are annoying.

What I want is to fill the TypeOf function with some Local, parameter, etc. I type in the entrance of Variant (Nothing) VI.

I'm not an architect TS but I searched the API trying to see if there is anything that can provide this functionality.  I doubt that I can do this, but I wanted to check with the community before I gave up.

Thank you for your help in advance.

Ah - yes, I understand now.  My expression became the type of the parameter LabVIEW, while we want the type of the variable we spend in LabVIEW!

This should work for you.

TypeOf (evaluate (Step.Module.AsLabVIEWModule.Parameters.Item (1).)) ArrayClusterEls ["[0]"]. ['Data'] ArrayClusterEls. ArgVal))

Kind regards

Charlie

Tags: NI Software

Similar Questions

  • Input parameters of the task flow and "back" button

    Hello experts. I have two stubborn workflow created by page; say they are TF1 and TF2. Each workflow task has their own controlled beans. These controlled beans are kept in the Page flow scope. The two task-flow has their own of initializers.

    By an action on TF1, I redirect to the TF2. During this redirection, I pass some parameters. After redirection when it enters the TF2, I extract the parameters programmatically. Now I'm back on TF1 and TF2 of TF1, I'm clicking on the back button of the browser. Note that I put anything if the re-entry allowed or not in TF2. After clicking the browser back button access me for the new TF2. TF2 called if I generate any action of the initializer. BUT now I can not get the input parameter values more. All values in the set of input null parameter.

    My question is:

    • Why have defined null values?
    • How can I make persistent values?

    Any pointer would be very useful.

    I use JDeveloper 11.1.1.6.0, WebLogic 10.3.5.

    Thanks in advance.

    Tapas

    There is a way. Click on "back" button is not invoke the lifecycle JSF and browser displays the previous pages in its cache. If somehow, I can say browser not to cache the page, then every time a click the back or next button, the browser would GET the page headed from the server, which would eventually be my.

    So I added a filter to achieve this:

    public class NoCacheFilter implements Filter {
        @SuppressWarnings("unused")
      private FilterConfig _filterConfig = null;
    
        public void init(FilterConfig filterConfig) throws ServletException {
            _filterConfig = filterConfig;
        }
    
        public void destroy() {
            _filterConfig = null;
        }
    
        public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
            HttpServletResponse servletResponse = (HttpServletResponse) response;
            servletResponse.setHeader("Cache-Control","no-cache, no-store, must-revalidate, private, max-stale=0, post-check=0, pre-check=0");
            servletResponse.setHeader("Pragma", "no-cache");
            servletResponse.setHeader("Expires", "Sun, 16 Dec 1984 07:48:00 GMT");
            chain.doFilter(request, response);
        }
    }
    

    Note that I have to specify browser to cache resources, I do R & D to change this filter.

    It works. Hope, now I can spend my weekend peacefully :-).

    Ref:

    Tapas

  • How to get the value of the predefined list of input parameters of a workflow of another workflow of operation REMAINS (element JSON) output. The pointers or the exisitng resource/code will be of great help

    I have a workflow in which one of the input parameters is a predefined list of element. The predefined list of items must come from another workflow of operation REMAINS to GET type (element JSON) output.

    You just wrap it in an action that has an output which is an array of the same type as input.  Instead of using the plugin of rest, you might be able to use the scriptable Url to take the exit that would work according to the rest interface with which you interact.  Something like this:

    var restOperation = 'yourrestservice.com/resoperation/... '. ' / / whatever your full url is if it requires no authentication

    var myUrl = new URL (restOperation); Create the object URL

    var result = myUrl.getContent (); get the content

    var jsonParsed = JSON.parse (result); assuming that the result is a string that must be converted to an

    treatment jsonParsed and return an array of the appropriate type

    return (myPreDefinedList);

  • Read a script title input parameters

    I'm sure it's a matter of javascript adobe newbie, but I watched for a while and do not find the answer. How to read a script file as input parameters? For example, let's say I want to run a script that requires 3 input variables, but instead of asking the values, I would like to read from the file name of the script... for example, Myscript (my_variable1, my_variable2, my_variable2), where the variables are all real numbers. So I guess that the name of the script when it is run should look to...  MyScript (10, 10, 100), but how can I read these and assign these values to a VAN in the script?

    Thanks for any help!

    That you will get the name of the file, including the path

    alert($.fileName);
    
  • Input parameters of Report Builder

    I need to create a report using the input parameters and a date range. I called the report in a form that uses the following query and gets his entry to a previous form:

    < cfquery name = "getVisitors" datasource = "zipcodesearch" >
    SELECT company.CompanyID, company.CompanyName, company.phone1, visitors.visitorName, visitors.visitorComp, visitors.createDate, visitors.phone, visitors.email
    The COMPANY INNER JOIN visitors ON company.CompanyID = visitors.companyID
    WHERE visitors.createDate > = #form.startdate # and visitors.createDate < = #form.enddate #.
    ORDER BY company.CompanyName, company.phone1, visitors.createDate
    < / cfquery >

    At this point, I'm not sure if I should use cfreportparam tags or not. The reason is, I'm not using the = operator. I need to specify a range of dates, and I can't find an example ANYWHERE on how to achieve this with the report generator. If I use the cf report param tags, they would present something like that? :

    "< cfreport format ="PDF"template ="visitors.cfr"query =" #getVisitors # "overwrite ="yes">
    < cfreportparam NAME = "startdate" VALUE = "#form.startdate #" >
    < cfreportparam NAME = "enddate" VALUE = "#form.enddate #" >
    < / cfreport >

    Guess my next question is, should I I then specify a query in Report Builder and also use input parameters in report designer environment? the documentation on this type of scenario was virtually nonexistent.

    I'm really stuck on this one, and any help would be appreciated...

    I thought about it and answer my own post in case anyone else runs into the same type of situation...

    The formula of entry consists of two fields: StartDate and EndDate

    The action page consists of a query as follows:


    SELECT company.CompanyID, company.CompanyName, company.phone1, visitors.visitorName, visitors.visitorComp, visitors.createDate, visitors.phone, visitors.email
    The COMPANY INNER JOIN visitors ON company.CompanyID = visitors.companyID
    WHERE visitors.createDate > = #FROMDATE # and visitors.createDate<>
    ORDER BY company.CompanyName, company.phone1, visitors.createDate

    .. .and the code generator of report:

    No record date (s) selected.

    Close the window





    Also, I removed the underlying query in the report generator program and am only using the query on the page of ColdFusion itself. Everything seems to work properly, so I'll put this down as the answer.

  • How to connect to an Adobe Javascript(Folder Level Script) SAP Web Service and retrieve the response in a table of the Adobe Javascript/AcroJS. Could you please it explain with an example. I have two required input parameters that must be filled.

    How to connect to an Adobe Javascript(Folder Level Script) SAP Web Service and retrieve the response in a table of the Adobe Javascript/AcroJS. Could you please it explain with an example. I have two required input parameters that must be filled.

    I s generic SOAP example/tutorial on my blog: get a serial number in a form using SOAP - KHKonsulting LLC

    The web service uses only a single parameter, but you should be able to adapt the code to two arguments without problems.

  • Input parameters can be set dynamically?

    Is there a way to fill the UI dynamically entry? Suppose we have a list of fields to which we get input parameters and this list came out a REST command in xml format, can we build a user interface based on that?

    (If not, may we have input parameters that are hidden by default but are made visible from the fields in the xml file)

    Example: In the xml below output, the input field should take a number with the description for the entry in the "number of volumes.

    < field >
    < label > Number of Volumes < / label >
    < name > numberOfVolumes < / name >
    < type > number < / type >
    < initial_value > 1 < / initial_value >
    < lockable > fake < / lockable >
    < min > 1 < / min >
    < omitNone > fake < / omitNone >
    < required > true < / mandatory >
    < select > un < / select >
    < / field >

    'Content' is appropriate, in this case, since it is a POST operation (POST / PUT usually has a body of the request). Check the value of the property 'See the parameter entry' group "Content Input" display in the presentation tab.

    Different parameters (name, size, number, etc.) are not displayed in the interface user because in your case, they are part of the body of the request and the presentation logic in workflow "Call operation REST with dynamic params" only scans the URL parameters, not the body of the URL. In your case, if your REST API was POST/block/volumes / {name} / {size} the current logic could find name and size of the parameters in the URL. Check the "Show parameter input" values and properties "Data binding" parameters of workflow in display group "Input parameters" in the presentation tab.

    So you can extend this workflow, or implement your own version of the workflow, which can retrieve information about parameters not only of URL parameters, but also the body of the request by analyzing the body of the request as XML/JSON document and extract the names of the tags.

    As to what 'Generate new workflow of the operation REMAINS' do-, it generates a workflow that wraps the invocation of an operation given rest. In some cases, it is convenient; for example. you won't need to select REST operation to call every time. Also, you can change the specific workflow (for example. Add logging more, add additional processing, etc.).

  • Date range per week based on input parameters

    Afternoon people - I need to produce a report that will appear in coming weeks.

    There are two input parameters: P_FROM_DATE and P_TO_DATE

    I need to find the beaches of dates in weeks starting THURSDAY and ending WEDNESDAY. For example, if my P_FROM_DATE is August 1, 2012 and P_TO_DATE 11-SEP-2012, I need to show the weeks following this way:
    02-AUG-2012 - 08-AUG-2012
    09-AUG-2012 - 15-AUG-2012
    16-AUG-2012 - 22-AUG-2012
    23-AUG-2012 - 29-AUG-2012
    30-AUG-2012 - 05-SEP-2012
    06-SEP-2012 - 12-SEP-2012
    So, the idea is to begin the first THURSDAY after the P_FROM_DATE and at the end the Wednesday preceding the P_END_DATE...

    Thank you!

    Hello

    Here's one way:

    WITH     params          AS
    (
         SELECT  DATE '2012-08-01'     AS p_from_date
         ,     DATE '2012-09-19'     AS p_to_date
         FROM     dual
    )
    ,     end_points     AS
    (
         SELECT     TRUNC ( p_from_date + 4
                    , 'IW'
                    ) + 3          AS first_thursday
         ,     TRUNC ( p_to_date + 4
                    , 'IW'
                    ) - 5          AS last_wednesday
         FROM    params
    )
    SELECT     first_thursday + (7 * (LEVEL - 1))     AS week_start_date
    ,     first_thursday + (7 * LEVEL) - 1     AS week_end_date
    FROM     end_points
    CONNECT BY     LEVEL     <= ( last_wednesday
                      + 1
                      - first_thursday
                      ) / 7
    ;
    

    TRUNC (dt) is the beginning of the ISO week containing DATE dt.
    The 'magic number' 4 is used because the ISO week starts on Monday, 4 days later your week begins, so

    TRUNC ( dt + 4
          , 'IW'
          )
    

    is set for Monday in the same week from Thursday to Wednesday as dt.

  • Duplication of datasets based on input parameters

    I posted this question in the context of the reports of the Oracle, but I think that this is not really a question of relationship Oracle, its more a matter of SQL. I'm on Oracle 9i.

    I need to generate a report based on a maximum of 6 input parameters.
    Three of them belong to the client ID # and 3 belong to the Number of Copies that must be printed on the report.
    Settings on clients: P_CUST_ID1, P_CUST_ID2, P_CUST_ID3
    Parameters for the number of copies: P_N1, P_N2, P_N3

    So, at some point, there could be a maximum of 3 Customer ID passed to the main request. Here is an example of what might look like the input parameters.
    The user has chosen to enter the values for Customer ID 1 and 2 and left blank for 3 client.
    Customer ID1   1001         Number of Copies   2
    Customer ID2   1002         Number of Copies   3
    Customer ID3   ----         Number of Copies   -
    The query that retrieves data looks something like this. The query below is intended to get the client host and addresses of the Office.
    Of course, it is possible that there could be no home or office address or both.
    SELECT    c.cust_no,
              c.saln||c.first_name||' '||c.last_name cust_name,
              a.address_type,
              a.street,
              a.city||' '||a.province||' '||a.postal_code city,
              '('||a.tel_area||') '||a.tel_number telephone
    FROM      customer c, customer_address a
    WHERE     c.cust_no = a.cust_no
    AND       c.cust_no IN (:P_CUST_ID1, :P_CUST_ID2, :P_CUST_ID3);
    Based on my query:
    Customer ID 1001 has 3 addresses (House 2 and 1 office)-> the Total number of records = 3
    Customer ID 1002 a 2 addresses (1 House and 1 office)-> the Total number of records = 2

    The output should be something like that. I put a copy1 copy2, Copy3 label to show
    How the data will appear for readability.
    Cust No Customer Name      Address Type    Address Line 1         Address Line 2        Telephone
    -----------------------------------------------------------------------------------------------------
    Copy1
    1001    Mr Robert Green    H               2100 Picket Fences     Vancouver BC V6E 2C9 (604)726-5555
    1001    Mr Robert Green    H               2300 Happy Valley      Vancouver BC V6G 2N8 (604)308-5555
    1001    Mr Robert Green    O               1200 Davie Street      Vancouver BC V1V 1X1 (604)211-5555
    Copy2
    1001    Mr Robert Green    H               2100 Picket Fences     Vancouver BC V6E 2C9 (604)726-5555
    1001    Mr Robert Green    H               2300 Happy Valley      Vancouver BC V6G 2N8 (604)308-5555
    1001    Mr Robert Green    O               1200 Davie Street      Vancouver BC V1V 1X1 (604)211-5555
     
    Copy1
    1002    Ms Cynthia Brown   H               261 King Street W      Calgary AB M5A 1N1   (416)432-5555
    1002    Ms Cynthia Brown   O               150 Bloor St W         Calgary AB M1W 1S3   (416)321-5555
    Copy2
    1002    Ms Cynthia Brown   H               261 King Street W      Calgary AB M5A 1N1   (416)432-5555
    1002    Ms Cynthia Brown   O               150 Bloor St W         Calgary AB M1W 1S3   (416)321-5555
    Copy3
    1002    Ms Cynthia Brown   H               261 King Street W      Calgary AB M5A 1N1   (416)432-5555
    1002    Ms Cynthia Brown   O               150 Bloor St W         Calgary AB M1W 1S3   (416)321-5555
    Scripts for creating the table and INSERTs
    CREATE TABLE CUSTOMER
      (
        "CUST_NO"    VARCHAR2(4 BYTE) NOT NULL,
        "SALN"       VARCHAR2(4 BYTE),
        "FIRST_NAME" VARCHAR2(20 BYTE),
        "LAST_NAME"  VARCHAR2(20 BYTE),
        CONSTRAINT "CUSTOMER_PK" PRIMARY KEY ("CUST_NO")
      );
     
    Insert into CUSTOMER values ('1001','Mr','Robert','Green');
    Insert into CUSTOMER values ('1002','Ms','Cynthia','Brown');
    Insert into CUSTOMER values ('1003','Dr','David','Taylor');
     
    CREATE TABLE CUSTOMER_ADDRESS
      (
        "CUST_NO"      VARCHAR2(4 BYTE) NOT NULL ENABLE,
        "ADDRESS_TYPE" VARCHAR2(1 BYTE) NOT NULL ENABLE,
        "STREET"       VARCHAR2(20 BYTE),
        "CITY"         VARCHAR2(20 BYTE),
        "PROVINCE"     VARCHAR2(2 BYTE),
        "POSTAL_CODE"  VARCHAR2(10 BYTE),
        "TEL_AREA"     VARCHAR2(3 BYTE),
        "TEL_NUMBER"   VARCHAR2(10 BYTE)
      );
     
    Insert into CUSTOMER_ADDRESS values ('1001','H','2100 Picket Fences','Vancouver','BC','V6E 2C9','604','726-5555');
    Insert into CUSTOMER_ADDRESS values ('1001','H','2300 Happy Valley','Vancouver','BC','V6G 2N8','604','308-5555');
    Insert into CUSTOMER_ADDRESS values ('1001','O','1200 Davie Street','Vancouver','BC','V1V 1X1','604','211-5555');
    Insert into CUSTOMER_ADDRESS values ('1002','H','261 King Street W','Calgary','AB','M5A 1N1','416','432-5555');
    Insert into CUSTOMER_ADDRESS values ('1002','O','150 Bloor St W','Calgary','AB','M1W 1S3','416','321-5555');
    Insert into CUSTOMER_ADDRESS values ('1003','O','435 Richmond Street','Calgary','AB','M5A 4T6','416','453-5555');
    Any help or pointers in this regard would be great.
    I could have adopted a procedure for use of temporary tables , but I really prefer not to go in that direction that there could a few reports which must be generated in this way.

    Thanks and a great weekend.

    Hello

    Roxyrollers wrote:
    I tried to replace the Clause WITH with views online, but have hit a wall. Of course, it is said Table or view does not exist because it cannot find the report_parameters table. Also, I realize that I can't really get the view online at the same level.

    No, report_parameters is used in two places in the solution I posted Saturday. You could code 2 copies of the report_parameters (one inside the cntr, the other to join it), but it should really be. CNTR can rely on two instead, like this:

    SELECT    c.cust_no,
              c.saln ||c.first_name||' '||c.last_name cust_name,
              a.address_type,
              a.street,
              a.city||' '||a.province||' '||a.postal_code city,
              '('||a.tel_area||') '||a.tel_number telephone
    ,       t.n                -- If wanted
    FROM      customer           c
    ,        customer_address   a
    ,       (               -- Begin in-line view report_parameters
                SELECT  :p_cust_no_1 AS cust_no, :p_no_copies_1 AS no_copies  FROM dual  UNION ALL
              SELECT  :p_cust_no_2 AS cust_no, :p_no_copies_2 AS no_copies  FROM dual  UNION ALL
              SELECT  :p_cust_no_3 AS cust_no, :p_no_copies_3 AS no_copies  FROM dual
           )  p               -- End in-line view report_parameters
    ,       (               -- Begin in-linve view cntr
                 SELECT     LEVEL     AS n
                 FROM     dual
                 CONNECT BY     LEVEL     <= GREATEST (:p_no_copies_1, :p_no_copies_2, :p_no_copies_3)
           ) t                    -- End in-line view cntr
    WHERE     c.cust_no           = a.cust_no
    AND       c.cust_no           = p.cust_no
    AND       p.no_copies          >= t.n
    ORDER BY  c.cust_no
    ,       t.n
    ,            a.address_type
    ;
    

    Ensure that: p_no_copies_1,: p_no_copies_2 and: p_no_copies_3 are not NULL; otherwise, GREATEST return the NULL value. Check the settings, you do need lower or equal to 0, or use NVL inside the GREATER expression.

  • Run javascript with a taskflow input parameters

    With the help of PS4 11 g JDev

    I have a taskflow using javascript. When the taskflow was loaded, I need to execute a javascript function that uses my taskflow 2 input parameters.
    I don't really know how I can run javascript with my input parameters.

    A test, I added a commandButton control in my taskflow who will do the job:
    <af:commandButton id="btnRefresh" text="Open">
                <af:clientAttribute name="long" value="#{pageFlowScope.pLong}"/> 
                <af:clientAttribute name="lat" value="#{pageFlowScope.pLat}"/> 
                <af:clientListener method="doNavigate" type="click"/> 
            </af:commandButton>
    How can I do the same thing when the taskflow charge instead of having to press the button.

    Please find attached examples based on your use cases:
    http://adfsampleapplications.googlecode.com/svn/trunk/JavascriptOnLoadSample.rar

    She calls a javascript function when loading pagefragment passing the input parameters of the taskflow.

    Thank you
    Nini

  • OSB: BEA-382510: OSB Assign action failed variable update

    Hi all

    I just started learning the OSB and created a simple process.

    It's my request:

    < soapenv:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv >
    < xmlns:soap soap: Header = "http://schemas.xmlsoap.org/soap/envelope/" >
    < / soap: Header >
    < soapenv:Body >
    < xmlns:hel hel: getGreeting = "http://hello.alsb.com/" >
    <!-in option: - >
    < arg0 > string < / arg0 >
    < / hel: getGreeting >
    < / soapenv:Body >
    < / soapenv:Envelope >
    ------------------------------------------------------------------------
    im getting an error in entitled response:

    < soapenv:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv >
    < soapenv:Body >
    < soapenv:Fault >
    soapenv:Server < faultcode > < / faultcode >
    < faultstring >
    BEA-382510: OSB Assign action doesn't have a variable update 'Test': weblogic.xml.query.exceptions.XQueryTypeException: {err} XP0006: ' the return element {{http://www.w3.org/2004/07/xpath-datatypes} untypedAny} ': bad value for a string of type {http://www.w3.org/2001/XMLSchema}
    < / faultstring >
    < detail >
    < con xmlns:con: fault = "http://www.bea.com/wli/sb/context" >
    < con: errorCode > BEA-382510 < / con: errorCode >
    < con: reason >
    OSB Assign action failed 'Test' for variable update: weblogic.xml.query.exceptions.XQueryTypeException: {err} XP0006: ' the return element {{http://www.w3.org/2004/07/xpath-datatypes} untypedAny} ': bad value for a string of type {http://www.w3.org/2001/XMLSchema}
    < / con: reason >
    < con: location >
    < con: node > RouteTo_HelloWorldBiz < / con: node >
    pipeline response - < con: path > < / con: path >
    < / con: location >
    < / con: fault >
    < / details >
    < / soapenv:Fault >
    < / soapenv:Body >
    < / soapenv:Envelope >

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

    It's my Xquery:

    XQuery version "1.0" encoding "Cp1252";

    declare namespace xf = "http://tempuri.org/GoodbyeWorld_SB/XQuery/Hello_to_GoodBye/";

    declare function xf:Hello_to_GoodBye($helloStr_as_xs:string)
    as XS: String {}
    Replace ($helloStr, 'HELLO', 'goodbye')
    };

    declare the variable $helloStr as XS: String external;

    XF:Hello_to_GoodBye ($helloStr)

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

    in my message response service proxy pipeln:

    I added the entitlement and taking into account the expression: $body / hel: getGreetingResponse / return
    var: Test

    After the entitlement: I gave an alternative activity:

    XPath: ./hel:getgreetingresponse/return

    varabile: body

    Expression: string ($Test)


    When I test it in the console of the OSB:

    im getting this error:

    < soapenv:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv >
    < soapenv:Body >
    < soapenv:Fault >
    soapenv:Server < faultcode > < / faultcode >
    < faultstring >
    BEA-382510: OSB Assign action doesn't have a variable update 'Test': weblogic.xml.query.exceptions.XQueryTypeException: {err} XP0006: ' the return element {{http://www.w3.org/2004/07/xpath-datatypes} untypedAny} ': bad value for a string of type {http://www.w3.org/2001/XMLSchema}
    < / faultstring >
    < detail >
    < con xmlns:con: fault = "http://www.bea.com/wli/sb/context" >
    < con: errorCode > BEA-382510 < / con: errorCode >
    < con: reason >
    OSB Assign action failed 'Test' for variable update: weblogic.xml.query.exceptions.XQueryTypeException: {err} XP0006: ' the return element {{http://www.w3.org/2004/07/xpath-datatypes} untypedAny} ': bad value for a string of type {http://www.w3.org/2001/XMLSchema}
    < / con: reason >
    < con: location >
    < con: node > RouteTo_HelloWorldBiz < / con: node >
    pipeline response - < con: path > < / con: path >
    < / con: location >
    < / con: fault >
    < / details >
    < / soapenv:Fault >
    < / soapenv:Body >
    < / soapenv:Envelope >


    Ttout suggestions on where is the problem.

    IM completely stuck here:

    TIA,
    knockaert

    It is not clear at what point you call Hello_to_GoodBye and using what argument

    in any case, it is likely that you pass an Xml (a knot, something like Charlie) element instead of a simple type (a string like 'Charlie')

    You must use the data($body/bla) function or the text ($body/bla/text () to retrieve the value (Charlie) of your item

  • a program with input parameters

    Hi all

    I need assistance with my Planner. Can U help me?

    My stored procedure has two input parameters of type date.
    For example
    create package my_pck is
    Start
    Create procedure my_proc (begin_dt date, end_dt date) is
    Start
    null;
    end;
    end;

    now I tried to do a job with a program and a schedule like this:

    () DBMS_SCHEDULER.create_program
    program name = > "STORED_PROCEDURE_PROG"
    program_type = > 'procedure_stockee ',.
    program_action = > 'my_pck.my_proc ',.
    number_of_arguments = > 2,
    activated = > FALSE,
    Comments = > ' om program kwartaaloverzichten you h en die you Mélisande mbv een PL/SQL block. ");

    () dbms_scheduler.define_program_argument
    program name = > "STORED_PROCEDURE_PROG"
    argument_position = > 1,
    argument_type = > 'DATE');

    () dbms_scheduler.define_program_argument
    program name = > "PROCEDURE_PROG"
    argument_position = > 2,
    argument_type = > 'DATE');

    dbms_scheduler. Enable(STORED_PROCEDURE_PROG');

    () DBMS_SCHEDULER.create_schedule
    schedule_name = > "MAAND_KWARTAAL_SCHEDULE"
    repeat_interval = > ' FREQ = YEAR; BYMONTH = 1, 4, 7, 10; ") ;

    () DBMS_SCHEDULER.create_job
    job_name = > 'my_JOB. "
    program name = > "my_pck.my_proc"
    schedule_name = > "MAAND_KWARTAAL_SCHEDULE"
    activated = > FALSE,
    Comments = > ' om kwartaaloverzichten job you h en die you melisande. ');

    dbms_scheduler.set_job_argument_value ('my_pck.my_proc', 1, "trunc (add_months (sysdate,-4), 'MM')");

    dbms_scheduler.set_job_argument_value ('my_pck.my_proc', 2, ' trunc(sysdate, 'MM')-1' ");

    dbms_scheduler. Enable ('my_pck.my_proc');

    Then, I get this error:
    PLS-00103: encountered the symbol "MM" when expecting one of the following values:...

    When I tried this: "trunc (add_months (sysdate,-4), 'MM')"

    I get this error:
    PLS-00103: encountered the symbol "TRUNCATES" when expecting one of the following values:...

    I can't do it.

    My specs:
    OS: windows xp
    Database: Oracle 10 G XE

    The error has nothing to do with the Oracle Scheduler. This is how you should cite the quoted strings:

    SQL> SELECT 'trunc(add_months(sysdate, -4), ''MM'')' FROM DUAL;
    'TRUNC(ADD_MONTHS(SYSDATE,-4),''MM''
    ------------------------------------
    trunc(add_months(sysdate, -4), 'MM')
    
  • Oracle Workflow and mapping of input parameters

    Hi all
    I am trying to create a process in OWB stream which will be able to pass input parameters in each of my correspondence layouts. Each map contains 2 entries, a start time and an end time.
    OWB process flow allows it to do this or is there another approach that I take in creating a workflow for these mappings?

    I am currently using 11gR 2 (11.2.0.1) and UAS v. 2.6.4.

    Thanks in advanced for any help.

    Randy

    Hi Randy,

    Open the workflow process Editor. In the window (menu view-> structure) structure, select the mapping activity and expand it to view its settings. If you select a setting, you can set its value or link to a variable in the Properties window.

    In the structure window, you can also add parameters of process flow to the start activity or to define variables of process flow.

    Kind regards
    Carsten.

  • problem with pipe separated from the input parameters to call

    Hi all

    I have a requirment as...

    I have a Sp 10 which have 3 SETTINGS and 3 settings as shown below...


    PROCEDURE sample_sp1 (p_start_dt IN VARCHAR2,
    p_end_dt IN VARCHAR2,
    p_shift IN varchar2,
    p_out1 OUT t_bpd_nm, - array type
    p_out2 OUT t_target, - array type
    p_out3 to t_drr); -type of array



    PROCEDURE sample_sp2 (p_start_dt IN VARCHAR2,
    p_end_dt IN VARCHAR2,
    p_shift IN varchar2,
    p_out1 OUT t_bpd_nm, - array type
    p_out2 OUT t_target, - array type
    p_out3 to t_drr); -type of array



    .........


    ..........


    PROCEDURE sample_sp10 (p_start_dt IN VARCHAR2,
    p_end_dt IN VARCHAR2,
    p_shift IN varchar2,
    p_out1 OUT t_bpd_nm, - array type
    p_out2 OUT t_target, - array type
    p_out3 to t_drr); -type of array






    Now, I have to create a new SP. This SP, I have to call one of the top 10 SP and have to come back as a REF CURSOR.


    the entries to the new MS are 3 as... (shown below).


    create or replace new_sp (p_report_name IN varchar2,
    p_report_inputs IN varchar2,
    p_report_as_ref to ref_cur_type) is


    ..............

    where p_report_name is a name of sp
    p_report_inputs is the input to SP parameters with "|" separated pipes (ex: ' 23/04/2010 | 20/05/2010 | 2 ')
    p_report_as_ref is setting to return as an OUT refcursor.


    I'm unable to manage the setting shild (with tickets). How to separate input parameters and how can I call existing SP
    with these settings?


    friends... can someone help me please...


    Thanks in advance...

    What of it?

    with t as
    (select replace('500 Oracle Parkway| Redwood Shores| CA','|',',') str from dual)
    SELECT
      replace(REGEXP_SUBSTR(str,'[^,]+,'),',') first,
      replace(REGEXP_SUBSTR(str,',[^,]+',1,1),',') second,
      replace(REGEXP_SUBSTR(str,',[^,]+',1,2),',') third
      FROM t;
    
    ----
    500 Oracle Parkway      Redwood Shores      CA
    
  • input parameters for the workflow process in OWB

    Hi all

    My plan is to have the number of years input parameters and the date of the beginning of the year. I have included this map in the process flow. When I execute the process flow its does not have input parameters. Someoen can tell me how this can be achieved.

    Thank you
    Amrit

    Amrit,
    You must add parameters to processflow then [link parameter mapping | http://download.oracle.com/docs/cd/B28359_01/owb.111/b31278/concept_processflows.htm#BIHCIAFB] to corresponding processflow params

    See also [article on parameters processflow | http://blogs.oracle.com/warehousebuilder/2009/01/process_flow_parameters_1.html] the blog of OWB

    Kind regards
    Oleg

Maybe you are looking for

  • Toshiba satellite 2450 s203 does not recognize the atheros wireless network adapter

    Hello! I have a toshiba satellite 2450 s203 and a network card wireless atheros integrated - somewhere in the laptop - there. However, I am running win xp pro and the Device Manager IS NOT to FIND THE MAP! He finds the ethernet card and a 1394 networ

  • Printing - Officejet 8600

    I created brochures for my business, but when I print a two-sided copy, the second face is upside down.  Where is the parameter to be set if any of the two parties is backwards?

  • Win7x64 drivers for hp Pavilion 500-007eb

    Hello My mother dislikes win8 I would like to install win7x64 Possible find drivers for hp pavilion 500-007eb win7x64? I'm not "find on hp wesite USB3, sound, lan, wifi card, Sorry for my English

  • Windows 7 task manager and windows pages look like XP

    I hope I've put this in the right category because I'm not 100% sure what category is this type of problem. Well, let's go.A few days ago, I started my computer and instead of start up normally like any other day, it went straight to windows startup

  • Cropped/resized images recording is not in the specified dimensions

    Hi allI cropped and saved an image (original dimensions: 1503x1000px) in Photoshop for a ratio of 1140x400px. However, when I look at the file on my computer, it shows the dimensions as 1503x528px. I have not made any changes to the resolution and ha