insertion of values using the impl class

Hi am values inserting data by using the class impl, my problem is when I insert values, it shows that the values must be unique so it cannot be inserted, but when I check in the database, the values are inserted, it seems my loop trying to reinsert the same values twise, am in jdeveloper 11.1.1.6.0
    public Number addOrginisation(OrgDetails orgDetails){
        Number orgid =null;

           try{
                  
                  UAMAppModuleImpl am = (UAMAppModuleImpl)ADFUtils.getApplicationModuleForDataControl("UAMAppModuleDataControl1");
                  CreateUserBean cu = new  CreateUserBean();
                  String n = (String)orgDetails.getDpayment().getValue();
                   System.out.println(" n  :"+n );
                  String  newIdAssigned = cu.createAcc(n,orgDetails.getCadastreAccountBean() );
                  System.out.println(" newIdAssigned :"+ newIdAssigned  );
                this.addmemebres(orgDetails.getAddmember(), orgDetails.getName());



                                String otype = null;
            String osubtype = null;
        
        DCIteratorBinding it0 = ADFUtils.findIterator("UamOrganisationsView1Iterator");
                  if(it0 != null && it0.size() > 0){      
                     
                      for(Row r : it0.getAllRowsInRange() ){
                      EntityDefImpl accDef1 =UamOrganisationsImpl.getDefinitionObject();     
                      UamOrganisationsImpl org1 =  (UamOrganisationsImpl)accDef1.createInstance2(am.getDBTransaction(),null);
                     
                 
                  otype = (String)r.getAttribute("Organisationtypecode");
                  osubtype = (String)r.getAttribute("Orgsubtypecode"); 
                      org1.setOrganisationtypecode(otype);
                  System.out.println("onsertorgtype " + otype);
                      org1.setOrgsubtypecode(osubtype);
                  System.out.println("insertedsubtype " + osubtype);
                      
                     
                      org1.setCadastreaccount(newIdAssigned);
                      System.out.println("Addedcardaccount " + newIdAssigned);  
                          
                      org1.setOrganisationname(orgDetails.getName());
                      System.out.println("AddedOrganisation " + orgDetails.getName());    
                      org1.setCadastreaccount(newIdAssigned);
                      System.out.println("Addedcardaccount " + newIdAssigned);    
                      org1.setOrganisationemail(orgDetails.getEmail());
                      System.out.println("Addedemail " + orgDetails.getEmail());  
                      org1.setRegistrationnumber(orgDetails.getRegNumber());    
                      System.out.println("Registrationnumber " +orgDetails.getRegNumber());    
                      org1.setRegistrationstatus("Y");
                      org1.setStatus("Y"); 
                      orgid =  org1.getOrganisationid();
                      System.out.println("returnorgid " +orgid);
                      am.getDBTransaction().commit();  
                      System.out.println("after "+ orgid);  
                      orgid =  org.getOrganisationid();
                      
                     
                      
                  }
                      
                      
                  }
            String name = null;
            String surname = null;
            String identitynumber = null;
            String emailaddress = null;
            String contactnumber = null;
            String ownership = null;
            String accountofficer = null;
            Number officeid = null;


           DCIteratorBinding it = ADFUtils.findIterator("ocompanyofficerdetailsIterator");
              if(it != null && it.size() >0){                              
              for(Row r : it.getAllRowsInRange() ) {                                   
                    EntityDefImpl accDef2 =UamCompanyofficerdetailsImpl.getDefinitionObject(); 
                    UamCompanyofficerdetailsImpl comp = (UamCompanyofficerdetailsImpl)accDef2.createInstance2(am.getDBTransaction(),null);
                   
                    
                    name = (String)r.getAttribute("name");
                  System.out.println("offname" +name);
                    surname = (String)r.getAttribute("surname");
                  System.out.println("surnametest " +surname);
                    identitynumber = (String)r.getAttribute("dentitynumber");
                  System.out.println("idtest " +identitynumber);
                    emailaddress = (String)r.getAttribute("emailaddress");
                  System.out.println("emailtest" + emailaddress);
                    contactnumber = (String)r.getAttribute("contactnumber");
                    System.out.println("contatc" + contactnumber);
                    ownership = (String)r.getAttribute("ownership");
                  System.out.println("ownership " + ownership);
                    accountofficer = (String)r.getAttribute("accountingofficer");
                   System.out.println("accountoffice " + accountofficer);
            
            
           
           comp.setName(name);
                  System.out.println("offname " + name);
           comp.setSurname(surname);
                  System.out.println("surnameoff " +surname);
           comp.setIdentitynumber(identitynumber);
                  System.out.println("identitynumber " +identitynumber);
           comp.setEmailaddress(emailaddress);
                  System.out.println("emailaddresscomp " +emailaddress);
           comp.setContactnumber(contactnumber);
                  System.out.println("contactnumbercomp " + contactnumber);
           comp.setOwnership(ownership);
                  System.out.println("ownershipcomp " + ownership);
           comp.setAccountingofficer(accountofficer);
           System.out.println("accountofficer " +accountofficer);
                    officeid = comp.getOfficerid();
                           System.out.println("afterofficeid " + officeid);
                  comp.setOrganisationid(orgid);
                  am.getDBTransaction().commit();
                    System.out.println("***insetead companyofficials****" +  officeid ) ;


                }
    }
       }catch(Exception e){
            System.out.println("after "+e.getMessage());
            e.printStackTrace();
        }
       
        return  orgid;
    }

