How to create read only Apex items

Hi,
I'm creating a report using Apex items to display the result values inside editable text boxes. They are then referred by using APEX_APPLICATION.G_F02 etc.
My requirement is to make the last row of this report (the values for "Total") as non editable or read only. Can anybody help me with the code that i would need to add in the query? The query goes something like this:
apex_item.text(7, TO_CHAR(nvl(year_4,0),'999,999,999'), 12, 12, 'style="text-align:right;font-weight:bold"',ROWNUM) "YEAR_4", ..

Surprising. I would have expected there to be a CSS style to disable a form item.
Depending on your reasons for wanting to use APEX_ITEM, you could:
Select your required value as part of the query (without using apex_item.)
Visit your report attributes, then the attributes for your specific column.
Change the column type to text field.
Add readonly=true into the item attributes.
Rgds
Ben

Similar Messages

  • How to create read only disk image?

    I used to be able to create read-only encrypted disk images with Disk Utility in Mac OS 10.4.x (Tiger). In the Leopard version (10.5.7) of Disk Utility, the 'read only' option seems to be gone (but I can still do encryption). Does anyone know how this can be done?

    A blank empty read only disk image has never been possible. If it's read-only, it cannot be modified, and so it would be blank and empty forever. Not much point in that.
    If you want read-only and encryption on your finished disk image, you'll have to put your files into a folder, and then do File -> New -> Disk image from folder.

  • How to create read only properties in a component?

    I want to set a property in a nucleus component of global scope as read only, so that it cannot be set via dyn admin. I want this property to be set only via properties file at server startup. I tried removing the setter method as suggessted in the guide. But what happened was the property was not set with the value in the properties file and was set as null. It did appear as read only in dyn admin, but part of my purpose is still not resolved. Any help/info for setting the value from properties file alone and restricting thro dyn admin is appreciable.
    Thanks,
    Gopinath Ramasamy

    You may also try this in your component class by overriding doStartService() which will be called once the component is initialized with property setter has already been called:
    import java.beans.PropertyDescriptor;
    import java.beans.IntrospectionException;
    import atg.core.util.BeanUtils;
    import atg.nucleus.GenericService;
    import atg.nucleus.ServiceException;
    public class MyComponent extends GenericService {
          private String x;
          public String getX() {
              return x;
          public void setX(String value) {
              this.x = value;
           public void doStartService() throws ServiceException {          
              try {
                            //make property named "x" as non-writable
                   PropertyDescriptor pd = BeanUtils.getPropertyDescriptor(this.getClass(), "x");
                   pd.setWriteMethod(null);               
              } catch (IntrospectionException e) {
                   //handle exception
                            logError(e);
                            e.printStackTrace();
    }I think it should make the property "x" rendered as read-only in dyn/admin after it has initialized through properties file.
    Update: I have tried it in an existing ATG 9.4 setup and it was working as expected.
    Edited by: Nitin Khare on Aug 14, 2012 9:01 PM

  • How to create ready only user ID in Oracle Apps(EBS) 11i

    Hi,
    We have a requirement of creating a ID in Oracle Apps 11i as a ready only user.
    Please suggest how to create read only user in Oracle Apps 11i ?
    Regards,
    chandrasekar s

    Is this for an application user or a database user ?
    See MOS Doc 1290228.1 for application user.
    This topic has been discussed many times in these forums - pl use the search feature
    https://forums.oracle.com/search.jspa?view=content&resultTypes=&dateRange=all&q=read+only&rankBy=relevance&contentType=a…
    HTH
    Srini

  • Read only text Items uses the maximum width

    Folks,
    I have a form with 3 regions and each region has 6 or more text items each with a different width (40, 30 24, 2...). I am using a Read Only Condition Type on all these items to disable them. I am setting the background color as bgcolor="#DCDCDC" in the Read Only Element Table Cell Attributes.
    All my elements are disabled (Gray color) but with the maximum width of 40 bytes. I don't want a 2 byte text item 40 bytes long and grayed out. How can I set a specific width for individual items in Read only Condition? Please help
    Thanks
    Raje.

    Try this alternative by disabling the HTML Form Item at the required process point.
    I added this JavaScript to the HTML Header of the page which will allow me to disable the required item, plus set its background and color:-
    <script language="JavaScript1.1" type="text/javascript">
        function disableFormItem(p_item, p_background, p_color){
                        disItem = document.getElementById(p_item);
                        disItem.style.background = p_background;
                        disItem.disabled = true;
                        disItem.style.color = p_color;
    </script>In the Region Footer of the Region where my items are located I added this JavaScript code:-
    <script language="JavaScript" type="text/javascript">
       ** Only disable the required Form Items if the Primary Key value is present,
       ** in this case it is P12_UEI. (Won't be present for new records as populated
       ** by on-insert db trigger and sequence.)
       if (html_GetElement('P12_UEI').value > 0)
          disableFormItem('P12_URESI', 'lightyellow', 'black');
          disableFormItem('P12_UZI', 'lightgray', 'black');
          disableFormItem('P12_UBI', 'lightgray', 'black');
    </script> The resulting page is a lot better looking than using the APEX read only text item.
    Regards,
    Phil

  • How to create a single sub-item SD BOM

    Hi All,
    I know how to create Sales BOM.
    In both
    Above Structure (ERLA)  & Below Structure (LUMF)
    Now i want to create sub item bom for a particular sub item. (eg. I have A,B & C sub items but i want to create order only sub item A)
    [ let say-
    i have a laptop in Above Structure (ERLA) & HD,Processor & other laptop component int below structure (LUMF) level.
    Now i want to create Bom only HD .
    when i will create bom only HD price will fetch in order,delivery & billing
    How to do this process .
    Please help me
    Thanks In Advance
    Santanu Giri

    It looks some important info is missing.
    - what is the BOM structure ? What level is the  pricing / Delivery carried out? Iam sure it cant both i.e. pricing @ main item - sub item  because you have mentioned ERLA & LUMF.
    As you already aware-
    Item cat group ERLA is only used in main item MMR, if the main item is relevant for pricing / delivery. & then sub item item cat group should be NORM.
    similarly, if you want to delivery subitem & price is @ subitem level, then main item ,item cat group LUMF ,sub item item cat group NORM.
    now explain your requirement in a better way as possible.
    Thanks,
    Reazuddin MD

  • Is it possible to create read-only users in OM

    We have several tasks where creating Read-Only access for non-OM users who require information from specific data fields in OM on a regular basis would be helpful. Currently those users must interrupt the daily work of those Oracle users with OM access in order to get their queries answered; obviously this can be quite disruptive.
    Have been told by our IT dept/OM users that creating read-only users is not possible and have not found any general information about the topic via Internet search, so I am posting this general query.
    Are there license issues that would prevent this?
    Security issues?
    Customized OM?
    Or is it just too complex to do without creating headaches for a firm's IT department?
    Thanks
    Lisa

    You will have to create new functions with parameter query-only = Yes.
    And then create a new menu with those new functions.
    And then attach the new menu to the Read only responsibility.
    Also see Re: How to change OM responsibility as read-only in oracle applications 11i and the links in that thread.

  • How to change read only folders into normal ones...i can't get any filed from my harddrive

    how to change read only folders into normal ones...i can't get any filed from my hard drive..it shows read only

    Which HDD are you referring to, an external one, or the internal SSD?
    If external, which format is it in?

  • How to make read only field in Task list?

    Hi All,
    How to make read only field in Task list?

    This can be done one of two ways:
    1. Customize the form in Infopath, right click your field and disable the control.
    2. Use JavaScript/jQuery on the page to disable the element.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • How to create/read/write textfiles in a jar archive?

    Hi!
    I would like to know how to create, read and write text file in a jar file?
    //Marcus

    You want to update "files" that are inside a jar archive? You can't. At least not very easily; to modify a file you need to create a new version of the jar, copy over everything else, and add the new version of that file. Look for a different design that doesn't require updating a jar.
    PC&#178;

  • How to create sql query for item master with operator LIKE with variables?

    hi all,
    How to create sql query for item master with
    operator LIKE(Contains,Start With,End With) with variables using query generator in SAP B1 ?
    Jeyakanthan

    Hi Jeyakanthan,
    here is an example (put the like statement into the where field)
    SELECT T0.CardCode, T0.CardName FROM OITM T0 WHERE T0.CardName Like '%%test%%'
    The %% sign is a wildcard. If you need start with write 'test%%' and otherwise ends with '%%test'. For contains you need '%%test%%'. You also could combinate this statements like 'test%%abc%%'. This means starts with test and contains abc.
    Regards Steffen

  • Problem with HTML in a read only textarea item

    I'm working on a messaging system for our site. For the body of the message, we use a standard textarea item. However, if we come to the messaging page from a certain page in our system, then we pre-load the textarea item, and make it read only. The only problem with this is that there are HTML tags in the body that we try to pre-load. This is causing problems because they aren't being interpreted as tags, but are being displayed as text. If I make the textarea editable, then everything looks fine, it's just when I set the area to be read only that it doesn't work. Any thoughts on how to fix this? Thanks!

    Not always. A user is allowed to edit that area in most circumstances except for when the user arrives at the page coming from 1 page in particular. In this case, then the field is read-only. At all other times though, it is editable.
    As a workaround, whenever I know I'm coming from this page, I set a variable, and if the variable is set, then I use a Display Only item and then hide the Textarea. If the variable is not set, then I hide my Display Only item and show the Textarea. Not very elegant, but it works.

  • How to assign read only access for a database to a single user?

    Hi All,
    I have created a login for one of the user , and i used deny view to deny that user access to any of the databases to be shown.Now, he cannot see any databases in the explorer window.
    My question is now i want to give this user permission ( read-only) to a single database. How can i do that? I have googled around and found some solutions but nothing is working.
    Can someone please help me with any suggestions.
    Thanks a lot for your time and suggestions in advance.
    Thanks

    Hi Bhanu,
    Thanks for your reply, I am not sure i got it. I have a user created with the name of 'msam_test' and if i login into management studio with this userid and password i dont see any databases showing up because i used the DENY View command to hide which is
    working fine.Now i just want to see only 1 database named 'suresh3_test' with a read only access to this database.
    I tried using your code in the below way
    USE [suresh3_test]
    CREATE USER [<msam_test>] FOR LOGIN [<msam_test>] WITH DEFAULT_SCHEMA=[dbo]
     exec SP_ADDROLEMEMBER 'DB_DATAREADER','<msam_test>'
    But i receive an error saying
    Msg 15007, Level 16, State 1, Line 3
    '<msam_test>' is not a valid login or you do not have permission.
    Msg 15410, Level 11, State 1, Procedure sp_addrolemember, Line 75
    User or role '<msam_test>' does not exist in this database.
    Can you please help me on this.
    Thanks

  • XML FORM  -  How to save read-only controls with a default value

    Hello everybody,
    I have a 3 xml forms, each one to create one type of news. I need to use 3 because each of this forms has their own controls. But the control which indicates the type of news (asociated with a KM Predefined Property) must be common in the 3 forms, in order to use it on searches.
    The question is, how can I include in this forms a control:
      - Visible for the user
      - With a default value defined in the control properties (each form has a different value, corresponding with the type of news)
      - Read-only mode
      - The value showed in the control must be saved in the associated KM Predefined Property when the user clicks the Save button. 
    Anyone knows how to do this?
    What control can I use?
    I was thinking of trying with text boxes, but I don't find the way to make them unwritable (Read only mode).
    It is posible using labels?
    Thanks.
    Kind regards

    Hello Jose,
    I know you responded with a question... I see it in the email, but I don't see it here!  Very odd... but in response:
    The first thing I do when I open the Edit.xsl file is do a 'find' for the name of the text field that I want to be read-only (in my test case, it's 'location').  Repeat the find until you see something like:
    [code]<!--
    field location
    -->[/code]
    Below there is where I put the new code.  Mine looks like this:
    [code]- <xsl:choose>
    - <xsl:when test="location='' and ($editmode='create')">
    - <xsl:choose>
    - <xsl:when test="./xf:ValidationError/@tagname='location'">
    - <input name="location" size="30" type="text" class="urEdfiTxtEnbl" id="field_1157467268006">
    - <xsl:attribute name="tabindex">
    - <xsl:choose>
      <xsl:when test="$accessibilitymode='true'">21</xsl:when>
      <xsl:otherwise>3792</xsl:otherwise>
      </xsl:choose>
      </xsl:attribute>
    - <xsl:attribute name="value">
      <xsl:value-of select="''" />
      </xsl:attribute>
    - <xsl:attribute name="readonly">true</xsl:attribute>
      </input>
      </xsl:when>
    - <xsl:otherwise>
    - <input name="location" size="30" type="text" tabindex="3792" class="urEdfTxtEnbl" id="field_1157467268006">
    - <xsl:attribute name="value">
      <xsl:value-of select="''" />
      </xsl:attribute>
    - <xsl:attribute name="readonly">true</xsl:attribute>
      </input>
      </xsl:otherwise>
      </xsl:choose>[/code]
    I put the <xsl:attribute name="readonly"> in both places (when test, and when not test).  I'm not entirely sure if that's necessary, but that worked for me.
    Hope this helps,
    Fallon

  • Shared Computer over Ethernet is creating read-only files and folders

    Hi,
    I have set up a ssecond mac connected to my G4 via ethernet connection. We are both using my mac as the main computter and both working from one folder on it. BUT when the second computer creates a folder or saves a job into this folder the permissions are set for them to 'read only'.
    How do you make it so whatever they create is all read and write.
    The second mac is logining is not as the administrator but as a normal user. I do not want them to have full access.

    Hello DH-Studio
    Hi, this is still causing me problems, is there another way?
    Sharepoints does work howerver the other way to do this that does not involve using UNIX commands is to run Server Software such as Mac OSX Server.
    The 10 User licenced version is affordable and it has an excellent GUI called the Workgroup Manager which can setup sharepoints, users & groups permissions very easily. It has many other benefits.
    Other than that their are UNIX commands such as umask. However I have no experience using umask and I understand it make global changes to your system. I would avoid using it.
    You also could setup a crontab rule that changes the permissions on the shared folder every minute. In your terminal use the following commands
    sudo nano /etc/crontab
    You will then see
    using your arrow key move the cursor down to area indicated in my example then enter the following information
    */1 <press tab twice> * <tab> * <tab> * <tab> * <tab> root <tab> chmod -R 777 /shared
    it should look like the following
    replace "/share" with the actual path to your sharedfolder
    Then close the file with "control +O", then "return" then "control X"
    Now any file that is saved to your share folder will be readwrite to everyone every minute. This is a clumsy method but it works.
    iBookG4 1.33ghz. 20inch iMacG5, 1.2ghz Mac Mini, ipod video, iSight   Mac OS X (10.4.3)   Linksys WRT54gs+1.05 Talisman Firmware, Telewest 10mb/384k

Maybe you are looking for

  • HT4561 What can I do to get the 10.6.8 update to install WITHOUT causing a Kernel Panic?

    Every time I try to install the 10.6.8 update my iMac boots a Kernel Panic and I have to do a recovery and patches all the way back up to 10.6.7 Then when I try the 10.6.8 update again, I get another Kernel Panic. It takes hours and hours to download

  • HP C3180 All in One Wont Turn On

    My printer will not turn on. I have been using it recently and it was working fine. I came into print and it would not turn on. I checked all the cables and they are properly connected. When I switched to a different power outlet the device flashed o

  • What happens when bean exits?

    I have a CMP bean and a JSP page as a client. From what I understand, the client will performs a JNDI lookup with the lookup() method and then uses the home object to create an entity bean data with create(). At the end, weblogic will destroy the bea

  • Taking 4ever to update from 3.2 to 5.0.

    It's been connected for over 4 hrs. Have a 1st Gen ipad with 64 meg. Just got it on Monday and it has nothing on it. Nothing! How long do I need to wait? Should I hit the cancel button and start over? Any help would be great!! Thanks in advance Mrsmi

  • I have an incorrect Email address on my iCloud

    I have an incorrect email address on my Icloud so my calendars don't synch