Loop of work based on the input (as if... else) variables

HI friends,

This is my first, if I'm not following all the rules excuse and say to those.

I want to use the loop for based on the variable passed.

Under code is wrong, but you can understand my intention.

CREATE OR REPLACE PROCEDURE sp_pins_deactivation)

pi_prepaidcard_no IN STR2048_TBLTYP, - Table type

pi_from_range IN VARCHAR2,

pi_to_range in NUMBERS)

Start

IF pi_from_range is not null and pi_to_range is not null

THEN

I'm in pi_from_range... pi_to_range

LOOP

ON THE OTHER

I'm in pi_from_range... pi_to_range

LOOP

END IF;

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

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

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

END LOOP;

end sp_pins_deactivation;

create or replace procedure nTtest (nT nTable, start_val number: = null, end_val number: = null) is

Start

I'm in coalesce (start_val, nT.first, 1)... COALESCE(end_val,NT.) Last, 10)

loop

dbms_output.put_line (I |) ': ' || (-case when nT.exists (i) and (i) nt end of another "no entry");

end loop;

end;

/

Tags: Database

Similar Questions

  • Change the structure of program based on the input file

    I have a program that takes parameters of an input file and then executes a Visual acquisition, using IMAQ, controlling some other hardware at the same time.  The duration of the various stages of this process control settings.

    There is a sequence stacked structure to control the playback of the input file, the initialization of the hardware, and then a while loop on the last image to actual purchase.

    The user of the program now wish to have several games acquisition in the same race, possibly with different time settings.  This would mean different iterations of the final loop, based on the parameters of the input file.  There could be 5 games of acquisition on occasion, 3 on another, etc., in a performance of the program.

    The structure VI already seems a little baroque, and I don't want to make it even more complicated.

    I would appreciate advice on how best to proceed, because I'm really a novice of LabView.

    If you use a "State Machine" architecture, you can do exactly that.

    Instead of having a structure of stacked sequence, it is essentially a case structure in a while loop.

    Each case represents a State.

    So in your case, you would have a State for:

    -reading the input file

    -initialization of hardware

    -data acquisition

    You can have the user controls the number of iterations of the State for the acquisition of data that you want to run.

  • Workflow based on the input parameter

    I use JDev 11.1.1.6.

    I have an application that uses a workflow with 'ExecuteWithParams' to get the parameter from a URL and display the records on a page.

    I have it using a Bind Variable on the VO that corresponds to the InputParameter on the control ExecuteWithParams.
    What I would like to make is the flow to another page, depending on the parameter used in the URL.

    Example:

    If param in the URL is '? TEAM = 1 "then I go to the TEAM page and display records for TEAM 1.

    If param in the URL is '? REGION = 3 "then I would go to the REGION page and display records for REGION 3.

    Thank you
    Ray

    This could probably be resolved using a router activity or a custom default activity in the workflow method. Then from the method/router, can easily get to the desired activity of the TF based on an input parameter. For example if the parameter is route 'region' to executeRegionIteratorWithParams, which, in turn, can "go" to view displayRegions activity.

  • Navigation based on the input textfield value?

    Hi all.

    I use Captivate4. In my project, I would like to navigate from one slide to another slide based on the value entered in the input textfield (as if as a drop down menu).

    slide1.jpg

    The image shows, if the user enters the values, it must navigate to slides respectively. So, I got a tip in this way action.

    actions-dialog.jpg

    Hello

    Welcome to the Adobe Forums,

    In order to reach the workflow that you specified in your post that you need several "check if ' for all defined slides the tip on the button click Action.

    For Ex.

    For "a" TI will look like this:

    Because if "two" will look like this:

    Rest allows you to change the variable, just make sure that these all will be on this same script for a button

    It could be useful!

    Thank you

    Vikram

  • Dynamic creation of a control based on the input

    Hello

    Is it possible to change a control on the front panel?

    If the entry is a string I want to show a string. If the input is an integer, I want to show a cursor for example.

    I have a plan to implement on the different tabs and display the tab which must be shown, but maybe there's a faster, easier way?

    Thanks for the help!

    Kim

    Hi Kim,

    Thanks for the additional info.

    The dll and its manual to define what can be output and that's why you need to refer to the manual.

    When you call a dll in LabVIEW, you must set the parameters of static output and so data cannot be of a type for example if set it as a table, it will always be a table. This look for the 'node of function call' in the range of functions-> connectivity-> libraries & Executeables.

  • How to change a region title based on the input parameter?

    Hi all

    I need to change the title of the dynamic region based on the value of a selection list in another region.

    Can someone help me in this?

    Kind regards
    Santini.

    Hello

    You can use & P1_ITEM_NAME. (including the & and the.) the title of region - this string will be replaced by the value of the item page called P1_ITEM_NAME, then change the name according to your order of the day of the page

    Andy

  • Filling of textfield based on the input of another textfield

    Hi guys,.

    I have a problem.

    I have a textfield and the input of information in which must be completed in antother textfield. It seems easy, but the trick is. For each new entry a new textfield should appear with this information. My problem is that it creates a textfield, but for every letter I type in and not to a string when I press ENTER.

    See attached example.

    I hope you can help me!

    Thank you

    Diana

    This is the code: (I can't reach the example for some reason any) Table_SF._Repeat_SF.addInstance (1); xfa.resolveNode "(Table_SF. ("Repeat_SF [" + (Table_SF._Repeat_SF.count - 1) + ' "] '). TextField1.rawValue = xfa.event.newText;

    Instead of placing the code in the event changes, copy it to the Exit event.

    Table_SF._Repeat_SF.addInstance (1);

    xfa.resolveNode "(Table_SF. ("Repeat_SF [" + (Table_SF._Repeat_SF.count - 1) + ' "] '). TextField1.rawValue = this.rawValue;

    Thank you

    Srini

  • Change cell color in a table based on the input

    Hi guys

    Please refer to my example, I have attached. I had a 2d with som information table. 1 row = 1 component information and it's electric. This table is put in a table when you press "Update" in the front panel. My goal is that based on index 1 of table (col2 'Edge'), the color of the TableRow should change color. If the contents of the line is S20-1, the color should be red and so on. It works a little bit, but I'll have a few bugs:

    -You must press "Reset" twice in order to remake the Whiteboard.

    -The first colorchange also changes the color of the entire table. I want my whiteboard and lines to change color (header and TableRow unused must be white).

    You can change the first element in the array constant of S20 - 1-S20 - 3 and you will see that my program brings to the whole blue table on the first colorchange.

    Is this a mistake on my part? Or is this a bug in LV (which I doubt)?

    Property nodes are running up and down, and you have the reverse order. You set the color first, and then the active cell, which means that the colour be trolling a run.

    Your code is also too complicated. Here's a quick draft how this could be done. Let me know if you have any questions.

  • Use this.submitForm () to submit e-mail messages based on the input from the user

    I am using the function this.submitForm () in order to allow users to send the form instead of the integrated due to various e-mails depends on the user of a text field input.

    Under work - except that I want the pdf file to send instead of fdf data. I'm trying to make it work using the cSubmitAs: input parameter, but can't seem to get the right syntax...

    if(manufacturer.value == "Manufacturer A") {
     this.submitForm(
      "mailto:[email protected];[email protected]?&[email protected];[email protected]&subject=New Service Request Submittal"
      );
    }
    else {
     this.submitForm(
      "mailto:[email protected];[email protected]?subject=New Service Request Submittal"
      );
    }
    

    After doing a little research, I came with:

    var manufacturer = this.getField("manufacturer");
    var nEmail = "mailto:[email protected];[email protected]?&[email protected];[email protected]&subject=New Service Request Submittal";
    var allEmail = "mailto:[email protected];[email protected]?subject=New Service Request Submittal";
    if(manufacturer.value == "Manufacturer A") {
     this.submitForm({nEmail, cSubmitAs: "PDF"});
    }
    else {
     this.submitForm({allEmail, cSubmitAs: "PDF"});
    }
    

    But I seem to be getting errors JavaScript no matter what I try...

    When you use "{" a "}" in a method indicates you specify the name of the parameter and then the value, and not only the value of positional parameter. If the statements of 'this.submitForm' are the following:

    this.submitForm ({cTo: nEmail, cSubmitAs: 'PDF'});

    and

    this.submitForm ({cTo:allEmail, cSubmitAs: 'PDF'});

  • LabVIEW basics - Cahnging Boolean State question based on the input signal

    Hi all

    I would like the State to change the Boolean indicator based on a simulated sine wave signal. I have partially managed to do this but need help to develop it.

    See the attached vi. At the present time changes Boolean false to true when the value of the signal is greater than 8 or lower than-8.

    The focus I need is:

    Once the signal passes more than 8 (and the Boolean value becomes true), I hope it becomes false again to a value of 9, but only after the peak value was passed or when the signal is down.

    Similarly on the negative side of the graph, I want the Boolean value to become reality at 8-under, stay true until after the peak value was passed and then back to false when the value is greater than-9.

    Any suggeastions?

    Thank you

    While Crossrulz responded, I had a little look.

    Don't let me spoil your pleasure with the VI attached. Have a go yourself.

  • AutoFill the form based on the input field

    Hey everybody,

    I have a form on the EMP table, with a text field containing the empno.

    When I get a (valid) empno, I want to give all the necessary information (ename, job,...) automatically in the fields.

    I read somewhere that I just write a query for each input field + dynamic action that refreshes the entire region with the shape when I change the value empno.

    Now is it possible to ignore the write request and only use the RFA process?

    Thanks in advance,

    Jules

    If you don't want to again... You can use DA, which executes PL/SQL code, with the code as ' select yyyy in: PXX_ITEM "for example...

    To trigger this DA, you can anyway implemented by the DA, or you could set it as "CUSTOM" event and pressing this extraction, enforce a jscript that would un.event.trigger ("Custom_name") $;

    Who should do to avoid submission... If that's what you want.

  • Presentation: default value (possible error) based on the input argument at the pre-trial stage partially the value

    Orchestrator 5.5.1 using 1617127. Same results with different JDK of Oracle 1.7.0_55, 1.7.0_60, 1.7.0_65 and 1.8.0_11.

    Create a workflow with two entrances, two channel. Adjust the presentation by adding a new step and place the second entry in the new stage. Add a property to a default value for the second input parameter. Set default OGNL and specify the first parameter of default entry.

    Save and close. Run the workflow. Enter several characters for the first input parameter, and then click Next. The default value displayed for the second input parameter is usually the first character or a few initial characters of the first input parameter.

    Behavior seems to be related to how fast the first input parameter is typed. Typing slow gives only the first default character for the second input parameter. Fast typing usually results in several characters. Paste the value complete for the first parameter usually gives full value as the default value.

    I want to derive from the default values for the following input parameters from of the entries in a previous step. I use an action to create a more interesting default value that above, but I still need the total value for the first parameter to build my default.

    Is there something that I am missing, or is this a bug?

    Thank you

    Bob W.

    Hi Bob,

    This behavior is by design - default values are evaluated only once. What you want is achievable via another property called "data binding".

    I hope this helps.

  • Auto-fill form fields based on the input from the end user?

    I am currently trying to create a new form that has a combo box 'Locations' with various options.  What I want to do, is to have another car to text field to fill out other fields associated with this location (for example, address, contact information) to save on time and reduce the possibility for the end user input errors.

    What are my options to accomplish such a task?  A form of bonding in the fields with a database of MS maybe?

    Thanks in advance for all advice and assistance on this subject!

    I created a sample for you... are a look and let me know if this is the case for you.

    Paul

  • Conditional WHERE clause based on the input of parameter

    When the restriction of data based on a parameter I generally use the following syntax:

    AND p.start_date = NVL (p_start_date, p.start_date)

    so IF the parameter is null, THEN I join only on itself, OTHERWISE we filter on parameter.

    New requirement means greater than or equal to, so I tried this:

    AND THE CASE
    WHERE (p_start_date = NULL) THEN
    p.start_date = p.start_date
    ON THE OTHER
    p.start_date > = p_start_date
    END;

    but, at least, is syntactically incorrect.

    Any suggestions?

    Thank you!

    Do not use = with NULL - change IS null

  • Gets the number of records in the report based on the input of the user on the date and the number of days.

    Hello

    I need where there are quick dashboard that selects the date, second interval column consists of >, <, = and the third column is seen number (in days)

    for example, the user enters: 12 18, 2015, <, 9. here I report who should get the data (records) 9 days earlier from the date specified (from 12/10/2015 to 18/12/2015).

    Similarly for > =.

    How to get there. I'm unable to write the script and I use the column date in my report. Ask that you please advice how to solve this problem.

    Please find below the screen for reference.

    timediff.jpg

    Kind regards

    Chandra Khalil.

    Hello

    Not exactly why you're doing the report this way. If the user must select, basically, a period of dates, would not easier to have a column of data with a between the operator and the user would select 2 dates (upper and lower intervals)?

    In any case, it is possible to achieve what you want to do as a result of your approach. You could use when's CASE and have a more complex filter, but I think that it is better to have a few nested filters where you use the range operator to determine what date filter that you use (see image below)

    Some notes about my filter. First of all, I am making the assumption that the operator is "=", then the number of days specified must be ignored and you just return the data for the selected date. You will notice also that in my filters, I got a cast so far, but if you are using a column that is already a timestamp so it won't be necessary.

    This should achieve what you want.

    See you soon,.

    Pedro

Maybe you are looking for