Edit, read only, disable, blur items. Which to use?

I've searched the forum and have found some threads that somewhat discuss my question, but none have addressed it specifically.
I have a page that has 20 or so items on it. There are 3 fields (like status) that determine which items may be edited, so whether these items may be edited or not will change from row to row.
As I've stated I've searched on the words disable, etc. and have some ideas on how to best handle this process. For one, I don't want to use disable. But, I'm new to ApEx and don't know the best route to take. Should I use the ReadOnly setting on the item and code using PL/SQL? Or, should I handle it in JavaScript and check the status, etc. there and blur the item?
I want to do this the best way, because I want all of our future apps to use the same concept. And, I want to use a concept that will run efficiently.
Thanks in advance for your response.
Tony

I have done this several different ways and have found that it has been best to utlilize pl/sql from the Read-Only using "pl/sql function body returning a boolean". From the read-only, we call a package that handles all the READ-ONLY checks (we put the call into every field by default).<br><br>
Then all we have to do is pass in the current page number and the userID and the package determines whether or not that user is credentialed to view the items on the page item by item.<br><br>
For your example, you could pass the values of the fields on the screen and get your boolean result back for read-only. The advantage to the pl/sql returning boolean is that you can impact the whole application by changing the package that does the credential checking, as opposed to creating and editing page specific javascript for all pages where you want to protect fields.

