cancel
Showing results for 
Search instead for 
Did you mean: 

Use of a component as a pop up

Former Member
0 Kudos

Hi Experts,

We call a component as a popup on click of a button in exisiting component.

.

The component which is called as a popup is used to attach files to a business object and is used in other components also.My requirement is that user should not be able to add more then 1 file.

I dont want to modify anything in the component which is called as popup as it is used at many places.

We want when user adds 1 file then he should not be allowed to add more files.

I was thinking to disable the button after user has uploaded 1 file but what if he wants to delete that file or check it again.

Can we do it in a way without making changes to component used as popup?

Experts please suggest on this?

Accepted Solutions (1)

Accepted Solutions (1)

former_member199125
Active Contributor
0 Kudos

Then make use of some variable as count,it should count no of files stored in some place ( the place where he can delete as you said?) , if the count is less than or equal to 1, then enable the upload file UI element other wise disable it.

Regards

Srinivas

Edited by: sanasrinivas on Feb 4, 2012 10:22 AM

Answers (0)