ADF: commandButton does not reach the target method

Hi all

This is my first post here, I hope you can help me, I'm new in the ADF, and now I am facing a problem, let me explain:

11.1.1.55.36 ADF business components
jDeveloper 11g Release 1 11.1.1.2.0

In the application, I have a button that changes the attribute of "render" of a showDetailItem, this subject conatains some commandButons but when I click on these buttons the listener method is never triggered. I don't know what happened in this situation. Any idea is always welcome.

Thanks in advance,
Sergio Valdez

Code:
commandButton activation online: 58
showDetailItem on line rendering: 125
problem commandButtons to lines: 132 & 139
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
          xmlns:c="http://java.sun.com/jsp/jstl/core">
  <c:set var="viewcontrollerBundle"
         value="#{adfBundle['com.axtel.reporteador.MessageBundle']}"/>
  <jsp:directive.page contentType="text/html;charset=UTF-8"/>
  <f:view>
    <af:document id="d1">
      <af:form id="f1">
        <af:panelStretchLayout topHeight="50px" id="psl1" bottomHeight="26px">
          <f:facet name="top">
            <af:panelGroupLayout layout="scroll"
                                 xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                                 id="pgl2">
              <af:inputText label="#{viewcontrollerBundle.NOMBRE_DE_ENCUESTA}" id="surveyName"
                            value="#{SurveyMB.surveyName}"/>
              <af:panelGroupLayout id="pgl3">
                <af:commandButton text="#{viewcontrollerBundle.CREATE_SURVEY}" id="surveyCreate"
                                  actionListener="#{SurveyMB.createSurveyListener}"/>
                <af:commandButton text="#{viewcontrollerBundle.RESET_SURVEY}" id="surveyCancel"
                                  actionListener="#{SurveyMB.cancelSurveyListener}"/>
                <af:commandButton text="#{viewcontrollerBundle.SURVEY_ADD_QUESTION}"
                                  id="addQuestion"
                                  actionListener="#{SurveyMB.addQuestionListener}"
                                  rendered="#{SurveyMB.surveyAlreadyCreated}"
                                  disabled="#{SurveyMB.questionAddEnable}"/>
              </af:panelGroupLayout>
            </af:panelGroupLayout>
          </f:facet>
          <f:facet name="center">
            <!-- id="af_one_column_header_stretched"  -->
            <af:panelAccordion id="questionAccordionPanel" discloseNone="true"
                               partialTriggers="addQuestion">
              <af:forEach items="#{SurveyMB.survey.questions}" var="question"
                          varStatus="i">
                <af:showDetailItem text="#{question.question}"
                                   id="questionDetailItem"
                                   disclosed="#{( SurveyMB.questionEditEnable) and (i.index eq SurveyMB.questionToBeEdited)}"
                                   disabled="#{(( SurveyMB.questionEditEnable) &amp;&amp; ( SurveyMB.questionToBeEdited ne i.index)) or SurveyMB.questionAddEnable}">
                  <f:facet name="toolbar">
                    <af:group id="g1">
                      <af:outputText value="outputText1" id="ot1"/>
                      <af:commandButton text="#{viewcontrollerBundle.SURVEY_ANSWER_DELETE}"
                                        id="questionDelete"
                                        actionListener="#{SurveyMB.deleteQuestionListener}">
                        <af:clientAttribute name="questionIndex"
                                            value="#{i.index}"/>
                      </af:commandButton>
                      <af:commandButton text="#{viewcontrollerBundle.SURVEY_QUESTION_EDIT}"
                                        id="questionEdit"
                                        actionListener="#{SurveyMB.editQuestionListener}">
                        <af:clientAttribute name="questionIndex"
                                            value="#{i.index}"/>
                      </af:commandButton>
                      <af:commandButton text="#{viewcontrollerBundle.SURVEY_ADD_ANSWER}"
                                        id="questionAddAnswer"
                                        actionListener="#{SurveyMB.addAnswerListener}">
                        <af:clientAttribute name="questionIndex"
                                            value="#{i.index}"/>
                      </af:commandButton>
                    </af:group>
                  </f:facet>
                  <af:panelGroupLayout id="pgl5">
                    <af:panelGroupLayout id="questionEditPanel"
                                         rendered="#{SurveyMB.questionEditEnable}">
                      <af:selectOneChoice label="#{viewcontrollerBundle.SURVEY_QUESTION_TYPE}"
                                          id="questionTypeToEdit">
                        <af:selectItem label="Seleccion Multiple"
                                       value="checkbox" id="selectItem1"/>
                        <af:selectItem label="Seleccion simple"
                                       value="radiobutton" id="selectItem2"/>
                      </af:selectOneChoice>
                      <af:inputText label="#{viewcontrollerBundle.SURVEY_QUESTION}"
                                    id="questionToEdit" rows="2"/>
                      <af:commandButton text="#{viewcontrollerBundle.ADD}"
                                        id="questionEditOk"
                                        actionListener="#{SurveyMB.addQuestionOkListener}"/>
                      <af:commandButton text="#{viewcontrollerBundle.CANCEL}"
                                        id="questionEditCancel"
                                        actionListener="#{SurveyMB.addQuestionCancelListener}"/>
                    </af:panelGroupLayout>
                    <af:panelHeader text="Respuesta 1" id="answerHeader"
                                    size="3">
                      <f:facet name="menuBar">
                        <af:commandLink text="#{viewcontrollerBundle.EDITAR}"
                                        id="answerEdit"
                                        actionListener="#{SurveyMB.deleteAnswerListener}"
                                        disabled="#{requestScope.SurveyMB.editAnswerLinkEnable}"/>
                      </f:facet>
                      <f:facet name="toolbar">
                        <af:commandLink text="#{viewcontrollerBundle.ELIMINAR}"
                                        id="answerDelete"
                                        actionListener="#{SurveyMB.editAnswerListener}"
                                        disabled="#{requestScope.SurveyMB.deleteAnswerLinkEnable}"/>
                      </f:facet>
                      <af:panelGroupLayout id="answerEditPanel"
                                           rendered="#{SurveyMB.answerEditEnable}">
                        <af:inputText label="Label 3" id="answerToEdit"/>
                        <af:commandButton text="#{viewcontrollerBundle.OK}"
                                          id="answerEditOk"/>
                        <af:commandButton text="#{viewcontrollerBundle.CANCEL}"
                                          id="answerEditCancel"/>
                      </af:panelGroupLayout>
                    </af:panelHeader>
                    <af:panelHeader text="#{viewcontrollerBundle.SURVEY_ADD_ANSWER}"
                                    id="panelHeader2" size="3"
                                    rendered="#{SurveyMB.answerAddEnable}">
                      <f:facet name="menuBar"/>
                      <af:panelGroupLayout id="panelGroupLayout1">
                        <af:inputText label="Label 3" id="answerToAdd"/>
                        <af:commandButton text="#{viewcontrollerBundle.OK}"
                                          id="answerAddOk"
                                          actionListener="#{SurveyMB.addAnswerOkListener}"/>
                        <af:commandButton text="#{viewcontrollerBundle.CANCEL}"
                                          id="answerAddEdit"
                                          actionListener="#{SurveyMB.addAnswerCancelListener}"/>
                      </af:panelGroupLayout>
                    </af:panelHeader>
                  </af:panelGroupLayout>
                </af:showDetailItem>
              </af:forEach>
              <af:showDetailItem text="#{viewcontrollerBundle.SURVEY_ADD_QUESTION}"
                                 id="showDetailItem1"
                                 disclosed="true"
                                 rendered="#{SurveyMB.questionAddEnable}"
                                 partialTriggers="addQuestion">
                <f:facet name="toolbar">
                  <af:group id="group1">
                    <af:commandButton text="#{viewcontrollerBundle.OK}"
                                      id="questionAddOk"
                                      actionListener="#{SurveyMB.addQuestionOkListener}"
                                      immediate="true"
                                      binding="#{SurveyMB.addQuestionOkBinding}"
                                      action="#{SurveyMB.questionAddOkAction}"
                                      partialTriggers="addQuestion"/>
                    <af:commandButton text="#{viewcontrollerBundle.CANCEL}"
                                      id="questionAddCancel"
                                      actionListener="#{SurveyMB.addQuestionCancelListener}"
                                      partialTriggers="addQuestion"/>
                  </af:group>
                </f:facet>
                <af:panelGroupLayout id="panelGroupLayout2">
                  <af:panelGroupLayout id="pgl8"
                                       partialTriggers="addQuestion">
                    <af:selectOneChoice label="#{viewcontrollerBundle.SURVEY_QUESTION_TYPE}"
                                        id="questionTypeToAdd">
                      <af:selectItem label="Seleccion Multiple" value="checkbox"
                                     id="si2"/>
                      <af:selectItem label="Seleccion simple"
                                     value="radiobutton" id="si1"/>
                    </af:selectOneChoice>
                    <af:inputText label="#{viewcontrollerBundle.SURVEY_QUESTION}"
                                  id="questionToAdd" rows="2"/>
                  </af:panelGroupLayout>
                </af:panelGroupLayout>
              </af:showDetailItem>
            </af:panelAccordion>
          </f:facet>
          <f:facet name="bottom">
            <af:panelGroupLayout id="pgl1">
              <af:commandButton text="#{viewcontrollerBundle.SURVEY_SAVE}" id="surveySave"
                                action="#{SurveyMB.surveySaveAction}"/>
              <af:commandButton text="#{viewcontrollerBundle.CANCEL}"
                                id="cancelSurvey"
                                action="#{SurveyMB.cancelSurveyAction}"/>
            </af:panelGroupLayout>
          </f:facet>
        </af:panelStretchLayout>
      </af:form>
    </af:document>
  </f:view>
  <!--oracle-jdev-comment:preferred-managed-bean-name:SurveyMB-->