my log error is
n  :CRC
*****createAcc  Entity [oracle.jbo.Key[10891 ]]
*****createAcc  UamCadastreaccounts
@@@@@@@@@@@@CRC
@@@@@@@@@@@@10892
 newIdAssigned :10892
onsertorgtype PRIV 
insertedsubtype LA
Addedcardaccount 10892
AddedOrganisation testnow
Addedcardaccount 10892
Addedemail [email protected]
Registrationnumber 2332434
returnorgid 2233
after 2233
onsertorgtype PRIV 
insertedsubtype DEA
Addedcardaccount 10892
after JBO-ecadastre.gov.za.uam.model.entities.UamOrganisations_Rule_0: Organisation Name Must Be Unique
oracle.jbo.AttrSetValException: JBO-ecadastre.gov.za.uam.model.entities.UamOrganisations_Rule_0: Organisation Name Must Be Unique
     at oracle.jbo.rules.RulesBeanUtils.createException(RulesBeanUtils.java:381)
     at oracle.jbo.rules.AbstractValidator.createException(AbstractValidator.java:1065)
     at oracle.jbo.rules.AbstractValidator.doRaiseException(AbstractValidator.java:1120)
     at oracle.jbo.rules.AbstractValidator.raiseException(AbstractValidator.java:1109)
     at oracle.jbo.rules.JboAbstractValidator.raiseException(JboAbstractValidator.java:409)
     at oracle.jbo.rules.AbstractValidator.raiseException(AbstractValidator.java:1096)
     at oracle.jbo.server.JboUniqueKeyValidator.validateValue(JboUniqueKeyValidator.java:369)
     at oracle.jbo.server.JboUniqueKeyValidator.validateValueWithContext(JboUniqueKeyValidator.java:84)
     at oracle.jbo.rules.JboAbstractValidator.callValidateValueWithContext(JboAbstractValidator.java:235)
     at oracle.jbo.rules.JboAbstractValidator.validate(JboAbstractValidator.java:386)
     at oracle.jbo.rules.RulesBeanUtils.validateObject(RulesBeanUtils.java:725)
     at oracle.jbo.rules.RulesBeanUtils.validate(RulesBeanUtils.java:696)
     at oracle.jbo.server.AttributeDefImpl.validate(AttributeDefImpl.java:3349)
     at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:3294)
     at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:2012)
     at ecadastre.gov.za.uam.model.entities.UamOrganisationsImpl.setOrganisationname(UamOrganisationsImpl.java:336)
     at uam.cadastre.gov.za.CreateOrganisationBean.addOrginisation(CreateOrganisationBean.java:213)
     at uam.cadastre.gov.za.OrgDetails.getNextStopPayment(OrgDetails.java:689)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.sun.el.parser.AstValue.invoke(Unknown Source)
     at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
     at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
     at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
     at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
     at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
     at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
     at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
     at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
     at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
     at java.security.AccessController.doPrivileged(Native Method)
     at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
     at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
     at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
     at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
     at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
 oracle.jbo.server.ViewRowSetImpl@8f2102
 null
 null
 null
 null
 null
 null
 BDP
 CRA
 CRC
 DRO
 EFT
 OTC
