Apps To Fusion

.......Our Journey from Apps To Fusion

 
  • Increase font size
  • Default font size
  • Decrease font size



Limitations in Attachments using OAF Personalizations - - Part 3

E-mail
User Rating: / 0
PoorBest 
The attachment functionality via personalization has got two limitations. The first limitation has a workaround and second limitation has some proper solution. What are these limitations and how can we overcome those? We will discuss those in this article. The first limitation is that you can specify only one primary key when defining attachments via personalization. For example if you wish to capture attachments against a combination of PO Header Id and PO Line Number, then in such a case you will not be able to implement this requirement via personalization. It must be noted that this is just an example, because in real life you would rather use po_line_id as the primary key. But in some project cases we do need composite primary key to identify the attachments. The second limitation is that the view object attribute that is used as a primary key of attachment must have a value populated in it, otherwise you cannot upload the attachments. It sounds obvious that you need a primary key value to attach documents against it. This is logical because you must have the transaction_id in place before you can load attachments against that transaction. However in reality, most of the screens generate the primary key just prior to the commit taking place, which means attachments can not be uploaded until after the save/apply button has been clicked by the user.

In this article we will discuss the possible solutions for both these limitations
Limitation 1
When you create a new item using personalization, at the time of creating primary keys, you will notice that personalization framework does not allow more than one primary key. This is shown in the image below. 

However, using jDeveloper, you can create a combination of 5 columns/attributes as a primary key.
 
 
In order to overcome this you have two options
Option 1 
Extend the controller and get a handle to the attachment bean. Programmatically create instances of primary key bean and attach to the attachment bean. This can be done by extending the controller.

Option 2
Create a stacklayout region in JDeveloper to create attachment item with multiple primary keys. Once this stacklayout has been developed, upload this region to MDS and embed the same into standard page. You 

can use this article to see how custom regions can be embedded within the standard regions.
http://apps2fusion.com/apps/oa-framework/151-oa-framework-screen-extension-by-embedding-a-custom-page



Limitation 2
In most cases, the primary key is generated "just prior" to the data being inserted into the tables. For example, if you are creating an employee record and if your business requirement is to allow users to 

upload documents when creating employee record, then such requirement is not feasible if employee_id gets generated after the user has applied the data in the screen. Of course some pages might be designed 

so as to generate the primary keys for the record at the time of data entry itself.

Comments (6)add
...
written by prada Shoulder bags , June 28, 2010
Your technology is so terrific!
I know an online store which has a lot of XX in this style, they are suit you very much,can reveal your personality better!
Go to have alook when some time left, there must be many surprises!,www.prada-outlet-store.com/prada-wallets.html

report abuse
vote down
vote up
Votes: +0
answer this topic
written by LoweryLESLEY20 , July 15, 2010
I had a dream to start my company, however I did not have enough of money to do this. Thank goodness my close friend advised to utilize the loan. Thence I received the credit loan and made real my dream.
report abuse
vote down
vote up
Votes: +0
Added attachment in Notification page...
written by Pooja , July 21, 2010
Hi,

I have added attachment feature in Notification page using personalization.Used summary layout region for personalization (View object :AsgSummaryVO
and primary key: EmployeeNumber).It is added in SIT.
As an example, employee raises a request in SIT which goes for approval to manager. The personalization allows manager to add attachment and approves it.
This approval will follow futher hierarchy.
Now the error comes when Employee is raising a new SIT request. The attachements which were added my manager is also visible at employee summary layout.

How can we restrict it?

How can we use transaction ID for complete hierarchy as the primary key??



report abuse
vote down
vote up
Votes: +0
Mr.
written by Vish , October 04, 2010
Hi ,
Can any one help me to solve the following problem.
Actually in real business scenario , I would like to upload automatic attachment against the sales order line in form of Web Page(
This means whenver a user enters sales order line by default some url (web page) should get attach to it).
how should I achieve this.?
report abuse
vote down
vote up
Votes: +0
Question
written by Ahmed_Oracle , July 19, 2011
Is there any way that we can show the same attachment in OAF page which I inserted from Oracle Forms say Quick sales order form. I see that from Forms, It is checking function security. Where as OAF page is referring to some other VO which is not at all checking form function functionality...Any Help on this would be appreciated..
report abuse
vote down
vote up
Votes: +0
...
written by Pavanib , April 25, 2012
how to overcome the second limitation, could you help me.
report abuse
vote down
vote up
Votes: +0
Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
smile
wink
laugh
grin
angry
sad
shocked
cool
tongue
kiss
cry
smaller | bigger

security image
Write the displayed characters


busy
 

Search apps2fusion