ENTITY ATTRIBUTE VALUE  - EAV

Any one has some kind sample of sql or pl/sql scripts for this model
Thanks,

You will find some examples in this link, along with reasons to typically try very hard to avoid this type of design.
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:10678084117056

Similar Messages

  • Display Entity attribute values on summary screen

    Hi,
    I have a rule base which allows the members of a household to apply for some benefits. A few documents are also required to be submitted in order to complete the application process.
    The documents may or may not be required for all the members of the household. For Example, lets assume the application asks for a disability certificate. This has to be submitted by only those who are disabled.
    I want to display the list of the members (on the summary screen) for whom a particular document is required.
    How I can get this list? I tried storing the member names in a global variable, but was not successful.
    The rule base has a separate entity to capture the household members.
    Thanks,
    Aakarsh

    Out-of-the-box in version 10 you can't attach entity level attributes to the summary screen.
    However, have a look at this thread for some alternate ideas to address what you're trying to do: Displaying Entity Level Attributes on Summary screen (Thread title: Displaying Entity Level Attributes on Summary screen)
    Cheers,
    Jasmine

  • Entity Attribute Value

    I'm using JDev 11.1.1.4
    I have column called Maint_Cost in table
    when I update table I want to set value calculated in sql like this
    (select a.cust_prc * b.comp_qty + ((a.cust_prc * a.sales_tax)/100) from t_prclist a , s_parts b    where a.prod_code = b.comp_code and b.call_no=t_call.cal_no)
    i'm used "derived from sql expression" in entity object and I get the value but when I press commit I get an Error "
    ORA-00936: missing expression 
    Can anyone help me?

    You will find some examples in this link, along with reasons to typically try very hard to avoid this type of design.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:10678084117056

  • How to get Entity Attirbute values

    I have a OPA rulebase with Global Entity and other entity attribute values
    sample rulebase XML Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <rulebase xmlns="http://oracle.com/determinations/engine/relational/rulebase">
    <entity text="Global" name="global" singleton="true">
    <attribute name="MainInterviewComplete" type="Boolean" />
    </entity>
    <entity text="the employer" name="employer" singleton="false">
    <attribute name="TitleOfKBENStatement" type="Text" />
    </entity>
    I want to get the TitleOfKBENStatement attribute value which is in Employer entity
    I have tried these options in vb.net code
    OPTION 1:
    Dim goal As Oracle.Determinations.Interview.Engine.InterviewGoal
    session.GoalService.GetGoalById("Attribute~" & "TitleOfKBENStatement" & "~employer~employer")
    OPTION 2:
    session.GetRulebase.GetRulebase.GetEntity("employer").GetAttribute("TitleOfKBENStatement")
    I need to get the attribute VALUE, both methods would fetch the attribute NAME , Any ideas ,Thanks.

    You need the instance of the employer entity that you want to get the value of the "TitleOfKBENStatement" attribute for.
    Try something like
    Session ruleSession = session.GetRuleSession();
    Entity employerEntity = ruleSession.GetRulebase().GetEntity("employer");
    EntityInstance myEmployerInstance = employerEntity.GetEntityInstance(ruleSession, "myEmployerInstanceName");
    Attribute titleOfBENStatementAttr = employerEntity.GetAttribute("TitleOfKBENStatement");
    Object value = titleOfBENStatementAttr.GetValue(myEmployerInstance);

  • Passing SQL Server identity attributes values into adf entity objects

    Hi all.
    I'm using Jdeveloper 10g for developing an ADF Swing application based on MS SQL Server DB.
    Does anyone know if it is possible to pass SQL Server identity attributes values into the correspondent attrributes of adf entity objects, like we do with Oracle DB Sequence.
    The problem is that i should somhow implement cascade deleting of detail view objects, so i should use the composition association. But since i cant fill the primary key attribute with appropriate value (that is actually a ms sql server db sequence value) i always get
    the following exception: oracle.jbo.InvalidOwnerException: JBO-25030 as i try to create a new pair of master/detail objects.
    Thanks in advance.
    Alex.

    The approach is good. but i still dont understand how i can address the sql server db sequence (identity field) programmatically...
    The code offered
    SequenceImpl sequence = new SequenceImpl("PRODUCTS_SEQ",getDBTransaction());
    setProdId(sequence.getSequenceNumber());
    generates something like this:
    select deq_name.nextval from dual
    but this syntax works for oracle only... and not for sql server...
    Edited by: Timin on Mar 26, 2009 6:34 AM
    Edited by: Timin on Mar 26, 2009 10:25 AM

  • XElement parser does not ignore entity tokens in attribute value

    I have sample XML file:
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
    <name id="show_file.php?fid=120983&action=download" />
    </root>
    I use simple C# console application to dump the content of this XML:
    static void Main(string[] args)
    var xmlPath = @"c:\test.xml";
    var xml = XElement.Load(xmlPath);
    Console.WriteLine(xml.ToString());
    However, an error occurs:
    An unhandled exception of type 'System.Xml.XmlException' occurred in System.Xml.dll
    Additional information: '=' is an unexpected token. The expected token is ';'
    The error points to "=" sign here "&action=". I looked up the stack trace:
    System.Xml.XmlException was unhandled
      HResult=-2146232000
      Message='=' is an unexpected token. The expected token is ';'. Line 67, position 93.
      Source=System.Xml
      LineNumber=67
      LinePosition=93
      SourceUri=""
      StackTrace:
           at System.Xml.XmlTextReaderImpl.Throw(Exception e)
           at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
           at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken(String expectedToken1, String expectedToken2)
           at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken(Int32 pos, String expectedToken1, String expectedToken2)
           at System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean isInAttributeValue, EntityExpandType expandType, Int32& charRefEndPos)
           at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
           at System.Xml.XmlTextReaderImpl.ParseAttributes()
           at System.Xml.XmlTextReaderImpl.ParseElement()
           at System.Xml.XmlTextReaderImpl.ParseElementContent()
           at System.Xml.XmlTextReaderImpl.Read()
           at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
           at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
           at System.Xml.Linq.XElement.ReadElementFrom(XmlReader r, LoadOptions o)
           at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)
           at System.Xml.Linq.XElement.Parse(String text, LoadOptions options)
           at System.Xml.Linq.XElement.Parse(String text)
           at ConsoleApp.Program.Main(String[] args) in D:\Projects\ConsoleApp\Program.cs:line 21
    The point of interest is System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean isInAttributeValue, EntityExpandType expandType, Int32& charRefEndPos). As I understand, Xml searches for entity tokens in attribute value. But
    is it mandatory? I think I can store in attribute value ANY characters and their combinations as far as I use parenthesis. Am I right?
    There is no knowledge that is not power.

    @syedfasih
    By the way, XMLSpy program shows same error. It says that my XML is not well-formed. As you see from exception, there's a method call System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean
    isInAttributeValue, EntityExpandType expandType, Int32& charRefEndPos) which has isInAttributeValue argument, which apperently regulates whether check entity tokens in attribute values. I can conclude from this that this can be controlled somehow,
    but don't know how.
    There is no knowledge that is not power.

  • DBSequence type no longer available for entity attributes?

    I'm puzzled by this, if not scared.
    Every version of JDev till 11.1.1.2.0 has had out-of-the-box support for DBSequence as an entity attribute type.
    When you set it for your PK, JDev disables a few options, automatically sets "refresh after insert" (and maybe other stuff) and handles everything about it.
    Now, I see that in new applications created with 11.1.1.2.0 that option is no longer present...!
    It's available only for apps migrated from previous versions.
    If you create a new application, you no longer have DBSequence in the Type dropdown.
    Here's what the documentation (Oct 2009 DevGuide, par 4.10.10) says:
    In the Edit Attribute dialog, you can set the value of the Type field to the built-in data
    type named DBSequence and the primary key will be assigned automatically by the
    database sequence. Setting this data type automatically selects the refresh after Insert
    checkbox.Where on Earth is this built-in data type named DBSequence in Jdev 11.1.1.2.0?

    Thanks Paul.
    It seems JDev broke my application.
    It only shows the native Java types in the dropdown, and does not show any of the Oracle types including Number, DBSequence and all the rest.
    (Note that all the connections I work with use the Oracle type map, of course - it's automatic.)
    I tried a new quick test with a new application and again, no Oracle types, just the java types.
    Then closed and reopened my applications as well as JDev and I can now see all the types in my quick test.
    However, my original application still "sees" no Oracle types, it's stuck with the Java types.
    I'll try to see if I can repair it in some way... I'll eventually put it down as one of the gazillion one-time bugs that JDev shows daily.

  • Error:' ' cannot appear in attribute value error while deploying ESB

    Hi,
    I am facing issue while deploying ESB using script.Below is the error which I see in while running script.
    [deployESBProjects] Deployment Attempt Response :
    [deployESBProjects] <deploymentSummary>
    [deployESBProjects] <message>Entity Deployment Failed</message>
    [deployESBProjects] <errors>
    [deployESBProjects] <error code="1000" severity="5">
    [deployESBProjects] <description>Error:'&lt;' cannot appear in attribute value.. Please see the DT Server log for details</description>
    [deployESBProjects] <fix>Contact Oracle Support</fix>
    [deployESBProjects] </error>
    [deployESBProjects] </errors>
    [deployESBProjects] </deploymentSummary>
    [deployESBProjects] Deployment Failed ...Unhandled Exception
    [deployESBProjects] java.lang.Exception: Deployment attempt failed, please review deployment attempt response above
    [deployESBProjects] at oracle.tip.esb.client.anttasks.DeploymentHelper.deploy(DeploymentHelper.java:112)
    [deployESBProjects] at oracle.tip.esb.client.anttasks.DeploymentHelper.deploy(DeploymentHelper.java:159)
    [deployESBProjects] at oracle.tip.esb.client.anttasks.ESBProjectTask.deploy(ESBProjectTask.java:107)
    [deployESBProjects] at oracle.tip.esb.client.anttasks.DeployESBProjectsTask.execute(DeployESBProjectsTask.java:103)
    [deployESBProjects] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [deployESBProjects] at org.apache.tools.ant.Task.perform(Task.java:364)
    [deployESBProjects] at org.apache.tools.ant.Target.execute(Target.java:341)
    [deployESBProjects] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [deployESBProjects] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [deployESBProjects] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [deployESBProjects] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    [deployESBProjects] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [deployESBProjects] at org.apache.tools.ant.Main.runBuild(Main.java:668)
    [deployESBProjects] at org.apache.tools.ant.Main.startAnt(Main.java:187)
    [deployESBProjects] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    [deployESBProjects] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    In ESB DT logs I see
    <MSG_TEXT>deployment failed with error </MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[oracle.xml.parser.v2.XMLParseException: '<' cannot appear in attribute value.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
         at oracle.xml.parser.v2.XMLReader.scanNameChars(XMLReader.java:1151)
         at oracle.xml.parser.v2.XMLReader.scanQName(XMLReader.java:1928)
         at oracle.xml.parser.v2.NonValidatingParser.parseAttr(NonValidatingParser.java:1497)
         at oracle.xml.parser.v2.NonValidatingParser.parseAttributes(NonValidatingParser.java:1447)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1286)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:291)
         at oracle.tip.esb.configuration.deployment.DeploymentXMLUtil.parseServiceXML(DeploymentXMLUtil.java:48)
         at oracle.tip.esb.configuration.deployment.JDevDeploymentManager.sortEntityXML(JDevDeploymentManager.java:314)
         at oracle.tip.esb.configuration.deployment.JDevDeploymentManager.deploy(JDevDeploymentManager.java:175)
         at oracle.tip.esb.configuration.deployment.DeploymentServlet.doPost(DeploymentServlet.java:120)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    and one more issue as well
    <MSG_TEXT>Could not patch the details of the instance '514FC70036EF11DE8F194DE6D3B1CD10' to the relationship xml</MSG_TEXT>
        <SUPPL_DETAIL><![CDATA[oracle.tip.esb.monitor.MonitorException: Unable to build the instance relationship, as the required metadata is not available
         at oracle.tip.esb.monitor.manager.database.MetadataProvider.getRelationshipXML(MetadataProvider.java:168)
         at oracle.tip.esb.monitor.manager.database.DBActivityMessageStore.getInstanceRelationship(DBActivityMessageStore.java:672)
         at oracle.tip.esb.console.XMLInstanceManagerImpl.getRelationship(XMLInstanceManagerImpl.java:116)
         at oracle.tip.esb.configuration.servlet.command.GetTrackingDetailsCommand.execute(GetTrackingDetailsCommand.java:84)
         at oracle.tip.esb.configuration.servlet.CommandServlet.doJob(CommandServlet.java:109)
         at oracle.tip.esb.configuration.servlet.CommandServlet.doPost(CommandServlet.java:76)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    ]]></SUPPL_DETAIL>
    Please let me know if anyone faced such type of issue.Appriciate if somebody suggest me as this issue occured in PROD.
    Thanks
    Vinay
    Edited by: ZeroKool on May 3, 2009 10:17 PM

    Andre,
    Its not with xml,as the same codebase and the script does work in other env(dev/tst/stage) except in prod.I simply can't figureout whts the issue.
    Even I see below error in esb-dt logs
    SUPPL_DETAIL><![CDATA[oracle.tip.esb.monitor.MonitorException: Unable to build the instance relationship, as the required metadata is not available
    The above error shows in esb console as well in instances.This is a major concern.
    Thanks
    Vinay                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Xml/html to jsp - problem with quotes in attribute values

    I am trying to convert a static html document into a jsp using an xsl stylesheet, but run into problems trying to use the jsp expression syntax inside of attribute values.
    Here is a sample of the source file:
    <input type="text" name="firstName" value=""/>
    Here is what I want the resulting jsp file to look like:
    <input type="text" name="firstName" value="<jsp:expression>customer.getField("firstName") </jsp:expression>">
    Here is what part of my stylesheet looks like:
    <xsl:template match="input">
    <xsl:copy>
    <xsl:copy-of select="@type"/>
    <xsl:copy-of select="@name"/>
    <xsl:attribute name="value">
    <xsl:text disable-output-escaping="yes"><jsp:expression></xsl:text>
    <xsl:text disable-output-escaping="yes">customer.getField(</xsl:text>
    <xsl:text disable-output-escaping="yes">"</xsl:text>
    <xsl:value-of select="@name"/> ")
    <xsl:text disable-output-escaping="yes">")</xsl:text>
    <xsl:text disable-output-escaping="yes"></jsp:expression></xsl:text>
    </xsl:attribute>
    </xsl:copy>
    </xsl:template>
    The problem i have is with the <%= customer.getField("firstName") %>. I have tried several different ways of inserting the double quotes around firstName, but no matter what I try, it always uses the entity reference instead of actually putting the " character. The jsp container will not accept the entity.
    I am assuming that the problem is with trying to place double quotes inside of an attribute value. Any ideas how to get around this?
    Thanks
    David

    Which App Server are you using?
    You should just be able to escape the double quotes.
    If that doesn't work, it's a bug in the app-server.
    Alternatively, you can use single quotes around the
    attribute value.
    Hope that helps,
    AlexSorry, I'm an idiot. By escaping you meant the unicode character escape "\u0022". I had not tried that. However, once i realized what you meant, I tried it, and it worked. Thanks for your help.
    David

  • OIM 11g: Target account attribute value enforcement/policy

    We have some requirements around enforcing certain attribute values on our target platforms. For example, if we provision a field "Approval Limit=$100", and on a recon that value has been changed to "Approval Limit=$5000", then appropriate action should be taken (i.e. change it back to $100, notify somebody, etc.)
    This type of feature was available on some other IDM products I've worked with, but there does not seem to be anything built in to OIM to support this.
    My initial thoughts were to write task adapters against the Recon Insert/Update Received events and perform these types of checks and corrections there.
    Has anyone else run into this requirement in OIM? How did you solve it?

    There are three ways to handle such scenarios:
    Process Task: Attach a task on Reconciliation Task
    Event Handler/Entity Adapter
    Schedule Task

  • How to add new rows in Advanced Table along with attribute value?

    Hi,
    I have one advanced table that contain one messageChoice and messageTextInput field.
    I want to add new rows in advanced table. I can able to add rows using the AddMoreRows button in the footer of the advanced table,
    but I want to add attribute value(contactId) each time when new row created.
    contactId I am getting from pageContext.getParameter("contactId")
    How to achive this? Please suggest.
    Thanks & Regards,
    Sunita

    Hi,
    There are two ways to do it.
    1. Use create method of entity object, create method fires whenever you creates new row.
    2. Handle the event raised by addanotherrow button and write logic there to initialize contactid as you are getting contactid from pageContext so I will suggest you to use this method.
    if (tableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM)))
    && ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    //write your logic here to default the contact id
    Hope this will help.
    Regards,
    Reetesh Sharma

  • How to call a method in Viewimpl from transient attributes value

    Hai,
    I have a method in ViewImpl say validate().I need to call this method from an transient attributes value where value type is expression.i used adf.object.validate() but its not working.
    Can any one help me
    Thanks in advance

    Hai,
    Jabr i read these in a pdf where it explains about Introduction to Groovy support in JDeveloper and Oracle ADF 11g
    Referencing custom methods in the EntityImpl class
    If you have defined a method in your EntityImpl class, then this can be called as part of your
    expression for an attribute default:
    adf.object.getDefaultSalaryForGrade()
    Unlike when referencing an attribute of the entity object, which can be done by simply
    referencing the attribute name, when referencing a method, you are required to prefix the
    method name with adf.object.
    So is there a way?
    regards

  • [JDev 9.0.3/JClient] ViewObject/Entity attribute: Display Hint ignored?

    I have a small problem with the ability to hide ViewObject/Entity attributes in generated JClient Forms. Hope somebody might know a bit more of this issue.
    When setting the "Display Hint" to "Hide" on an attribute (of either the Entity or ViewObject), the appropriate JLabel and JTextField (or whatever Swing control is used to edit the value) will not be hidden, neither at designtime nor runtime.
    I'm not (yet ;)) an expert when it comes to JClient, but it seems to me that when I tell an attribute of a ViewObject to be hidden, I would expect that the visible property of the appropriate Swing controls be set to false. [ setVisible(false); ]
    In some other thread [ http://forums.oracle.com/forums/message.jsp?id=1342592 ] I read that the problem might be related to setting the control hint AFTER the JClient Form was generated. However, in that same thread someone else suggested that the control hint is processed at runtime. So, I've tried both approaches: first setting the control hint, then generating the JClient Form and first generating the JClient form, then setting the control hint. Neither approach worked.
    However, I did notice that after I set the control hints, the JClient Form wizard allowed me to hide 'hidden' attributes (which indeed were the attributes which I had specified to be hidden). So that worked ok. But even though I unchecked the hidden attributes box, the end result was still the same: a Form with all attributes on it. Running the project revealed that the controls were not hidden at runtime either.
    Am I pherhaps missing something? Or else could this be a bug?
    (As the subject indicates, I'm using JDeveloper 9.0.3 Production Release.)

    Alright, consider this scenario:
    I have a ViewObject with some attributes and in particular the attribute 'X'. In the database table column X is NOT NULL and so attribute X automatically is Mandatory. (This is correctly generated by the BC4J wizard.)
    Next, I manually specify that attribute X is invisible (Display Hint). This should cause any bound Swing controls to become invisible when simply browsing the database. However, when inserting a new record, all controls associated with attribute X should become visible (since X is a Mandatory attribute). After the new record has been committed, the appropriate Swing controls become invisible again.
    I suppose that this behavior could be the same for non Mandatory attributes, but that's (somewhat) less important.
    In case you want a 2nd form in which existing records can be edited (including column X), attribute X should nolonger be invisible. Then the Swing controls bound to attribute X should be removed from the browse form and the 'insert capabilities' of that particular form should be removed as well. The new 2nd should be used for editing/inserting, while the 1st one is for browsing only.
    I realise that this scenario may contain a couple of flaws, but it's to give you an indication of what I'd like to be able to do with the existing wizards and attribute editors.
    Enjoy :)

  • UIX  validation entity attribute on page multiple times via different views

    We have a situation where an ADF entity attribute appears in multiple views which appear on the same page. Each view selects a different entity row.
    When validation fails on one of these attributes, we register an AttrSetValException, as we want to take advantage of attribute level error messages.
    The problem is that the validation error message appears for all messageTextFields (for the same entity attribute) when only one of the fields failed validation. Also, the invalid value replaces all input fields even if the other ones were not changed by the user.
    I have tried using ex.setNeedsEntityToVOMapping(true) on the exception to no avail. It is as if the entity validation is unable to discriminate between view usages of an entity attribute.
    Steve Muench, I have read much of what you have written, but have not seen this particular scenerio. Any advice would be welcome.

    The issue is fixed. The reason of the problem that I missed overwriting of the validateParameters() in the custom controller class and the custom parameter was missed from the parameter list and it effected parameter validation error.

  • Update entity attribute, auto-refresh ViewObject

    Hi,
    I have an entity Emp and a ViewObject based on this entity with a where clause like "salary > 2000".
    I update the salary from 1900 to 2100 at entity level, but the viewObject is not "automatically-refreshed". So my Employee with his new salary 2100 is not shown in the viewObject.
    I understand that the whereClause does not use attribute value of entity.
    What the best way to trigger the executeQuery of the dependant views ?
    Thanks for idears ?
    Rafael.

    Hi friend!!
    I've found a solution for my problem, if it helps you take it, I Override a method in the view called Aftercommit so when I save in my JSP automatically refresh the model and show these in the screen.
    public void afterCommit(TransactionEvent event) {
    // TODO: Override this oracle.jbo.server.ViewObjectImpl method
    super.afterCommit(event);
    super.executeQuery();
    Maybe it is late but, someone else could it help!!
    Griss!!! (CIS)
    Mensaje editado por:
    user472974

Maybe you are looking for

  • Exporting a view to a flat file

    Hi all, Running Oracle 9i on Windows. We have a stored procedure which runs a number of packages and populates a view called v$logmnr_contents. We woudl like to export the contents of the view to a flat file so that it can be transferred over to anot

  • Upgrade issue with errors

    I recently tried to upgrade my Ipad OS from version 4.3.5 to 5.0.1.  I have the most recent version of iTunes, 10.5.2, and my PC is up-to-date with the Windows XP service pack 3.  It began by backing up the content onto iTunes.  After that it gave me

  • Does anybody know of a good microphone?

    I have had a microphone for quite some time, but I want to upgrade. I play the saxophone, but a microphone that records well "all over" is what I'm looking for. Any suggestions ?

  • OpenVPN Configuration Questions

    So I found the Arch Wiki articlehttps://wiki.archlinux.org/index.php/OpenVPN_Bridge about creating an openvpn bridge network for running games. I have some questions about what some of this does, as now that I've implemented this, if prevents me from

  • HT1766 how do I delete a previous backup? iTunes is telling me to do that

    When syncing I get an error message saying the last backup is corrupt, to delete it and rebackup. I can'f figure out how to delete a back up - or where it even is located.