************endpayment *********
 but am able to insert the organisation  values in database but it show me that Organisation Name Must Be Unique
the for loop is re-entering the values again
Published by: adf0994 on 01/15/2013 13:11

Published by: adf0994 on 01/15/2013 13:12

Hello

a rule in the ADF is still working through the link layer (and that's what you start by before you can join the impl classes). When you have access to a DCIteratorBinding, you have access to the lines it holds. Of the DCIteratorBinding, you can get access to the RowSetIterator (getRowSetIterator()). Here you can now create new lines programmatically by calling

-Row rw = rowSetIterator.createRow ();
-fill in the attribute for line
-rowSetIterator.insertRow (rw);

You can also use this to simply update the existing lines. With the next commit, these changes will be persistent in the database.

Frank

Tags: Java

Similar Questions

  • By using the impl class for functions on a table

    I'm looking for a bit of advice on best practices.

    I have an app with 35 paintings.  I need to have a button "reset comes out" on each table.

    Each resetSort method should specify the table and the specific iterator.

    I tried to not having all the functions of 35 in the bean to support (1 for each table).

    Can I bind each table has associated feature class impl and each resetSort button call a method in this class?

    I use jdev 11.1.1.6.

    Any advice would be appreciated.

    Ray

    Then your real mission is to find the table for which the use wants to put sorting by pressing a button?

    This should be doable with the bean and a function that you bind to each of the reset buttons that you use for your tables.

    If your presentation is for the tables and the button to reset sorting, you can use an actionListener to the button. In the event of action, with the knowledge of the layout, it is easy to get to the table and once you have the table that you get the iterator from the table.

    Assuming that your tables are always surrounded by a panelCollection, who owns a toolbar now your reset button

    emptyText = "#{bindings." EmployeesView.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." EmployeesView.rangeSize}' rowBandingInterval = '0 '.

    selectedRowKeys = ' #{bindings. " EmployeesView.collectionModel.selectedRow}.

    selectionListener = "#{bindings." RowSelection EmployeesView.collectionModel.makeCurrent}"="single"id ="t1">

    You can use this code actionListener

    {} public void resetSort (ActionEvent actionEvent)

    get the link container

    BindingContainer links is BindingContext.getCurrent () .getCurrentBindingsEntry ();.

    DCBindingContainer dcBindings = (DCBindingContainer) links;

    UIComponent toolbar (UIComponent) = actionEvent.getSource ();

    Try to get the source of the event table

    assuming that the button is in a toolbar of a panelCollection we get using parent.parent.children

    List of children of = toolbar.getParent () .getParent () .getChildren ();

    Table richeTableau = null;

    for (UIComponent uic: children) {}

    If (uic instanceof richeTableau) {}

    table = uic (richeTableau);

    break;

    }

    }

    If (table! = null) {}

    the model in the Collection is the object that provides the

    structured data

    for the table to render

    CollectionModel tableModel = (CollectionModel) table.getValue ();

    the purpose of the ADF that implements the CollectionModel is

    JUCtrlHierBinding. It is surrounded by the CollectionModel API

    JUCtrlHierBinding adfTableBinding = (JUCtrlHierBinding) tableModel.getWrappedData ();

    Acess the ADF, which is used with iterator

    ADF table binding

    DCIteratorBinding iterBind = adfTableBinding.getDCIteratorBinding ();

    table.queueEvent (new SortEvent (table, new ArrayList()));

    CurrentRow key = null;

    Line = iterBind.getCurrentRow ();

    If (line! = null)

    currentRow = row.getKey ();

    SC SortCriteria [] = new SortCriteria [0];

    iterBind.applySortCriteria (sc); iterBind is that the table iterator use

    iterBind.executeQuery ();

    If (currentRow! = null)

    iterBind.setCurrentRowWithKey (currentRow.toStringFormat (true));

    }

    }

    This code looks for the table of the source of the action, which is the button in the toolbar, get the tabel. Once you have the table you get the iterator from the table and reset the sort. This works as long as we find the source of the action table. If you always use the same layout for tables (for example. panelCollection > table), which is a practice of good uix, you have need of a bean to reset all tables. Simply link the toolbar button actionListner to the listener in the bean.

    Timo

  • Help insert mulitple value using the view

    Can anyone help me please with the following text:

    I'm trying to create a view that insert multiple (department_id) values based on CUSTOMER_ID in where clause:

    CREATE OR REPLACE FORCE VIEWS CUSTOMER_V
    (
    DEPARTMENT_ID,
    CUSTOMER_ID,
    CUSTOMER_ADD
    )
    AS
    SELECT
    ' *'D100 "* DEPARTMENT_ID;
    C.CUSTOMER_ID,
    C.CUSTOMER_ADD
    WHERE
    C.CUSTOMER_ID IN (100, 200)

    Looking at the example above, it will insert D100 for the two CUSTOMER_ID (100, 200), what can I use to insert D100 as department_id if C.CUSTOMER_ID = 100 and D200 if the C.CUSTOMER_ID = 200?

    Thanks for your help!
    SMČR
    CREATE OR REPLACE FORCE VIEW CUSTOMER_V
    (
    DEPARTMENT_ID,
    CUSTOMER_ID,
    CUSTOMER_ADD
    )
    AS
    SELECT
    DECODE(C.CUSTOMER_ID,100,'D100',200,'D200') DEPARTMENT_ID,
    C.CUSTOMER_ID,
    C.CUSTOMER_ADD
    --FROM ???
    WHERE
    C.CUSTOMER_ID IN (100, 200)
    
  • Get and set data using the ActionScript class

    Hello

    I use the ActionScript class to store the user name and password when the user logs


    com package
    {
    public class Login
    {
    public function Greeter (initialName:String = "")
    {
    }

    public var uname:String;
    password public var: String;

    }
    }

    Inside the Componet Login form, I am creating the object of this class of connection and affecting the data as shown in it

    var logincomp:Login = new login());

    logincomp.uname = UnameTI.text;
    logincomp. Password = PassTI.text;


    I need these data within an another CustomComponent, is it possiblke to access these data within an another componnet.

    Can I do this?


    var logincomp:Login = new login());

    var str:String = new String();

    Str = logincomp.uname;


    Please me tips


    I know it's possible with recording and Dispatching Evenets
    However, I'm not interested to use DEMONSTRATIONS. I'm using FLEX 3

    Please advise me if this is possible.

    THnaks in advance.

    Thanks for helping me learn Flex quickly.

    Hello

    You use a Singleton class as (class ModelLocator) If Yes, then you can put a single instance of your connection class in this class so that you can access this instance in the world in any component (infact with the app).

    Declare an instance of the connection object in the Singleton class like below

    var logincomp:Login = new login());

    Set the values in a single component, and you can access the values in the other component.

    The sample class Singleton as shown below...

    package com.model
    {

    [Bindable]
    public class ModelLocator
    {
    private static var instance: ModelLocator;
     
    public var logincomp:Login = new login());
     
    public void ModelLocator()
    {
    If (instance! = null)
    {
    throw (new Error ("cannot only one instance of ModelLocator"));
    }
    }
    Public Shared function getInstance (): ModelLocator
    {
    if(instance == null)
    {
    instance = new ModelLocator();
    }
    return instance;
    }
    }
    }

    If this post answers your question or assistance, please mark it as such.

    Thank you

    Jean Claude Chari

  • Insert some values into the database of field boxes




    I had a similar probem and error when you use the drop-down list instead of a checkbox. It was solved by putting the SELECT name = "CarMake in the menu dropdown.

    But in the box, I don't know?
    I seem that the problem is the action page has the Form.carmake, but the page does not work. What Miss me and where should I put in the entry below page.


    The main objective is to have checked checkboxes to insert some values into the database field carmake based on what is checked.


    If the Honda checkbox is checked then
    It inserts into the carmake field value Honda.

    If the Toyota checkbox is checked then
    It inserts into the carmake field the value of Toyota.

    If both are true then 2 rows are inserted two values
    Honda and Toyota.

    Ditto for the last option.

    Thanks for your help


    Here's the error again

    error:
    Error occurred while processing request
    CARMAKE element is not defined in the FORM.

    12:21:50.050 - term Exception - in C:\CFusionMX7\wwwroot\Author\CarAddAction.cfm: line 16
    CARMAKE element is not defined in the FORM.

    line 16 is:
    "#Trim (Form.carmake), #
    Join the Code


    <! - Here is the form - >
    < html >
    < head >
    < / head >

    < body >


    < h1 > < / h1 >

    < table >
    < action = "CarAddAction.cfm cfform" method = "POST" > "
    < b >
    < td > Honda: < table >
    < td > < Center > < input type = "checkbox" name = "HONDA_MODEL" value = "HONDA" checked > < / center > < table >
    < /tr >
    < b >
    < td > Toyota: < table >
    < td > < Center > < input type = "checkbox" name = "Toyota_MODEL" value = "Toyota" Unchecked > < / center > < table >
    < /tr >
    < b >
    < td > SUBARU: < table >
    < td > < Center > < input type = "checkbox" name = "SUBARU_MODEL" value = "SUBARU" unchecked > < / center > < table >
    < /tr >



    < Tr > < td > < table > Honda model
    < td >
    < input type = "Text".
    name = "Honda_Model".
    Value =""
    size = "22".
    MaxLength = "20" >
    < table >
    < tr > < /tr >
    < Tr > < td > < table > Toyota model
    < td >
    < input type = "Text".
    name = "Toyota_Model".
    Value =""
    size = "22" >
    < table >
    < tr > < /tr >
    < Tr > < td > < table > Subaru model
    < td >
    < input type = "Text".
    name = "Subaru_Model".
    Value =""
    size = "22" >
    < table >
    < tr > < /tr >
    < td > < table >
    < td >
    < input type is 'submit' value is "Take Add to database" >
    < table >
    < /tr >

    < / cfform >
    < /table >

    < / body >
    < / html >



    <!-action page
    --------->
    < cfdump var = "#form #" >
    < name cfquery = "InsertCarInfo."
    DataSource = "#request. MainDSN #">"
    INSERT INTO Car_tab)
    car_Make,
    Honda_Model,
    Toyota_Model,
    Subaru_Model

    )
    VALUES)

    "#Trim (Form.carmake), #
    "#Trim (Form.Honda_Model), #
    "#Trim (Form.Toyota_Model), #
    "#Trim (Form.Subaru_Model) #
    )
    < / cfquery >

    You check in one or more of the boxes before continuing? Remember what I said about the form field box existing only on the page of treatment at least 1 or more checkboxes are checked on your form. Make sure you use to avoid this problem.

    What happens when you take a look at the output of your dump of form? Your fields are present?

  • Inserting data by using the query

    Hello

    In a book, I read the Sub statement:

    Inserting data by using the query (DML)

    If the user wants to transfer data from a table to another table in the insert statement are used independently of data that can be processed or not processed form.

    Can someone clarify what is the significance of this (processed or unprocessed form).


    Thank you.

    Why don't you ask the author of the book.

    How can we know what the author means when you take a quote out of context and don't provide any reference so that we can see exactly what is shown to you.

    I can only imagine that they are referring to data that are queried directly, "like what", another table, or who was interrogated and manipulated before be inserted.

  • need help to get the value using the REGEXP_REPLACE function.

    I am trying to extract the value placed between "< listitems >... < / listitems >" but I am unable to get these value using the REGEXP_REPLACE function.
    select REGEXP_REPLACE('<InputParameters></ParamSet><listitems>14545454</listitems></ParamSet></InputParameters>'
    ,'(<InputParameters>.*<listitems>)(.*)(</listitems>.*<InputParameters>)'
    ,'\2') from dual;
    required output:
     1454554
    Can someone please help me achieve this goal.

    Hello

    You forgot the / before the last InputParameters. If fix you that, your code will work.

    Here is a slightly different way:

    SELECT  REGEXP_REPLACE ( '14545454'
                     , '^.*?(.*?).*$'
                     , '\1'
                     )     AS listitems
    FROM    dual
    ;
    

    Least to type, the less likely you will have to make typos.
    If there are 2 (or more) elements of listitmes, 1 will be returned.

    From Oracle 11.1, you can also use REGEXP_SUBSTR. I have Oracle 10.2 avaialable now, so I can test the following, but I think you'd say:

    SELECT  REGEXP_SUBSTR ( '14545454'
                     , '(.*?)'
                     , 1
                     , 1
                     , NULL
                     , 1
                     )     AS listitems
    FROM    dual;
    

    When it comes with the text that is or looks to, XML, consider using XML functions.

  • Using the file class - muse. by default on my computer and not the last used folder.

    Using the file class - muse by default to my computer and not to the last used folder.

    Hello Perri,

    I tested on my end, and it seems that the issue is ongoing because of Air Version 3.8 was last updated. If restore you the version of Air to 3.7 this problem would be fixed.

    Here is the link to the page for the available versions of Adobe Air: http://helpx.adobe.com/air/kb/archived-air-sdk-version.html and you can use this link to download Adobe Air version 3.7:
    http://download.Macromedia.com/air/Win/Download/3.7/AdobeAIRInstaller.exe (Windows)

    http://download.Macromedia.com/air/Mac/download/3.7/AdobeAIR.dmg (Mac)

    Hope this information helps.

    Kind regards

    Fox

  • access the value in the document class

    Hello I am trying to access a value in the document class. but I can't make it work.

    what I have is:

    can someone tell me how to access the value of myArray?

    Bomberman.As:

    package {}

    import flash.display.MovieClip;

    public class bomberman extends MovieClip {}

    public var myArray:Array = []; trying to access this value

    public void bomberman() {}

    init();

    trace (document.docClass);

    }

    private void init() {}

    var square: Array = [];

    for (var i: Number = 0; i < 11; i ++) {}

    for (var j: Number = 0; j < 11; j ++) {}

    var temp: grassSquare;

    If (i == 0 |) I == 10) {}

    Temp = new grassSquare (i * 50, j * 40);

    addChild (temp);

    Square.push (temp);

    } Else if (i %2! = 0) {}

    If (j == 0 | j == 10) {}

    Temp = new grassSquare (i * 50, j * 40);

    addChild (temp);

    Square.push (temp);

    myArray.push (false);

    } else {}

    myArray.push (true);

    }

    } else {}

    If (j %2 == 0) {}

    Temp = new grassSquare (i * 50, j * 40);

    addChild (temp);

    Square.push (temp);

    myArray.push (false);

    } else {}

    myArray.push (true);

    }

    }

    }

    }

    }

    }

    }

    Bomberman.fla:

    import flash.events.KeyboardEvent

    var User1:Player1 = new Player1;

    stage.addEventListener (KeyboardEvent.KEY_DOWN, User1.fl_SetKeyPressed);

    User1.x = 75;

    User1.y = 60;

    addChild (User1);

    Player1.as:

    package {}

    import flash.display.MovieClip;

    import flash.events.Event;

    import flash.events.KeyboardEvent

    import flash.ui.Keyboard

    SerializableAttribute public class extends MovieClip {Player1

    private var upPressed:Boolean = false;

    private var downPressed:Boolean = false;

    private var leftPressed:Boolean = false;

    private var rightPressed:Boolean = false;

    private var currentSquare:uint = 12;

    public void Player1() {}

    this.addEventListener (Event.ENTER_FRAME, fl_MoveInDirectionOfKey);

    stage.addEventListener (KeyboardEvent.KEY_DOWN, fl_SetKeyPressed);

    }

    public void fl_MoveInDirectionOfKey(event:Event)

    {

    If (upPressed & & this.y > = 100 /* & & document.myArray [currentSquare-1] * /)

    {

    This.y-= 40;

    upPressed = false;

    currentSquare-= 1;

    }

    If (downPressed & & this.y < = 340 / * & & this.myArray [currentSquare + 1] * /)

    {

    This.y = 40;

    downPressed = false;

    currentSquare += 1;

    }

    If (leftPressed & & this.x > = 125 / * & & /*this.myArray[currentSquare-11]*/)

    {

    This.x-= 50;

    leftPressed = false;

    currentSquare = 11;

    }

    If (rightPressed & & this.x < = 425 / * & & /*this.myArray[currentSquare+11]*/)

    {

    This.x += 50;

    rightPressed = false;

    currentSquare += 11;

    }

    trace (currentSquare);

    }

    public void fl_SetKeyPressed(event:KeyboardEvent):void

    {

    switch (event.keyCode)

    {

    case Keyboard.UP:

    {

    upPressed = true;

    break;

    }

    case Keyboard.DOWN:

    {

    downPressed = true;

    break;

    }

    case Keyboard.LEFT:

    {

    leftPressed = true;

    break;

    }

    case Keyboard.RIGHT:

    {

    rightPressed = true;

    break;

    }

    }

    }

    }

    }

    any class that is added to your list of display:

    MovieClip (root) .myArray

  • by using the DCDataRow class instead of the oracle.jbo.Row interface

    Hello

    The API documentation says that class oracle.adf.model.bean.DCDataRow extends oracle.jbo.server.ViewRowImpl and implements oracle.jbo.Row.

    -In the case of a reply in another forum thread, Re: best way to recover an attributeValue of links in a backing bean?:
    ""Btw.: you can cast DCDataRow, which is the super class for data models that do not work with oracle.jbo.Row, ".
    -Also in oct2010-otn-harvest - 183714.pdf it says:
    "As I mentioned earlier, the business can be anything, casting, in which case the line type for the type of business ADF oracle.jbo.Row component may not be a generic solution to use. In this case, the type of line to DCDataRow cast
    DCDataRow vRow = (DCDataRow) vDCIteratorBinding.getCurrentRow ();
    "

    This sample application uses the DCDataRow class instead of the oracle.jbo.Row interface
    at http://www.consideringred.com/files/oracle/2010/Thread1665841AttributeValuesApp-v0.03.zip
      public String getMyNameFromIterator()
      {
        BindingContainer vBindingContainer =
           BindingContext.getCurrent().getCurrentBindingsEntry();
        DCBindingContainer vDCBindingContainer = (DCBindingContainer)vBindingContainer;
        DCIteratorBinding vDCIteratorBinding =
           vDCBindingContainer.findIteratorBinding("findSomeMyRowsIterator");
        DCDataRow vDCDataRow = (DCDataRow)vDCIteratorBinding.getCurrentRow();
        return (String)vDCDataRow.getAttribute("myName");
      }
    question
    -(q1), which would be the more detailed explanation about when and why to make a cast of the class oracle.adf.model.bean.DCDataRow instead of the oracle.jbo.Row of the interface in managed bean code?

    Thank you very much
    Jan Vervecken

    Hello

    the answer to that is that I was wrong. DCDataRow is not the super class, but one of the classes of implementation. I'll fix the entrance of the harvest with the next update. Indeed line runs through implementations

    Frank

  • Preview an image before loading it using the FileReference class in flex 3

    Preview an image before loading it using the FileReference class in flex 3?

    Hello

    The following code uses the filereference class to load the local images, it feeds each image into an arraycollection of bytearray collection. Its a filereference differenct aspects to load and display images.

    http://gumbo.flashhub.NET/pagedrop/ source included

    David.

  • Using the PrintJob class

    Hi all

    I am new to AS3 and was never as competent to AS2. I'm working on a simple drag and drop coin and I want to be able to print the contents of the operation drag / move.

    I try to use the PrintJob class that comes with CS4, but his does not work.

    Here's what I have...

    THE BUTTON MANAGER

    ActionScript code:
    print_btn.addEventListener(MouseEvent.CLICK,printContent);

    function printContent(evt:MouseEvent) {
        var printJob:PrintJob = new PrintJob();

        if (printJob.start()) {

            if (content_MC.width>printJob.pageWidth) {
                content_MC.width=printJob.pageWidth;
                content_MC.scaleY=content_MC.scaleX;
            }

            printJob.addPage(content_MC);
            printJob.send();
        }
    }

    THE PrintJob CLASS INCLUDED IN CS4

    ActionScript code:
    //****************************************************************************
    // ActionScript Standard Library
    // PrintJob object
    //****************************************************************************

    intrinsic class PrintJob
    {
        var orientation:String;
        var pageHeight:Number;
        var pageWidth:Number;
        var paperHeight:Number;
        var paperWidth:Number;

        function PrintJob();

        function addPage(target:Object, printArea:Object, options:Object, frameNum:Number):Boolean;
        function send():Void;
        function start():Boolean;
    }

    I get all sorts of errors, prompting me to change the PrintJob class. But as soon as I make an edit he comes up with an error after another one will not work.

    What I'm missing here? The PrintJob CS4 class should not just be straight out of the box? Sorry if this is such a newbie question. But I'm a newbie!

    Any help would be greatly appreciated.

    Thanks in advance!

    You are welcome.

    p.s. Please mark this thread as answered, if you can.

  • How to extract the second sysdate value using the EXTRACT function

    Hello

    I want to extract the second sysdate value using the EXTRACT function.
    When I run the following query I get an error;

    SELECT extract (second OF SYSDATE) FROM dual;

    ORA-30076: field of invalid extract for the source of the extract.

    When I do to extract the month I get the correct result.

    Is there some necessary formatting by specifying the sysdate (or any other date value) in the query. ?


    Thank you.

    You can extract only the year/month / day, day

    SQL> Select extract(year from sysdate) from dual;
    
    EXTRACT(YEARFROMSYSDATE)
    ------------------------
                        2008
    
    SQL> Select extract(day from sysdate) from dual;
    
    EXTRACT(DAYFROMSYSDATE)
    -----------------------
                         20
    
    SQL> Select extract(month from sysdate) from dual;
    
    EXTRACT(MONTHFROMSYSDATE)
    -------------------------
                           11
    
    IF you enter Minute or Seconds
    
    SQL>  Select extract(minute from sysdate) from dual;
     Select extract(minute from sysdate) from dual
                                *
    ERROR at line 1:
    ORA-30076: invalid extract field for extract source
    but with timestamp you can get the seconds
    
    SQL> select EXTRACT(second FROM current_timestamp) from dual;
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                  39.473
    
    SQL> select EXTRACT(second FROM current_timestamp) from dual;
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                  57.474
    
    SQL> /
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                  59.787
    
    SQL> /
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                    .412
    
    SQL> /
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                     .99
    
    SQL> /
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                   1.458
    
    SQL> /
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                   1.896
    
    SQL> /
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                   2.334
    

    Edited by: Viswarayar Maran on November 20, 2008 14:30

  • Cannot insert date values using several insert in SQL option

    Hi all

    I'm trying to insert the date in the table I created using the code mentioned below

    Insert into TRX

    ('& Trx_ID ', "& amount',' & account_no', ' & dot");

    Enter the field value: 1

    Enter the value of the quantity: 2000

    Enter the value of account_no: 1001

    Enter the value corresponding to point: February 10, 13

    After you enter the data, I get the error,

    2 old: ('& Trx_ID ', "& amount',' & account_no', ' & dot")

    2 new: ('1 ', '2000', ' 1001', February 10, 13')

    ('1 ', '2000', ' 1001', February 10, 13')

    *

    ERROR on line 2:

    ORA-00928: lack of SELECT keyword

    Kindly help me to find the error in my code.

    Thank you...

    put a key word VALUES before your brackets

    Insert... values)

    HTH

  • You insert a value use to_timestamp()?

    Hi all

    I encountered a problem:
    I used the chain as ' INSERT INTO VALUES TABLE_A (TO_TIMESTAMP ('2012-02-15 12:21:23.23 ',' YYYY-MM-DD HH24:MI:SS.)). FF')); COMMIT; ».

    TimesTen reported: TT0805: TO_TIMESTAMP has not been implemented.

    How can I use the to_timestamp() or any other function?

    Hi Raul,

    TimesTen doesn't have function TO_TIMESTEN.
    The datetime functions are as follows:
    ADD_MONTHS
    EXTRACT
    MONTHS_BETWEEN
    NUMTODSINTERVAL
    NUMTOYMINTERVAL
    ROUND (Date)
    SYSDATE and GETDATE
    TIMESTAMPADD
    TIMESTAMPDIFF
    TO_DATE

    (http://docs.oracle.com/cd/E21901_01/doc/timesten.1122/e21642/function.htm#CACHGGIC)

    Kind regards
    Gennady

Maybe you are looking for

  • iOS 10, screen will not auto dim.

    Hello Since I updated to 10, my lock screen and home on my iPhone TO will not be automatically dim or turn off. I've updated my lock screen auto to a 30 second time out, but if I press the home button or receive a notification; the screen stays on in

  • Made a horrible mistake, now there is no solution?

    Please, read this and don't waste your time telling me stupid, I was, or how I should not have done that. I know that, believe me. I'm looking for are the possible solutions. At this point, it seems that there is not, I searched a days. But I'm depen

  • Upgrade processor Equium M50-164

    do we know if it would be possible to improve a processor M50-164 to a roughly 2 Ghz Dual core prosessor and which cases the cost please?

  • Siri does not not after iOS 9.2 update, any suggestions?

    After update to iOS 9.2, siri will not work making calls, with iTunes, text or set the alarm, but she will get sports scores and weather. Any suggestions on how to fix. I restarted Siri mode and airplane off the coast ride, I reset the phone and went

  • Photosmart 6520: 6520 Photosmart will not print black

    Printer has started to have black letters to fade so I replaced the black cartridge.  Now the black does not print. Read the care instructions and used a PIN to clean the holes in the cartridge.  Does not resolve the issue. Then clean the print head.