</jsp:root>
Published by: user2931026 on Apr / 10/2010 01:13

Published by: user2931026 on Apr / 10/2010 09:01

Sergio,
good work, now I can read the code :-)
Strange, nothing appears immediately.
The buttons in the showDetailItem are the only ones who does not?
One thing you can try is to use the visible property rather than the rendered attribute. The user interface looks the same, but the properties behave different (rendering = false means components are not on the page, visible = false means components are on the page but do not appear to the user).

Timo

Tags: Java

Similar Questions

  • Portege R100 video cable does not reach the replacement LCD screen

    Hi guys, I have replaced the LCD screen of my Toshiba R100, than they had in it was defective. It seemed that it was a replacement at some point however. In any case, I received my new screen, but does not reach the video cable to the top of the circuit of LCD screens. How am I meant to connect it to the screen? Is there an extension cable or what? The screen they had in there previously looked like they were welded copper wires about 8 digitizer.

    Here are 2 pictures of what I mean

    Hello

    Where did you buy this screen?
    Are you sure that it is perfectly compatible with your laptop protected R100 to 100%?

    Looks like it s not fully compatible
    However, if an extra cable is necessary you can get it from the Toshiba ASP in your country.

    In your case, I recommend you contact the guy and ask for compatible cable!

    Welcome them

  • How the LED lights up when a threshold is reached, then turns off only when the value does not reach the threshold for a while?

    Hi, I want to write a program that can turn on the LED when a range of value, this is the threshold and only when the value does not reach the threshold for a period of time, say 5 seconds, then the LED will turn off, otherwise it will remain. How can I achieve this in labview? Can someone help me? Really thanks!

    I assume that you use a while loop to keep the updated value.

    Add a record to offset to your looping it initialize with a U32 (time in ms)

    Add the registry to offset to your loop that keeps the previous value of your bool

    When your reaches the threshold value => the light and set the current time in your shift register.

    In the next iteration of the loop weather check value is still above threshold

    => Y-online previous set to true?

    => Y-online the next iteration

    -Online N => turn switch on and set the current time in your shift register.

    -Online N => subtract the time current less time shift record-online more then 5 seconds?

    => Is => keep turning on

    -Online N => turn given

  • is not abstract and does not substitute the abstract method callLogRemoved (net.rim.blackberry.api.phone.phonelogs.CallLog)

    Can someone tell me why im getting the following error

    is not abstract and does not substitute the abstract method callLogRemoved (net.rim.blackberry.api.phone.phonelogs.CallLog)

    callLogRemoved is set, I tried to remove it and it also gives me the same error

    Here is my code

    Thanks in advance for answer

    Net.rim.blackberry.api.phone import. *;
    Net.rim.blackberry.api.phone.phonelogs import. *;
    //*******************************************************************************//
    public class mylistener extends Thread implements {PhoneLogListener}

    {} public void callLogRemoved (int arg0)
    System.out.println("/***/"); "
    System.out.println ("CallLog removed');
    System.out.println("/***/"); "
    }
    {} public void callLogAdded (int arg0)
    System.out.println("/***/"); "
    System.out.println ("CallLog added");
    System.out.println("/***/"); "
    }
    ' public void callLogUpdated (int arg0, int arg1) {}
    System.out.println("/***/"); "
    System.out.println ("CallLog update");
    System.out.println("/***/"); "
    }
    {} public void reset()
    System.out.println("/***/"); "
    System.out.println ("CallLog Reset");
    System.out.println("/***/"); "
    }

    }

    Javadoc documentation:

    public void callLogRemoved (CallLog cl)

    but you have coded:

    public void callLogRemoved (int arg0)

    An int is not a CallLog, so these signatures do not match.

  • Error "this Setup does not support the target platform.

    I need solve the problem 'this Setup does not support the target platform' Please help me :'(

    See these two sites:

    http://forums.Comodo.com/install-Setup-configuration-help-CIS/this-installation-does-not-support-the-target-platform-t59001.0.html

    http://forums.Comodo.com/install-Setup-configuration-help-CIS/firewall-wont-install-this-installation-does-not-support-the-target-platform-t61629.0.html;msg434058

    Comodo is apparently the problem.

  • Why my image does not reach the edges of the printed page, but seems in good condition in pdf?

    Why my image does not reach the edges of the printed page, but seems in good condition in pdf?

    Most desktop printers cannot image all the way at the edge of the page.

  • scrollbar thumb skin does not reach the bottom of the track

    I have a Flex 4.1 application when there is a vertical list, related to a table. As long as the list scroll bar is not skinned, everything is ok, the thumb oscillates up and down the track. But after the addition of a skin, it fails. The thumb never goes all the way down the track when scrolling, but blocks somewhere between the two. For the very long list of items, it even stops at halfway.

    Despite this behavior, the list is actually scrolls to the last item - so the problem is not with some elements at the bottom of the list being inaccessible, but only on the thumb not reaching the bottom of the track, which looks as if the list was stuck at halfway. The skin is very simple and it is pretty much set a picture for the track and the thumb. Is there a method to make sure the thumb always goes to the bottom of the track, the size of the list without worrying?

    Try fixedThumbSize = "true" on the VScrollBar. In addition, it can help to add constraints to the fxg. For example:

    
    
        
            
            
            
            
        
        
    
    

    I would like to do the same for the track to make sure that the dimensions of each component is correct. The Scrollbar skin itself seems correct.

    -Kevin

  • Can not reach the class methods

    Hi, I am a newbee to Flex and one I have this problem:

    I have the application MXML and actionscript class file User.as. Problem is that I can't reach the application MXML class method. I'm using Flex 3.0 beta 1 release.

    User.As: (stored in users/Users.as)

    users of package
    {
    public class User
    {
    private var connection: String;
    private var pass: String;
    private var email: String;
    private var firstname:String;
    private var lastname:String;

    public void User() {}
    This.Login = "";
    This.Pass = "";
    This.email = "";
    This.FirstName = "";
    This.LastName = "";
    }

    public void setLogin(log:String):void {}
    This.Login = log;
    }
    }
    }

    application:

    import the users. User; Import class
    var: the user = new User(); create the new object of class user
    Person.setLogin ("somelogin"); using a class method

    I got this error: "access of undefined property person.

    I'm looking for a solution. Any help much appreciated

    Thank you

    I found the solution!

    Person.setLogin ("somelogin"); Ant, it must be in the function

    example:

    private function init (): void
    {
    Person.setLogin ("petruska");
    }

    Thanks for your replies!

  • Print jobs may not reach the printer

    I have a machine in which everything was working fine until he was not part of the domain. Since it was added to the field, he has stopped printing.

    If a draw is sent, he goes to Quebec, she disappears, but does not reach the printer. It shows the same problem even with the local administrator account.

    It is a network printer and works great for other users.

    Printer driver has been updated.

    Spooler service works very well

    No errors in the event logs.

    This paragraph is confusing.  The computer is now connected to a domain or not?

    I have a machine in which everything was working fine until he was not part of the domain. Since it was added to the field, he has stopped printing.

    The problem you describe appears if the printer port is not directed to the correct address.  This often happens with wireless printers, but if your computer is connected to a domain, you should ask your network administrator for assistance.

  • close: disappears from the task bar, her box "turn off computer" does not reach out

    I am running windows xp sp3 32-bit. When I shut down the computer through the Start button, the taskbar disappears, and the box "turn off computer" does. I have to use ctrl-alt-del to shut down the computer. I got the settings to a previous restore point when it was still working, but it does not solve the problem. What should I do to return to its original position?

    Hi tx_grizzly,
     
    -Have you done recent changes made to your computer before this problem started to happen?
     
    Try these methods and see if it helps fix the problem.
     
    Method 1: Follow these steps to change the way users log and see that it helps:
     
    a. Click Start. Click on Control Panel.
    b. open user accounts in Control Panel, click on change the way users connect or disconnect, click on use the Welcome screen.
    c. click on apply. Click OK.
     
    Method 2: Try the steps listed in the article for this problem:
  • ADF table selected displayRow does not display the selected line

    Hello

    JDev 11.1.2.4

    I have a table with selection enabled and displayRow property the value selected. In the workflow, I have an ExecuteWithParams activity, and then a method activity that restores the current iterator of the line. Finally the activity view that displays the table.

    Restore the current line with key

    Iterator DCIteratorBinding = ADFUtils.findIterator ("MyIterator");

    iterator.setCurrentRowWithKey (currentKey); currentKey is a string

    The question I have is that the current line is properly restored, but the table does not display the page of "range" of the current line while the displayRow is the selected value. My table has 500 rows, the table displays the top 25 while the current line is the 500th line. I expect the table to display the line 475 to 500 line.

    What I am doing wrong?

    Thank you

    You can save the index lines before executing your method and then set the iterator to this index.

    The technique is described in this blog https://tompeez.wordpress.com/2016/02/12/naviagting-an-aftable-in-pagination-mode-from-a-bean/

    Timo

  • I installed photoshop CS4 on a new PC with the original CD. Camera Raw does not show the 'Snapshots' tool and the tool "setting of the target". Thanks for your help!

    I installed photoshop CS4 on a new PC with the original CD.

    Camera Raw does not show the 'Snapshots' tool and the tool "setting of the target".

    Thanks for your help!

    As you can see, you are using version 5.0, who can't stand still not instant in it.

    Please check for updates in Photoshop > help.

    Concerning

    Sarika

  • Dynamics Processor Calc does not reach more than [100] ESM blocks during the calculation, please increase the CalcLockBlock setting, and then try again (a small data cache setting can also cause this problem, check the size of data cache setting).

    Hello

    Our environment is Essbase 11.1.2.2 and work on Essbase EAS and components of Shared Services. One of our user tried to execute the Script of Cal of a single application and in the face of this error.

    Dynamics Processor Calc does not reach more than [100] ESM blocks during the calculation, please increase the CalcLockBlock setting, and then try again (a small data cache setting can also cause this problem, check the size of data cache setting).


    I did a few Google and found that we need to add something in the Essbase.cfg file as below.

    Dynamics Processor Calc 1012704 fails to more blocks ESM number for the calculation, please increase the CalcLockBlock setting, and then try again (a small data cache setting can also cause this problem, check the size of data cache setting).

    Possible problems

    Analytical services cannot lock enough blocks to perform the calculation.

    Possible solutions

    Increase the number of blocks of analytical Services can allocate to a calculation:

    1. Set the maximum number of blocks of analytical Services can allocate at least 500.
      1. If you are not a $ARBORPATH/bin/essbase.cfg on the file server computer, create one using a text editor.
      2. In the essbase.cfg folder on the server computer, set CALCLOCKBLOCKHIGH to 500.
      3. Stopping and restarting Analysis server.
    2. Add the command SET LOCKBLOCK STUDENT at the beginning of the calculation script.
    3. Set the cache of data large enough to hold all the blocks specified in the CALCLOCKBLOCKHIGH parameter.

    In fact in our queue (essbase.cfg) Config Server we have given below added.

    CalcLockBlockHigh 2000

    CalcLockBlockDefault 200

    CalcLockBlocklow 50


    So my question is if edit us the file Essbase.cfg and add the above settings restart services will work?  and if yes, why should change us the configuration file of server if the problem concerns a Cal Script application. Please guide me how to do this.


    Kind regards

    Naveen

    Yes it must *.

    Make sure that you have "migrated settings cache of database as well. If the cache is too small, you will have similar problems.

  • ATTENTION: Target Version does not support the Option of role of subform

    Hello

    So I created a pdf file in which I defined fields called Total1, Total2 total 3...

    Now, ultimately as Grand Total, I am adding all those providing this command under calculate:

    this.rawValue = (Total1.rawValue + Total2.rawValue)

    while I do this, the Grand Total don't watch anything and warning message comes at the botton.

    Description: Target Version does not support the option of role of subform.

    Type: Target Version

    Supported by: Reader 7.0.5

    I would really appreciate if anyone can help on how to solve this problem

    You can send the form to [email protected] and I'll take a look?

    Please include a description of the problem in the email.

    Paul

  • Using the stored procedure: Source does not have a target executable

    I'm a guy from MS - SQL, so I'm fairly familiar with T - SQL syntax, but feels a heck of a time trying to take the code I wrote for SQL and turn this works with Oracle.

    in any case, I'm using Oracle SQL Developer, and I have a stored procedure that calls the Alter Table statement and adds a column. Just trying to get this one to work before moving on to the other that I have. I get the message that source does not have a target executable when I try to run this command.

    create or replace PROCEDURE rta_conv_addcolumn (rtatablename1 in varchar (20),)
    rtatablename2 in varchar (20),
    rtacolumnname in varchar (256),
    rtacolumninfo in varchar (256))
    AS
    DECLARE rtasql VARCHAR (4000);
    BEGIN
    IF EXISTS (SELECT * from user_tables WHERE table_name = rtatablename1)
    AND NOT EXISTS (SELECT * from user_tab_columns WHERE column_name = rtacolumnname)
    AND table_name = rtatablename1)
    AND NOT EXISTS (SELECT * from user_tab_columns WHERE column_name = rtacolumnname)
    AND table_name = rtatablename2)
    Then rtasql: = ' ALTER TABLE ["+ rtatablename2 +"] ADD "+ rtacolumnname +" "+ rtacolumninfo;
    Run (rtasql);
    END rta_conv_addcolumn;

    If I try to compile I get the following messages, which make no sense, since the syntax I use to declare the input variables seems to be good.

    Error (1.54): PLS-00103: encountered the symbol "(" quand attend une deles de valeurs suivantes:: =.), @ default % of the characters of the symbol ': = ' has been replaced by "(" pour continuer.)
    Error (2.29): PLS-00103: encountered the symbol "(" quand attend une deles de valeurs suivantes:: =.), @ default % of the characters of the symbol ': = ' has been replaced by "(" pour continuer.)
    Error (3.29): PLS-00103: encountered the symbol "(" quand attend une deles de valeurs suivantes:: =.), @ default % of the characters of the symbol ': = ' has been replaced by "(" pour continuer.)
    Error (4.29): PLS-00103: encountered the symbol "(" quand attend une deles de valeurs suivantes:: =.), @ default % of the characters of the symbol ': = ' has been replaced by "(" pour continuer.)
    Error (6.1): PLS-00103: encountered the symbol "DECLARE" when expecting one of the following: begin function package pragma procedure < an ID > subtype type use < a between double quote delimited identifiers of > form current cursor external language the symbol 'start' is substituted for 'SAID' continue.
    Error (15.5): PLS-00103: encountered the symbol "RTA_CONV_ADDCOLUMN" when expects it one of the following values: If

    Adds the column to the table specified in rtatablename1, if there is neither rtatablename1 nor rtatablename2.

    NOT TESTED

    create or replace PROCEDURE rta_conv_addcolumn(rtatablename1 in varchar,
    rtatablename2 in varchar,
    rtacolumnname in varchar,
    rtacolumninfo in varchar)
    AS
    rtasql VARCHAR(4000);
    count1 number;
    count2 number;
    count3 number;
    BEGIN
      SELECT count(*) into count1 FROM user_tables WHERE table_name = rtatablename1;
      SELECT count(*) into count2 FROM user_tab_columns WHERE column_name = rtacolumnname AND table_name = rtatablename1;
      SELECT count(*) into count3 FROM user_tab_columns WHERE column_name = rtacolumnname AND table_name = rtatablename2;
      IF count1>0 AND count2 = 0 AND count3=0 Then
        rtasql:= 'ALTER TABLE '|| rtatablename1 ||'ADD ' || rtacolumnname || ' ' || rtacolumninfo;
        Execute immediate rtasql;
      END IF;
    END rta_conv_addcolumn;
    /
    

    Max

    Published by: Massimo Ruocchio, December 12, 2009 02:15
    Missing AND

Maybe you are looking for

  • Problem of HDD internal (SSD Apple)

    I m having terrible with my mac problems since I tried to restore the whole system mac from a backup time machine, which ended up showing a message "an error has occurred with the addition of a recovery on the destination disk system". I rebooted and

  • Google TV homescreen (NSZ - GS7) does not appear

    To connect the device, the Sony logo and the logo of Google TV appear and disappear from the screen after a circle of rotation appears and remains. The home screen just never came up. Connections sem correct as long as I've been disconnect and reconn

  • avg rootkit removal 8

    My avg found enough rootkits (600 to be exact), but when I try to remove my laptop crashes as well my avg software seizes 8 upwards? I followed some indications here, but have had no luck? I also s Malwarebyte which does not pick up one of these kits

  • Cannot navigate to the website in Windows 7

    I can't navigate to a Web site on Windows 7 machines.  Http://xxx.xxxxxx.com:8080 I have disabled the firewall on both Windows 7 machines.  A machine was a new installation with no installed anti-virus.   When two machines would not work, I tried Goo

  • Custom in ThemeBuilder records

    How can I create folders custom in the hierarchy of the app in theme Builder?  I am able to add a folder for specific items, but it appears as just a folder by default.  I would change the appearance and/or colour.