How to get label text  for the Input Field in code

Hi,
I have created Two UI elements InputField  and Label.  I set the property 'labelFor' of the UI element Label to 'InputField'.
This is my requirement .  I am having the Id of InputField in the code . I want to get the value of 'text' of  the UI element Label.
Please suggest how to proceed.
Points will be rewarded for helpful answers.
Best Wishes
Idhaya R

Not sure why you really need this, but you could do something like
IWDInputField field = (IWDInputField) view.getElement("inputFieldID");
IWDLabel fieldLabel = null;
for (Iterator children = field.getContainer().iterateChildren(); children.hasNext(); )
  IWDUIElement child = (IWDUIElement) children.next();
  if (child instanceof IWDLabel)
    IWDLabel  label = (IWDLabel) child;
    if ( field.getId().equals(label.getLabelFor())
      fieldLabel = label;
      break;
Armin

Similar Messages

  • How to create clean text for the web in Photoshop/Illustrator

    I am puzzled to death on how in the world to get clean text for the web in Photoshop/Illustrator, particularly white text. I want my text to turn out exactly like the text at this website: thepainteddoor.org
    If you scroll down to the bottom of that page, notice the titles "Featured Media", "Social Networking", and "Contact Information". They are all .gif images. I have tried to replicate what these images look like for about 3 hours now to no avail. Can anyone tell me how to do this? It just looks like a simple outline or drop shadow, but I can't get it to show up like that. If someone could help me replicate that effect with text (aka make it show up clean as an image), I would graciously give them money through PayPal*.
    * = I will only give cash if it will replicate it exactly (and I mean exactly)..and it won't be too much..I'm a poor college student. :-P
    Thanks in advance!
    Thomas

    You would do it the way I created it:
    Select the Text tool in Photoshop and set the font and parameters as I have listed.  Then enter whatever text you like.  It will be rendered over the top of the lower layers you may have in the document.  Save as an image of the appropriate type and you're there.
    Note that "lower layers you may have in the document" could conceivably be none at all (i.e., you render the text over a transparent document).  You could imagine saving that as a .png with transparency and get light text in an image that could then be put over the top of anything else.  The alpha mixing will see to it that the edges smoothly blend with the background.  I haven't actually tried this (I usually do try my own suggestions) because of lack of time right now.
    -Noel
    Edit:  Markerline and I seem to be on the same crystal-controlled wavelength. 

  • How to get Open Balance for the year and Total Ending Balance?

    For a given account, how to get Open Balance for the year (Cumulative Ending Balance) and Total Ending Balance (Cumulative Ending Balance)?
    Is there any function module available? or should I read from some tables? Please advice.

    Hello Paul,
    You could try calling one of the following BAPIs - see which one meets your requirement. They are documented well so shouldn't be a problem finding out the correct one for your requirements.
    BAPI_GL_GETGLACCBALANCE      
    BAPI_GL_GETGLACCCURRENTBALANCE
    BAPI_GL_ACC_GETBALANCE      
    BAPI_GL_ACC_GETCURRENTBALANCE
    BAPI_GL_ACC_GETPERIODBALANCES
    BAPI_COND_VAL_DECRE_BALANCES
    You might have to put in some of your own logic after the BAPI call to get what you want.
    Hope this helps,
    Cheers,
    Sougata.
    p.s. Also look at FM FAGL_GET_ACCOUNT_BALANCE
    Edited by: Sougata Chatterjee on May 7, 2008 11:47 AM

  • Changing color of  text in the input field

    hi
    when i disable the input field , the text written in it has very light color. How can i change the color of the displayed text in the input field.

    Hi Harsimran,
    changing the text color of an input field is not possible. However, you can build a workaround:
    1. take an expression box, place it exactly over your input field
    2. change its text color and take the value of your input field as value being displayed
    3. instead of making your input field disabled, make it hidden and show the expression box instead.
    Thus, instead of enabling/disabling your input field, switch between expression box/input field to be displayed. I hope it's clear what I mean. If not, don't hesitate to ask again.
    Best regards,
      Benni

  • How long does it take for the custom field created in SFDC to show up in the field mapping list?

    How long does it take for the custom field created in SFDC to show up in the field mapping list? I hit the refresh field button, but it is not showing up after 5 min. Do I just need to have patience? 

    Hi,
    What do you have to do to the field in SFDC to make it accessible so that it shows up in the Eloqua field mapping area as a field to be mapped?   

  • Can't change the label text for the first time of  loading

    I have some problem to change the label text in the prerender method.
    I put a label on the form and set the text value to "Customer" on the text properities , and I would like to change the lable text to "Supplier" in the prerender method, I found some strange behaviour.
    If I type nothing on the label text of the properties , I can change the lable text on the prerender method on the first time of the form load .
    If I put something on the label text of the properties , the text label can't be changed on the first time of form loaded, the lable can be changed if I refresh the form or reload the form.
    Could anyone help me to solve this kinds of problem ?
    Thanks

    This is a tough one to explain. Here is one explanation from the Delving Into Components tutorial:
    As with the JavaServer Pages implementation, when the server constructs a page from JSP source, the tag attribute settings in the JSP source take precedence over runtime settings. For example, if you set the text property for a Static Text component to "moon," the IDE adds text="moon" to the Static Text component's tag in the JSP file. Even if the page's prerender method has a staticText1.setText("sun") statement, the Static Text component shows "moon" when the application renders the page. If the page is rerendered, the staticText1.setText("sun") statement takes affect and the Static Text component shows "sun." If you visit another page and come back, the server once again constructs the page from the JSP source, the values set in the JSP tag attributes take precedence, and the page displays "moon."

  • How to implement AZAX call for a input field in webdynpro java.

    Hello everyone,
    I want to make a AZAX call , when I click on the input field.Anybody has already implemented this earlier, plz let me know how to do this.
    Thanks,
    Srikanta

    Undo/Redo is a pain in the neck. If I recall correctly, I usually use a javax.swing.undo.CompoundEdit to group smaller edits. Not sure if this will work but you might try starting a compound edit when a user strikes a key and ending it after a certain amount of time passes without a keystroke. This will allow rapid bursts of typing to be grouped as a single edit.

  • How to change Alt text for the Popup Key LOV Image in Apex  3.2.1.00.10

    we are using Application Express version is 3.2.1.00.10
    There is an icon to click on to popup the lov search box, the alt text for that image is currently "popup Lov"
    would it be possible to change the text to something more meaningfull e.g. "Lookup Person name" or "search Directory for Person names" .
    I have tried by updaing them
    from
    Shared Components>Templates> Popup List of Values Template > Popup Icon Attr --> width="13" height="13" alt="Popup Lov"
    (under Popup List of Values)
    to
    alt="#CURRENT_ITEM_NAME#"
    it didn't work.
    your respone will help getting accessability sign off

    Venu,
    Try adding title = "Lookup Person name" to the Image Attributes of your icon or button.
    Jeff

  • In BAM, how to get activity ID for the running instance in the orchestration.

    I am trying to add document reference URL to the active instance in the orchestration for the activity which is already started.
    Please let me know how to get such activity ID.
    Thanks
    Jagadeesh 
    Jagadeesh RS

    Are you using TPE to set up the Activity Tracking or BAM API. If you are using TPE then identify what has been set as the Activity Id in the BTT file. If the Message Id is used then use "BTS.InterchangeID" [refer
    http://msdn.microsoft.com/en-us/library/aa562116.aspx] on the received message to get the Activity Id.
    If however you've mapped the Activity Id in BTT to the InstanceId then use
    "Microsoft.XLANGs.Core.Service.RootService.InstanceId"
    to get the activity id.
    Regards.

  • This is really a SQL question. How to get a record for the max value

    I have a table ZTX with the following fields and values
    VBELN  POSNR SEQNR DESCRIPTION
    3001             10   001  Desc1
    3001             10   002  Desc2
    3001             10   003  Desc3
    I want to create a query so that I can join tables VBAK-VBELN, and VBAP and ZTX. So that I only get the row of ZTX which has max (SEQNR) i.e 003 in this case. How can I write the SQL statement. Is there a way to write a single SQL statement which can retrieve from all three table VBAK, VBAP and ZTX maybe with a subquery or do I really have to first take the results of VBAK and VBAP join into internal table then fire query on ZTX.
    Thanks for reading

    Something like this
    Select * into table my_table from ztx as z
    join vbak as b on b~vbeln = z~vbeln
    join vbap as p on p~vbeln = z~vbeln " maybe posnr also?
    where
    z~seqnr = ( select max( seqnr ) from ztx where vbeln = z~vbeln ).

  • How to align label text to the left in Spark Button (no "textAlign" style)?

    Hi all,
    "textAlign" style is excluded for Spark Button, and probably for a good reason.
    [Exclude(name="textAlign", kind="style")]
      If I want to align Spark Button text label to the left, should I create custom skin to accomplish that?
    Something e.g:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/mx"
            minWidth="21" minHeight="21"
            alpha.disabled="0.5">
    <s:Label
            id="labelDisplay"       
            textAlign="left"               
            left="2" right="2" top="2" bottom="2"/>
    </s:Skin>

        Right, I though about this approach vith setStyle too, but this is not that convenient.
        I looked into source code and find out that spark.components.Button class adds to the spark.components.supportClasses.ButtonBase only one public property "emphasized".
      Because I do not need this property in my project, I've extended my custom LinkButton component from ButtonBase to allow setting "textAlign" style in MXML for this component.
    import spark.components.supportClasses.ButtonBase;
    public class LinkButton extends ButtonBase {
       Also,  inside custom Skin from my Button component I do not set explicitly "textAlign" style value to the button label, I let button label to inherit style value specified in MXML for the style textAlign of my ListButton component.
    <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            minWidth="21" minHeight="21"
            alpha.disabled="0.5">       
        <fx:Metadata>
            [HostComponent("component.LinkButton")]
        </fx:Metadata>   
    <s:Label
            id="labelDisplay"
            textDecoration="underline"
            maxDisplayedLines="1"
            verticalAlign="middle"
            color="{getStyle('color')}"
            color.over="{getStyle('textRollOverColor')}"       
            color.down="{getStyle('textSelectedColor')}"       
            left="10" right="10" top="2" bottom="2"/>
    </s:Skin>

  • How to get stop script for the server

    Hello everyone,
    I installed weblogic server8.1 on my Linux machine and used $WL_HOME/server/bin/startWLS.sh
    to create a new domain and server. But I did not find any stop script(like stopWLS.sh)
    which can stop myserver. How can I get it?
    Thanks for your helps.
    Iris

    which can stop myserver. How can I get it?Here's an etc/rc3.d script I use for my RH9 server. You'll notice there is
    a line in there for stop(), you can run that manually if you so choose, or
    you can use it via the xinetd (I think that's what it's called?). Good luck.
    # processname: weblogic
    # pidfile: /var/run/weblogic.pid
    PIDFILE=/var/run/weblogic.pid
    # Source function library
    . /etc/init.d/functions
    #check to see if we can write to config.xml...so non-root uses stop here
    [ -w /Domain/config.xml ] || exit 0
    #setup the environment for the java commands
    . /bea/weblogic81/server/bin/setWLSEnv.sh
    cd /Domain
    start(){
    echo "Starting WebLogic for Domain"
    cd /Domain
    daemon ./startWebLogic.sh &
    echo $! > $PIDFILE
    RETVAL=$?
    echo "WebLogic Server started."
    return $RETVAL
    stop(){
    echo "Stopping WebLogic for Domain"
    rm -f $PIDFILE
    java weblogic.Admin -url localhost:80 FORCESHUTDOWN
    status(){
    echo "Getting Weblogic status for Domain"
    java weblogic.Admin -url localhost:80 GETSTATE
    restart(){
    echo -n "Restarting WebLogic for Domain"
    stop
    start
    # See how we were called.
    case "$1" in
    start)
    start
    stop)
    stop
    restart|reload)
    stop
    start
    status)
    status
    echo $"usage: $0 {start|stop|status|restart|reload}"
    exit 1
    esac
    exit $RETVAL

  • How to get check number for the employee's paycheck

    Hello
    Anyone can advise on how to get the check number for an employee's pacheck
    I got employee first name,last name,GROSS salary,Tax Info,and NET salary.I need the CHECK NUMBER.
    please advise
    thanks
    kp
    Edited by: user8612301 on Dec 16, 2010 1:26 PM

    Hi,
    Or are you looking for this:
    SELECT serial_number, paaf.assignment_number
    FROM pay_assignment_actions paa, per_all_assignments_f paaf
    WHERE action_status = 'C'
    AND paaf.assignment_id = paa.assignment_id
    AND serial_number IS NOT NULL
    AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date;
    - Viky
    Edited by: Viky on Dec 17, 2010 11:42 AM

  • How to get an AppID for the Microsoft Academic Data?

    Hi,
    I have just signed up for the Microsoft Academic Data at http://datamarket.azure.com/dataset/mrc/microsoftacademic, but I need to get an Application ID to make it work on my website. 
    Perhaps, this this requirement could be found in this file: http://academic.research.microsoft.com/about/Microsoft%20Academic%20Search%20API%20User%20Manual.pdf
    Where can I find the AppID?
    Thanks in advance

    Hi,
    From the PDF file that you provided, we can found how to request a AppID.
    Here is snippet of PDF file.
    Requesting an AppID
    To identify each application using the MAS API, an AppID is required. To request an AppID, please provide the following information in an email request to
    [email protected]
    Contact Person
    Contact Email
    Project URL
    Project Brief Introduction
    Confirmation that you agree to the
    MAS Terms of Useand
    MS Terms of Use.
    o
    E.g. "We have read and agreed with the Microsoft/MAS Terms of Use" 
    o
    Include a link to theMAS
    Terms of Use,
    MS Terms of Use. 
    What we can do just follow as above process. Hope this helps.
    Best Regards
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to get data dynamically into the input form fields.

    hey guys,
           I have created an input form in VC and it has 2 fields which r 'drill-down' type.Now what i want is that the entries for the fields should come automatically on deployment in the portal.what i mean is that e.g. u have a field 'location' and it is drill down type. Now when u run the model , in the input form the 'location' field entries should be populated automatically i.e the entries should b fetched from the server directly.If u guys have any idea then plz help me.I m very liberal in awarding points.

    Hi Anshul,
    1.Create an form in your workarea.
    2.Double click on the form element.
    3.Add an dropdown component by clicking the Add button(+)
    4..Go through the below link to populate values in it,
    http://help.sap.com/saphelp_nw04s/helpdata/en/bf/39becc90824d4d999eb05336345e5e/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/96/c33a3382914f6d8aeba11413e3e356/frameset.htm

Maybe you are looking for

  • How to activate fields under origin tab in the asset master data

    Hello Gururs,     While creating asset master data under origin tab there are two fields in display mode . I am unable to change these fields . the fields are 1.) Asset purchase new.   2.) Purchase used. I want to check one of these two check boxes.

  • Lost ownership and permissions on an external hard drive

    Hey, I have a LaCie 500GB external HD that i connect to my MacBook via firewire. I was checking the amount of space left of the external HD by clicking command-I on it. I accidentally changed the ownership & permissions and now my account has no acce

  • Seem to have lost dashboard app on my MBP running 10.9.2

    Have been cleaning up my MBP a little too much lately and when I went to find the calculator widget today, the Dashboard.app wouldn't open and doesn't appear to be anywhere.  Any thoughts?????

  • I cannot view some photos in iPhoto' 11

    I installed 10.7 successfully but some photos in my iPhoto library do not show.  Some events show blank and their contents show blank with a triangle containing "!".  I know the photos are there as they show up momentarily as I scroll the screen.  In

  • • Mix of "High Res" & "Low Res" inside same PDF file, possible?

    Hello - Since a while now we have to provide 2 .PDFs to one of our client. One in HR, because the artwork is printed in China The second one in LR, so he can check all the texts, pictures, - But, yesterday, our client came with the wish to only recei