What is a good practice to handle LOV in jdev apps?

Hi, experts,
In jdev 11.1.2.3,
In our projects, there are many LOVs which the value are stored in a common dictionary table, for example in table refcode:
refcode(id, low_value,high_value,meaning,domain_no),
Different LOVs will retrieve value pairs(low_value,meaning) , or (high_value,meaning) from refcode table by using domain_no as the filtering criteria.
In the end user's UI, the code/number field values should be displayed by a meaning word from refcode,
To accomplish this goal, I will create numberous associations between different tables with refcode,
and create VOs to have refcode entity view as a secondary entity view.
I feel some odd in doing so(because so many associations with the same refcode table),
Is that a good practice to handle LOV this way ?
Thanks.

On Fusion Developer's Guide for Oracle Application Development Framework
10.3 Defining a Base View Object for Use with Lookup Tables
(http://docs.oracle.com/cd/E37975_01/web.111240/e16182/bclookups.htm#BABIBHIJ)
10.3.3 How to Define the WHERE Clause of the Lookup View Object Using View Criteria
There are valuable information and suggestions on implement lookup features, especially by using view criteria
(the View Criteria and View accessor is one of important and great idea in ADF)
I think, by using of view criteria, the derivative attribute to display fk information can be implemented in a convinent way without FK associations definition.

Similar Messages

  • Database Log File becomes very big, What's the best practice to handle it?

    The log of my production Database is getting very big, and the harddisk is almost full, I am pretty new to SAP, but familiar with SQL Server, if anybody can give me advice on what's the best practice to handle this issue.
    Should I Shrink the Database?
    I know increase hard disk is need for long term .
    Thanks in advance.

    Hi Finke,
    Usually the log file fills up and grow huge, due to not having regular transaction log backups. If you database is in FULL recovery mode, every transaction is logged in Transaction file, and it gets cleared when you take a log backup. If it is a production system and if you don't have regular transaction log backups, the problem is just sitting there to explode, when you need a point in time restore. Please check you backup/restore strategy.
    Follow these steps to get transactional file back in normal shape:
    1.) Take a transactional backup.
    2.) shrink log file. ( DBCC shrinkfile('logfilename',10240)
          The above command will shrink the file to 10 GB.(recommended size for high transactional systems)
    >
    Finke Xie wrote:
    > Should I Shrink the Database? .
    "NEVER SHRINK DATA FILES", shrink only log file
    3.) Schedule log backups every 15 minutes.
    Thanks
    Mush

  • What is the best practice to handle JPA methods in JSF app?

    I am building a JSF-JPA web app(No EJB).
    I have several methods that has JPA QL inside.
    Because I have to put those methods inside JSF beans to inject EntityManagerFactory (am I right about this?).
    And I do want to separate those methods from regular JSF beans which are used by page authors.
    And I may need to use them in different JSF managed beans.
    My question here is that what is the best practice to handle that?
    I. write a or a few separate JSF Beans and inject them into regular Beans?
    II. write a or a few separate JSF Beans and access them into regular Beans using FacesContext?
    III. others?
    Waiting to hear from you opinions.

    You can create named queries on your Entities themselves then just call entityMgr.createNamedQuery("nameOfQuery");
    Normally, we put these named queries in the class of the entity which will be returned. This allows for all information pertaining to a given entity and all ways of accessing that entity (except em.find() and stuff, of course) to be in one place. As long as the entity is defined in your persistence.xml file, any named queries which reside on that entity will be available through the EntityManager.
    As for the EntityManagerFactory, we normally create an application scope bean which holds the factory itself (because this is a heavy-weight object) and then just get all EntityManager instances from that by injecting this bean into whatever needs it. For example, I might have:
    //emfBB is the injected app scope bean which holds the entity manager factory.
    private EmfBB emfBB;
    private void lookupSomeData()
    EntityManager em = this.getEmfBB().getEmf()
    I hope this answered your question?
    ~Zack
    Edited by: zmarr on Nov 6, 2008 1:29 PM

  • WHAT IS SAP  " GOOD PRACTICE" FOR TESTING PROCEDURES ?

    Dear Gurus, could you please share with me the good practice of testing procedures? I am a 1st level fico support and being asked for this. Thanks in advance for your kindest help.

    Hi,
    Please use the below links FYR...
    http://help.sap.com/erp2005_ehp_02/helpdata/en/2f/75ba3bd14a6a6ae10000000a114084/content.htm
    http://www.ebooksquad.com/search/SAPmoduletesting+procedures
    With Regards,
    Lolla.

  • What's a good way to handle this conversion to a QUAN field?

    Good day everyone,
    I developed an RFC that receives data from XI.  I assign this data to a BAPI, and one of the fields is a field with a data type of QUAN(length 13, decimals 3).  All works fine if XI passes me a numeric value in this field.
    Here's the problem:  In running some test cases through XI and into the RFC, we ran a test case where the quantity field had a value of "test" (e.g. no numeric value).  Incredibly, XI transforms the text value of "test" into the value of 4534 and sends it to my RFC.  So my RFC thinks everything's fine when, in fact, that number was derived from a text field and is completely wrong.
    What we need to do is change the field to something that will "kick out" in XI when it tries to call my RFC.  I thought I could change it to a type of NUMC, but that doesn't let me use decimals.  We've already sent out the file layout to vendors, so we expect them to include numeric values with decimal places if need be.
    Is my best bet changing this to a character field with a length of 17, then checking to make sure it consists only of 0-9, a space, or a decimal?  I then need to assign it to the BAPI's field with the data type of QUAN(13,3) -- am I going to have issues trying to do this from a character field?  Do I need to worry whether or not they include a decimal (it might be implied -- in other words, they might just say quantity is "20" which becomes "20.000" to the BAPI).  Is there a nifty routine I can use to do all this easily?
    Thanks everyone.  Points awarded as always for ALL helpful answers.

    Ravi, that's kinda what I was thinking, but if it's true (i.e. a proper amount) can I just move the contents directly to my QUAN field?  Will SAP automatically do the conversion for me such that it ends up in the right place?  I've yet to have to worry about such conversions -- this is the first time I've had to deal with it -- and I want to make sure that the right value gets assigned, whether that value is "20", "54.1", "1000.25", or "986.500".

  • What is a good practical book to buy for Tuxedo

    Hi everyone
    i need to know what would be the most practical book to buy for the Tuxedo. it
    doesn't have to be a manual but something thats practical.
    Thanks very much
    mario

    I'm not worried about it at all. I might not ever use Tuxedo again.
    The software will surely be maintained and updated, but Mario was asking about books.
    Wayne
    William Cai wrote:
    I think Chinese team can deal with this product . Don't worry about that !
    Take care!
    William
    "Wayne W. Scott" <[email protected]> ????
    news:[email protected]..
    Don't hold your breath! Not with all the maintenance work being moved toChina.
    /wws
    Winfried Scheulderman wrote:
    ..and it's ONLY useful book at this moment - worth its money.
    Even if it sticks to TUX 6.x, all the basic concepts are clearly
    explained and
    still valid to date.
    Actually it deserves an update (BEA?).
    Winfried
    "William Cai" <[email protected]> wrote:
    Hi, Mario
    "The Tuxedo System" is the bible for tuxedo developer. You can find it
    through www.amazon.com .
    Take care!
    William
    "Mario" <[email protected]> ????
    news:40482d09$[email protected]..
    Hi everyone
    i need to know what would be the most practical book to buy for theTuxedo. it
    doesn't have to be a manual but something thats practical.
    Thanks very much
    mario

  • Using Liquid, what is the best practice for handling pagination when you have more than 500 items?

    Right now I can only get the first 500 items of my webapp, and don't know how to show the rest of the items.
    IN MY PAGE:
    {module_webapps id="16734" filter="all" template="/Layouts/WebApps/Applications/dashboard-list-a.tpl" render="collection"}
    IN MY TEMPLATE LAYOUT:
    {% for item in items %}
    <tr>
    <td class="name"><a href="{{item.url}}">{{item.name}}</a></td>
    <td class="status">Application {{item.['application status']}}</td>
    </tr>
    {%endfor%}

    <p><a href="{{webApp.pagination.previousPageUrl}}">Previous Page</a></p>
    <p>Current Page: {{webApp.pagination.currentPage}}</p>
    <p><a href="{{webApp.pagination.nextPageUrl}}">Next Page</a></p>

  • Best Practice for Handling Timeout

    Hi all,
    What is the best practice for handling timeout in a web container?
    By the way, we have been using weblogic 10.3
    thanks

    Are you asking about this specific to web services, or just the JEE container in general for a web application?
    If a web application, Frank Nimphius recently blogged a JEE filter example that you could use too:
    http://thepeninsulasedge.com/frank_nimphius/2007/08/22/adf-faces-detecting-and-handling-user-session-expiry/
    Ignore the tailor fitted ADF options, this should work for any app.
    CM.

  • Good Practice for managing player high scores & other stats

    During PC based game development, what is a good practice for saving high scores, game history etc for multiple users in terms of the following attributes :
    file types, data types to be used in the file, file protection from manual editing etc.
    pls throw some advice on the popular industry practice in use.
    regards, bittu ch

    During PC based game development, what is a good practice for saving high scores, game history etc for multiple users in terms of the following attributes :
    file types, data types to be used in the file, file protection from manual editing etc.
    pls throw some advice on the popular industry practice in use.
    regards, bittu ch

  • Good Practices and Code Conventions

    Hi All,
    What are the good practices in java? Are there coding convention to be followed?
    I would like to improve my coding standards and write better code. Please help me.
    Thanks
    Diana

    Diana12 wrote:
    Then how to make it excellent?Are you serious? Do you expect us to give you a 2-line summary of how to make "excellent" code?
    It takes some time to learn to write excellent code and it can't easily be summarized into 1-2 sentences. If it could, then it would be much easier to learn (that would be nice!).
    Experience, making mistakes, realizing they were mistakes, not making the same mistakes later on. Having your code criticized by someone who writes better code than you. That's how you learn to write excellent code.
    Write simple code, keep it clean, make each method do one thing, write code that doesn't need documentation, document where you must, adhere to the open-close principle, adhere to the KISS principle, adhere to the YAGNI principle, ...
    Grab [The Pragmatic Programmer|http://www.pragprog.com/the-pragmatic-programmer] and read it. Then read it again. Do some more exercises and read it a third time.

  • Best practice when using Tangosol with an app server

    Hi,
    I'm wondering what is the best practice when using Tangosol with an app server (Websphere 6.1 in this case). I've been able to set it up using the resource adapter, tried using distributed transactions and it appears to work as expected - I've also been able to see cache data from another app server instance.
    However, it appears that cache data vanishes after a while. I've not yet been able to put my finger on when, but garbage collection is a possibility I've come to suspect.
    Data in the cache survives the removal of the EJB, but somewhere later down the line it appear to vanish. I'm not aware of any expiry settings for the cache that would explain this (to the best of my understanding the default is "no expiry"), so GC came to mind. Would this be the explanation?
    If that would be the explanation, what would be a better way to keep the cache from being subject to GC - to have a "startup class" in the app server that holds on to the cache object, or would there be other ways? Currently the EJB calls getCacheAdapter, so I guess Bad Things may happen when the EJB is removed...
    Best regards,
    /Per

    Hi Gene,
    I found the configuration file embedded in coherence.jar. Am I supposed to replace it and re-package coherence.jar?
    If I put it elsewhere (in the "classpath") - is there a way I can be sure that it has been found by Coherence (like a message in the standard output stream)? My experience with Websphere is that "classpath" is a rather ...vague concept, we use the J2CA adapter which most probably has a different class loader than the EAR that contains the EJB, and I would rather avoid to do a lot of trial/error corrections to a file just to find that it's not actually been used.
    Anyway, at this stage my tests are still focused on distributed transactions/2PC/commit/rollback/recovery, and we're nowhere near 10,000 objects. As a matter of fact, we haven't had more than 1024 objects in these app servers. In the typical scenario where I've seen objects "fade away", there has been only one or two objects in the test data. And they both disappear...
    Still confused,
    /Per

  • What are the best practices for exception handling in n-tier applications?

    What are the best practices for exception handling in n-tier applications?
    The application is a fat client based on MVVM pattern with .NET framework.

    What are the best practices for exception handling in n-tier applications?
    The application is a fat client based on MVVM pattern with
    .NET framework.
    That would be to catch all exceptions at a single point in the n-tier solution, log it and create user friendly messages displayed to the user. 

  • At what point is it a good practice to Drop and Add back an Article for Transactional Replication?

    Hi,
    We have transactional replication Setup in our company , a set of tables involved in replication needed to be reloaded on prod say about 12-13 Million rows .
    We decided to drop the articles and add it back to replication so that a new snapshot for the specific articles can be generated and the transfer of data is fast and no breakage in the replication.
    But what is the best practice or a threshold point for taking this route i.e dropping an article and adding it back ?
    I mean 
    when Is it good to go this route  i.e when the load is more than 10, 000 rows or 50.000 rows  100,000 or at what number do we start this process?
    Thanks,
    Jack

    That is a function of horsepower and bandwidth.
    If you do drop a table out rather than replicate a 1% change of its data, 100% of the table will need to be snapshotted which might cause havoc with users trying to access that table, and if you are running immediate sync all of the tables will need to be
    resnapshotted.
    With the Enterprise Edition of SQL Server you will be able to use a sync type of database_snapshot which will mean no locking, otherwise it could be painful. Initialize from a backup is also an option to save you the cost of a snapshot.
    looking for a book on SQL Server 2008 Administration?
    http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
    http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

  • Apex version control: what are "good practices"?

    I have made my first Apex application that is been tested right now. Once this version is released, I should want to have a stable and robust versioning system for this application. I don't have any experience with this. So any info about this issue would be very welcome. Are there some good practice rules I should follow? What are things to watch out for? Etc... Some things I'd like to be able to do:
    1. Have version numbers assigned to the application
    2. Have update scripts to go from one version to the next. (If possible have update scripts to go to the latest version, whatever the current version is.)
    3. Rollback to a previous version of the application
    4. See te differences between different versions of the appliction
    I also would like the same for the database schema.
    Any help would be very welcome...

    Here how I do it:
    Each Apex application has a unique version number in the format Major Release Number / Minor Release Number / Patch Release Number e.g.
    Version 1.3.2
    Each object and build script are separate files, with their own version number and stored in a Configuration Management Database (CMDB) e.g. Subversion. The version number, author, description, date, change history are commented into the header of each script.
    Each Release on CD is also given a unique sequential number so that different releases of the same version can be tracked through test. Each CD Release will usually consist of an application export, object scripts and a build script. The CD image is also checked into the CMDB.
    If an application is going to distributed as a packaged application or installed on multiple environments then each release is a full build. For single instances, the builds are incremental.
    Cheers
    Shunt

  • What is good practice for playing multiple video's in a single swf?

    Hello,
    I have build in the past a video wall with video's inside. After building this i came across some problems.
    If you have too many video players loading at once it takes a lot of processing and the tweens in the
    page while loading the video's where not moving fluidly, but more in a stuttering way.
    After lot's of test i found a good working solution.  I imported the flv video's into flash en exported them on the timeline
    as a embedded swf.  Then i externally loaded these swf files and that performed much better.
    Is it even good practice to load multiple video instances at once? I used this time the LoaderMax of greensock but the video's
    only play after it's completely loaded. I would like to find a way to progressive play all video's at.
    Does someone has experience with this?
    Regards,
    Chris.

    How about an XML file which supplies the title for each movie and the location or source of the video to be played?  Simple version below.
    <?xml version="1.0" ?>
    - <playlist>
    <video src="Gfx/video/Alex1.f4v" title="John Deere 330" />
    <video src="Gfx/video/Benni1.f4v" title="Hitachi Z240F" />
    <video src="Gfx/video/Scotti1.f4v" title="Hitachi Z350F" />
    <video src="Gfx/video/Scotti2.f4v" title="Hitachi Z350F" />
    </playlist>
    JR

Maybe you are looking for

  • Follow up action in UD

    Dear all, I have assigned mail3 follow up action to UD selected set for rejected lots.system is sending mail to user only .my user needs a list of recipents to be added to follow up action.(by default).What are the settings to do. thx&regds prasad

  • A question on different zebra printer dpi printing - sapscript

    Hello, We have an existing sapsript (with ZPL code) to print label via a zebra printer (300dpi). There is a requirement to print the same label on new device zebra QL 320 plus(wireless printer, 203 dpi). Please advise how to make use of the existing

  • I want to swich from Symbian E7 to Lumia 800, but ...

    I don't want to be a testing cobai with my money and i want to be sure that WP is a up-grade, not a down-grade - and so - to sell it and loose money. I have read the user guide and is preauty simple. So, i have 27 questions and i hope you have the ti

  • Having trouble linking buttons to apps..

    Hello, Im trying to make a simple menu that will be on a USB stick. Im trying to link the buttons to execute a few apps that will be run right off of the USB stick. I have started the menu but stuck on finding exactly (if it is possible to do what im

  • Struts2 Validation Question

    I'm just starting on Struts and following a tutorial from a book that does validation. It uses xml config but I'm trying to get it to work with annotations. Everything seems to be right, including, on an error, it redirects to the right page. The pro