Disable item text label

I have a text item on a form, the item text's label is from the
Prompt property. How can I disable (or gray out) the text label
when disabling the text item using:
set_item_property(item_id, enabled, property_false);
Any help is greatly appreciated.
Tho.

Thank you very much, Micheal.
It works.
I created a Visual Attribute item (called Prompt_disab_attr)
with Visual Attribute Type = Prompt and Prompt Foreground Color
= gray52.
The foreground color is not perfect yet, I need to play with the
color.
Thanks again.
Tho.

Similar Messages

  • HTMLDB_ITEM.TEXT : disable item !

    Hello,
    I have a question regarding the use of HTMLDB_ITEM.TEXT,
    Exemple, if my report contains the following :
    select
    HTMLDB_ITEM.HIDDEN(1,p.id) id,
    HTMLDB_ITEM.TEXT(2,p.year) year,
    HTMLDB_ITEM.TEXT(3,p.name) name
    FROM person p
    where p.id = :P1_ID
    - the column year is diplayed but I have to disable it.
    - the column name is updated by the user.
    the save process is the following :
    for i in 1..wwv_flow.g_f01.count loop
    if wwv_flow.g_f01(i) is not null then
    update person set name = wwv_flow.g_f03(i)
    where id=:P1_ID and year = wwv_flow.g_f02(i) ;
    end if;
    end loop;
    works fine.
    My problem is : I must disable the column year, I have do the following :
    select
    HTMLDB_ITEM.HIDDEN(1,p.id) id,
    HTMLDB_ITEM.TEXT(2,p.year,3 ,2, 'DISABLED=DISABLED') year,
    HTMLDB_ITEM.TEXT(3,p.name) name
    FROM person p
    where p.id = :P1_ID
    Now, wwv_flow.g_f02(i) is no longuer recognized !!!!!!
    Any help !
    Jina.

    Jina,
    Perhaps this posting helps?
    Re: Bug: Disabled items on tabular form
    Regards,
    Marc

  • How can I hide a text label as I would a control or indicator?

    As I have multiple indicators that must have the same identifier to the operator I can not use the indicator label as the items identifier. At times I want to hide the indicator and label. How can I hide the label? Please recall a text label just sits on the front panel as desired. It isn't within a raised or lowered box. In the attached sample I would like to hide "MyLabel" when the date indicator is hidden.
    Attachments:
    Test_Label.vi ‏35 KB

    Here�s a way. Its a little involved, but it will work:
    1. Customize a control or indicator to remove the border (I used a string control)
    a. Right click on the control or indicator, go to �Advanced � Customize�
    b. Click on the wrench on the tool bar to enter edit mode
    c. Select the border and drag it off to the side
    d. Reduce the size of the border to a single pixel (it won�t let you delete it)
    e. Rubber band a box around the 1 pixel border to select it and use the cursor keys to move it within the �white space� of the string control. It will effectively disappear. You will NOT be able to move it with the mouse as LV will try to resize the border instead of moving it.
    f. Using the color tools �suck up� the background color of your vi and �paint� i
    t into the white space of the control.
    g. Make the control the correct size to hide your label(s). Make sure it is right as you will NOT be able to resize the control outside of the �customize� function (i.e.: while on your front panel)
    h. Click on the tweezers to go back to customize mode.
    i. Give your control a descriptive name
    j. Right click on the control, go to �Visible Items� and uncheck �label� to hide the label.
    k. Save your new control
    2. Back on your front panel, place your new control over what you want to hide and programmatically make it visible or invisible as desired.
    I have included a copy of your original vi, modified to hide and unhide your label. I have also included the customized string control that accomplishes this. You may resize the control as needed by �customizing it as described above.
    The only disadvantage to this method is that if you want to hide multiple labels they must be in the same area of the front panel. Otherwise you must have seve
    ral �hiding� controls.
    An advantage is that you will not have to make the original control or indicator (i.e.: the date indicator) visible or invisible as it can be hidden as well.
    Hope this does what you want.
    Good Luck.
    Attachments:
    Test_Label.vi ‏27 KB
    InvisibleString.ctl ‏6 KB

  • How to disbale the Purchase order item texts (Material PO text)

    Hi,
    In ME22n, i want to disable texts for material  at item level . i tried thru SPRO , but it disables header and item level texts.
    How can i achieve this ? 
    Thanx,

    Hi Khushi,
    I think you cannot disable them but you can delete them using T.Code OLME(But it is not suggestible).follow the path Purchase Order>Texts for Purchase Orders>Define Text Types for Item Texts. Here you have to delete.
    But why you want to disable any text to be written in PO?
    Thanks & Regards,
    Rock.

  • Request For Quotation - ME41 - Item texts are not getting copied

    Hi,
    I created one RFQ (Request For Quotation) by copying from the existing one (through t-code ME41). But item texts are not copied.
    How can this issue be resolved..?
    In menu path ( Item --> Texts --> Adopt Text ), "Adopt Text" option is available. But its in disabled mode.

    just use F4 to get a valid entry, it is only grey to prevent manual typing

  • Disabled item problem on Apex 4.1.1.00.23

    Hello gentleman's
    I've got a problem. On my application i have a page with a text field with the options 'Disable' and 'Save Session State' setted to 'yes'. When i put some value on the text field using javascript and try to submit the page the following error message appears:
    'Session state protection violation: This may be caused by manual alteration of protected page item P1_TEXT. If you are unsure what caused this error, please contact the application administrator for assistance. Contact your application administrator.'
    I really need to save the session state of the text field, even when it is disabled, does anybody know anything about this issue?? I reproduced the error on apex.oracle.com:
    http://apex.oracle.com/pls/apex/f?p=1942:LOGIN:1277533900325401
    login: test
    password: test
    Best Regards
    Rogério

    What you're seeing is the intended and desired functionality of disabling an item and proof of APEX's built-in security robustness.
    To accomplish what you want:
    Turn off the 'Disable' option and set the 'HTML Form Element Attributes' to readonly="readonly"Keep in mind though, that now your "disabled" item can be modified by any user that knows how to access and manipulate DOM objects. If that is a concern you may need to come up with some way to validate the item values allowed.

  • [AS CS3] Bug? All Page Items - grouped items w labels

    Can anyone confirm this behaviour for me. I would classify it as a bug, but maybe the logic for it not being a bug escapes me.
    The command "all page items" is supposed to return a (flat) list of every page object, right? I would suspect that I should be able to address any object in the list. But I can only seem to address an object when it's inside of a group.
    I am trying to get the text of a text frame that has a label. It may or may not be inside a group. I can certainly do a try/error block to try a script statement for objects in a group or not in a group. But I think that "all page items" should be able to handle it directly.
    Here's a test script: ------
    tell application "Adobe InDesign CS3"
    tell document 1
    get label of all page items
    set myUngrouped to contents of text frame "some label" --only works when objects ungrouped, this is expected
    set myText to (get contents of text frame "some label" of all page items)
    --both statements work ONLY when objects grouped
    set myText to (get contents of every page item of all page items whose label is "some label")
    end tell
    end tell
    Steps:
    Make a new document.
    Draw a text frame. Type some text into it.
    Label the frame "some label".
    Draw another empty graphic or text frame.
    Run script
    -->result is, myText statements error out. Why is this?
    Now group all items on page.
    Run script.
    -->result is, myUngrouped can't continue. This is expected.
    Comment out myUngrouped statement
    Run script.
    -->result is, myText statements work OK.

    On 19/8/08 1:14 AM, "SuperMacGuy" <[email protected]> wrote:<br /><br />> set myText to (get contents of every page item of all page items whose label<br />> is "some label") <br /><br />The syntax is a bit tricky. The key is that all page items returns a list,<br />so what you want is certain items -- not page items -- from that list. So:<br /><br />set myText to (every item of all page items whose label is "some label")<br /><br /><br />-- <br />Shane Stanley <[email protected]>

  • 89xx/99xx Issues, Video mute, Line Text labels

    A customer of ours purchased an entire solution on 99 and 89 series model phones.   The customer didn't intend to use video on every call, just some calls.  Reasons include remote site bandwidth, and privacy issues of course.
    What we've discovered is that if video capabilities is turned on for these phones. EVERY call is initiated as video.  We then found that in the camera settings of both models, you can turn off video capabilities at the start of the call. Good.  Here's the problem:  Both parties get a big ugly black screen to stare at, which they have to then minimize.   But worse, we discovered that both phones are consuming bandwidth on the order of 20kbps on up to 180kbps just to display the big ugly box!
    I'm hoping there's a better workaround, or plans to fix this issue.  My suggestion is a toggle soft-key, or a settting option that disables video capabilities entirely until it is needed in call, or escalated in the call, preferably with a remote accept.  Heck any video client avilable today works this way, why can't a purpose built video endpoint do the same?  I can't beleive there's a customer out there that wants every single call to be a video call no matter what...but it appears these phone models think that that's the case. All or nothing?  Any ideas?
    The other issue is that only 1/3 of the screen is avialable for a line text label on these models.  In particular, the 89xx only allows 11 characters.  This means the 79xx luxury of displaying 'firstname lastname x1234' is no longer possible. Even a BLF with a name, there's no room! At best we are limited to a last name and extension, or in extreme cases, just the extension. Basically the line text label is unusable in many cases. 

    Hello all!
    Thanks for your patience as you're watching this thread.  I'm not making any real headway with TAC on this.  Using the "call park application" and "service directed-pickup gpickup" commands in telephony-services (as recommended by TAC), I can get the SIP phones to pick up an actively ringing call from either SIP or SCCP phones, but that also limits the SCCP phones to same.  I cannot use the Pickup softkey to recall/divert a call on Hold or a call on Park.
    To be honest, I think we're going to have to wait until CME 11 is released and go back through the testing process all over again.  That's assuming Cisco will have addressed these issues in the SIP firmware for the 78xx phones.  I really wish Cisco would release SCCP firmware for these and the 88xx phones, but I know that their direction is away from SCCP to SIP across the board.
    With the upcoming release of BE6KS, I see the death knell for CME solutions as the BE6KS will have the same interface/drivers/et. al. as full blown CUCM.  I also see many of my SOHO customers going to other solutions as Cisco will more than likely end up being too complicated and over priced for the smaller environments.
    Kevin

  • Engage 2008 Text Label Problems

    I have text labels on a dashboard that when the swf file is displayed in a browser in full screen look fine.....as you start to resize the browswer there are times when the dashboard truncates those text labels instead of resizing them for display...if you resize the browser a bit smaller then they reappear...is there a way to make sure that these text labels never truncate and alway resize correct.y.   I am using Engage 2008

    That is a known issue because of the way the Flash Player scales text when then dashboard is not being displayed at exactly the same size (with and height) it was created inside Xcelsius.
    We added a FlashVar that you can set in FP3.1 to tell Xcelsius to disable the scaling and display the size it was designed instead, or if you export to HTML the width and height are set for you in the HTML page.
    See ADAPT01319531 (Height and width are not respected when a Flash object is resized) in the What's Fixed in Xcelsius 2008 Fix Pack 3.1.
    Here is where to find the latest online docs: http://help.sap.com/content/bobj/bobj/index.htm
    Regards
    Mattt

  • Jave script to enable and disable items

    Can any one tell me some sites that has used java script to enable and disable items.
    My target is to enable/disable an LOV and a text area when I press a button.

    You could check this example out.
    http://htmldb.oracle.com/pls/otn/f?p=11933:65:54438924816002::NO:RP
    Set the drop-down items to -1 to disable the text areas and any other value to enable them.

  • Copy Fields Into Sales order Item Text

    Hi All,
    I got a requirement where i need to copy the populated custom fields including the appropriate field labels into item text in sales order creation and i am provided with Text Procedure: Z1 and Text ID: 00002. kindly help me.
    Thanks,
    Preethi

    hi,
    I have tried with save_text. but its not copied to the item text tab.
    (goto->item->texts)
    here is my code:
    DATA :  gt_text       TYPE TABLE OF tline WITH HEADER LINE,
                gt_textname   LIKE thead-tdname,
                gt_textobject TYPE TABLE OF thead WITH HEADER LINE.
    CONSTANTS : c_0002    TYPE thead-tdid     VALUE '0002',
                          c_vbbp    TYPE thead-tdobject VALUE 'VBBP'.
    CONCATENATE xvbap-zzrelid xvbap-zzsorg2
                  xvbap-zzsorg3 xvbap-zzsorg4
                  xvbap-zzsorg5 xvbap-zzsorg6
                  xvbap-zzsorg7 xvbap-zzsorg8
                  xvbap-zzsorg9 xvbap-zzsorg10
                  xvbap-zzcusttrdgrp INTO  gt_textname. 
    gt_textobject-tdid  = c_0002.
    gt_textobject-tdname     = gt_textname.
    gt_textobject-tdobject   = c_vbbp.
    gt_textobject-tdspras    = sy-langu.
    APPEND gt_textobject.
      CONCATENATE 'relationship Owner:' vbap-zzrelid INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 2 :' vbap-zzsorg2 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 3 :' vbap-zzsorg3 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 4 :' vbap-zzsorg4 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 5 :' vbap-zzsorg5 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 6 :' vbap-zzsorg6 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 7 :' vbap-zzsorg7 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 8 :' vbap-zzsorg8 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 9 :' vbap-zzsorg9 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 10 :' vbap-zzsorg10 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
    CALL FUNCTION 'SAVE_TEXT'
          EXPORTING
            header          = gt_textobject
            savemode_direct = 'X'
          TABLES
            lines    = gt_text
          EXCEPTIONS
            id       = 1
            language = 2
            name     = 3
            object   = 4
            OTHERS   = 5.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    kindly resolve y it is not copied to the item text tab and also in which user exit i need to place my code.
    Thanks,
    Preethi.

  • Item text from sales order to delivery

    Hi All,
    I have GTIN number in item texts and it has value to it, but in the delivery only text is comming as GTIN number, no value is comming for it. Can some one please help me how to check why it is not comming and how to resolve this.
    I have to show the same text with value in the Invoice also. I donot even see txt there, no value also.
    Please help me.
    Thanks,
    Veni.

    Hi Siva,
    VOTXN is not valid for me, so used VOTX only. I selected the radio button for sales document -> item, text types. Pressed 'All' push button. Here I see that checkbox for Billing document is not checked, these are disabled here, How should I check the billing document check box.
    Thanks,
    Veni.

  • Change the 'disabled color text' of JCheckBox and JRadioButton

    With a JTextComponent item, you can change the disabled color text with :
    item.setDisabledTextColor(Color.blue);
    But with a JToggleButton item (JCheckBox, JRadioButton) I can't change the disabled color of its text .
    Does anyone have an idea about what I can do ??
    Thanks a lot
    ps: disabled doesn't mean deselected

    Try to set the color of disabled text with the same background color.

  • Disable the text-to-speech?

    How do I disable the text-to-speech that happenens everytime I get a messgae?

    ruwim wrote:
    In Skype open Tools -> Options -> Advanced settings. At the bottom of this screen you should see a menu item saying “Manage other programs access to Skype”. Click on this menu. Do you see any applications listed there?Just Clownfish.

  • Disable items

    I am currently using the following javascript to disable items.
    Page Header
    <script language="JavaScript1.1" type="text/javascript">
    function disFormItems(item1){
    disItem = document.getElementById(item1);
    disItem.style.background = 'biege';
    disItem.disabled = true;
    </script>
    Region Footer
    <script language="JavaScript1.1" type="text/javascript">
    disFormItems('P157_RANK');
    </script>
    The background changes colour.
    You can still over type the items, but this value is not saved.
    How do I stop the users from over typing, ie, totally disable field.
    Gus

    Will one of the following do?
    1) Make your text item of type Text Field (Disabled)
    2) Set a Read Only condition for your item
    Andy

Maybe you are looking for