Is there any way to make all the inputComponents readon-only in a page

Hi All,
Is there any way by which we can make all the inputComponents belong to a specific iterator as read-only..?
Depending on some condition I want to make all the editable components which belong to a particular iterator, in page to read-only. I can put an expression in the read-only property of all the inputFields
and make them read-only depending on a condition. But this is going to be difficult as we have a lot of pagefragments and Task-flows.
So I think I can do it programmatically. I can add this method as an method binding in the container jsff. So that it will do the job for all the pages [pages may be inside a region also ].
Can any one give a similar code segment to do this..?
Is this approach going to impact performance badly..?
Any comments...
Thanks

Hi Chacko
Have a look at [Advanced View object Techniqies|http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcadvvo.htm#sthref3138] at the bottom Example 38-32 Preventing Insert, Update, or Delete Based on Custom Properties
<pre>
Example 38-32 Preventing Insert, Update, or Delete Based on Custom Properties
public class CustomViewRowImpl extends ViewRowImpl {
public boolean isAttributeUpdateable(int index) {
if (hasEntities() &&
((isNewOrInitialized() && !isInsertAllowed()) ||
(isModifiedOrUnmodified() && !isUpdateAllowed()))) {
return false;
return super.isAttributeUpdateable(index);
protected void setAttributeInternal(int index, Object val) {
if (hasEntities()) {
if (isNewOrInitialized() && !isInsertAllowed())
throw new JboException("No inserts allowed in this view");
else if (isModifiedOrUnmodified() && !isUpdateAllowed())
throw new JboException("No updates allowed in this view");
super.setAttributeInternal(index, val);
public void remove() {
if (!hasEntities() || isDeleteAllowed() || isNewOrInitialized())
super.remove();
else
throw new JboException("Delete not allowed in this view");
protected void create(AttributeList nvp) {
if (isInsertAllowed()) {
super.create(nvp);
} else {
throw new JboException("Insert not allowed in this view");
// private helper methods omitted from this example
</pre>
Hope, this will help you :)
Regards,
JavaDeVeLoper

Similar Messages

  • Best way to make all the items read-only in many pages for a resposibility?

    Hi,
    We have the following requirement:
    We need to make all the fields read-only in 5 standard self-service pages for a particular responsibility. One way is to personalize these pages at responsibility level. Is there any other quick/better way to do it?
    Highly appreciate your suggestions on this.
    thanks,
    Hem

    Hem,
    Personalisation is easiest and fastest way of doing this. The same requirement can be acheieved by extensions of CO by setting the bean properties rr by SPEL binding by extending VO.
    But when I can get something done without coding at all that approach is best, I am sure u agree :)!
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Is there any way to edit all the transitions in a project at the same time?

    I chose "insert with transition" when adding clips to my timeline, but the default is set for one second, which is longer than I'd like. I know how to change the duration of each transition one at a time, but is there any way to select all the transitions (there's about 90 of them) and adjust the duration for all of them at the same time?
    That's my main question, but I also would like to change the default cross-dissolve transition to be 15 frames instead of 30 for future projects. Anybody know if I can do that? I know I can create a 15 frame cross-dissolve and make it a "favorite", but it seems it would just be easier to change the default one instead.
    Thanks,
    Stephanie

    I know I can create a 15 frame cross-dissolve and make it a "favorite", but it >seems it would just be easier to change the default one instead.
    That's your only choice using FCE.
    Al

  • HT201210 My itouch screen froze showing "plug to itunes" after trying to update to iOS6. Is there any ways to export all the pictures from it before restoring?

    My itouch screen froze showing "plug to itunes" after trying to update to iOS6. It still can be turned on and off. But the screen froze showing that message. I perhaps need to restore it. But is there any ways to export all the pictures from it before restoring?

    Only if y can get the iPod out of recovery mode with the program. Otherwise you will have to restore via iTunes which erases the iPod.
    RecBoot: Easy Way to Put iPhone into Recovery Mode

  • Is there any way to put all the music FROM my iPod back onto my computer?  My school tech person not only wiped out my iTunes, the wiped out my back-up hard drive.

    Is there any way to put all the music FROM my iPod back onto my computer?  My school tech person not only wiped out my iTunes, the wiped out my back-up hard drive.

    Hello cgbuehling
    You can, but only the purchases that were made from the iTunes Store. Other content that was imported from a CD or other sources will not transfer over.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/ht1848
    Regards,
    -Norm G.

  • Forgot to save project before laptop shutdown.  Is there any way to recover all the captured video?

    Is there any way to recover all the video (slides?) captured by Captivate 5 if the project was not saved?  Just after I clicked on shutdown to power off my laptop I realized I forgot to save and close my Captivate project and unfortunately windows shut down without any prompting to save anything.   There are lots of files (.cpd) in the Adobe Captivate Cached Projects folder but no project file for 2+ hours worth of video snippets.  Is there any way to recover those?
    thanks!

    Hello,
    I hope to have good news for you. Can you check this blog post, we got the tip from the Adobe dev. team and Kevin did write it out:
    Cached projects can save you some cash
    Lilybiri

  • My laptop was stolen and i have a new one, is there any way to move all the picture folders to the new computer and not lose them?

    My laptop was stolen and i have a new one, is there any way to move all the picture folders to the new computer and not lose them? They stole my external harddrive too so unfortunately if i lose these, i have no way to get them back?

    What randers4 said. HOWEVER, if the photos were taken with a higher resolution camera than the iPhone what you recover will not be as high a resolution as the originals.

  • Is there any way to see all the bookmarked pins at once in Map App?!

    Hello!
    I have been making a route for my next mountaineering trip using the red pins on the map app! i have like 20 bookmarks. I could see all the bookmarks at once and it was so nice. but after I searched another place all the bookmarks dissapeared. now i can see only one of the bookmarks at a time! is there any way to see all of them together again ?! please someone help I put so much affort to find the correct route...

    Richard,
    Is there any way I can simply list everything at once?
    The best workaround I'm aware of comes courtesy of BMan1854: Create a Smart Playlist that will Match the following rule: Date Added is after 01/01/2001 (or whatever the day before the day that you first started your iTunes Library is). That playlist will show your entire library.
    Or is there a way so that when I add new podcasts it will get rid of the old ones automatically?
    Have you gone to the iTunes Edit menu > Preferences > Podcasts tab and checked out the various options listed in the Keep drop-down menu.

  • Is there any way to browse all sales excluding rental only & short films?

    Is there any way to browse all film sales excluding rental only & short films?
    I am finding the laborious process of clicking through page by page in cover view annoying to the extreme to search new additions to the available film sales lists every week or so. The display page is always slightly deeper than my window so it means having to scroll down to view the last row of covers and click next page.
    Apple... Is there any chance of having an auto scrolling (with pause and previous/next feature) film cover flow with description view of each film large enough to view the image, preferably filling the screen, perhaps also a feature in Front Row that will show available films to buy/rent in iTunes or an RSS screen saver that could give you a constant update of the last 10/20 films added?
    Something that will make the task of searching for titles you might like to buy less of a 'task' and more intuitive. I don't really want to browse by Genre and a Cover image only view tells you nothing about the film.
    If the screen in front of me gave me a constantly (controllable when required) changing view, similar to the content displayed in Front Row of a title you have selected i'd be happy.
    Message was edited by: Rob Wilton

    Could you please tell me how to view all the movies I have rented?

  • Is there any way to see all the contents of my library in one view?

    I love itunes version 7, but one thing I miss: in the old itunes you could pick the "library" view and see everything you had in one view: music, podcasts, etc. This was useful because I liked to see the "date added" feature to get rid of the old podcasts in order of the oldest first - to make space on my harddrive. But now there is no single "libary" view, but rather they are separated by category: podcasts, etc. Under the podcasts they are separated by show, so I have to go through each show individually to get rid of the old ones.
    Is there any way I can simply list everything at once? Or is there a way so that when I add new podcasts it will get rid of the old ones automatically?

    Richard,
    Is there any way I can simply list everything at once?
    The best workaround I'm aware of comes courtesy of BMan1854: Create a Smart Playlist that will Match the following rule: Date Added is after 01/01/2001 (or whatever the day before the day that you first started your iTunes Library is). That playlist will show your entire library.
    Or is there a way so that when I add new podcasts it will get rid of the old ones automatically?
    Have you gone to the iTunes Edit menu > Preferences > Podcasts tab and checked out the various options listed in the Keep drop-down menu.

  • Is there any way to select all the songs in a category?

    Is there any way to quickly select all the songs in a category quickly instead of holding Ctrl and clicking on all the songs?

    Shift key can be used also. click on file at top of list. Go to bottom item you want, while holding down shift key click on bottom item in list. All files between the ones you clicked on will be selected now.
    Ctrl-a selects all in current view.
    Select a file in library ctrl-a will select all files in library.
    Turn on browser view in iTunes. Select an artist. ctrl-a will select all songs by artist
    In browser, select an album from list and ctrl-a will select all files in album.

  • Is there any way to transfer all the songs I have on my iphone to the Itune?

    Because my laptop driver broke and i lost everything and I would like to know if there's a way that i wont loose all the songs i have on my iphone..
    Please help... I had so many songs bought from store and all.. i do not wanna loose everything over again.
    Thank you verry much !

    All of your "Stuff" should be on your computer.  Just sync it to the ipad.
    If for some reason you failed to backup your music then:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Is there any way to clear all the varibles in a FM in a single statement?

    Hi experts,
    When I call different screens in my FM group, I want to reset all the varibles to its initial value, that is , clear all of them, when I call some screen. Clear them one by one is not a good way. THX!

    Hi,
    to clear variables of some function group, use following code:
    FORM clear_global_vars USING uv_fg_name.
      DATA: lt_olist TYPE STANDARD TABLE OF scompo,
                  lv_prog_name TYPE sy-repid,
                  lv_var_name TYPE string.
      FIELD-SYMBOLS: <ls_olist> TYPE scompo,
                     <lv_var> TYPE ANY.
      CONCATENATE 'SAPL' uv_fg_name INTO lv_prog_name
      CALL FUNCTION 'WB_TREE_GET_OBJECTS'
        EXPORTING
    *   INCLUDE       = ' '
          otype         = 'D'
          program       = lv_prog_name
        TABLES
          olist         = lt_olist
      LOOP AT lt_olist ASSIGNING <ls_olist>.
        CONCATENATE '(' lv_prog_name ')' <ls_olist>-name INTO lv_var_name.
        ASSIGN (lv_var_name) TO <lv_var>.
        FREE <lv_var>.
      ENDLOOP.
    ENDFORM.                    "clear_global_vars
    Regards,
    Adrian

  • I made a mistake and deleleted all the sent messages in my mail box is there any way to get all the messages back?

    and of course then i deleted everything that was in the trash before i understood that i made the wrong decision ... any way to get the messages back from Apple Servers?
    Of course, it's not the real truth, the real story is that i made that on my wyfe's computer and i'm now in real trouble with her!

    Unfortunately, I use Time Machine on my own computer (on my nas) but I never been succesfull trying to use Time Machine on the same Nas with my wife's computer ... so Time Machine is not the solution ... anyway that Apple could help? My life will be painfull for the next days !

  • I used to have an I phone but sold it and now I bought an iPad 2 and want to know is there any way to put all the stuff I bought from iTunes back when I had the phone on my new iPad ?

    I want to know if I can access all the stuff I bought from iTunes a year ago

    All of your "Stuff" should be on your computer.  Just sync it to the ipad.
    If for some reason you failed to backup your music then:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

Maybe you are looking for

  • Help with MouseWheel function

    Hi, I am a relative newcomer to Flash, I am trying to link blur and opacity to mousewheel interaction. I have created a custom cursor, I would like to: 1) when wheel is scrolled up increase opacity to 100% and decrease blur to 0 2) when wheel is scro

  • HTTP Web Response and Request Best Practices to Avoid Common Errors

    I am currently investigating an issue with our web authentication server not working for a small subset of users. My investigating led to attempting to figure out the best practices for web responses. The code below allows me to get a HTTP status cod

  • Evaluation path in CRM - RH_STRUC_GET not working !!

    Hi all, I created a new evaluation path in CRM 4.0 to determine the business partners in an organizational unit. If I test it in PPSS it works absolutely perfect, however I have to use it in an ABAP and there I found out that FM RH_STRUC_GET doesn't

  • PB 12.6 (build 3506) Application Exit Codes

    Environment:  Windos 2012 R2 Server, PowerBuilder 12.6 Build 3506 Building 32 bit application I've got a utility application that's running as a service.  We're using NSSM (the Non-Sucking Service Manager) to run the program. NSSM can take actions de

  • 9300 Curve with 3G

    Hello All I've read on various sites about the Blackberry Curve 9300 being a Curve with 3G. Is anyone able to say when this device is likely to be released?? Will it be 2009 ?? My contract is due for renewal in December and I really want a Blackberry