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

Similar Messages

  • How to read two text files using the Read from spreadsheet.vi and then plot it

    I need to read two text files using the read from spreadsheet function and then plot these files over time.
    The file with the .res extention is the RMS values (dt and df) and the second file contains the amplitude of a frequency spectrum.
    I really appreciate any help..thanks
    Attachments:
    RMS.txt ‏1 KB
    FREQUENCY.txt ‏1 KB

    From NI Example Finder:
    Write to Text File.vi
    Read from Text File.vi
    Jean-Marc
    LV2009 and LV2013
    Free PDF Report with iTextSharp

  • Read-Only Text Field Using JavaScript Code

    I'd like to make a text field read-only by using JavaScript and also having IF & ELSE statements.
    I want it to be like this:
    if the answer from the dropdown menu is YES, then the text field is read only but if the answer is NO then the text field is fillable.
    Thanks in advance

    Use this code as the custom validation script of the drop-down in question:
    this.getField("Text1").readonly = (event.value=="Yes");

  • Which situation should we use the text item with the item category TATX

    Dear experts!
    Thank you for your attention!
    I am confused with text item (TATX).
    which situation should we use the text item with the item category TATX????
    Someone told me that the text item is dummy and should be used as a manual of certain standard item. But the manual may be a book or several papers and it also takes up some inventory not a dummy.
    So, could some body tell me what the text item (TATX) exact is and what function it has.
    Best regard!
    Tangdark

    Hi,
    you can use TATX if you like to enter a text and to print some information between the item lines.
    Regards
    William

  • How to find the ID of the text item of the column in an tabular form

    Hello,
    I have created a tabular form report on emp table and made ONE OF THE COLUMN department_id as an text item using APEX_ITEM.TEXT APIs.
    My select query is
    select
    "EMPLOYEE_ID",
    "EMPLOYEE_ID" EMPLOYEE_ID_DISPLAY,
    "FIRST_NAME",
    "LAST_NAME",
    "HIRE_DATE",
    "JOB_ID",
    "SALARY",
    "MANAGER_ID",
    APEX_ITEM.TEXT(3,department_id,20,50,'readonly=true') department_id
    from "#OWNER#"."OEHR_EMPLOYEES"
    now how can i find the item ID?
    one more thing is that how would i reference this item in an javascript function.
    anyone plz help me out with this.
    thanks.

    Hi,
    Firstly, your link must include "this" to ensure that any javascript knows which link has been clicked. So, change:
    onclick="javascript:report();"to
    onclick="javascript:report(this);"Next, your javascript code must take this value and find the related DEPTNO item on the same row. The URL must pass to the popup page the name of the ID that needs to be updated - this is held in the f10 variable in the following script. This means that you popup page must be able to receive this value so that it can use it to update the DEPTNO item when a value is selected. Your popup page seems to be page number 4, so I will assume that you have a P4_ITEM_ID hidden item on that page for this purpose. So, the javascript on the main page would be something like:
    function report(x)
    var f10;
    var p = x.parentNode;
    while (p.tagName != "TR")
      p = p.parentNode;
    var inputs = p.getElementsByTagName("INPUT");
    var zz;
    for (zz = 0; zz < inputs.length; zz++)
      if (inputs[zz].name = 'f10')
       f01 = inputs[zz].id;
    var url;
    url = 'f?p=&APP_ID.:4:&APP_SESSION.::::P4_ITEM_ID:' + f10;
    var w = open(url,"winLov","Scrollbars=1,resizable=1,width=450,height=600");
    if (w.opener == null)
       w.opener = self;
    w.focus();
    }So, when the user clicks a link, the report() function is called and the object clicked is passed as a parameter. The script then starts from this object and goes up to the TR tag that the link is on. From here, it finds all INPUT items and then looks at those to find one that has a name attribute of "f10". When it finds it, it stores the ID of that in the "f10" variable. It then constructs a URL using this variable which is set into the P4_ITEM_ID hidden item on the popup page.
    I don't know what your javascript is on the popup, but it would need to get the value out of P4_ITEM_ID to see which main page item needs updating. This could be something like:
    function passBack(val)
      var id = $v('P4_ITEM_ID');
      opener.document.getElementById(id).value = val;
      window.close();
    }This script looks in the P4_ITEM_ID hidden item and gets its value - this will be the ID of the item to update on the main page. It then does the update and closes the popup.
    Andy

  • Read-Only text area

    Hi,
    I'm using a text area to display a longer read-only text. It should display only 5 lines and, if the text is longer, it should be scrollable. Works fine as long as I set the attribute Editable to true. But if I set it to No (because it should be read-only), I get the following problems:
    - It does not show only the 5 lines anymore, but the complete text without scrollbars.
    - It shrinks the size of the text area, so that it fits the text inside. You can see that looking at the borders. But I wanted to have the borders at the original size independent of the text.
    Does anyone knows, how to solve that?
    Thanks&Regards
    Matthias

    to the best of my knowledge, if you make it read-only you cannot have the scroll bar enabled. and whatever you explained is the expected behaviour!!
    But, i have a workaround under three conditions:
    1. if you need the scroll bar
    2. if you want the size of it as in the initial state - without disturbing the existing size and format of page
    3. you wish to retain the value
    keep the value of the text area in a temporary object and pass it to the reference attribute on submit of page. (here we are just retaining the value and not making it read-only)
    this helps in keeping the format of page undisturbed!!
    HTH
    Sharma

  • Is it possible to send a text message using the UDP protocol?

    Support doc
    http://www.adobe.com/support/director/multiuser/using_udp/using_udp02.html
    says to use the following format with connectToNetServer:
    errCode =
    gMultiuserInstance.connectToNetServer([#remoteAddress:
    "chatServer.myCompany.com", #logonInfo: [#userID: "Bob",
    #password:
    "MySecret", #movieID: "Tech Chat"], #mode: #smus,
    #localUDPPort: 1627,
    #localAddress: "123.45.67.89", #remoteTCPPort: 1626])
    But if I change the mode to #text, it still sends out
    messages as smus.
    In fact, if I leave out the UDP parameters altogether but
    still use the
    list parameters for connectToNetServer, it still always sends
    as smus.
    Sends as smus:
    errCode =
    gMultiuserInstance.connectToNetServer([#remoteAddress:
    "chatServer.myCompany.com", #logonInfo: [#userID: "Bob",
    #password:
    "MySecret", #movieID: "Tech Chat"], #mode: #text,
    #localUDPPort: 1627,
    #localAddress: "123.45.67.89", #remoteTCPPort: 1626])
    Sends as smus:
    errCode =
    gMultiuserInstance.connectToNetServer([#remoteAddress:
    "chatServer.myCompany.com", #logonInfo: [#userID: "Bob",
    #password:
    "MySecret", #movieID: "Tech Chat"], #mode: #text])
    Only the string parameter method can be made to send text
    messages.
    Sends as text:
    errCode = gMultiuserInstance.connectToNetServer("Bob",
    "MySecret",
    "chatServer.myCompany.com", 1626, "Tech Chat", 1)
    Am I missing something? Is this a known issue? Anyone have a
    work around?
    -Jeremy

    Drat!
    Thanks for the answer though.
    alchemist wrote:
    > The multiuserXtra supports either tcp text or tcp smus
    connections.
    > The ability to send udp messages was an expansion to the
    original mus
    > protocol/xtra and is valid only for muXtra instances
    already connected in
    > smus mode.
    > So, if you are asking if you can create a udp instance
    and use it at will
    > (exchange udp messages with some remote udp socket),
    then the answer is no.
    >
    >
    > "Jeremy Aker" <[email protected]> wrote in message
    > news:[email protected]...
    >> I'm really sorry that I wasn't clear enough. I'll
    repeat the questions
    >> more concisely.
    >> Is it possible to send a text message using the UDP
    protocol? If so, how?
    >> Is the bug I described in my original message (see
    below) really a bug or
    >> am I doing something wrong?
    >> If it's a bug, does anyone have a work around?
    >>
    >> alchemist wrote:
    >>> And the question is?
    >>>
    >>> "Jeremy Aker" <[email protected]> wrote in
    message
    >>> news:[email protected]...
    >>>> Support doc
    >>>>
    http://www.adobe.com/support/director/multiuser/using_udp/using_udp02.html
    >>>> says to use the following format with
    connectToNetServer:
    >>>> errCode =
    gMultiuserInstance.connectToNetServer([#remoteAddress:
    >>>> "chatServer.myCompany.com", #logonInfo:
    [#userID: "Bob", #password:
    >>>> "MySecret", #movieID: "Tech Chat"], #mode:
    #smus, #localUDPPort: 1627,
    >>>> #localAddress: "123.45.67.89",
    #remoteTCPPort: 1626])
    >>>>
    >>>> But if I change the mode to #text, it still
    sends out messages as smus.
    >>>> In fact, if I leave out the UDP parameters
    altogether but still use the
    >>>> list parameters for connectToNetServer, it
    still always sends as smus.
    >>>>
    >>>> Sends as smus:
    >>>> errCode =
    gMultiuserInstance.connectToNetServer([#remoteAddress:
    >>>> "chatServer.myCompany.com", #logonInfo:
    [#userID: "Bob", #password:
    >>>> "MySecret", #movieID: "Tech Chat"], #mode:
    #text, #localUDPPort: 1627,
    >>>> #localAddress: "123.45.67.89",
    #remoteTCPPort: 1626])
    >>>>
    >>>> Sends as smus:
    >>>> errCode =
    gMultiuserInstance.connectToNetServer([#remoteAddress:
    >>>> "chatServer.myCompany.com", #logonInfo:
    [#userID: "Bob", #password:
    >>>> "MySecret", #movieID: "Tech Chat"], #mode:
    #text])
    >>>>
    >>>> Only the string parameter method can be made
    to send text messages.
    >>>> Sends as text:
    >>>> errCode =
    gMultiuserInstance.connectToNetServer("Bob", "MySecret",
    >>>> "chatServer.myCompany.com", 1626, "Tech
    Chat", 1)
    >>>>
    >>>> Am I missing something? Is this a known
    issue? Anyone have a work
    >>>> around?
    >>>>
    >>>> -Jeremy
    >

  • I cant get ECWID to work on my mobile devices, it only seems to use the desktop site rather that the Tablet or iPhone

    I cant get ECWID to work on my mobile devices, it only seems to use the desktop site rather that the Tablet or iPhone? Can anyone help me?

    Hi Jim,
    We’ll be glad to help you.
    Ecwid supports responsive layout, which means that the store pages can adapt to the visitor's screen width on the fly and keep the layout clean and nice. Your products and categories lists will be fit for any window's size, as Ecwid will calculate the most suitable number of products or categories in row automatically. In other words, Ecwid looks great on any mobile devices. You can check how your Ecwid store may look on smartphones and tablets, if you see your Starter Site (what it is).
    However, if you want Ecwid reveals itself in all its glory, you should embed your Ecwid store into website, which also support responsive layout, because if the site doesn’t adapt to size screen, Ecwid is not able to determine how it should be changed since it’s just a part of the site.
    We’ve checked your site and found that you used Adobe Muse for building your site. Using Adobe Muse, you can create alternate site layouts for web content to be displayed on desktop, smartphones, and tablets. Nonetheless, your site has a layout for desktops only, that’s why it looks the same on all devices. You can learn how to create those alternate layouts in Adobe Muse, by reading “Creating a Website for Mobile Devices” article.
    I hope this helps! But if there are any questions, don’t hesitate to reach us out on Ecwid forums.

  • Hi Guys,  I am using the full width video widget on a site. The widget was working perfectly however I have just added additional content to the site and re-uploaded and now the video is not working! Please help I have tried everything and am freaking out

    Hi Guys,
    I am using the full width video widget on a site. The widget was working perfectly however I have just added additional content to the site and re-uploaded and now the video is not working! Please help I have tried everything and am freaking out as this web-site has been payed for by my client.
    Alex

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • I share a an apple id with my kids. We all use the same credit card for purchases.  Is it possible for only me to use the icloud online storage without making this available or visible to the kids?

    My kids and I all use the same credit card and password for app and music purchases.   I'm assuming we all use the same apple ID too. (not sure) We can share apps and music although we all have our own itunes libraries. Is it possible for only me to use the icloud online storage without making this available or visible to the kids or do we all have our own storage?

    I just checked and they have already sucked up all my online storage.  Ahhh techy teens!  I think I will just leave it at that and back my own stuff up on my computer. Less confusing
    Thanks for all the help!  I am definitely more educated now and I'm off to check that cc bill too.

  • I am a serviceman deployed to East Africa, and I bought an itunes gift card but cannot use it to purchase anything because itunes sends me to the billing page for a credit card but I only want to use the gift card, how do I get pass that?

    Hello, deployed an want to use an itunes gift card after I put in the number to use it and purchase music itunes continues to take me back to the credit card billing page. I only want to use the gift card, how to I get pass the credit card billing page. Also as soon attempt to put in my new credit card number it immediately times out can this be associated to where I'm located?

    Go to your account on your computer and set the credit card to none. This will allow you to use the gift card.

  • Add Multiple Detail Items Using the Same Query String Parameter

    I am using InfoPath 2010 and SharePoint 2010. 
    I have 2 forms libraries - Expense and Expense Details. 
    The 2 libraries are linked via a custom site column Expense ID. 
    The Expense form contains the main header type info you would typically find on an expense report; e.g., name, purpose, department, etc. 
    The Expense Details form contains multiple detail expenses related to the main expense report such as airfare, rental car, etc. 
    I have created a page that displays an expense report with all of the related expense detail items. 
    The page contains a link to add a new expense detail and passes the Expense ID of the Expense form to the Expense Detail form. 
    This all works fine.  The problem comes in after the first expense detail form is submitted. 
    I can successfully submit the first detail item.  However, the expense detail form loses the Expense ID that was passed to it after the first expense detail form has been submitted. 
    The parameter still shows in the URL but the detail form no longer shows the value of the parameter. 
    What do I need to do in order to be able to add multiple expense detail items using the same Expense ID that was passed to the form? 
    I have tried using a Submit Behavior of Open a new form, Close the form, and Leave the form open. 
    None of these options give me what I need.  Thanks for your help.
    pam

    Laura Rogers Blog
    In case anyone stumbles upon this looking for an answer. Laura Rogers has the answer found in the comments section of her blog above.  It’s not the best but it
    does work. You have to add an extra Info Path Web Form for it to work. I know, you can roll your eyes.<o:p></o:p>
    Steps.<o:p></o:p>
    1. Add Query String<o:p></o:p>
    2. Add the extra Info Path form to the page. This form will be a hidden on the page and will receive the value from the query string.<o:p></o:p>
    3. Add your original Info Path form and have it receive a parameter from the hidden Info Path form.<o:p></o:p>
    Now, when you hit save and it opens a new form the 3 Info Path form will function properly. <o:p></o:p>

  • How to read a text file using Java

    Guys,
    Good day!
    Please help me how to read a text file using Java and create/convert that text file into XML.
    Thanks and God Bless.
    Regards,
    I-Talk

         public void fileRead(){
                 File aFile =new File("myFile.txt");
             BufferedReader input = null;
             try {
               input = new BufferedReader( new FileReader(aFile) );
               String line = null;
               while (( line = input.readLine()) != null){
             catch (FileNotFoundException ex) {
               ex.printStackTrace();
             catch (IOException ex){
               ex.printStackTrace();
         }This code is to read a text file. But there is no such thing that will convert your text file to xml file. You have to have a defined XML format. Then you can read your data from text files and insert them inside your xml text. Or you may like to read xml tags from text files and insert your own data. The file format of .txt and .xml is far too different.
    cheers
    Mohammed Jubaer Arif.

  • TS1702 I have approximately 400 lives in reserve as gifts from friends in Candy Crush, but every time I try to access them, the screen turns blank. It will only let me use the 5 lives you are given every 30 minutes. Updates are up to date.  Any suggestion

    I have approximately 400 lives in reserve as gifts from friends in Candy Crush, but every time I try to access them, the screen turns blank. It will only let me use the 5 lives you are given every 30 minutes. Updates are up to date.  Any suggestions?

    Contact the app develed.

  • I can't remember my security questions and have used the maximum number of tries, how do I find out what my answers are so I can log in and buy some music?

    I can't remember my security questions and have used the maximum number of tries, how do I find out what my answers are so I can log in and buy some music?

    From a Kappy  post
    The Best Alternatives for Security Questions and Rescue Mail
    1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
    2.  Call Apple Support in your country: Customer Service: Contact Apple support.
    3.  Rescue email address and how to reset Apple ID security questions.
    An alternative to using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

Maybe you are looking for

  • "iTunes has detected an iPad in recovery mode. You must restore this iPad before it can be used with iTunes."

    Went on a Vegas trip on Sept 11th.  My iPad worked fine before getting on the plane. In the hotel about 48hrs later I opened my iPad it read the message: “iPad is disabled, connect to iTunes.” To my knowledge myself, nor anyone else has tried to acce

  • Can't view photos in iphoto

    I recently got an I phone 4s. So I updated to Lion on my macbook and the latest version of iphoto so I could use photostream. Initially iphoto worked fine. But now all of a sudden, when I open iphoto the events or individual photos simply show a blac

  • Iphoto wont open - library not loaded

    I recently had an issue where both Aperture and iphoto couldn't load, the message said "iphoto cannot be opened because of a problem" and then I got the error message below. It didn't even load the app, but bounce it once and then post the error mess

  • CANNOT EXPORT PDF TO XL LEGIBLY

    An order we shipped to one of our overseas customers is stuck in customs there because they want our invoice and packing slip in excel format rather than the pdf format we provided.  For only that purpose, I just purchased the convert pdf to excel so

  • Devnagari/Gujarati Keyboard and eBook distribution

    Hi. I have simple question, which I am not able to find answer . Mavericks comes with inbuilt Devnagari and Gujarati Keyboard layouts. If I make use of that and create an eBook (Pages and than export to ePUB) containing that fonts, am I legally allow