Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ADF - Mobile Dev Question - BB MobileClient vs ViewController

jstem1177Sep 3 2010 — edited Sep 10 2010
Hello All,

I'm really new to to ADF and Mobile Developement and have gone through a few of the introductory tutorials and I have a simple question.
I noticed that when I create a project (goal is to deploy on BB), the tutorials show that you use a Mobile Client for the UI and Model for the the app itself.
I then went through a tutorial which uses the ViewControl, and generates the JSF pages, and has some really amazing UI components.

So here is the question. I terms of deployment, and let me precise that I need mobile server sync, must i stick to basic MobileClient + Model or can I go with Model+ViewController. What is the major difference? Is it that the basic one use the the BB java platform where is the ViewController uses the built in browser as the container for my app.

Thanks in advance for links, responses, explanations.

Jan

Comments

Timo Hahn
Answer

This should be done in the DB to avoid wrong data in the db. There you can add a check constraint to check if a record matches your criteria the throw a DB error. This error is picked up from the framework and published to the UI.
Another method would be to do this in java. Here you can add a business logic and check the criteria. See
Developing Fusion Web Applications with Oracle Application Development Framework (0 Bytes)Timo

Marked as Answer by User_7TK0D · Sep 2 2022
dvohra21

You can create an Alternate Key Constraint on the EO and then use the UniqueKey Validation to validate the key value at commit time. Detail at https://docs.oracle.com/middleware/12212/adf/develop/GUID-92542726-9FC2-435D-8BAC-F140CB0DC579.htm#ADFFD413

User_7TK0D

@dvohra21
May I ask why my alt keys is null?
image.png

dvohra21

Could be because an Alternate Key is not defined. Is an Alt Key defined? Please refer https://docs.oracle.com/middleware/12212/adf/develop/GUID-631716A4-95D2-41A0-A56B-FB168F5268AA.htm#ADFFD212

User_7TK0D

@dvohra21
Hello, I already added the Alternate Key and selected the UniqueKey Validation. But how can i put validation if the status is NEW/PENDING with same person number and cycle, it will throw an error or else it will insert only if the status is already set to PROCESSED

dvohra21

Since creating an alternate key essentially creates indexing on the table in the database. It will fail if duplicate records are already there**.** To remove duplicates either use advanced find to manually delete or update records or duplicate detection job to delete the record. This usually happens when multiple records exist that have the same combined alternate key in the target system. Run an advanced find for the fields that make up the alternate key on the entity in question and I'm sure you will find duplicate results. Changing the values of one of those duplicate records (across every pair of duplicates) will allow the key to be created once there are no duplicates.

User_7TK0D

@timo-hahn1 @dvohra21
Thanks for your help. I used the method validator for validating the ADF table.

1 - 7
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 8 2010
Added on Sep 3 2010
11 comments
1,414 views