Uix get Oracle DB attribute name

I have a uix sort event calling a java method. In the java method, I can get the view object attribute name for the column to be sorted from the page event.
I need to obtain the Oracle database attribute name associated with the view object attribute name so I can construct an ORDER BY clause for the sort.
Does anyone know how to do this?
Right now I am trying to get my java program to retrieve the Oracle DB name.
If this is not easy to do in java, is there a way in the uix code I could set a page property for the column selected to be sorted, with the Oracle DB attribute name in it? The idea would be to set the page property with the proper value when someone clicked on the column header to cause the sort to happen.
I really appreciate any help you can give.
Best regards,
Steve

This topic is closed. I solved the problem another way.

Similar Messages

  • Get the class attributes name dynamically?

    Hi all,
    I have to call a transformation and give it as result parameter an internal table with ABAP_TRANS_RESBIND_TAB type.
    How can I get the name & the adresse of the current class parameters ?
    Thanks.
    Edited by: Noureddine MOUTAA on Oct 20, 2008 2:01 PM

    I have to call a transformation and give it as result parameter an internal table type ABAP_TRANS_RESBIND_TAB.
    And to fill this internal table, I need the name and the reference of the attribute
    I mean by REFERENCE the result of this instruction GET REFERENCE OF, as shown below:
    DATA: attribute TYPE string.
    DATA: the_reference TYPE REF TO data.
    GET REFERENCE OF attribute INTO the_reference.
    Thanks.
    Edited by: Noureddine MOUTAA on Oct 20, 2008 4:37 PM

  • Get the attributes NAME and VALUE from an XML

    I really love this forum :)
    I load an XML an populate a Tree, from which I start to drag
    items.
    the xml looks like this:
    <myTag attrName="attrValue"
    otherAttrName="otherAttrValue"/>
    var ds:DragSource = event.dragSource;
    var var1:String =(event.dragInitiator as
    Tree).value.@attrName;
    -> the var1 variable has now: "attrValue"
    my question is.. how can I get all the attributes' names? in
    this example: attrName and otherAttrName (suppose I don't know the
    structure of that xml node)
    what about attributes values?
    thank you!

    The snippet below takes an xml node(nodeCur), loops over the
    attributes list and builds an array that contains the attribute
    name and value for each attribute. It comes from a sample app that
    allows you to edit an xml file.
    Sorry that the forum will remove the formatting
    var aDPAttributes:Array = new Array();
    var xlAttributes:XMLList = nodeCur.@*;
    var attribute:Attribute;
    for ( var i:int = 0; i < xlAttributes.length(); i++) {
    aDPAttributes.push({name:xlAttributes [ i ]
    .name(),value:xlAttributes [ i ] });
    dgAttributes.dataProvider = aDPAttributes; //set the property
    sheet dataProvider
    Tracy

  • Getting list of view`s attributes names

    Hi experts,
    Is it possible to get list of attributes names on a view? After calling
    create_view(...)
    in controller I would like to iterate through all view`s attributes and fetch data from model for all attributes with the same name on view and model. So, I need a way how to get information about all attributes on a view.
    Best regards, Maksim Rashchynski.

    Hi Maksim Rashchynski ,
    You should use model data binding to cater your requirement.    What you have to do is define all your attributes in model and just define a reference in page attributes of your view using
    type ref to your_model
    now in your View code like this
    <htmlb:label for    = "Myfield"
                     design = "EMPHASIZED" />
        <htmlb:inputField id      = "fldid"
                          value   = "//model/field1"
                           disabled ="False"></htmlb:inputField>
    what will happen after this is you can easily get your data to your view directly from model and viceversa.
    Hope it helps else revert back.
    Regards
    Amit Kumar

  • Oracle.jbo.AttrValException: JBO-27019: Get method for attribute

    Hi Guys,
    I am trying to add a new column to Oracle quoting.It has already been customized by some consultant few years back. I followed the note 392728.1 on metalink and also have the documentation by the previous consultant but getting the error oracle.jbo.AttrValException: JBO-27019: Get method for attribute Draft in HeaderVO could not be resolved after adding my column, when I try to print the quote.
    Here are the steps I took
    1) added a column to the query (at the end) in HeaderVO.xml
    2) added the below code in the HeaderVO.xml
    <ViewAttribute
    Name="DRAFT"
    IsQueriable="false"
    IsPersistent="false"
    Precision="100"
    Type="java.lang.String"
    AliasName="DRAFT"
    ColumnType="VARCHAR2"
    Expression="DRAFT"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="100" />
    </DesignTime>
    </ViewAttribute>
    3). Modify HeaderVORowImpl.java file to add setters and getters for the newly added view attribute. For example,
    a) case 67: //
    setDRAFT((String)obj);
    return;
    b) case 67:
    return getDRAFT();
    c) ublic void setDRAFT(String s)
    setAttributeInternal(67, s);
    public String getDRAFT()
    return (String)getAttributeInternal(67);
    d) protected static final int DRAFT = 67;
    Everything is dont exactly as per the manual but not sure why I am getting this issue. Any help will be appreciated.

    a) case 67: //
    setDraft((String)obj);
    return;
    b) case 67:
    return getDraft();
    c)public void setDraft(String s){
    setAttributeInternal(67, s);
    public String getDraft(){
    return (String)getAttributeInternal(67);
    d) protected static final int DRAFT = 67;
    can u change it as explained above.. setDRAFT should be setDraft.. and getDRAFT should be getDraft..
    and make sure that the index.. number is exactly matching with the attribute order in the VO

  • Oracle.jbo.PersistenceException: JBO-26010: Invalid Entity Attribute Name "" specified for the View Attribute ""

    HI, I'm using JDEV 11.1.1.6.0
    I am encountering this error msg on one VO
    oracle.jbo.PersistenceException: JBO-26010: Invalid Entity Attribute Name "CorrespondenceAddressFlag" specified for the View Attribute "AddressDetailsVO"
    I have searched for similar problems for others and have checked the relevant XML file and have seen that the entries are correct.
    If I delete this attribute and add it again, the error come up for the next attribute.
    Earlier the EO had a few attributes then according to further requirement changes, we add new attributes to the Table and Synchronized the EO's.
    Then added these Attributes to the VO. This application Runs fine when tested in AppModule but when dropped on page, it gives the above error.
    oracle.jbo.PersistenceException: JBO-26010: Invalid Entity Attribute Name "CorrespondenceAddressFlag" specified for the View Attribute "AddressDetailsVO"
      at oracle.jbo.server.ViewDefImpl.doAddEntityAttribute(ViewDefImpl.java:7078)
      at oracle.jbo.server.ViewAttributeDefImpl.loadFromXML(ViewAttributeDefImpl.java:2099)
      at oracle.jbo.server.ViewDefImpl.loadAttributes(ViewDefImpl.java:6816)
      at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:4453)
      at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:3946)
      at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:3894)
      at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:554)
      at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:1232)
      at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:603)
      at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:523)
      at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:505)
      at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:780)
      at oracle.jbo.server.ViewDefImpl.findDefObject(ViewDefImpl.java:845)
      at oracle.jbo.server.AMViewUsage.createViewObject(AMViewUsage.java:112)
      at oracle.jbo.server.ApplicationModuleDefImpl.loadViewObject(ApplicationModuleDefImpl.java:660)
      at oracle.jbo.server.ApplicationModuleDefImpl.loadComponents(ApplicationModuleDefImpl.java:921)
      at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:493)
      at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:87)
      at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:158)
      at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:73)
      at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2913)
      at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
      at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2473)
      at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2347)
      at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3246)
      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:572)
      at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:234)
      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:505)
      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:500)
      at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:523)
      at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:871)
      at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1640)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.getDataControl(JUCtrlActionBinding.java:566)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:316)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:296)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.getEnabled(JUCtrlActionBinding.java:1833)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.internalGet(JUCtrlActionBinding.java:1927)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.internalGet(FacesCtrlActionBinding.java:369)
      at oracle.adf.model.binding.DCControlBinding.get(DCControlBinding.java:749)
      at javax.el.MapELResolver.getValue(MapELResolver.java:164)
      at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
      at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
      at com.sun.el.parser.AstValue.getValue(Unknown Source)
      at com.sun.el.parser.AstNot.getValue(Unknown Source)
      at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
      at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)
      at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.getDisabled(GoLinkRenderer.java:506)
      at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.isDisabled(GoLinkRenderer.java:681)
      at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.handleInaccessibility(GoLinkRenderer.java:584)
      at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.encodeAll(GoLinkRenderer.java:131)
      at oracle.adfinternal.view.faces.renderkit.rich.CommandLinkRenderer.encodeAll(CommandLinkRenderer.java:159)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:938)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:406)
      at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)
      at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:220)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:938)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:406)
      at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)
      at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1324)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:938)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
      at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:267)
      at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:191)
      at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:911)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:367)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:222)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
      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:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447)
      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447)
      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:57)
      at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
      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:57)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
      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)
    <Jul 3, 2013 4:12:48 PM IST> <Error> <HTTP> <BEA-101020> <[ServletContext@60954909[app:com.magma.application.model module:viewcontroller-context-root path:/viewcontroller-context-root spec-version:2.5]] Servlet failed with Exception
    oracle.jbo.PersistenceException: JBO-26010: Invalid Entity Attribute Name "CorrespondenceAddressFlag" specified for the View Attribute "AddressDetailsVO"
      at oracle.jbo.server.ViewDefImpl.doAddEntityAttribute(ViewDefImpl.java:7078)
      at oracle.jbo.server.ViewAttributeDefImpl.loadFromXML(ViewAttributeDefImpl.java:2099)
      at oracle.jbo.server.ViewDefImpl.loadAttributes(ViewDefImpl.java:6816)
      at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:4453)
      at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:3946)
      Truncated. see log file for complete stacktrace
    >
    <Jul 3, 2013 4:12:48 PM IST> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at Jul 3, 2013 4:12:48 PM IST. Notification details:
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    WatchData: DATE = Jul 3, 2013 4:12:48 PM IST SERVER = DefaultServer MESSAGE = [ServletContext@60954909[app:model module:viewcontroller-context-root path:/viewcontroller-context-root spec-version:2.5]] Servlet failed with Exception
    oracle.jbo.PersistenceException: JBO-26010: Invalid Entity Attribute Name "CorrespondenceAddressFlag" specified for the View Attribute "AddressDetailsVO"
      at oracle.jbo.server.ViewDefImpl.doAddEntityAttribute(ViewDefImpl.java:7078)
      at oracle.jbo.server.ViewAttributeDefImpl.loadFromXML(ViewAttributeDefImpl.java:2099)
      at oracle.jbo.server.ViewDefImpl.loadAttributes(ViewDefImpl.java:6816)
      at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:4453)
      at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:3946)
      at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:3894)
      at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:554)
      at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:1232)
      at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:603)
      at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:523)
      at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:505)
      at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:780)
      at oracle.jbo.server.ViewDefImpl.findDefObject(ViewDefImpl.java:845)
      at oracle.jbo.server.AMViewUsage.createViewObject(AMViewUsage.java:112)
      at oracle.jbo.server.ApplicationModuleDefImpl.loadViewObject(ApplicationModuleDefImpl.java:660)
      at oracle.jbo.server.ApplicationModuleDefImpl.loadComponents(ApplicationModuleDefImpl.java:921)
      at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:493)
      at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:87)
      at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:158)
      at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:73)
      at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2913)
      at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
      at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2473)
      at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2347)
      at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3246)
      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:572)
      at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:234)
      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:505)
      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:500)
      at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:523)
      at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:871)
      at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1640)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.getDataControl(JUCtrlActionBinding.java:566)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:316)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:296)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.getEnabled(JUCtrlActionBinding.java:1833)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.internalGet(JUCtrlActionBinding.java:1927)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.internalGet(FacesCtrlActionBinding.java:369)
      at oracle.adf.model.binding.DCControlBinding.get(DCControlBinding.java:749)
      at javax.el.MapELResolver.getValue(MapELResolver.java:164)
      at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
      at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
      at com.sun.el.parser.AstValue.getValue(Unknown Source)
      at com.sun.el.parser.AstNot.getValue(Unknown Source)
      at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
      at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)
      at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.getDisabled(GoLinkRenderer.java:506)
      at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.isDisabled(GoLinkRenderer.java:681)
      at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.handleInaccessibility(GoLinkRenderer.java:584)
      at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.encodeAll(GoLinkRenderer.java:131)
      at oracle.adfinternal.view.faces.renderkit.rich.CommandLinkRenderer.encodeAll(CommandLinkRenderer.java:159)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:938)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:406)
      at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)
      at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:220)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:938)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:406)
      at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)
      at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1324)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:938)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
      at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:267)
      at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:191)
      at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:911)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:367)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:222)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
      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:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447)
      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447)
      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:57)
      at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
      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:57)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
      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)
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = NRSAWANT-IN TXID =  CONTEXTID = 94d3e58da1320945:-18bd848a:13fa41f0152:-8000-000000000000001c TIMESTAMP = 1372848168531 
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >
    <Jul 3, 2013 4:12:49 PM IST> <Alert> <Diagnostics> <BEA-320016> <Creating diagnostic image in d:\jdev_home\system11.1.1.6.38.61.92\defaultdomain\servers\defaultserver\adr\diag\ofm\defaultdomain\defaultserver\incident\incdir_31 with a lockout minute period of 1.>
    <Jul 3, 2013 4:12:52 PM IST> <Warning> <Socket> <BEA-000449> <Closing socket as no data read from it on 10.180.183.77:57,804 during the configured idle timeout of 5 secs>
    <Jul 3, 2013 4:12:52 PM IST> <Warning> <Socket> <BEA-000449> <Closing socket as no data read from it on 10.180.183.77:57,803 during the configured idle timeout of 5 secs>
    <Jul 3, 2013 4:12:52 PM IST> <Warning> <Socket> <BEA-000449> <Closing socket as no data read from it on 10.180.183.77:57,800 during the configured idle timeout of 5 secs>
    <Jul 3, 2013 4:12:52 PM IST> <Warning> <Socket> <BEA-000449> <Closing socket as no data read from it on 10.180.183.77:57,802 during the configured idle timeout of 5 secs>
    <Jul 3, 2013 4:12:52 PM IST> <Warning> <Socket> <BEA-000449> <Closing socket as no data read from it on 10.180.183.77:57,801 during the configured idle timeout of 5 secs>

    Just to confirm that this is not a Library or deployment setup problem, Now, I changed the deployment scope to include business components in the ViewController to just to be sure it was being picked up in the ViewController too. I Created a separate AppModule in the ViewController and Added the VO to it, It Ran Properly including the Addition and Commit Control.

  • If I know a name of class , how can I get it's attribute and methods

    If I know a name of class , how can I get it's attribute and methods as well as it's detail information by ABAP code ?
    Best regards ,

    HI, Chandra ,
    Thank you very much , I can get the result
    Best regards,
    DATA lo_class TYPE REF TO cl_oo_class.
    DATA lt_attribs TYPE seo_attributes.
    FIELD-SYMBOLS: <attrib> TYPE vseoattrib.
    TRY.
        CREATE OBJECT lo_class
          EXPORTING
            clsname = 'CLASS_NAME'.
      CATCH cx_class_not_existent .
    ENDTRY.
    lt_attribs = lo_class->get_attributes( ).
    BREAK-POINT.

  • Is it possible to get oracle procedure name from an ORA-06576

    I got a 'ORA-06576: not a valid function or procedure name' exception from java, is there any generic way to get the actual procedure name once this exception happens?
    Edited by: qjvictor on Aug 27, 2012 9:08 AM

    >
    // following is a simple function which call a SP.
    >
    Thanks for posting the sample code. I can reproduce what you are reporting. That error message is a generic Oracle error and, as you indicate, does not include any specifics about what was being searched for and not found.
    If you have an Oracle support contract you might check MOS to see if there have been any similar requests submitted or you could file an SOR with Oracle.
    There are no workarounds that I am aware of other than to use a variable to hold the name of the procedure and then on an exception use the variable as part of your error reporting. So instead of this
    final CallableStatement c = con.prepareCall("call SP_NAME(?,?)");you would need to split out the procedure name and construct the string dynamically
    String procName = "SP_NAME";
    final CallableStatement c = con.prepareCall("call " + procName + "(?,?)");

  • Want to get the Client Machine name from Oracle Forms

    Hi,
    I want to get the Client machine name from the Oracle Forms.
    I have attached web_util.pll.
    I use user_name := webutil_clientinfo.get_host_name;
    but i am getting following error - WebUtil Error:WUC-015: Your form must contain the following Bean for this function to be available: oracle.forms.webutil.clientinfo.GetClientInfo.
    Can any one help me in this!
    Thanks & Regards,
    Avinash Bhamare.
    Pune.

    Hi,
    I have written the code on when-button-pressed trigger of a push button -
    DECLARE
         user_name VARCHAR2(50);
    BEGIN
    user_name := client_win_api_environment.get_computer_name;
    message('user_name is :'||user_name);
    message('user_name is :'||user_name);
    END;
    And on clicking on this button i am getting error -
    frm-40734:Internal Error:PL/SQL error occurred
    Can any one help in this asap please!
    Thanks & Regards,
    Avinash.

  • How to get the available profile names in oracle database

    How we can get the available profile names in oracle 11g

    Hi;
    It isnt to check from dictionary ?
    select * from dictionary where table_name like '%PROFILE%'
    PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Regard
    Helios

  • How To Get Attribute Names for a Particular VO

    Hi ,
    How To Get Attribute Names Of a Vo where I can Set Viewattributname To the Table RN Columns Where I am Adding Extra Columns Based on Some Condn..
    So wen i am creating new Column to existing Table RN and we Need to add Attribute Name Also...Rt..
    And How To get RelationShip Between Database Column Name and Java Vo Attribute Name
    Ex: PlanId is the Java VO Attribute Name for the Database Column PLAN_ID
    In The Same way Hw We Get the Relation ship for All other columns In the Controller Cllass ..
    Can Any One Reply as It is urgent Req...
    Thanks ,,
    Jithen

    Instead of using the VO attribute names to set and get values, best to go to the VO definition, click on Java, and generate the View Row Class with the accessors.
    In the class where you're trying to set attributes, instead of a Row class, use the View Row class of your VO (eg ViewObjectName's class would be ViewObjectNameRowImpl), and when retrieving a row from the VO, cast the row to the previously mentioned View Row Class.
    At that point you can use the View Row Class's methods that would perform sets and gets of each column.
    To get attribute names, I don't know off the top of my head, but there might be a method mentioned in the Javadoc for the ViewRowImpl or ViewObject or ViewObjectDefinition classes to get the attribute/column mapping, or perhaps you can somehow read the XML definition of the VO which has that mapping.
    Assuming business components were built automatically and no attribute names were overridden, intuitively the attribute name is a camelcase version of the column name, removing understores and capitalizing the character following the removed underscore - but that's not a fool proof approach. Just a general observation.
    Hope this helps.
    Edited by: user6631964 on Sep 16, 2010 12:31 PM

  • JBO-26010: Invalid Entity Attribute Name

    Hi All,
    The requirement is to add a new field on the page but that field is not getting selected in the core EO, so I have extended the EO and than extended the VO based on that extend ed EO.
    After that I followed usual steps to import then personalised and added the new field ...bounced every thing but when I am testing got following error:
    ## Detail 0 ##
    JBO-30003: The application pool (oracle.apps.pon.negotiation.creation.server.NegotiationCreationAM) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.PersistenceException, msg=JBO-26010: Invalid Entity Attribute Name "Description" specified for the View Attribute "XxAuctionHeadersAllVO"
    ===========
    When I checked the "XxAuctionHeadersALLEO.xml" it has only entry of new attribute. But in "XxAuctionHeadersAllVO.xml" it has the complete SQL ....so is that can be a problem?
    I have run the query from "XxAuctionHeadersAllVO.xml" in toad and it works fine.
    Thanks!

    Yes it is...:-)
    Anyways thanks for the reply..
    The Base EO - AuctionHeadersALLEO which I have extended to XxAuctionHeadersALLEO
    I have already performed both the steps suggested by you (i.e. option 1) so after Substitute the custom VO "XxAuctionHeadersAllVO" on top of standard VO "AuctionHeadersAllVO" when I tested the change I have got the above error : JBO-26010: Invalid Entity Attribute Name "Description" specified for the View Attribute "XxAuctionHeadersAllVO"
    So in custom VO (and also in standard VO) select it's just references it as "AuctionHeadersALLEO.DESCRIPTION" but the field is in AuctionHeadersAllBaseEO.xml not in AuctionHeadersALLEO.xml
    so I don't understand how it works in the standard product?
    Is it any better? Or do I have to be more clearer :-(

  • Datasource is not getting created with jndi name though ANT

    Please help me to come out of this problem. JDBC DATA SOURCE is getting created without jndi name when iam executing below ANT Script.
    <?xml version="1.0" ?>
         <project name="deploy" default="createDataSource" basedir=".">
         <property name="weblogic.jar" location="C:/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar"/>
         <property name="wls.username" value="weblogic" />
         <property name="wls.password" value="weblogic" />
         <property name="wls.url" value="t3://000.00.000.000:7001" />
         <property name="wls.targetServer" value="AdminServer" />
         <property name="wls.targetServer" value="soa_server1" />
         <property name="wls.domainName" value="SOA" />
         <property name="database.url" value="jdbc:oracle:thin:@000.00.000.000:7001:DEV" />
         <property name="database.driver" value="oracle.jdbc.xa.client.OracleXADataSource" />
         <property name="database.user" value="user" />
         <property name="database.password" value="password" />
         <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" classpath="${weblogic.jar}"/>
         <taskdef name="wlconfig" classname="weblogic.ant.taskdefs.management.WLConfig" classpath="${weblogic.jar}"/>
         <target name="createDataSource">
         <wlconfig username="weblogic" password="webfsaD1" url="t3://000.00.000.000:7001:7001">
         <query domain="SOA" type="Server" name="AdminServer" property="x" />
         <create type="JDBCConnectionPool" name="TestScriptDS" >
         <set attribute="CapacityIncrement" value="1"/>
         <set attribute="DriverName" value="oracle.jdbc.xa.client.OracleXADataSource"/>
         <set attribute="InitialCapacity" value="1"/>
         <set attribute="MaxCapacity" value="10"/>
         <set attribute="Password" value="Password"/>
         <set attribute="Properties" value="user=user"/>
         <set attribute="RefreshMinutes" value="0"/>
         <set attribute="ShrinkPeriodMinutes" value="15"/>
         <set attribute="ShrinkingEnabled" value="true"/>
         <set attribute="TestConnectionsOnRelease" value="false"/>
         <set attribute="TestConnectionsOnReserve" value="false"/>
         <set attribute="TestTableName" value="SQL SELECT 1 FROM DUAL"/>
         <set attribute="URL" value="${database.url}"/>
         <set attribute="Targets" value="${x}" />
         </create>
         <create type="JDBCTxDataSource" name="TestScriptDS">
         <set attribute="JNDINames" value="jdbc/testScriptDS"/>
         <set attribute="PoolName" value="TestScriptDS"/>
         <set attribute="Targets" value="${x}"/>
         </create>
         </wlconfig>
         </target>
         </project>
    Thanks in advance,

    Thank u very much for ur quick reply.
    C:\ANT_DataSource>ant -v
    Apache Ant(TM) version 1.8.2 compiled on December 20 2010
    Trying the default build file: build.xml
    Buildfile: C:\ANT_DataSource\build.xml
    Detected Java version: 1.6 in: C:\Oracle\Middleware\jdk160_24\jre
    Detected OS: Windows 7
    parsing buildfile C:\ANT_DataSource\build.xml with URI = file:/C:/ANT_DataSource/build.xml
    Project base dir set to: C:\ANT_DataSource
    parsing buildfile jar:file:/D:/ANT/apache-ant-1.8.2/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/D:/ANT/apache-ant-1.8.2/lib/ant.jar!/org/a
    pache/tools/ant/antlib.xml from a zip file
    Build sequence for target(s) `makeDataSource' is [makeDataSource]
    Complete build sequence is [makeDataSource, ]
    makeDataSource:
    Property "AdminServer" has not been set
    Property "SoaServer" has not been set
    Property "AdminServer" has not been set
    Property "SoaServer" has not been set
    [wlconfig] QUERY -pattern SOA:*,Name=AdminServer,Type=Server
    [wlconfig] Set size is 1
    [wlconfig] QUERY -pattern SOA:*,Name=soa_server1,Type=Server
    [wlconfig] Set size is 1
    [wlconfig] Created MBEAN: SOA:Name=SampleDS,Type=JDBCConnectionPool
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Capa
    cityIncrement 1
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Driv
    erName oracle.jdbc.xa.client.OracleXADataSource
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Init
    ialCapacity 0
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property MaxC
    apacity 50
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Stat
    ementTimeout 600
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Pass
    word USER
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Prop
    erties user=PASSWORD
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Refr
    eshMinutes 0
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Shri
    nkPeriodMinutes 15
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Shri
    nkingEnabled true
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Test
    ConnectionsOnRelease false
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Test
    ConnectionsOnReserve false
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Test
    ConnectionsOnCreate true
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Test
    TableName SQL SELECT 1 FROM DUAL
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property URL
    jdbc:oracle:thin:@100.10.000.100:1601:DEVDB
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Targ
    ets SOA:Name=AdminServer,Type=Server;SOA:Name=soa_server1,Type=Server
    [wlconfig] Ok
    [wlconfig] Created MBEAN: SOA:Name=SampleDS,Type=JDBCTxDataSource
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCTxDataSource -property JNDINa
    me jdbc/SampleDS
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCTxDataSource -property PoolNa
    me SampleDS
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCTxDataSource -property Target
    s SOA:Name=AdminServer,Type=Server;SOA:Name=soa_server1,Type=Server
    [wlconfig] Ok
    [wlconfig] QUERY -pattern SOA:*,Name=AdminServer,Type=WebServer
    [wlconfig] Set size is 1
    [wlconfig] SET -mbean SOA:Name=AdminServer,Type=WebServer,Server=AdminServer -p
    roperty LogFileName logs/access.log
    [wlconfig] Ok
    BUILD SUCCESSFUL
    Total time: 41 seconds
    Edited by: soa.dev on 12-Sep-2012 02:09

  • UIX template with an attribute

    I have a uix template with an attribute selectedTab that looks like this:
    <type base="ui:pageLayout">
    <attribute name="selectedTab" javaType="int"/>
    </type>
    My question is:
    How do I set the attribute value from the uix page that is based on that template?

    Jasmina,
    I suppose you created your template by selecting "UIX XML Template (UIT) with Header, Footer, and Navigation".
    You are asked there to fill in the values for your different tabs.
    Now when creating a new page, you should select option "UIX XML Page Based on Existing UIX XML Template (UIT)".
    There you are asked to enter an 'Attribute Value' for your page.
    You should type "0" (zero) when creating the page displayed on the first tab;
    "1" when creating the page displayed on the second tab;
    etc...
    Your pages will include the following:
    <templates xmlns="http://xmlns.oracle.com/uix/ui">
    <templateImport source="myTabBar.uit"/>
    </templates>
    <myTemplate:myTabBar title="All Departments" selectedTab="0">
    </myTemplate:myTabBar>
    Your template should include the following:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <templateDefinition ... localName="myTabBar" ...>
    <type base="ui:pageLayout">
    <attribute name="selectedTab" javaType="int"/>
    </type>
    <content>
    <pageLayout>
    <attributeMap>
    <rootAttributeMap/>
    </attributeMap>
    <childMap>
    <rootChildMap/>
    </childMap>
    <tabs>
    <tabBar selectedIndex="${uix.rootAttr.selectedTab}">
    <contents>
    <link text="Departments" destination="Dept.uix"/>
    <link text="Employees" destination="Emp.uix"/>
    </contents>
    </tabBar>
    </tabs>
    Hope this helps,
    Didier

  • IfsException: IFS-10407: Invalid Attribute name

    I'm trying to programmaticaly create an instance of the custom class AsapPublisher that I have created. When I attempt to set the attribute jobTitle I get the IFS exception 10407. The attribute jobTitle exists so I unsure why I'm getting this error. Below is my code and stack trace. If anyone can see where I'm going wrong I would appreciate input. Thanks!
    instantiatePublisher.jsp
    <%@ page contentType="text/html;charset=WINDOWS-1252"%>
    <%@ page import="oracle.ifs.common.IfsException" %>
    <%@ page import="oracle.ifs.beans.LibrarySession" %>
    <%@ page import="oracle.ifs.beans.LibraryService" %>
    <%@ page import="java.util.Locale" %>
    <%@ page import="oracle.ifs.beans.ClassObject" %>
    <%@ page import="java.io.*" %>
    <%@ page import="publishasap.AsapPublisher" %>
    <%@ page import="publishasap.definition.AsapPublisherDef" %>
    <%@ page import="publishasap.definition.AsapPublisherContactDef" %>
    <%@ page import="oracle.ifs.common.CleartextCredential" %>
    <%@ page import="oracle.ifs.common.ConnectOptions" %>
    <%
    String username = "system";
    String password = "manager";
    String serviceName = "IfsDefault";
    String servicePassword = "ifssys";
    try
    LibraryService ifsService = new LibraryService();
    CleartextCredential credentials = new CleartextCredential(username,password);
    ConnectOptions connectOpts = new ConnectOptions();
    connectOpts.setLocale(Locale.getDefault());
    connectOpts.setServiceName(serviceName);
    connectOpts.setServicePassword(servicePassword);
    LibrarySession ifsSession = ifsService.connect(credentials,connectOpts);
    ifsSession.setAdministrationMode(true);
    //set the AsapPublisher attributes and create a publisher instance
    AsapPublisherDef publisher = new AsapPublisherDef(ifsSession);
    publisher.setCompanyName(request.getParameter("pubName"));
    publisher.setAddress1(request.getParameter("address1"));
    publisher.setAddress2(request.getParameter("address2"));
    publisher.setCity(request.getParameter("city"));
    publisher.setState(request.getParameter("state"));
    publisher.setPostalCode(request.getParameter("postalCode"));
    publisher.setCountry(request.getParameter("country"));
    publisher.setPhoneNumber(request.getParameter("phoneNumber"));
    publisher.setPublisherDescription(request.getParameter("pubDescription"));
    out.println("here");
    //create the publisher contact object
    AsapPublisherContactDef contact = new AsapPublisherContactDef(ifsSession);
    contact.setClassObject(ClassObject.getClassObjectFromLabel(ifsSession,publishasap.AsapPublisherContact.CLASS_NAME));
    contact.setJobTitle(request.getParameter("jobTitle"));
    contact.setPrefix(request.getParameter("prefix"));
    contact.setFirstName(request.getParameter("fName"));
    contact.setMInitial(request.getParameter("mInitial"));
    contact.setLastName(request.getParameter("lName"));
    contact.setSuffix(request.getParameter("suffix"));
    contact.setEmail1(request.getParameter("email1"));
    contact.setEmail2(request.getParameter("email2"));
    contact.setFax(request.getParameter("fax"));
    contact.setWkPhone(request.getParameter("workPhone"));
    contact.setUsername(request.getParameter("username"));
    contact.setPassword(request.getParameter("password"));
    publisher.setAsapPublisherContact(contact);
    AsapPublisher createPub = (AsapPublisher) ifsSession.createPublicObject(contact);
    ifsSession.disconnect();
    catch(IfsException e)
    out.println("System was unable to create an author object");
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw, true);
    e.printStackTrace(pw);
    String trace = sw.toString();
    sw.close();
    pw.close();
    out.println(trace);
    IfsException.setVerboseMessage(true);
    String message = e.getMessage();
    out.println(message);
    %>
    AsapPublisher.java
    // Copyright (c) 2000 Thin Data Solutions
    package publish asap;
    import oracle.ifs.beans.*;
    import oracle.ifs.common.*;
    import oracle.ifs.server.S_LibraryObjectData;
    import publishasap.AsapCustomer;
    import publishasap.AsapPublisherContact;
    import publishasap.definition.AsapPublisherContactDef;
    * A Bean class.
    * <P>
    public class AsapPublisher extends AsapCustomer {
    public static final String CLASS_NAME= "AsapPublisher";
    public static final String PUBLISHER_CONTACT= "AsapPublisherContact";
    public static final String PUBLISHER_DESCRIPTION="publisherDescription";
    private LibrarySession m_IfsSession= null;
    * Constructor
    public AsapPublisher( LibrarySession ifs,
    java.lang.Long id,
    java.lang.Long classId,
    S_LibraryObjectData data)
    throws IfsException{
    // Construct a Document object - standard variant.
    super(ifs,id,classId,data);
    m_IfsSession= ifs;
    public void setAsapPublisherContact(AsapPublisherContact newValue)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newValue);
    setAttribute(PUBLISHER_CONTACT, av);
    public void setAsapPublisherContact(AsapPublisherContactDef newValue)
    throws IfsException{
    PublicObject po= m_IfsSession.createPublicObject(newValue);
    AttributeValue av= AttributeValue.newAttributeValue(po);
    setAttribute(PUBLISHER_CONTACT, av);
    public void setPublisherDescription(String newValue)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newValue);
    setAttribute(PUBLISHER_DESCRIPTION, av);
    public String getPublisherDescription()
    throws IfsException{
    AttributeValue av= getAttribute(PUBLISHER_DESCRIPTION);
    return av.getString(getSession());
    public AsapPublisherContact getAsapPublisherContact()
    throws IfsException{
    AttributeValue av= getAttribute(PUBLISHER_CONTACT);
    return (AsapPublisherContact)av.getObject(getSession());
    AsapPublisherDef.jav
    // Copyright (c) 2000 Thin Data Solutions
    package publishasap;
    import oracle.ifs.beans.*;
    import oracle.ifs.common.*;
    import oracle.ifs.server.S_LibraryObjectData;
    import publishasap.AsapCustomer;
    import publishasap.AsapPublisherContact;
    import publishasap.definition.AsapPublisherContactDef;
    * A Bean class.
    * <P>
    public class AsapPublisher extends AsapCustomer {
    public static final String CLASS_NAME= "AsapPublisher";
    public static final String PUBLISHER_CONTACT= "AsapPublisherContact";
    public static final String PUBLISHER_DESCRIPTION="publisherDescription";
    private LibrarySession m_IfsSession= null;
    * Constructor
    public AsapPublisher( LibrarySession ifs,
    java.lang.Long id,
    java.lang.Long classId,
    S_LibraryObjectData data)
    throws IfsException{
    // Construct a Document object - standard variant.
    super(ifs,id,classId,data);
    m_IfsSession= ifs;
    public void setAsapPublisherContact(AsapPublisherContact newValue)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newValue);
    setAttribute(PUBLISHER_CONTACT, av);
    public void setAsapPublisherContact(AsapPublisherContactDef newValue)
    throws IfsException{
    PublicObject po= m_IfsSession.createPublicObject(newValue);
    AttributeValue av= AttributeValue.newAttributeValue(po);
    setAttribute(PUBLISHER_CONTACT, av);
    public void setPublisherDescription(String newValue)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newValue);
    setAttribute(PUBLISHER_DESCRIPTION, av);
    public String getPublisherDescription()
    throws IfsException{
    AttributeValue av= getAttribute(PUBLISHER_DESCRIPTION);
    return av.getString(getSession());
    public AsapPublisherContact getAsapPublisherContact()
    throws IfsException{
    AttributeValue av= getAttribute(PUBLISHER_CONTACT);
    return (AsapPublisherContact)av.getObject(getSession());
    AsapPublisherContact.java
    // Copyright (c) 2000 Movement Inc.
    package publishasap;
    import publish asap.*;
    import oracle.ifs.beans.*;
    import oracle.ifs.common.*;
    import oracle.ifs.server.S_LibraryObjectData;
    * A Bean class.
    * <P>
    public class AsapPublisherContact extends AsapPerson {
    public static final String PUBLISHER_ID= "publisherId";
    public static final String JOB_TITLE= "jobTitle";
    public static final String CLASS_NAME= "AsapPublisherContact";
    * Constructor
    public AsapPublisherContact( LibrarySession ifs,
    java.lang.Long id,
    java.lang.Long classId,
    S_LibraryObjectData data)
    throws IfsException{
    // Construct a Document object - standard variant.
    super(ifs,id,classId,data);
    public void setPublisherId(String newId)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newId);
    setAttribute(PUBLISHER_ID, av);
    public void setJobTitle(String newTitle)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newTitle);
    setAttribute(JOB_TITLE, av);
    public String getPublisherId()
    throws IfsException{
    AttributeValue av= getAttribute(PUBLISHER_ID);
    return av.getString(getSession());
    public String getJobTitle()
    throws IfsException{
    AttributeValue av= getAttribute(JOB_TITLE);
    return av.getString(getSession());
    AsapPublisherContactDef.java
    // Copyright (c) 2000 Movement Inc.
    package publishasap.definition;
    import publishasap.AsapPublisherContact;
    import oracle.ifs.beans.*;
    import oracle.ifs.common.*;
    * A Bean class.
    * <P>
    public class AsapPublisherContactDef extends AsapPersonDef {
    * Constructor
    public AsapPublisherContactDef(LibrarySession ifs)
    throws IfsException
    // Construct a Document object - standard variant.
    super(ifs);
    this.setClassObject(ClassObject.getClassObjectFromLabel(ifs,publishasap.AsapPublisherContact.CLASS_NAME));
    public void setPublisherId(String newId)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newId);
    setAttribute(AsapPublisherContact.PUBLISHER_ID, av);
    public void setJobTitle(String newTitle)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newTitle);
    setAttribute(AsapPublisherContact.JOB_TITLE, av);
    AsapPublisherContact.xml
    <ClassObject>
    <Name>AsapPublisherContact</Name>
    <Description>Stores the information on the main contact person for the publisher.</Description>
    <SuperClass RefType="name">AsapPerson</SuperClass>
    <BeanClassPath>publishasap.AsapPublisherContact</BeanClassPath>
    <!-- Attribute list for the object -->
    <Attributes>
    <!-- Store the primary key of the publisher whom this person is the contact for. -->
    <Attribute>
    <Name>publisherId</Name>
    <DataType>String</DataType>
    <DataLength>10</DataLength>
    </Attribute>
    <!-- Store the contact person's job title or position. -->
    <Attribute>
    <Name>jobTitle</Name>
    <DataType>String</DataType>
    <DataLength>70</DataLength>
    </Attribute>
    </Attributes>
    </ClassObject>
    AsapPublisher.xml
    <ClassObject>
    <Name>AsapPublisher</Name>
    <Description>Stores the information about publishers in the database.</Description>
    <SuperClass RefType="name">AsapCustomer</SuperClass>
    <BeanClassPath>publishasap.AsapPublisher</BeanClassPath>
    <!-- Attribute list for the object. -->
    <Attributes>
    <!-- A reference to the main contact person at the publisher. -->
    <Attribute>
    <Name>asapPublisherContact</Name>
    <DataType>PublicObject</DataType>
    <ClassDomain reftype="name">AsapPubContactDomain</ClassDomain>
    </Attribute>
    <!-- A Descript ion of the publisher. -->
    <Attribute>
    <Name>publisherDescription</Name>
    <DataType>String</DataType>
    <DataLength>500</DataLength>
    </Attribute>
    </Attributes>
    </ClassObject>
    stack trace
    System was unable to create an author object oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject oracle.ifs.common.IfsException: IFS-10407: Invalid Attribute name (JOBTITLE) at oracle.ifs.server.S_LibraryObject.insertRows(S_LibraryObject.java, Compiled Code) at oracle.ifs.server.OperationState.executeAtomicOperations(OperationState.java, Compiled Code) at oracle.ifs.server.S_LibraryObject.createInstance(S_LibraryObject.java, Compiled Code) at oracle.ifs.server.S_LibrarySession.newLibraryObject(S_LibrarySession.java, Compiled Code) at oracle.ifs.server.S_LibrarySession.newPublicObject(S_LibrarySession.java:6853) at oracle.ifs.server.S_LibrarySession.newPublicObject(S_LibrarySession.java:6835) at oracle.ifs.server.S_LibrarySession.DMNewPublicObject(S_LibrarySession.java:6623) at oracle.ifs.beans.LibrarySession.DMNewPublicObject(LibrarySession.java:7226) at oracle.ifs.beans.LibrarySession.NewPublicObject(LibrarySession.java:4795) at oracle.ifs.beans.LibrarySession.createPublicObject(LibrarySession.java:2789) at publishasap.definition.AsapPublisherDef.setAsapPublisherContact(AsapPublisherDef.java:41) at ifs.files._ifs._jsp_25_2dbin._admin._instantiatePublisher._jspService(_instantiatePublisher.java:166) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java, Compiled Code) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java, Compiled Code) at oracle.jsp.JspServlet.doDispatch(JspServlet.java, Compiled Code) at oracle.jsp.JspServlet.internalService(JspServlet.java, Compiled Code) at oracle.ifs.protocols.dav.impl.IfsDavServlet.processJsp(IfsDavServlet.java, Compiled Code) at oracle.ifs.protocols.dav.impl.IfsDavServlet.doGet(IfsDavServlet.java, Compiled Code) at oracle.ifs.protocols.dav.impl.IfsDavServlet.doPost(IfsDavServlet.java, Compiled Code) at oracle.ifs.protocols.dav.DavServlet.processRequest(DavServlet.java, Compiled Code) at oracle.ifs.protocols.dav.DavServlet.service(DavServlet.java, Compiled Code) at oracle.ifs.protocols.dav.impl.IfsDavServlet.service(IfsDavServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.jserv.JServConnection.processRequest(JServConnection.java, Compiled Code) at org.apache.jserv.JServConnection.run(JServConnection.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) IFS-30002: Unable to create new LibraryObject

    Sorry Mark. Here are the rest of the files.
    AsapPerson.java
    // Copyright (c) 2000 PublishASAP
    package publishasap;
    import oracle.ifs.beans.ApplicationObject;
    import oracle.ifs.beans.LibrarySession;
    import oracle.ifs.common.AttributeValue;
    import oracle.ifs.common.IfsException;
    import oracle.ifs.server.S_LibraryObjectData;
    * Superclass of all people involved in Publishasap
    * <P>
    public class AsapPerson extends ApplicationObject {
    // Private class constants.
    public static final String CLASS_NAME = "AsapPerson";
    public static final String PREFIX= "prefix";
    public static final String FIRST_NAME= "firstName";
    public static final String INITIAL= "mInitial";
    public static final String LAST_NAME= "lastName";
    public static final String SUFFIX = "suffix";
    public static final String EMAIL_ONE= "email1";
    public static final String EMAIL_TWO= "email2";
    public static final String WORK_PHONE= "wkPhone";
    public static final String FAX= "fax";
    public static final String USERNAME= "username";
    public static final String PASSWORD= "password";
    * Constructor
    public AsapPerson(LibrarySession ifs,
    java.lang.Long id,
    java.lang.Long classId,
    S_LibraryObjectData data)
    throws IfsException{
    super(ifs, id, classId, data);
    * Set the value of the PREFIX attribute.
    public final void setPrefix( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue( newValue );
    setAttribute( PREFIX, av );
    * Get the current value of the PREFIX attribute.
    public final String getPrefix()
    throws IfsException{
    AttributeValue av= getAttribute(PREFIX);
    String tmp= av.getString(getSession());
    return tmp.trim();
    * Set the value of the first name attribute.
    public final void setFirstName( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue( newValue );
    setAttribute( FIRST_NAME, av );
    * Get the current value of the FIRST_NAME attribute.
    public final String getFirstName()
    throws IfsException{
    AttributeValue av= getAttribute(FIRST_NAME);
    String tmp= av.getString(getSession());
    return tmp.trim();
    * Set the value of the INITIAL attribute.
    public final void setMInitial( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue( newValue );
    setAttribute( INITIAL, av );
    * Get the current value of the INITIAL attribute.
    public final String getMInitial()
    throws IfsException{
    AttributeValue av= getAttribute(INITIAL);
    String tmp= av.getString(getSession());
    return tmp.trim();
    * Set the value of the LAST_NAME attribute.
    public final void setLastName( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue( newValue );
    setAttribute( LAST_NAME, av );
    * Get the current value of the LAST_NAME attribute.
    public final String getLastName()
    throws IfsException{
    AttributeValue av= getAttribute(LAST_NAME);
    String tmp= av.getString(getSession());
    return tmp.trim();
    * Set the value of the SUFFIX attribute.
    public final void setSuffix( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue( newValue );
    setAttribute( SUFFIX, av );
    * Get the current value of the SUFFIX attribute.
    public final String getSuffix()
    throws IfsException{
    AttributeValue av= getAttribute(SUFFIX);
    String tmp= av.getString(getSession());
    return tmp.trim();
    * Set the EMAIL_ONE attribute.
    public final void setEmail1( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newValue);
    setAttribute( EMAIL_ONE, av );
    * Get the current value of the EMAIL_ONE.
    public final String getEmail1()
    throws IfsException{
    AttributeValue av= getAttribute(EMAIL_ONE);
    String tmp= av.getString(getSession());
    return t mp.trim();
    * Set the EMAIL_TWO attribute.
    public final void setEmail2( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newValue);
    setAttribute( EMAIL_TWO, av );
    * Get the current value of EMAIL_TWO.
    public final String getEmail2()
    throws IfsException{
    AttributeValue av= getAttribute(EMAIL_TWO);
    String tmp= av.getString(getSession());
    return tmp.trim();
    * Set the value of the WORK_PHONE attribute.
    public final void setWkPhone( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newValue);
    setAttribute( WORK_PHONE, av );
    * Get the current value of the WORK_PHONE attribute.
    public final String getWkPhone()
    throws IfsException{
    AttributeValue av= getAttribute(WORK_PHONE);
    String tmp= av.getString(getSession());
    return tmp.trim();
    * Set the value of the FAX attribute.
    public final void setFax( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newValue);
    setAttribute( FAX, av );
    * Get the current value of the FAX attribute.
    public final String getFax()
    throws IfsException{
    AttributeValue av= getAttribute(FAX);
    String tmp= av.getString(getSession());
    return tmp.trim();
    * Set the value of the username and password.
    public final void setUsername( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newValue);
    setAttribute( USERNAME, av );
    * Get the current value of the USERNAME.
    public final String getUsername()
    throws IfsException{
    AttributeValue av= getAttribute(USERNAME);
    String tmp= av.getString(getSession());
    return tmp.trim();
    * Set the value of the PASSWORD attribute.
    public final void setPassword( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newValue);
    setAttribute( PASSWORD, av );
    * Get the current value of the password field.
    public final String getPassword()
    throws IfsException{
    AttributeValue av= getAttribute(PASSWORD);
    String tmp= av.getString(getSession());
    return tmp.trim();
    AsapPersonDef.java
    // Copyright (c) 2000 Movement Inc
    package publishasap.definition;
    import oracle.ifs.beans.ClassObject;
    import oracle.ifs.beans.LibrarySession;
    import oracle.ifs.beans.LibraryObjectDefinition;
    import oracle.ifs.beans.ApplicationObjectDefinition;
    import oracle.ifs.common.AttributeValue;
    import oracle.ifs.common.IfsException;
    import javax.servlet.http.HttpServletRequest;
    import oracle.ifs.beans.DocumentDefinition;
    * A Bean class.
    * <P>
    * @author Brooke Supryka
    public class AsapPersonDef extends ApplicationObjectDefinition {
    * This bean is called to create an instance of a person
    * <P>
    * @author Brooke Supryka
    private static final boolean DEBUG = true;
    * Constructs a new instance.
    public AsapPersonDef(LibrarySession ifs) throws IfsException
    //Construct an AsapAuthor object
    super(ifs);
    this.setClassObject(ClassObject.getClassObjectFromLabel(ifs,publishasap.AsapPerson.CLASS_NAME));
    * Set the value of the PREFIX attribute.
    public final void setPrefix( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue( newValue );
    setAttribute( publishasap.AsapPerson.PREFIX, av );
    * Set the value of the first name attribute.
    public final void setFirstName( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue( newValue );
    setAttribute( publishasap.AsapPerson.FIRST_NAME, av );
    * Set the value of the INITIAL attribute.
    public final void setMInitial( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue( newValue );
    setAttribute( publishasap.AsapPerson.INITIAL, av );
    * Set the value of the LAST_NAME attribute.
    public final void setLastName( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue( newValue );
    setAttribute( publishasap.AsapPerson.LAST_NAME, av );
    * Set the value of the SUFFIX attribute.
    public final void setSuffix( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue( newValue );
    setAttribute( publishasap.AsapPerson.SUFFIX, av );
    * Set the EMAIL_ONE attribute.
    public final void setEmail1( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newValue);
    setAttribute( publishasap.AsapPerson.EMAIL_ONE, av );
    * Set the EMAIL_TWO attribute.
    public final void setEmail2( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newValue);
    setAttribute( publishasap.AsapPerson.EMAIL_TWO, av );
    * Set the value of the WORK_PHONE attribute.
    public final void setWkPhone( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newValue);
    setAttribute( publishasap.AsapPerson.WORK_PHONE, av );
    * Set the value of the FAX attribute.
    public final void setFax( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newValue);
    setAttribute( publishasap.AsapPerson.FAX, av );
    * Set the value of the username and password.
    public final void setUsername( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newValue);
    setAttribute( publishasap.AsapPerson.USERNAME, av );
    * Set the value of the PASSWORD attribute.
    public final void setPassword( String newValue )
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newValue);
    setAttribute( publishasap.AsapPerson.PASSWORD, av );
    AsapCustomer
    // Copyright (c) 2000 Movement Inc.
    package publishasap;
    import oracle.ifs.beans.*;
    import oracle.ifs.common.*;
    import oracle.ifs.server.S_LibraryObjectData;
    * Instance of AsapCustomer.
    * <P>
    * @author Ian Kulmatycki
    public class AsapCustomer extends TieApplicationObject {
    public static final String CLASS_NAME= "AsapCustomer";
    public static final String COMPANY_NAME= "companyName";
    public static final String ADDRESS_1= "address1";
    public static final String ADDRESS_2= "address2";
    public static final String CITY= "city";
    public static final String STATE= "state";
    public static final String POSTAL_CODE= "postalCode";
    public static final String PHONE_NUMBER= "phoneNumber";
    public static final String COUNTRY= "country";
    * Constructor
    public AsapCustomer( LibrarySession ifs,
    java.lang.Long id,
    java.lang.Long classId,
    S_LibraryObjectData data)
    throws IfsException{
    // Construct a Document object - standard variant.
    super(ifs,id,classId,data);
    public void setCompanyName(String newName)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newName);
    setAttribute(COMPANY_NAME, av);
    public void setAddress1(String newAddress)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newAddress);
    setAttribute(ADDRESS_1, av);
    public void setAddress2(String newAddress)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newAddress);
    setAttribute(ADDRESS_2, av);
    public void setCity(String newCity)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newCity);
    setAttribute(CITY, av);
    public void setState(String newState)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newState);
    setAttribute(STATE, av);
    public void setPostalCode(String newPostalCode)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newPostalCode);
    setAttribute(POSTAL_C ODE, av);
    public void setCountry(String newCountry)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newCountry);
    setAttribute(COUNTRY, av);
    public void setPhoneNumber(String newPhoneNumber)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newPhoneNumber);
    setAttribute(PHONE_NUMBER, av);
    public String getCompanyName()
    throws IfsException{
    AttributeValue av= getAttribute(COMPANY_NAME);
    return av.getString(getSession());
    public String getAddress1()
    throws IfsException{
    AttributeValue av= getAttribute(ADDRESS_1);
    return av.getString(getSession());
    public String getAddress2()
    throws IfsException{
    AttributeValue av= getAttribute(ADDRESS_2);
    return av.getString(getSession());
    public String getCity()
    throws IfsException{
    AttributeValue av= getAttribute(CITY);
    return av.getString(getSession());
    public String getPostalCode()
    throws IfsException{
    AttributeValue av= getAttribute(POSTAL_CODE);
    return av.getString(getSession());
    public String getCountry()
    throws IfsException{
    AttributeValue av= getAttribute(COUNTRY);
    return av.getString(getSession());
    public String getState()
    throws IfsException{
    AttributeValue av= getAttribute(STATE);
    return av.getString(getSession());
    public String getPhoneNumber()
    throws IfsException{
    AttributeValue av= getAttribute(PHONE_NUMBER);
    return av.getString(getSession());
    AsapCustomerDef.java
    // Copyright (c) 2000 Movement Inc.
    package publishasap.definition;
    import oracle.ifs.beans.*;
    import oracle.ifs.common.*;
    import publishasap.AsapCustomer;
    * Create the definition for an AsapCustomer object.
    * <P>
    * @author Ian Kulmatycki
    public class AsapCustomerDef extends ApplicationObjectDefinition {
    * Constructor
    public AsapCustomerDef(LibrarySession ifs)
    throws IfsException
    // Construct a Document object - standard variant.
    super(ifs);
    this.setClassObject(ClassObject.getClassObjectFromLabel(ifs,publishasap.AsapCustomer.CLASS_NAME));
    public void setCompanyName(String newName)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newName);
    setAttribute(AsapCustomer.COMPANY_NAME, av);
    public void setAddress1(String newAddress)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newAddress);
    setAttribute(AsapCustomer.ADDRESS_1, av);
    public void setAddress2(String newAddress)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newAddress);
    setAttribute(AsapCustomer.ADDRESS_2, av);
    public void setCity(String newCity)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newCity);
    setAttribute(AsapCustomer.CITY, av);
    public void setState(String newState)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newState);
    setAttribute(AsapCustomer.STATE, av);
    public void setPostalCode(String newPostalCode)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newPostalCode);
    setAttribute(AsapCustomer.POSTAL_CODE, av);
    public void setCountry(String newCountry)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newCountry);
    setAttribute(AsapCustomer.COUNTRY, av);
    public void setPhoneNumber(String newPhoneNumber)
    throws IfsException{
    AttributeValue av= AttributeValue.newAttributeValue(newPhoneNumber);
    setAttribute(AsapCustomer.PHONE_NUMBER, av);
    AsapPerson.xml
    <?xml version = '1.0' standalone = 'yes'?>
    <!-- AsapPerson.xml -->
    <ClassObject>
    <Name>AsapPerson</Name>
    <Description>AsapPerson Object</Description>
    <Superclass Reftype = "name">ApplicationObject</Superclass>
    <BeanClassPath>publishasap.AsapPerson</BeanClassPath>
    <Attributes&gt ;
    <Attribute>
    <Name>prefix</Name>
    <DataType>String</DataType>
    <DATALENGTH>4</DATALENGTH>
    </Attribute>
    <Attribute>
    <Name>firstName</Name>
    <DataType>String</DataType>
    <DATALENGTH>30</DATALENGTH>
    </Attribute>
    <Attribute>
    <Name>mInitial</Name>
    <DataType>String</DataType>
    <DATALENGTH>1</DATALENGTH>
    </Attribute>
    <Attribute>
    <Name>lastName</Name>
    <DataType>String</DataType>
    <DATALENGTH>30</DATALENGTH>
    </Attribute>
    <Attribute>
    <Name>suffix</Name>
    <DataType>String</DataType>
    <DATALENGTH>4</DATALENGTH>
    </Attribute>
    <Attribute>
    <Name>email1</Name>
    <DataType>String</DataType>
    <DATALENGTH>50</DATALENGTH>
    </Attribute>
    <Attribute>
    <Name>email2</Name>
    <DataType>String</DataType>
    <DATALENGTH>50</DATALENGTH>
    </Attribute>
    <Attribute>
    <Name>fax</Name>
    <DataType>String</DataType>
    <DATALENGTH>20</DATALENGTH>
    </Attribute>
    <Attribute>
    <Name>wkPhone</Name>
    <DataType>String</DataType>
    <DATALENGTH>20</DATALENGTH>
    </Attribute>
    <Attribute>
    <Name>username</Name>
    <DataType>String</DataType>
    <DATALENGTH>15</DATALENGTH>
    </Attribute>
    <Attribute>
    <Name>password</Name>
    <DataType>String</DataType>
    <DATALENGTH>15</DATALENGTH>
    </Attribute>
    </Attributes>
    </ClassObject>
    AsapCustomer.xml
    <?xml version="1.0" standalone="yes"?>
    <!-- AsapCustomer.xml -->
    <!-- When parsed, this file will create the definition of an AsapCustomer in the database. -->
    <ClassObject>
    <Name>AsapCustomer</Name>
    <Description>Parent of all customers that are using Publishasap.</Description>
    <SuperClass RefType="name">ApplicationObject</SuperClass>
    <BeanClassPath>publishasap.AsapCustomer</BeanClassPath>
    <!-- Attribute list for the object. -->
    <Attributes>
    <!-- The company name of the customer. -->
    <Attribute>
    <Name>companyName</Name>
    <DataType>String</DataType>
    <DataLength>75</DataLength>
    </Attribute>
    <!-- The mailing address of the customer. -->
    <Attribute>
    <Name>address1</Name>
    <DataType>String</DataType>
    <DataLength>50</DataLength>
    </Attribute>
    <!-- The secondary mailing address of the customer. -->
    <Attribute>
    <Name>address2</Name>
    <DataType>String</DataType>
    <DataLength>50</DataLength>
    </Attribute>
    <!-- The mailing city of the customer. -->
    <Attribute>
    <Name>city</Name>
    <DataType>String</DataType>
    <DataLength>30</DataLength>
    </Attribute>
    <!-- The mailing state of the customer. -->
    <Attribute>
    <Name>state</Name>
    <DataType>String</DataType>
    <DataLength>4</DataLength>
    </Attribute>
    <!-- The mailing postal code of the customer. -->
    <Attribute>
    <Name>postalCode</Name>
    <DataType>String</DataType>
    <DataLength>10</DataLength>
    </Attribute>
    <!-- The contact phone number of the customer. -->
    <Attribute>
    <Name>phoneNumber</Name>
    <DataType>String</DataType>
    <DataLength>14</DataLength>
    </Attribute>
    <!-- The mailing country of the customer. -->
    <Attribute>
    <Name>country</Name>
    <DataType>String</DataT ype>
    <DataLength>30</DataLength>
    </Attribute>
    </Attributes>
    </ClassObject>
    null

Maybe you are looking for

  • How complicated is it to implement Robohelp Server for multiple authors?

    I am presently the lone techical writer in my company and I use Robohelp HTML V8 to generate WebHelp for our software. The RH software has been upgraded from an original V5 Robohelp full license, to a V7 upgrade and then a V8 upgrade. I am investigat

  • View object that will allow to see data from two tables in a adf table

    Hi, I've been have serious issues to resolve this functional requirements with ADF. Basically I have two tables let say employee and department. A need a read only adf table to show the employees values but I don't want the users to see the departmen

  • Enable Commenting & Measuring in Acrobat 10 and 11

    What does the "measuring" refer to in File | Save As Other | Reader Extended PDF | Enable Commenting & Measuring in Acrobat 11? (BTW, it was Comments | Enable for Commenting and Analysis in Adobe Reader in Acrobat 9. The path was similar to 11 in ver

  • How to Upload in Servlet or JSP with JavaBean?

    Anybody used to be familiar with these techs?I want to implement a function of upload files.Can you help me with some suggestions?

  • Response ID Control in Mailing Campaign

    Hi, Doing Mailing Campaign we can control throug Tracking via Target Site(++) how many times customer has accessed to the URL(CRMD_EMAIL_LIST). What we really need is if there is any way to pick up this BP´s and enclose in a Target Group to be used l