How to get a multi line region to call a procedure on each row updated

Hi all

I want to offer the possibility of reparenting a certain number of rows in a table. Fix routine is a pl/sql package procedure.

What I want to do is see the kids lines in a region, and then select a new parent (if a child is in need of a new parent). Then, I want to deal with all the lines by calling the procedure where a change to the parent company did.

If there is a way to do this? (And if all goes well, it is clear that I am doing).

Basically: Multi line form, can I use a procedure on each line that I want to update when I select Apply Changes?

Kind regards
Steve

Published by: spilgrim on June 25, 2009 15:15

Steve,

You can do more things with tabular shapes when you understand more about how they work. The approach varies a bit depending on whether you leave Apex manage them or do it manually, but the concepts are the same.

When the page is sent to you get a series of paintings dealing with the page that discusses the section:
http://download.Oracle.com/docs/CD/E14373_01/apirefs.32/e13369/apex_app.htm#CHDICJDA

Denes Kubicek has a few good demos on this point, a here:
http://HTMLDB.Oracle.com/pls/OTN/f?p=31517:170

You need to browse looping with these berries calling your procedure every time. However, it is not really easy the first time you do it.

Kind regards
Dan

http://danielmcghan.us
http://sourceforge.NET/projects/tapigen
http://sourceforge.NET/projects/plrecur

You can reward this answer by marking as being useful or correct ;-)

Tags: Database

