How to give an input value to operate what split of DOD proc table?

Hi all

Here's the function (function str2tbl)
used to split the string table (for example: "1,2,3,4") in a single string.
This function uses the array of strings (which should be split) as an input (like 'p_str IN varchar2') parameter.
I would like to divide the array of strings that I'm generating by a procedure called 'proc1 '.
In this procedure, the array of result of channels are stroed in a parameter called "my_str" (like my_str: = "1,2,3,4").
How could I use the values in this function?
I could mention as "proc1.my_str" as an input to this function?

Another question, once my function returns the values as
Column1
-----------
1
2
3
4

How do I pass this value to .NET?

create or replace  function str2tbl
 ( 
 p_str in varchar2,   
 p_delim in varchar2 default ','
 )
 return str2tblType  
 as
     l_str long default p_str || p_delim;
     l_n   number;
     l_data str2tblType := str2tblType();
     begin
          loop
          l_n := instr( l_str, p_delim );
          exit when (nvl(l_n,0) = 0);
          l_data.extend;
          l_data(l_data.count) := ltrim(rtrim(substr(l_str,1,l_n-1)));
          l_str := substr( l_str, l_n+1 );
          end loop;
          return l_data;
 end;
Thanks in advance

Published by: user10641405 on June 9, 2009 08:46

Could not get into too much detail. Have no database here.

loop of the table referring to the procedure.

Declare
type str is table of varchar2(4000) index by binary_integer;
my_str str;
arr_str is table of str2tblType%type index by binary_integer;
begin
my_str := proc_used();
for i in my_str.first..my_str.last loop
arr_str(i):=str2tbl(my_str);
end loop;
exception block here ......
end;

OK let me explain.

you have this array of strings coming out of the procedure that will my_str.

Then see the for loop. We are looping through this channel and passing the values to the function.

the data type arr_str is array of arrays.
We put the berries coming out of the service in arr_str.

so.
arr_str (1) will have a table that is the result of function set (my_str (1));
arr_str (2) will have a table that is the result of function set (my_str (2));

If you need to pass these berries to .NET you loop through arr_str as we did for my_string and pass an array at a time.

Kind regards

G.

Tags: Database

