How to change the label of a component with javascript?

Hi, i need to change the label of a component dinamically. I tried:
if (document.getElementById('P34_ID_OPERACION').value==2) {
document.getElementById('P34_ID_USUARIO_DEST').label = 'Encargado:';
if (document.getElementById('P34_ID_OPERACION').value==3) {
document.getElementById('P34_ID_USUARIO_DEST').label = 'otro texto:';
but doesn't work.
any ideas?
Edited by: Andres Vilallave on 16-mar-2010 12:49

Hi,
I think "label" is not valid attribiute for "input" tag.
Create new hidden item P34_LABEL. For item 'P34_ID_USUARIO_DEST', put label value as +&P34_LABEL.+
Now try the following JS
<script>
if (document.getElementById('P34_ID_OPERACION').value==2) {
document.getElementById('P34_LABEL').value = 'Encargado:';
if (document.getElementById('P34_ID_OPERACION').value==3) {
document.getElementById('P34_LABEL').value = 'otro texto:';
</script>Cheers,
Hari

Similar Messages

  • How to change the label of a total column in pivot view

    Hi
    Is there a way to change the label of the column created by analytics when calculated row based totals? Currently, it is same as the measure label to be summed.
    Thanks

    Hi
    Thanks for your help, actually that option works for the total displayed as the latest row, I mean the label for the total row. However, for the total column, the name stays as the same as the measure label.
    Can you further help me on the issue?
    Thanks

  • How to Change the label names in crmd_order

    HI Experts
    in CRMD_order transaction i want to change the lable names to the following Standard labels is it possible?..
    the standard label names are
    Standard Label name proposed label name
    Sold to Party = XXXXXXXX
    Requester = YYYYYYY
    Change Manager = AAAAAA
    Change Advisory Board= BBBBBBB
    I have found one link in sdn,To change the label Names But I am not able to find data element name.
    Kindly provide me  your valuable guidance on the above issue.
    Thanks in advance
    Thanks & Regards
    Anand

    Hi,
    it looks like you want to change the names of the partner functions.
    You can do this in the customizing, for example using SPROScenario Specific SettingsService Desk-Service Desk--Partner Determination Procedure (This one works for both ChaRM & Service Desk).
    The standard procedure in your case would be SDCR0001.
    The recommended way is to define your own Z partner functions and assign them to your own Z Partner Determination Procedure, which you have to replace in the configuration of your transaction type.
    Regards,
    Christoph

  • FPM - How to change the title in a component configuration

    Hello,
    I am working with the component configuration EHHSS_INC_REC_NRM_QAF_V3 (version 7.31) and I need to change the title of the tab. I created an OTR with the text "Report Near Miss test". I changed the application title and I also change the tooltip text in the IDR to this OTR.
    When I executed it, I only see the modication on the tooltip. Why the application title is not shown with the modification? How can I modify also the tab and the title?
    Thank you for your help!
    Marie-Josée

    Hello,
    Thank you for your time. The application configuration is link to the business object EHHSS_INCIDENT...I did not find a view. I do not have a lot of experience in FPM so can you show me how? I looked in BOPF but I am not able to do it with an enhancement
    Marie-Josée

  • How to change the Label of input text box after selecting a value in LOV.

    Hi All,
    I have a requirement that after selecting a value in LOV the Label of the next input text box should change accordingly.
    I am able to do cascading LOV's.
    how can i meet this requirement?
    TIA,
    Vishal

    Sample:
    JSPX Page:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:messages id="m1"/>
    <af:form id="f1">
    <af:panelFormLayout id="pfl1">
    <af:inputText value="#{bindings.FirstName.inputValue}"
    label="#{bindings.FirstName.hints.label}"
    required="#{bindings.FirstName.hints.mandatory}"
    columns="#{bindings.FirstName.hints.displayWidth}"
    maximumLength="#{bindings.FirstName.hints.precision}"
    shortDesc="#{bindings.FirstName.hints.tooltip}"
    id="it1" *binding="#{ForumSampleBean.inputText}"*
    *partialTriggers="departmentIdId">*
    <f:validator binding="#{bindings.FirstName.validator}"/>
    </af:inputText>
    <af:inputComboboxListOfValues id="departmentIdId"
    popupTitle="Search and Select: #{bindings.DepartmentId.hints.label}"
    value="#{bindings.DepartmentId.inputValue}"
    label="#{bindings.DepartmentId.hints.label}"
    model="#{bindings.DepartmentId.listOfValuesModel}"
    required="#{bindings.DepartmentId.hints.mandatory}"
    columns="#{bindings.DepartmentId.hints.displayWidth}"
    shortDesc="#{bindings.DepartmentId.hints.tooltip}"
    *autoSubmit="true"*
    *immediate="true"*
    *valueChangeListener="#{ForumSampleBean.lovValueChangeListener}">*
    <f:validator binding="#{bindings.DepartmentId.validator}"/>
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.DepartmentId.format}"/>
    </af:inputComboboxListOfValues>
    </af:panelFormLayout>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    *Managed Bean:*
    public class ForumSampleBean {
    private RichInputText inputText;
    public ForumSampleBean() {
    super();
    public void setInputText(RichInputText inputText) {
    this.inputText = inputText;
    public RichInputText getInputText() {
    return inputText;
    public void lovValueChangeListener(ValueChangeEvent valueChangeEvent) {
    *this.inputText.setLabel("New Label");*
    Thanks,
    Navaneeth

  • How to change the label of a link based on a condition in a report.

    Hi all,
    I have a report, in which i created a link.
    i want the the label of the link to change based on a column value.
    for eg. i created report based on emp table which has a link on empno .
    if the deptno of the employee is 10 i want the link to be displayed as "employee of deptno 10".
    if the deptno of employee is 20 or 30 i want the link to be displayed as "others"
    Thanks in advance.

    One way I've found to do this is to put the condition part into the select statement. Use a decode to determine which link text you want to display, e.g.,
    select '&lt;a href="yourlinkhere?employee=' || empno || '"&gt;' || decode(deptno,10,'employee of deptno 10','others') || '&lt;/a&gt;' emplink from emp;

  • How to hide the label and choice component in the frames

    I have two Buttons.
    when i press the button i want disappear the label and Choice list from the panel. when i press Other button i want to appear the label and Choice list in the panel
    plz give the good idea for it.

    one of the ways is to use a CardLayout
    1st card has the label and list, 2nd card is a blank panel
    click the button to show the 1st card, then click again for 2nd card,
    then again for 1st card etc

  • How to change the computer my ipod syncs with?

    i got a new laptop;
    my ipod (classic) and my iphone sync with the old laptop.
    how do i change the sync settings so that my ipod and iphone would now sync to the new laptop?
    i have windows xp in old and windows7 in new laptop..

    follow the steps given here...
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • How to change the caption of a field with a button?

    I have serious trouble, don't know why, in order to change the caption of a field.
    I can't do it with a button as in any other way...dropdown list, ecc...
    Assumes that we have a button and "on click" i want to change the caption of a numeric or text field.
    form1.ppp.Button1::click - (FormCalc, client)
    NumericField1.caption.value.text.value = "whatever you want to set it to";
    TextField1.caption.value.text.value = "whatever you want to set it to";
    xfa.form.form1.ppp.NumericField1.rawValue = xfa.form.form1.ppp.NumericField1.rawValue + 1;
    The numerical value inside the numericalfield1 is increased each click...but the caption still the same.
    Why this happen?
    I check many threads on this forum and on google and i still find these samples...
    please help.
    Thank you

    Yes, it is. Also in preview i checked "dynamic XML". is it right?
    i try to download this sample while searching in the forum to solve my problem
    https://acrobat.com/#d=pxtis4z3OxCqWxajZwDS2Q
    i try to add to that form my code and it's work!! i can't undersand why...
    Below you can find my PDF...i can't understand why here the same code doesn't work
    http://www.hsc350.it/download/Untitled2.pdf
    Thank you again!

  • How do change the duration of multiple clips with timestreach?

    All of the options are grayed out.

    AdminID
    What version of Premiere Elements and on what computer operating system?
    Let us assume Premiere Elements 11, 12, or 13 on Windows 7, 8, or 8.1 64 bit for the purpose of an example.
    1. Select all the clip on the Timeline (all at one time) that are being targeted for same duration change.
    2. Right click anywhere in the selection, select Time Stretch, and, then in the Time Stretch dialog, change the duration 00;00;0O;00. (hours; minutes; seconds; frames).
    Do you have one of those versions that I mentioned, making sure to select all the involved clips ahead of time before going
    after Time Stretch?
    Selections
    If you want all the clips on the Timeline, then Edit Menu/Select All
    or
    Hold down the Shift key of the computer main keyboard, and, with the mouse cursor, click on each of the clips to be involved in this duration change
    or
    With the mouse cursor, draw a rectangle around the clips to go into the selection in order to select them
    Any questions or need clarification, please do not hesitate to ask.
    Thank you.
    ATR

  • Change the caption of a TextField with JavaScript

    Hi,
    I'm working on an multi language form with the Livecycle Designer 8.2.
    My form includes a couple of Text fields with captions in English. I've implemented a button to change the language of the captions into French through a "click" JavaScript Event.
    But I'm still not able to perform the caption language change with my code:
    Myform.multilang.bt_english::click - (JavaScript, client)
    xfa.resolveNode("tf_site.caption.value.#text").value = "French Caption";
    Has there anybody an hint for me?

    Is you form a dynamic or static PDF? Ensure that it is dynamic.

  • How can change the home page to iExplorer with scripts from all profiles

    iMac PPC   Mac OS X (10.4.8)   G5 Tower PPC, G4
    iMac PPC   Mac OS X (10.4.8)   G5 Tower PPC, G4

    Set up a realm for your entire webserver/documents directory or for your index page.

  • How to change the TOC button?

    Hi!
    I´d like to change the TOC button. In former versions its simply with four lines on it, with version 8 it´s labeled with "TOC". Can I get the lines back??
    And how do I change the label for bookmarks? (right beside the small bookmark icon it says "title", but I´d like to label it "content" or something else)
    Thanks!

    Still don´t know how to change the label for bookmarks in TOC ...
    But I found the solution for changing the TOC button: somewhere in the program folder are FLA-files for the different skins. Choose the FLA corresponding to your selected skin, open it with Flash and check the library for the button you want to change. Doubleclick in the library and create anew (I changed the "TOC" into three lines). Export SWF and then take care to put it where the original skin SWF is located. Voilá!
    Hopefully someone can tell me a way to change the label ;-)

  • How to change the fields order by pushing the TAB button?

    Hello.
    I have 4 input fields on a screen that i have build.
    When i'm running the screen, I can move from one field to
    another by the TAB button.
    I need to set a different moving order that is performed by the TAB button.
    For example: the fields are 1,2,3,4. if I use the TAB button to move from one field to another- the order is 1->2->3->4.
    I want it to be 1->3->2->4.
    Is it possible??
    Thanks, Barak.

    Hi Barak Sahar,
    a) set the initial cursor at dynpro level
    b) set the cursor positions dynamically using codeSET CURSOR[/code]
    Here are the online help links I found:
    http://help.sap.com/saphelp_470/helpdata/EN/9f/dbac0b35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_470/helpdata/EN/9f/dba47e35c111d1829f0000e829fbfe/frameset.htm
    Go through below thread...
    How to change the sequence of fields accessed with the tab key on a dynpro;&#56907;
    Hope it will solve your problem
    <REMOVED BY MODERATOR>
    Thanks & Regards
    ilesh 24x7
    Edited by: Alvaro Tejada Galindo on Dec 25, 2007 9:13 AM

  • When printing mailing labels from Contacts how do I change the label size?

    I want to print mutliple labels from a group in Contacts. I can print 20 labels per page but I want to print 14. I have tried every option in the pop up window but nothing lets me change the label size, 

    Hi 786menzies,
    Welcome to the HP Support forums.  I understand that your print jobs from Photosmart 5520 seems very small.
    The font size is controlled by the software program that the document was created in, for example any Microsoft Word document that you send to the printer the font size would have been chosen in Microsoft Word.  I've included two different documents on how to change the print settings; one for Mac and one for Windows 8.  These documents will show you the process on changing print settings if not the actual steps as you may not be using one of the operating systems mentioned.
    Changing Print Settings in Mac OS X
    Changing Print Settings in Windows 8
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

Maybe you are looking for

  • I brought a cd and only the last 3 songs downloaded and cant download the rest without buying it again

    I brought a cd and only the last 3 song's downloaded if I download it again will I be charged again for it as it is saying the payment will come from my account

  • Workflow - Header vs. Item level

    Hello, I am looking for some documentation / list of pros and cons of implementing header level workflow vs. item level. I understand that item level is more difficult to implement, but what are the benefits. We are looking at two types of approval,

  • User preferences oracle package name

    Hello Can anyone tell me in which package the user preferences are stored in oracle portal. i am using 10.1.4 Thanks Paul

  • Error 229665 / Mig Software

    Posting this to aid in search results for anyone that runs into the same problem: Error 229665 / conflict in the Mig software Problem occurred using usb-6008.  Started with DAZmx 8.3, upgraded to 8.31 with the same problem.  Upgraded to newest versio

  • Fatal FCE crash?

    Haven't had many problems with FCE 2.0.3 lately (none that trashing preferences won't fix) until today when all of a sudden, it crashed when trying to start up the app. I've trashed FCE preferences and rebooted, repaired disk permissions in Disk Util