Similar Questions

  • How to get the IP address of the calling client to the web service built in Jdeveloper 11.1.1.7 application?

    I built an application of web service in Jdeveloper 11.1.1.7 to be used by other clients. Just the General steps as follows (Server web service Application is generated--> deployed on the server-> used by clients with the location of the WSDL file).

    Now, I met a requirement where I need to get the port number and IP address for the client.

    Questions :

    How to get the IP address of the calling client to the web service application generated in Jdeveloper?

    Commune technologies used to build web service applications is AXIS or CXF. What Jdeveloper technology use to built web service application?

    The common technologies used to build web service applications is AXIS or CXF. What Jdeveloper technology allows built web service application?

    It depends on the option selected during the creation of web services (if I remember correctly, there are several options, style J2EE 1.4 RPC style JavaEE JAX - WS 1.5,...)

    For example, to get the ip address of the compatible with jax - ws web service, you need to inject the context in your service class with:

    @Resource
    WebServiceContext wsContext;
    

    and then inside your method:

    MessageContext mc = wsContext.getMessageContext();
    HttpServletRequest req = (HttpServletRequest)mc.get(MessageContext.SERVLET_REQUEST);
    String ip = req.getRemoteAddr();
    

    Dario

  • How to get the responsible line line is SOA Composite for Workflow OIMR2

    Hello

    I have a requirement to get the 2nd line in SOA Composite. For example a user (Jon) creates an application available to users on the target system. First approver's manager Jon user line and first line manager this gathering for payload Task.payload.beneficiaryDetails.managerLogin. Now the problem is Second line manager which Jon line manager Manager.

    How can we get this second hierarchy in Composite SOA? Can someone help me? is there an API for it?


    Thank you

    Tamim Khan

    Hello

    I have this problem as below, without using the API. I do this ruin sql in the database of the IOM.

    1. Add the variable ManagerLogin2 in the RequestDetails.xsd file in source modefing.

    2. drag the expression to the node ManagerLogin2 in the entitlement operation.

    3 Add the following query using QUERY-DATABASE in the EXPRESSION.

    oraext:query - database (concat ("Select DISTINCT LINE_MANAGER2 from USR_LINE_MANAGER_VW where the USR_LOGIN =', concat ("'", bpws:getVariableData('inputVariable','payload','/ns3:process/ns4:BeneficiaryDetails/ns4:Login'),)"'"")), false (), false (),'jdbc:oracle:thin:DEV_OIM / @localhost Password: 1521:idmdevdb')

    4. to make the simple SQL I use a view of database USR_LINE_MANAGER_VW in the scheme of the IOM as below:

    CREATE OR REPLACE VIEW "DEV_OIM" OF THE FORCE. "" USR_LINE_MANAGER_VW ".

    ('USR_LOGIN', 'LINE_MANAGER1', 'USR_KEY', 'LINE_MANAGER2')

    AS

    SELECT U1. USR_KEY,

    U1. USR_LOGIN,

    V2M USR_LOGIN AS LINE_MANAGER1,

    U3. USR_LOGIN AS LINE_MANAGER2

    USR U1,

    USR U2,

    USR U3

    WHERE U1. USR_MANAGER_KEY = U2.usr_KEY

    AND U2. USR_MANAGER_KEY = U3.usr_KEY;

    5. Select insertMessingToData in the operation of the legal successor.

    6. Add the line below in ApprovalProcess.bpel

    xmlns:oraext =http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc

    7. now, we can use Task.payload.beneficiaryDetails.managerLogin2 approvalTaskRules.

  • How to get the second line in an indented bulleted list...

    Hello

    I understand how to get flea and list numbering, and I added numbers to a list that will be used (although the content will be replaced) on about a hundred pages of my cookbook.  Many numbered tickets are just a single line, but some entries are two or three lines, and in these cases, the text begins on the left directly under the number on it - I prefer the second and third lines of text to start directly under the text in the above numbered line.  In which case I'm not explain correctly, here is a small screenshot (it comes through hope):

    screenshot_1030.png

    Did someone mind telling me how to solve this problem?

    Thank you very much

    Malcolm

    Can you show a screenshot with the same panels open screen I've had, and the selected numbered text?

    Also, I should have mentioned that to move just down half of the arrow on the tab of the Panel, you must hold down the SHIFT key at the same time.

  • How to get the fixed lines per page? really Urgent!

    I am facing problem with the fixed lines per page. The footer (Subtotal) block moves upward, leaving space at the bottom when the number of items is lower.

    I have a two groups: one for the KIT and the KIT COMPONENTS. When I'm generation report for KIT only ITEMS I'm attaches footer using the

    < name of xsl: variable = "no_of_lines_per_page" select = "number (30)" / >
    <? for-each@section:Q1? >
    < xsl: variable xdofo:ctx = 'incontext' name = "inner_group" select=".//Q2"/ >
    <?-foreach: $inner_group? > <? If: (position () - 1) mod $no_of_lines_per_page = 0? >
    < name of xsl: variable = "first_rec" xdofo:ctx = 'incontext' select = 'position ()' / >

    but when I try to generate the report in combination with KIT COMPONENTS together, I am not able to set the number of lines per page. The footer is allocated to the next page. Now I Q2 and Q3 where Q2 makes Parent Kit and Q3 is child components Kit.

    How can I get it fixed lines per page for Q3 in regards to the Q2?

    I would appreciate if someone can answer me quickly.

    You have sent the updated RTF.

  • How can I add multi line selection in a drop-down list

    I just started with Acrobat DC. Everything is simple, until it isn't. I try to add items to my drop-down list. It's easy. I'm trying to make the choice of multi line. It is an inspection report and the choice will not fit on a single line. So after making the choice, can not read the answer. Thank you-Tim

    It is possible to do it, but only with a script and it's a kind of buggy. In other words, not really a good idea.

  • How to get the selected line in af:inputComboBoxListOfValues

    Hello

    Am on jdev 11.1.1.2.1.

    Uses af:inputComboBoxListOfValues component, I've done the component based on the id of 'service' and the display value is "name of the Department.

    In the value change listener I want to get the id of the selected service, but now I get only the name of the service. (using valueChangeEvent.getNewValue m:System.NET.SocketAddress.ToString (()))

    So is it possible to get the whole line and get the "department id" using that?

    Help, please.


    Thank you
    Hari

    Sorry for the confusion, necessary to check it out:
    This code should work:

        public void nameValueCangeListener(ValueChangeEvent valueChangeEvent) {
            FacesContext contxt = FacesContext.getCurrentInstance();
            valueChangeEvent.getComponent().processUpdates(contxt); // after this the new row is selected!
            BindingContext lBindingContext = BindingContext.getCurrent();
            BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry();
            JUCtrlListBinding list = (JUCtrlListBinding) lBindingContainer.get("YOUR_LIST_BINDING_NAME");
            Row lFromList = (Row)list.getCurrentRow();
            Object lAttribute = lFromList.getAttribute("YOUR_ATTRIBUTE_YUO_WANT_TO_GET");
        }
    

    Timo

  • How to position programmatically multi line of text in a string indicator

    Hi all

    I have problems of command positions of multiline text programmatically in an indicator of the chain. The goal is to have X and coordinated is who will control the multiline text programmatically positioned in an indicator of the chain. So, for example if I have a line of text multi as shown below in the first box, I'd like to be able to control programmatically if I can get a comparable result shown in the second box below. Sorry that I used a simple rectangle box representative indicator of string, but I am currently not to work if I was unable to copy the actual string indicator, however I think you guys got the idea.

    Thanks a lot for helping me.

    All you need to do is insert (or remove) the spaces at the beginning of the lines.

  • How to get the total line count COUNT (*) SELECT and put on a page?

    Hello

    I use JDeveloper 10.1.3.4. I need get the total number of rows in a table and display it on a page and the problem in doing so. At the sqlplus prompt the row count simply would be, for example:
       select count(*) from BILL;
    I wonder if having this simple number must be so complicated and if there is more simple, better ways. Here's how I do it and the problem encountered.

    1. the name of the page to display the number is summary.jspx. It has a grain of support that "summed" as the managed bean name in faces - config.xml, and the name of the bean class is "summary." The component output on the page is:
    <h:outputText value="#{summary.totalStudentsCount}"
                  binding="#{summary.outputText5}" id="outputText5"/>
    2. in summary the bean code is:
        private Number totalStudentsCount;
        public static int NUMBER = Types.NUMERIC;
    
        public void setTotalStudentsCount(Number totalStudentsCount) {
            this.totalStudentsCount = totalStudentsCount;
        }
    
        public Number getTotalStudentsCount() {
            ZBLCModuleImpl zblcam = getZBLCModuleImpl();
            LoggedInStudentImpl studentTable = (LoggedInStudentImpl)zblcam.getLoggedInStudent();
            String sql = "select count(lsap_uid) from BILL";
            studentTable.setQuery(sql);
            return (Number)CallStoredFunction(NUMBER, "get_total_students(?)", new Object[] {});
        }
    
        private ZBLCModuleImpl getZBLCModuleImpl() {
            FacesContext fc = FacesContext.getCurrentInstance();
            ValueBinding vb = fc.getApplication().createValueBinding("#{data}");
            BindingContext bc = (BindingContext)vb.getValue(fc);
            DCDataControl dc = bc.findDataControl("ZBLCModuleDataControl");
            ApplicationModule am = (ApplicationModule)dc.getDataProvider();
            return (ZBLCModuleImpl)am;        
        }
    
        protected Object CallStoredFunction(int sqlReturnType, String stmt, Object[] bindVars) {
            CallableStatement st = null;
            ZBLCModuleImpl zblcam = getZBLCModuleImpl();
            try {
                st = zblcam.getDBTransaction().createCallableStatement("begin ? := " + stmt + "; end", 0);
                st.registerOutParameter(1, sqlReturnType);
                if (bindVars != null) {
                    for (int z = 0; z < bindVars.length; z++) {
                        st.setObject(z + 2, bindVars[z]);
                    }
                }
                st.executeUpdate();
                return st.getObject(1);
            }
            catch (SQLException e) {
                throw new JboException(e);
            }
            finally {
                if (st != null) {
                    try {
                        st.close();
                    }
                    catch (SQLException e) {
                        throw new JboException(e);
                    }
                }
            }
        }
    The idea of calling a stored function usnig as a "helper" method is 25.5.3 in the Developer's guide, which is closest to you in my need. It's for the functions with the one IN argument; but in my case, the function is not any argument IN. That's why, when you call the helper method CallStoredFunction(), I gave an empty as the last argument and amazing array that caused the problem:
    return (Number)CallStoredFunction(NUMBER, "get_total_students(?)", new Object[] {});
    3. the registered function has been tested and works fine at the sqlplus prompt:
    create or replace function get_total_students
       return NUMBER
    AS
       v_student_count NUMBER;
    BEGIN
       select count(ldap_uid)
       into v_student_count
       from bill;
       return v_student_count;
    END;
    4. when the summary.jspx page is run, the browser is full of error messages, the first long line is here (I have split several online for ease of reading):
    javax.faces.el.EvaluationException: 
      javax.faces.el.EvaluationException: 
        Error getting property 'totalStudentsCount' from bean of type 
        zblc.viewcontroller.backing.staff.Summary: oracle.jbo.JboException: 
          JBO-29000: Unexpected exception caught: 
            java.sql.SQLException, msg=Missing IN or OUT parameter at index:: 2
    Thus,.
    (1) what is the problem? What is this parameter IN or OUT of {color: red} index: 2 {color} consult? It has to do with the empty array as the last argument in the call to the helper method?
    (2) this approach is an overdose, and are there more simple and better ways?

    Thank you very much for help!


    Newman

    Hello

    Is there a specific reason why you don't simply create read only object to display with some count (*) as OFCASES from MYTABLE and then just drag and drop the attribute ofcases in page?

    Kind regards

    Branislav

  • How to get back this line lack of orders? FILE EDIT VIEW HISTORY BOOKMARKS TOOLS HELP

    This line seems to be missing in the top of my screen of Firefox. I don't know what I hit to make it disappear, or what to do to get him back, but I want to. The F11 key disobeys.

    This has happened

    Each time Firefox opened

    Press the Alt key to display the Menu bar, then open view > toolbars and select menu bar, so it has a check mark.

  • question how to get/use the line separator

    I'm trying to get the line of the system separator and use it in a text that is getting added to a TextField.

    System.getProperty ("line.separator") returns null.

    What is the correct way to do it?

    Here is a code example:

    String newLine = System.getProperty("line.separator");
    String text =   "First line of text." + newLine +
            "Secon line of text." + newLine +
            "Last line of some more text.";
    
    TextField t  = new TextField(TextField.READONLY);
    t.setText(text);
    

    I tried this with the Simulator and on a Pearl 8100.

    I use JDE plugin for Eclipse 1.0.0.50

    BlackBerry component Pack 4.5.0.14.

    2.9.0.52 - Blackberry 8100 smartphone Simulator

    The device software is 4.5.0.110

    Thank you

    If I understand the question, what right do something like "\n"?

  • How to get the current line or the entire paragraph?

    Hello.

    I am facing the following problem:

    Suppose I have the following in FrameMaker:

    It is a sentence. And (end of single line)

    There also this sentence. (end of paragraph)

    It is a sentence. And (back)

    There also this sentence. (end of paragraph)

    It is a sentence. And (end of single line)

    There also this sentence. (return)

    But there is also this sentence (end of paragraph)

    It is a sentence. And (end of single line)

    There also this sentence. (return)

    There also this sentence. (return)

    But there is also this sentence (end of paragraph)

    What I want is this:

    Download the text of the entire paragraph where the insertion point of the cursor is.

    However, when exist from the ends of the hard line I want to change their behavior.

    This is the behavior to the foregoing:

    For the first example of the paragraph if the cursor is either first or second line I want to get the whole paragraph.

    Paragraph if the cursor is in the first line, I want only the first line. And if it's in the second row, I want only the second line.

    The third paragraph if the cursor in the first or second line, I want the first and second lines must be retrieved in plain text. Also, if the cursor is in the third line I want only to the third line.

    For the fourth paragraph, it functions as the third paragraph. If the cursor is in the third row I get only this one.

    Could you please provide of the FDK in C++ to start with code?

    It's a puzzle.

    As you are in the forum script, I am related to this here. You must understand the FDK C++ code yourself.

    There's not much to tease my brain with it. You get the point where the cursor is and pick up the pieces of text more line via the GetText() method, using a bit field which includes the FTI_String and the FTI_LineEnd. Each end of the line has a modifier that tells you if it's a hard or a return. You also get the offset in the paragraph of the current position of the cursor, and then create the necessary strings from the array of items of text returned by the GetText method.

    If you want the full execution of the code, ask someone to program it for you and be prepared to pay for the work.

    Good luck

  • How to get the selected line of the selecetOneChoise

    Hello

    I use jdeveloper 11.1.2.3.0

    I have a simple vision with 'id' and 'name' attributes
    I dragged the view as selecetOneChoise and has chosen to show only the name.
    When the value of the selecetOneChoise is changed, I need to use the 'id' of the new value selected as a setting for another opinion.
    I tried to get it through the iterator, like this:
     
          public void onValueChangeListener(ValueChangeEvent valueChangeEvent) {
            DCIteratorBinding it = getBindings().findIteratorBinding("firstIterator");
            Row row = it.getCurrentRow();
            
            DCIteratorBinding it2 = getBindings().findIteratorBinding("secondIterator");
            ViewObject vo = it2.getViewObject();
            vo.setNamedWhereClauseParam("p_id", row.getAttribute("id").toString());
            vo.executeQuery();
           }
    but I get the old value instead of the new value.

    no idea why this is happening?
    or y at - it another way to get the 'id' of the selected value?
    It is urgent, thank you very much!

    Use this solution in your method first, and then write the code...

    code................

    for example :-{} public void onValueChangeListener (ValueChangeEvent valueChangeEvent)
    FacesContext will involve = FacesContext.getCurrentInstance ();
    valueChangeEvent.getComponent () .processUpdates (contxt);

    DCIteratorBinding it = getBindings () .findIteratorBinding ("firstIterator");
    Line = it.getCurrentRow ();

    It2 DCIteratorBinding is getBindings () .findIteratorBinding ("secondIterator");.
    ViewObject vo = it2.getViewObject ();
    vo.setNamedWhereClauseParam ("p_id", row.getAttribute("id").toString ());
    vo.executeQuery ();
    }

    Popz

    Published by: Popz on 2 April 2013 05:34

  • Area hideShowHeader: how to get the name of region on Hide/Show Event

    Hello

    I would like to retrieve the name of the region (hideShowHeader) when I click on the hide/show icon. I know how to catch the event but some OAWebBeanConstants I always check null... any idea?

    Thank you very much, Pier Paolo.

    Hello

    Try to print below in LIC...

    System.out.println ("name of the event:" + pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM));
    System.out.println ("the Source of the event:" + pageContext.getParameter (OAWebBeanConstants.SOURCE_PARAM));
    System.out.println ("value:" + pageContext.getParameter (OAWebBeanConstants.VALUE_PARAM));

    Thank you
    Mukesh Uchaniya

  • How to get rid of lines of free transform

    I reworked an object by using the free transform tool. But now I have unwanted pencil - like lines around the part of the subject, I can't get rid of them. Anyway, I tried out on a background layer lines, then a layer via copy and clone tool doesn, t cloning work. I have reset tools. When I taste with alt-click (Mac) and then go make the clone, the miniature passes of the photo thumbnail to where I can see a transparent layer or checkerboard below as I'm not supposed to be able to do this function. So, I can't get rid of these free transform the lines and I have a problem of clone stamp.

    Save your PSD if you want to keep the layers for future editing. Then click on the menu on the top layer > Flatten Image

    You should now be able to clone.

    Register a new name or JPEG etc.

Maybe you are looking for

  • thurderbird freezes when lauched using windows 8.1

    I use the last verision of thurderbird on a computer laptop windows 8.1. I run thurderbird and then it freezes?

  • cannot be quantified in 10.2.2 piano roll

    Hello do not know what is happening, I need a validation test, I can't quantify midi in the piano roll.  screenshot below that I click on the next button Q 1/16 Note slide but the notes do not change.  also does not work if I select Quantize notes in

  • Compaq 8710p: base system device problem

    Hello. I upgraded to winows 10 and I have 2 questions of base sytem driver in Device Manager. Here are the codes for the identification of material. PCI VEN_1180 & DEV_0843 & SUBSYS_30C3103C & REV_10PCI VEN_1180 & DEV_0843 & SUBSYS_30C3103CPCI VEN_11

  • Cannot add music to Windows DVD Maker

    I don't know how to format the music in a different file... This is what itunes says I do... I have to add 2 songs for Windows DVD maker software... home dvd with family photos.Help

  • No updates since July 8 (2016)

    Before July 8, I could expect an update of Windows at least once a week, but I was absent and did not use the laptop for about 10 days and since then, so I don't have a single update. No settings have been changed. I am running Windows 7.