Similar Messages

  • Getting Nullpointer exception if i try to get value from messageChoicebean in read only/disabled mode

    Hi,
    I have standard notification page and there are three messagechoice components in that page. my requirement is to set default values for those three components and make read only/disable the components.
    I could be able to achieve this through controller extension, but in standard code some where it is trying to get the values from these three components as a result getting null pointer exception. how to make component values should be available in readonly/disabled mode to standard code.
    Regards,
    Satya.

    Hi Sandeep
    Thanks for the update.
    Page: /oracle/apps/fnd/wf/worklist/webui/NotifDetailsPG
    Following is the code used to set the messageChoice to set default value and make it disabled. when i submit the page using approve button, it is trying to get the value from disabled dropdown.
    It is returning null value. If we remove disable property then it is returning value. my requirement is to set the default value and disable the dropdown. pls let me know any alternative to do this.
    OAMessageChoiceBean oabuttonbean=(OAMessageChoiceBean)webBean.findChildRecursive("NRR0");
    oabuttonbean.setSelectionValue(pageContext,"PRORATE");
    oabuttonbean.setDisabled(true);
    Thanks,
    Satya.

  • Can't save the illustration.  The file may be read only, or the file is in use by another applicatio

    Getting error "Can't save the illustration.  The file may be read only, or the file is in use by another application."  The file is not read only and is not in use by another application.

    The same thing may happen in Windows Explorer, specifically if it is a very big file (physical size), so preparing the preview may take a lot of time.
    In that case it is used by "another application", that is: Explorer.
    By the way, which version of Illustrator are you using, Tetons?

  • Read only account line item appears writable in the webform

    Hi All,
    We are using Hyperion Planning 11.1.1.2.We have a line item called "Salary" under account which is set to read only.Its parent "Compensation" has the security set as IDesc(writable).
    The line item Salary is used in 2 forms.In one form it appears as readonly and in the other it appears as writable.Both the forms are identical except for the change in member in custom dimension for which security is not applied.
    Ideally this line item has to appear as readonly.
    Can anybody throw some light on this issue?
    Thanks in advance,
    Malini

    Hi,
    Can you just try this,edit the first form that works, do a save as and give it a name, change the custom dimension member. save. run. Is it the same?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Ho to make a read only / disabled input text mandatory?

    Hi All,
    I'm using ADF to display data for a human task. Part of my requirement is to display a payload attribute as an output text/ read only input text. If this is null, the form should compel the user to choose from a list of values.
    How do I make an output text mandatory? Is there another way around this?
    I tried creating an input text and making it read only and mandatory, this doesn't work. Apparently, you cant make a disabled/read only input text mandatory?
    JDev : 11.1.1.4
    Thanks
    PP

    Hello! What does mandatory field mean for you? If there should be validation while saving, it will be: faces message will be shown with text, as it is defined in business rules in entity object. If you just wish to see blue “*” in front of label, just use “panelLabelAndMessage” component with “showRequired” property = “true”. If you wish to see some red frame around disabled field or button, if it has null value, I don’t know how to help you, but wish to know how to do that too.

  • Authorization scheme for display/read only conditions on item level

    Hi All,
    I have question. I want to use an authorization scheme to manage if users with a certain role have the permission to either update an item or have the persmission to only see the item or that they don't have permission to see it at all.
    So, the input for the scheme would be: 1. user role 2. the current page 3. the current item.
    The output would be: 0 (update) 1 (read only) 2 (not displayed).
    I think I can manage that.
    And I can attach this schema to the items.
    So far so good.
    But how can I make it so that the 0,1 and the 2 will actually do what they need to do?
    I have been thinking about making a function like GET_AUTHORISATON(ROLE,PAGE,ITEM) output: 0,1,2 but I still can't figure out how to connect this with the functionality I want to achieve.
    Can somebody give me a hint?
    Andre

    Thanks Hari,
    Thanks, it works, almost, but what if items are mandatory on a page, but not always mandatory?
    If a user has a certain role, some fields are manadatory, otherwise not.
    Again, a function would do the trick as far as the input and output information
    something like IS_MANDATORY(USER_ROLE, CURRENT_PAGE, CURRENT_ITEM) but how can I make it work?
    I guess a PL/SQL validation like:
    IF IS_MANDATORY(USER_ROLE, CURRENT_PAGE, CURRENT_ITEM) THEN ITEM IS NOT NULL
    END IF;
    Andre
    PS: personally I think item level security is not something you wish to implement in your system. I prefer different screens for different roles.
    Far more straightforeward. Easy for maintenance. When something disfunctions, it's far more easy to pinpoint the location of the cause.

  • HTML DB - Read only - Disable elements

    Hi everyone,
    I made a javascript to disable elements when my user is in a particular group. It's ok. But, I want my disable elements look a like "not disable elements". My disable elements are less attractive for the eyes. The only difference that I want is disabled := 'true' or disabled = 'false'.
    I try also Read only.... but the frame of my elements disappears. How I can add attributes to those elements (check box, textfield, radio group button) to look a like "not disable elements" ?
    Thanks. Bye.

    Hello,
    Your css style is bad.
    try something like this
    style="border:4px solid #CCC;"
    here is a nice primer on borders in css http://www.w3schools.com/css/css_border.asp
    Carl

  • JComboBox only show 10 items data when using DataBinding

    JComboBox only show 10 items data when binding to one table more then 10 lines. List Binding Mode is "Navigation Mode".
    JComboBox's property "maximaxRowCount" is seted to 30, but still display 10 items.
    some code:
    private JComboBox jComboBox2 = new JComboBox();
    jComboBox2.setModel((ComboBoxModel)panelBinding.bindUIControl("ChartView2", jComboBox2));
    ps. Table "Chart" has 35 lines.
    JDeveloper 10g(Version 10.1.2.0.0 Build 1811)

    I am encountering the same problem. I tested the binding VO in the Business Component Browser, it's fetching the correct result set.
    Any suggestion would be greatly appreciated!
    Stephanie

  • PSE 10 Can't edit read-only layer groups (a.k.a.  I just want to make a custom DVD menu in Elements)

    A little background: I wanted to make a custom menu so I opened a copy of one of the canned menu.PSD files in PS Elements 10.  It opened up with all layers and their sublayers showing.  So far, so good.  I did a bunch of editting and had my menu just about right, saved it and burned a DVD with it.  I saw some corrections that I needed to make so I opened the same .PSD file and it showed all the main layers (with the folder icon) but not the attached layers. 
    I double-clicked to open these layers and got:
    "You are attempting to open a group, which is not supported in Photoshop Elements.  The layers in this group will be simplified into a single layer.  Simplify the layers? Yes No."
    I was just editing these things the day before yesterday.  All I've done since then is register my software online. I have seen it stated in this forum that "Elements doesn't support layer group/sets" but it was referring to an earlier version I'm guessing.
    Question 1:  Is this still true of PSE 10?
    Question 2:  If so, how was I editing them the other day? 
    Thanks in advance for any help you can offer.
    Joe

    If you haven't uninstalled premiere elements then it should work, but there are a few things that will not work when editing the dvd templates:
    (it only works on certain dvd templates and only on a machine with premiere elements installed)
    *If you change the document dimensions either larger or smaller. (not the size of the elements in the template but the overall size such as using
    Image>Resize>Image Size or Canvas Size)
    *If you delete any of the layer groups
    *Changing the name of the document
    There are probably other causes and they may know more on the premiere elements forum:
    http://forums.adobe.com/community/premiere_elements?view=discussions
    MTSTUNER

  • PCI 6036E/SC 2075, can read only from ch 2, need to use both. help please

    I have interfaced DAQ PCI 6036-E with SC2075. I wrote a code to get data from analog input chl 1 and ch 2. I am getting data only from ch1. cables and hardware connected to sc2075 had been tested and are working properly. help please .Also, is it possible to test those channels from measurement and automation explorer and how ?.thanks

    Greetings,
    Yes, it is possible to test these analog input channels in Measurement & Automation Explorer (MAX). To do so, expand Devices and Interfaces, right-click on the PCI-6036E, and select Test Panels. On the Analog Input tab, you can set the Channel control to any of the device's channels. If both CH1 and CH2 function correctly in MAX, you will need to troubleshoot your code.
    Good luck with your application.
    Spencer S.

  • Read on Windows external drive, which was used on MAC?

    I have used my external drives on MAC, but when i try to read them on windows- they can´t find them. Is there anything I can do about it?

    They're most likely formatted in HFS extended which Windows can't read.
    There are apps that claim to make HFS drives readable on a PC, but I've never used any.
    The drives need to be formatted in FAT for both systems to read them. Formatting will erase all data on a drive though.

  • Vf01-should allow only those billing doc which are used

    Hai gurus,
           In Tcode VF01 for the field "Billing document" it displays all billing doucments which are in table TVFK(Billing doc types).
    My Requirement is that for the field "Billing doucment" only those billing documents should appear which we are using.
    How could this rqt be fulfilled?
    Thanks in advance

    I think this may not be possible in Std SAP. You migh have to write a code to do this.
    But what can be done is that for a set of users we can define certain screens with specific billing types and thus restrict them from using other billing types.
    This may be done using SHD0 t.code.
    Regards,
    Mani

  • Read-only textbox and/or disable buttons in Infopath 2013

    In a InfoPath 2013 custom list form, my requirement is to make textboxes read-only, disable buttons, and/or create new buttons so users can not update fields in a custom list once the user has updated data in the list. Basically after the user hits the 'save'
    button so that the data is saved.
    The requirement is not to set up custom permissions since my SharePoint administrator said I should find another option. This administrator said he does not see a reason for only an 'add' permission.
    Thus can you tell me how to meet my requirements? Can you show me screen prints, pictures, or urls on how to solve the problem?

    Hi,
    According to your description, you might want to prevent users from editing the existing items.
    There are two workarounds I can provide as below:
    As the first workaround, you can remove Ribbon from SharePoint InfoPath List Form via modifying the OOTB settings of InfoPath Web Part.
    Here is a link about more details, you can use it as a reference:
    http://the-north.com/sharepoint/post/Remove-Ribbon-from-SharePoint-InfoPath-List-Form
    As the second workaround, you can apply the CSS code below to your page, it will hide the “Edit Item” button in the Ribbon:
    <style type="text/css">
    #Ribbon\.ListItem\.Manage\.EditProperties-Large{display: none !important;}
    </style>
    About how to add JavaScript/CSS into SharePoint page:
    http://blog.cloudshare.com/2012/10/29/how-to-insert-custom-javascript-code-in-sharepoint-2013-pages-part-i/
    Best regards
    Patrick Liang
    TechNet Community Support

  • Can I suppress HTML escaping in a read-only item?

    I have an item that is displayed as read-only. The item contains HTML markup. HTML DB seems to automatically escape special characters in the item value.
    Is there a way to suppress this?
    For example, I have a text input item with the value:
    &lt;b&gt;Hello&lt;/b&gt;
    (that is, it contains the bold elements which I want to output as is).
    HTML DB seems to be escaping the item value so I see the bold elements in the browser and what I see in the page source is: &amp;lt;b&amp;gt;Hello&amp;lt;/b&amp;gt;
    There doesn't seem to be "escape special characters" / "don't escape special characters" options for read-only mode like there is for "Display As Text" items. Can anyone suggest a workaround?
    Thanks,
    Eric

    Eric - Text input items are escaped on output whether they are read-only or not. But to answer your question generally, APEX does not emit input items of any type to the browser without escaping them unless there is a guarantee that they have been escaped on input, e.g., when passed in through the URL, or that they acquired their value from within the application. These guarantees apply only to non-POSTable item types such as Display As Text (does not save state) items and a couple others. So in short, we observe the rule (which should be observed by app developers) that it is never safe (from an XSS-protection standpoint) to emit a POSTable item without escaping it first.
    In your case, can you define a safe item type (Display as Text, does not save state) and set its source to the markup-containing item that you are now displaying as read-only? If so, you can conditionally display only the safe one and hide the other.
    Scott

  • JDev 10.1.2: How to update an attribute which is rendered as read-only

    Hello guys, I hope someone can help me with this, I think it should be something easy to do:
    I have a UIX page which renders an input form to update a record, in this input form I want to display (as read-only) the user id which is performing the update, but I want the record to be updated with the user id. I have the user id available from another binding.
    If I put the input box as editable the attribute is updated, but If I set it read-only it isn't.
    Do you know how can I do this?
    Thank you.

    Ok... I solved it, though I don't think this is the right way.
    SOLUTION:
    I inserted a formValue into the UIX page like this:
    <formValue model="${bindings.AttributeToUpdate}"
    value="${bindings.TheValue}"
    name="VB_AttributeToUpdate" />The formValue name is very important and must start with VB_ followed by the name of the attribute to update. I figured out this by looking at the generated html code when I inserted the "AttributeToUpdate" as an editable inputtext, it uses the VB_ prefix and was the only way to get the attribute updated.
    Thanks anyway, and if someone knows of another way to do this I'd like to know it.
    Bye.
    Mensaje editado por:
    Fer Domin

