Home > > Information on Best Practice usage of PopulateAttribute

Information on Best Practice usage of PopulateAttribute

Using JDeveloper
I have a requirement where I use the BC layer as my data service for my UI. But this BC is not connected to the database but rather relying on a WebService.
Everything is returning well based on NO-DB Transaction and Programmatic Vo's implementation based on SteveMeunch not yet documented, but to further enhance or optimize my implementation, I'm trying to utilize the populateAttribute as in my scenario, I do insert the attribute programmatically thus I also handle the validation before-hand.
Based on definition populateAttribute allows me to set the value without triggering any validations. So far this is correct as none of my BusinessRules nor any LOVModel accessor validation are getting fired. My question mainly focus on the difference between <b>populateAttribute</b> and <b>populateAttributeAsChanged</b>.
1. Which of the two methods should be used on certain scenarios (close to best practice :) )?
2. In the documentation, there is a warning about "Primary key attributes should not be set using populateAttribute apis", in what case will this affect my rows?
3. In a click-to-edit table, I am able to prepopulate my ViewObject without triggering my accessor (LOVModel) validation, but when I start activating the rows (click), it seems to still be firing the accessor validation. (Which is fairly not expensive calls but uneccessary).
Hi Julian,
I have struggled with the same questions you are addressing. On a previous project we tried to model based on packages, but during the course of the project we encountered some problems that grew overtime. The main problems were:
1. It is hard to enforce rules on package assignments
2. With multiple developers on the project and limited time we didn't have time to review package assignment
3. Devopelers would click away warnings that an object was already part of another project and just continue
4. After go-live the maintenance partner didn't care.
So, my experience is is that it is a nice feature, but only from a high level design point of view. In real life it will get messy and above all, it doesn't add much value to the development. On my neew assignment we are just working with packages based on functional area and that works just fine.
Read the other 6 answers
Hi I know that KM /KB are included in Sales Order / Delivery Header Partner Functions . Want to know the PRACTICAL USAGE  for eg  Suppose Order is Created for Amt Rs 10000, what role KB /KM which r included in order partner function will play ( mail/
Hi SDN folks,   I've just started on a new project - I have significant ABAP development experience (15 years+) - but one thing that I have never seen used correctly is the Package concept in ABAP - for any of the projects that I have worked on. I wo
Hello experts, Could you guys share your thoughts on RFC type 3 - system userid usage: Would it be recommended to use ONE RFC destination (type 3) for execution of various functions? Is it recommended using the different RFC destinations (type 3) (wi
This is in Solaris 10. Relatively new to the style of patching... I have a T5240 with 4 LDOMS. A control LDOM and three clients. I have some fundamental questions I'd like help with.. Namely: #1. The Client LDOMS have zones running in them. Do I need
I have purchased a book on Mountain Lion Server, looked on the Apple support community and the Internet but I cannot find a clear answer, or explanation, to my query. Instead of looking at the features in Mountain Lion (ML) Server and Open Directory
I think that the log has too much information in it. It list in plain text what apps I've downloaded that day , how many times I've accessed my camera from the lock screen, the number of times I've entered my pass code correct and not. There's lots m
I read about the field symbol but cannot think about the practical examples of how, where and when should I use it? any one have suggestions and recommendations? thanks!Please check th following standard programs which will help you understand the sc
Hi. When I study 'SAP Best Practices Baseline package for Brazil V3.607', I wonder somthing. I want solution of problem. ---------Problem--------- In '100: SAP Best Practices Installation' document on point 3.4 Define Tax Jurisdiction Code it says En
When I open iTunes and attach my iPhone to the PC, click on "iPhone" and then on "Overall-view" (the leftmost Item at the top bar, "Übersicht" in German), I see on the bar at the bottom of the screen from left to right: "
Hi, I would need more information about a certain user from an admin point of view: one of our users is allocating a lot of memory resulting in performance decrease. What are the usual tcodes I can use here to analyse this further? Thanks!Hi, Use the
HI all, I need some inforamation ,  what is impact if i will use in the routing ,  usage 1- Production & 4 -- released general &  Suppose i will use universal 3  &  4 released general .  What will be impact . Regrads satishHi Satish , Task lis
It does seem like the control section of Logic was designed specifically for the Logic control, using their own dialog and terms. I have been struggling with Logic since I switched to it, simply because I make dance music, and I rely super heavily on
Hi, Is there a way to collect user VDI logins and logouts, along with other relevant information, like the DTU token, and possibly other usage information ? We provide open access to SunRay DTUs to connect to our virtualization platform, and we shoul
Seems like I have done everything I know of or could find in fourms to reduce the apps that are using up power on my iPhone 3GS. Does anyone know of an APP that will tell me what APPS or services are using up power? Thanks... ~CharlieHi Charlie, Many
I am trying to understand the differences displayed in two similar reports. The first report is an 'Audit Log' Report and it is displaying the number of Resource Account creations over a time period. The second report is a Usage Report using the exac
Hi all, I'm trying to create a usage report i CBM that shows the storage consumption devided in storage policies. I have 2 different storage policies and they are both visible when editing infrastucture cost. When generation a cost report I can see t
Since having my droid turbo, my data usage in my setting has not been matching my usage on my verizon account and another line on my account is having the same issue, right now my phone says that i have used 0.56GB and verizon says i have used 1.03 w
Hi I know I can get this information from the table SYSMAN.MGMT$STORAGE_REPORT_LOCALFS. But info stored in this table is not always up to date, but when going to the page em/console/monitoring/hostFilesystemOverview$target=xxxhostnamexxx$type=host$pa
I've been tasked with rewriting a software using ColdFusion.  I cannot seem to find a lot of information on best practice development in ColdFusion.  I am an experience Java developer who has never used ColdFusion before.  I want to build this applic