Similar Questions

  • How to accept multiple input values using plsql

    I am in a process of design of a small tool. The tool must accept several input values. I know that this can be done using sql.
    But nothing, I can enter multiple values using the loop in the loop would be carried out according to the number of times a user wants to enter the values.

    It is also very good, if I can accept all the values at once and some how to analyze!
    SQL> set serverout on
    SQL> accept strings prompt 'input strings (comma separated):'
    input strings (comma separated):abcd,xyz,massimo,this,is,a,string
    SQL> declare
      2  s varchar2(32000):='&strings';
      3  begin
      4    for r in (select regexp_substr(s,'[^,]+',1,level) str
      5                from dual
      6              connect by level <= length(s)-length(replace(s,',',''))+1) loop
      7        dbms_output.put_line(r.str);
      8    end loop;
      9  end;
     10  /
    old   2: s varchar2(32000):='&strings';
    new   2: s varchar2(32000):='abcd,xyz,massimo,this,is,a,string';
    abcd
    xyz
    massimo
    this
    is
    a
    string
    
    PL/SQL procedure successfully completed.
    

    Max
    http://oracleitalia.WordPress.com

  • How to give the default value for an attribute in the OPA

    Hello

    I need a default attribute boolean to true at the beginning of the session of the OPA. I need to use it to control the visibility on some pages.

    Can someone please throw light on how to best implement this?

    Thank you.

    You have a few options (as always with the OPA!)

    If you use determinations of Web and that you have defined your own screens, then the easiest way is to define a default in the screen - you can either do a default static or dynamic based on an attribute is proved by a default rule.

    If you want a value by default when you debug without using screens, so you're better off just writing a rule to set the default value. It's kinda interesting with a Boolean value as you do not need to tell the value of the attribute OPA - it is inherent in the name of the attribute. For example, if you had a conclusion "control is visible" (with no = "true" or whatever it is) it would be set to 'control is visible' to 'true '. Set it to false, you simply need to type "control is not visible" - which actually (thanks to OPA assuming a 'subsidiary conclusion') defines "control is visible" to "false".

    You can then replace it in the debugger of via a screen issue (if you force the question).

    I don't know how it would work with server of determinations if you had a default value proved by a rule, but has also provided a value in the data - maybe someone else can clarify if the rule takes precedence over the input data? My usual approach is to try locally in OPM and see (using something like SOAPUI to integrate with the determinations OPA server web service). If that's the best way to implement this course (or indeed if using a default value of visibility control screen is best practice) is difficult for me to say - I am a relative beginner!

    Hope that helps a little...

  • How to keep the input value after click on the back button being the ADF

    Hi expert,

    I have a case currently the adf:

    1. I put 'value' in the Label 1

    2. I click on the next button

    3. I click on the "back" button

    4. the 'value' went from 1 label.

    How to keep the 'value' of 1 tag after I click back, do you have any suggestions?

    Kind regards

    Ricky

    Hello

    Where you store the value? Try to store it in a variable pageFlowScope or a property of the pageFlowScope bean.

    value = "#{pageFlowScope.testVar} '"

    value = "#{pageFlowScope.testBean.testVar} '"

    Kind regards

    Ruben.

  • How to capture the input value of text by the user in a popup page search LOV?

    I need to capture the user entry in the LOV search page. I added a controller in the LOV region, and the speed is also work, but I have to hold the entry to search for in the contextual search page. Also do you know what the text entry id "keyword"? then I can try store the value in LICS of the Commander.

    Hello

    Why do you need to write code in LICS?

    You have the user type field in your query of Lov VO (then only you had created search are they allowed in Lov research/item of type user), I proposed is just changes to sql to check if the user type is vendor and caters fields null., something like below for each address field:

    , DECODE (user_type, "PROVIDER", NULL, ) address_field1

    You should always share full details, including related sql code and xml on your question to avoid all these discussions back

    Kind regards

    Sandeep M.

  • Satellite P300-156 - and the button Return give the same values

    Hello

    I have a satellite P300-156, and it has a numeric keypad.
    I have problems because the Enter key and the Return key give the same values. I believe that it is incorrect.
    Can anyone help.

    Key on the numeric keypad should give an input it does.
    the Enter key on the main keyboard should give a carriage return value, but it gives an input value.

    Usually this does not cause a problem, but with software like photo shop that makes the distinction between a carriage return and a hard fall it does not work.

    Can someone help me please

    Thank you

    Hello

    To my eyes the entry and return keys are the same keys that provides the same functionality.
    I really put t know why you believe that there is something not right

    By the way; Check if you are using the latest version of the BIOS!

  • set the input value using a workflow setting?

    Jdev 11... 2
    I have a taskflow browse master / detail that called the edict taskflow passing parameters to a router that will either modify it or create method for the detail record (change/create master is in a different position). I can successfully modify/create the main form and I can change/create the detailed form, but I didn't understand how to set the input value for the agency_Id (of the master) in detail. I control data binding to create my detail record 'create', and I have a task flow parameter that has the agency_id I want as the default value in the detail. I don't know where to put the input value. I tried to add another method to the method call that has her 'create' binding for retail, but it seems that I can have only a single method. Do I need another method call to set it? Or should I do something programmatically? (I'm Javaless, so hopefully I can do declaratively).

    Thanks much for any help. If I can figure out how to make this piece, I'll have the beginning of an application that does something useful.

    LB

    Hello

    There is a new Createmethos called 'create with Params' that you can use for this.

    http://www.Oracle.com/technology/products/jdev/tips/fnimphius/createWithParameters/createWithParameters.html

    Simply plug the parameter to the variable of pageFlowScope containing the input parameter

    Frank

  • How can I display the value input in the next page

    Hi all
    Hope you will be fine.
    I have a question.would u please give a solution.
    My scenario is:
    in datainputPG, I'll take some entries of user.and when I press the next button, then will come my reviewPG.
    and in my reviewPG I'll just show the input values to the page datainputPG.and, it will be unmodifiable.
    How can I do that.
    u'd like developed.
    Thanks again.
    Dina

    Hello

    oracle.apps.pa.util.webui.SessionUtils

    -Download this file from the server and put it in myclasses.

    Concerning
    Meher Irk

  • How to make the default value in the form input field disappear at the click of the user

    I have a HTML input with a default tag.

    How can I get this value disappear when the user starts to type?

    A form is here:

    http://www.kardsbykaren.us/10pack.php

    Happy holidays and thank you.

    Have a look here http://www.matiasmancini.com.ar/ajax-jquery-validation-html5-form.html

    GRAMPS

  • copy the input values in the text the text of input 2 input 1 using the value change listener

    Hello

    I have two text entry:

    input 1 & 2 text text entry.

    I need to copy in the text of entry 1 input values to enter text 2.

    How to apply this using value change listener?

    I did the following steps:

    (1) I chose 1 text entry and chose listener Value Change-> edit.

    Type a new name for bean & class.

    Should what the name of the method I add?

    Any help please?

    Hello

    Just follow the steps below.

    1 create a jspx page and drag drop two intput text on the page.

    2 linking these two text of entry to bean managed on the basis and the scope of bean on bean with property name inputVal1, inputVal2 and backing

    3. Select the input text 1, go to valueChangeListener property and use the existing bean and give some name of method and the copy of the code in the method below

    inputVal2.setValue (inputVal1.getValue () m:System.NET.SocketAddress.ToString ());

    4. set the autoSubmit = true for the 1st input text. Set partialTrigger = it1 (it1 is id of the 1st input text).

    Now run the page

    Thank you

    Nitesh

  • How to get the updated values of the loops while they are running

    Hello

    I am trouble with a very basic problem, how to access the updated values of the "loop FOR" during operation?  Basically, the VI I is currently working on two sub vis calls each sub VI has a loop for, and the two screws may or may not work for the same number of iterations. My goal is to read the values in each terminal within the loop of two sub VIs, in primary VI. I tried to do this using Global Variables, but in main VI it will display only the last iteration of the two value sub live. Could someone please tell me whrere I go wrong? Is there any other/better way to do this.

    I appreciate any input on this issue.  

    Pass a reference of the main VI control to the Sub screws.  See attached example.

  • a matrix subtracted by another gives a scalar value?

    Hello

    I implement an algorithm, method of recursive least-squares. Something was wrong with the matrix subtraction. This node below sets the context help gives a scalar value. It should be a matrix, anyway.

    How can I solve this problem?

    Thanks in advance.

    Chuan

    OK, so somehow messes up code matrix - good discovery/observation Feedback node.  Thank you for sending the 'example '.  Also, thanks for providing the context for this code.

    Bob Schor

  • How to set the default value for the digital control on front panel?

    How to set a default value for a numeric control of LabVIEW 2009 Front Panel? I have several input values that are actually configuration settings I want to settle with the default values of zero. I want them to be the values displayed when the façade first appears until the code is executed.

    I really want to use the Minimum and Maximum limits by default for this because I still want to be able to define acceptable limits for values.

    I would not be able to specify a default value of zero for these entries?

    Enter the desired value, then "right click...... of default data of value to operations. Save the VI.

  • How can I change the value of a control on front panel?

    On the front panel, I'm doing a complex control that consists of a Slider control and control of the digital inputs. Both controls display the same information and either may be used for entry. When changing value, I want the other control to display the same value.

    How can I change the value of a control on front flap when another control changes the value? I know how to use a structure of the event to detect value has changed, but I do not know how to impose control on front panel to change its value in the block diagram.

    Why do you not use a digital display on the slider, and no code is required:

    EDIT: Yes, he said. ***

  • How can I set default values to set the Mode in the config of the AO?

    Hi, how can I set default values to allocate mode in the config of the AO. To be precise, in the attached vi, I need to set the Mode allocate in the AO Config to ' use FIFO memory (6) ' if the value inside the structure of my case is false and 'no change (0)' if the value inside the strusture case is true.

    Create two constants for Mode allocate input (right click > create > constant). A place in the real case of the structure of the case and place it in the case of false. Their son in the same tunnel (border of the structure of the case), then the tunnel of wire to the pole to allocate the AO Config Mode. I do not have traditional DAQ installed, but who should do it.

Maybe you are looking for

  • That the face is lit mode bedside table may be shortened? He remains too bright for too long

    That the face is lit mode bedside table may be shortened? He remains too bright for too long.

  • Touchpad not responding

    Original title: My touchpad has an amber light on it and it won't work... I can only use a mouse. How can this be repaired? Sometimes just randomly. My touchpad has an amber light on it and it won't work... I can only use a mouse. How can this be rep

  • During the installation of the fonts - install new font option is missing.

    Original title: cannot INSTALL a NEW FONT I need to install a rupee font on my computer with windows xp professional with service pack 2, when I go to START > CONTROL PANNEL > folder FONTS, and click FILE > NEW I can't see 'INSTALL NEW FONT' option,

  • Windows validation failed

    Diagnostic report (1.9.0027.0):-----------------------------------------Validation of Windows data-->Validation status: genuineValidation code: 0Validation caching Code online: n/a, hr = 0xc004f012Windows product key: *-* - 49W62 - WVKVC-GF8B9Windows

  • Disable Win10 update in Windows Update

    The State of online instructions that 'hiding' a update in the Windows Update list prevents to be automatically selected to be included in the updates then. This doesn't seem to work for the upgrade to win 10. I saw win 10 and DO WANT NOT on my perso