Maybe you are looking for

  • Reg usage of XSLT Mapping

    Hi All, We need to build an interface from PI to some database using JDBC adapter to send out emails to business users of the exception records created in the table.please help in using the xslt mapping for this interface. Thanks in Advance,

  • Connecting 3rd Party Monitor to iMac 2.8 Intel Core i7 27"

    Hi Hope somone maybe able to answer this question? I would like to connect my Dell monitor to my iMac as a 2nd screen, it has VGA, HDMI, & DVI ports. What would be the best way, can I simply purchase a mini-display port > DVI or VGA adapter or would

  • Mediator 11.1.1.5 faults Java Handler not getting called fault-policies

    Hi, I have a Oracle SOA 11.1.1.5 Mediator and am handling the faults using fault policies but somehow custom java handler is not invoked when an error occurs and this is what I see in the log but somehow my custom java handler class is not getting ca

  • Can't import Library List ;_;

    I exported a playlist of my music about a week ago to my exterior harddrive, where I also store my music. Two days ago I had to reinstall Windows Xp and lost all of my data. Since everything was on my exterior harddrive I still have everything and I

  • Zooming a loaded bitmap around the image center

    Hi, I try to zoom a loaded PNG where the center of the image stays at the middle of the stage. I don't know everyting I do leads me to a clip moving away from the center of the stage. What I do is zooming a clip that contains the clip that is loaded.