How to set a default text in the TextInput.

I want a text(like "please input") in TextInput and the text
color is gray,when my TextInput is empty.
how to set? thank you :)

<mx:TextInput text="please input" color="gray"/>

Similar Messages

  • How to set a Default Value in the drop down on Account Creation ?

    Hi,
    i have to set a default value in the drop down as soon as a User in a particular business role clicks on New Account. I have written the following code in do_prepare_output method. But this code is executed in the 2nd server round trip after entering some value or pressing enter. so i am not getting as soon as user clicks on the New Account.
    How to set that default value when user clicks on New Account ? and where should i code ?
      IF lv_icwc_profile = 'ZCSALESPRO' or lv_icwc_profile = 'Z_SALESPRO' .
      try.
                  lr_entity ?= me->typed_context->header->collection_wrapper->get_current( ).
                  lv_current = lr_entity->create_related_entity(
                                                  iv_relation_name = 'BuilRolesRel' ).
                                 lv_current->set_property(
                                    iv_attr_name = 'PARTNERROLE'
                                    iv_value     =  'BUP002' ).
                   CATCH cx_sy_ref_is_initial cx_sy_move_cast_error
                   cx_crm_genil_model_error.
                   return.
            ENDTRY.
    Thanks and Regards
    Raman Khurana

    Hi,
    I have some idea abt it, it is also used in account life cycle.
    Please refer SAP note 1097651, Defaulting a life cycle stage.
    Let me know if useful.
    rgds,
    Vinay

  • How can I change default text in the invitation e-mail?

    Hi
    Is there anyone that knows how to change the default text in
    the e-mail invitations? I want to change the english text to
    somthing in my language.

    I have wondered that myself... I have even asked... everyone
    says it's not an option. I could be wrong... I would have to defer
    to the Adobe guys. I am on Connect everyday doing something with
    curriculum. I have found several issues that I wish Adobe would
    correct or add. I see that the new service pack has addresses one
    of them (custom reports) although, I still see bugs.
    I would love to be part of the their team that works toward
    making it better.
    Changing notifications is one thing. As far as language, that
    is a different issue.
    ~Angie

  • How to set a default text to a Keyflexfield

    I need to set a text value to a Key flex field. This text value will be decided at runtime based on other field value. Can any one help me to default a text value to a Key flex field
    Regards
    Sundar

    Before deafulting a value in KFF on my custom page, I did a exercise given in the devguide tutorial. And The code as follows. Can you please help me by placing required code.
    Controller:ItemDetailsCO
    public void processRequest(OAPageContext pageContext, OAWebBean webBean) {
    // Always call this first.
    super.processRequest(pageContext, webBean);
    // Get the itemNumber parameter from the URL
    String itemNumber = pageContext.getParameter("itemNumber");
    // Now we want to initialize the query for our single item
    // with all of its details.
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    Serializable[] parameters = { itemNumber };
    am.invokeMethod("initDetails", parameters);
    OAKeyFlexBean flexBean =
    (OAKeyFlexBean)webBean.findIndexedChildRecursive("KeyFF");
    flexBean.setStructureCode("FWK Item Flexfield");
    flexBean.setCCIDAttributeName("FwkitemId");
    flexBean.setDynamicInsertion(true);
    flexBean.mergeSegmentsWithParent(pageContext);
    // Now check to see if our "Results" VO has been queried so we can set the
    // region header text accordingly.
    System.out.println("Flex bean text"+flexBean.getText());
    Serializable[] params = { "ItemDetailsVO1" };
    if ("Y".equals(am.invokeMethod("isVOQueried", params))) {
    System.out.println("Flex bean text"+flexBean.getText());
    flexBean.setRendered(true); // Render Key FF only after VO Queried }
    AM : FlexfieldAMImpl.java
    * Initializes the item details query.
    public void initDetails(String itemNumber) {
    ItemDetailsVOImpl vo = getItemDetailsVO1();
    if (vo == null) {
    MessageToken[] errTokens =
    { new MessageToken("OBJECT_NAME", "ItemDetailsVO1") };
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
    // First, construct an oracle.jbo.Key object as required in the Key constructor
    // Javadoc. Then, call findByKey indicating that we're looking for a single
    // row. BC4J tries to find the entity object(s) for this row in its cache, and failing
    // that, will query from the database using the given key.
    String[] keys = { itemNumber };
    Row[] rows = vo.findByKey(new Key(keys), 1);
    // You must set the current row, or the Details page won't display any
    // data. When you explicitly query data, you don't have to do this
    // because the OA Framework automatically invokes vo.first() in the
    // result set, thereby establishing a current row.
    if (rows != null) {
    // rows[0].setAttribute("ItemId","1");
    vo.setCurrentRow(rows[0]);
    } // end initDetails()
    public String isVOQueried(String viewUsageName) {
    OAViewObject vo = (OAViewObject)findViewObject(viewUsageName);
    if (vo == null) {
    MessageToken[] tokens =
    { new MessageToken("OBJECT_NAME", viewUsageName) };
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", tokens);
    return (vo.isPreparedForExecution()) ? "Y" : "N";
    } // end isVOQueried(}
    Thanks in Advance
    Regards
    SP M Sundar

  • How to set a default value in the "Our reference"-field in purchse orders?

    Hi!
    When creating a purchase order the "Our reference"-field in the Communication-tab is empty. Is it possible to configure this so that the field is filled by default with the name of the person who is creating the PO?

    Hi,
    There is a button named Personal Settings on ME21N screen. Click on that button --> Click on second tab of Default Values --> Click on More fields --> Select Our reference and maintain the default value. This will always come up at the time of creation of PO.
    Hope this serves the purpose.
    Thanks...
    Edited by: vilas amrutkar on Feb 17, 2009 5:17 AM

  • How to set as default Users folder the one on the second Hard Disk?

    I recently upgrade my macbook pro with a second hard drive, an SSD, so I placed the old one were the super drive used to be.
    Yesterday I upgraded to Mac OS X 10.8 Mountain Lion via clean install on the SSD.
    So now I want to keep system files and apps on SSD and everything else  like songs, movies etc from the iTunes on the old hard drive, plus documents of mine.
    On the old hard drive I deleted everything but the Users folder.
    I tried to change the Home Directory from the Users and Groups in System Preferences but then it wouldn't let me log in in the cloud or in the MacApp Store and every time I tryed to open "Mail, contact & calendars" or "iCloud" from system preferences it crashes..
    Any Solutions? Thank you very much for your time.

    - Create variables for variants: use transaction STVARV. You should create one variable for fiscal year with type 'parameter', one for period with type 'parameter', one for fiscal year 'select option' and one for period 'select option'.
    - when saving your variants for the different programs, fill the checkbox 'Selection variables' in the attributes for fiscal year and period; use the button 'selection variables' for choosing the variables created in STVARV.
    - When closing the period, you should use STVARV for changing the variables. All the variant using the variant variables will then automaticaly use the new value.

  • How to set a default value to t-list when creating t-list programmatically

    hi,
    I'm creating a t-list programmatically
    by calling
    n = populate_group('groupname');
    populate_list('form.list','groupname');
    In this case how to set a default value for the t-list
    thanks
    rani

    I am not sure how it works in Web Dynpro for ABAP, but in Web Dynpro for Java to set default drop down value you will have to set the value for particular attribute (which is linked to the dropdown element)  in the context
    like
    wdContext.currentContext<nodeName>Element.set<FieldName>(<defalut value>)
    This generally done in Initialization method of the controller.

  • How to set a default value in my DropDown using the key  ?

    Hello All,
      Can someone advose how I can achieve the above ? I will like to know how to select a default value for the dropdown by key using the key value instead of description.
      The reason why I need to do so instead o fusing description is because my application will populate the dropdown using web services based on the language selection. Hence, if I were to set the default value using description, den other languages will not work anymore.
      Any help will be greatly appreciated. Thank you !!
    from
    KWok Wei

    Kwok,
    Assuming that:
    1. You have a node NodeX, where attribute TargetAttr defined
    2. You have a DropDownByKey UI control, its property selectedKey bound to NodeX.TargetAttr attribute
    Then:
    Place in your code:
    wdContext.currentNodeXElement().setTargetAttr("yourKey");
    VS
    P.S. This topic was raised several times, and forum search works good enough to find an answer

  • How to set up automatic payment for the purchase order

    Hi, All,
    I have one question how to set up automatically payment for the Rent Office purchase Order?
    There is the requirement from the client. They want to create one kind of purchase order for the Office Rent, then pay the fees in the certain time of every month to the vendor for the rent fees without any invoice. Whatu2019s the normal solution for this kind of purchase order? Is it ERS? Or something else?
    Please give me the details and business flow. Also please tell me how to setup in the SAP and T-code.
    Thanks in advance

    Either you can set up ERS or you can pay directly from the FI side.
    Prerequisites
    Evaluated receipt settlement must be flagged in the purchase order item.
    The vendor must be flagged as being subject to ERS in the vendor master record.
    The goods receipt must refer to a purchase order.
    Goods-receipt-based Invoice Verification must be defined for the purchase order item.
    A tax code must have been maintained in the purchase order item.
    The order price of the materials may not be an estimated price.
    If you flag a vendor as being subject to ERS, the system sets the ERS indicator as a default in each item when you create a purchase order for the vendor. You can prevent this happening for certain vendors by flagging the info record for the material and the vendor as not being subject to ERS.
    In Purchasing, you can delete the default ERS indicator in a purchase order item.
    Choose Logistics Invoice Verification ® Automatic Settlement ® Evaluated Receipt Settlement (ERS).
    The selection screen appears.
    You can use the following criteria to narrow down selection of the transactions to be settled:
    Company code
    Plant
    Goods receipt posting date
    Goods receipt document
    Fiscal year of the goods receipt
    Vendor
    Purchase order and order item
    You can define the selection criteria for the invoice documents by:
    Delivery
    Purchase order
    Purchase order item
    Goods receipt document
    Credit memo
    Invoice
    Currency
    Choose  Execute.
    The system issues a log for Evaluated Receipt Settlement, which displays the following:
    Settled
    In line with your selection criteria, the system displays all the order items that were settled (or if you are working in test mode, which would have been settled).
    Could not be settled
    In line with your selection criteria, the system displays all order items for which ERS is defined but could not be settled. It also lists the reasons.
    If the system reports being unable to invoice a transaction, you should exclude the transaction from ERS to avoid it being included in the log the next time ERS is run.
    Select the item and choose Exclude from ERS.
    The system also generates and possibly sends a message to inform the vendor(s) about the transaction settled, depending on the settings in Customizing.
    You can display the following environment information for the order items selected. To do this, choose Goto ®:
    Display purchase order
    Display invoice
    Display material document
    Display long text

  • How to set a default value in Select one choice.

    Hi
    I'm using ADF BC, in that how to set a default value in select one choice.
    pls. help on this.
    regards

    set the default value on the underlying EO or VO attribute
    john

  • How to set a default value for particular field in SRM PO Portal

    Dear Gurus,
    Im desparetly need a help in web dynpro on how to set a default value for a field(flag) in PO header tab in portal.
    My requirement is whenever the user press the edit button in PO screen,automatically a flag field should be set as abap_false.
    I dont think this will handle in check badi or change badi. i tried this part in onbuttonpressed overwriteexit in CNR_VIEW views,i can get the function EDIT in debugging mode,but dont know how to proceed further.....
    Many of them suggested to go with get attribute and set attribute for changing any particular field in web dynpro,but im not very familiar in using those get and set attributes.I request you people can give me sample code on how to identify my target field in the node and set the values while pressing EDIT Button.
    Thanks in advance...
    Regards,
    Sathish

    Dear Laurent,
    Thanks for your response,
    But i searched in enhancement spot of WD_BADI, but couldnt get the exact way to change the coding,
    My real requirement is, that particular flag should be enable and disable dynamically by checking a condition in my header values.So in that case i dont know how to proceed further to handle in the PO screen.
    Kinly guide me how to get the particular node of field in the Purchase order screen.
    Thanks you in advance,
    Sorry for the inconvenience if any
    Regards,
    sathish

  • Setting a default location of the 'Save As' dialog box

    I know this is an unusual question, but I do a lot of file-naming at work with Adobe Standard and it would help me if I could set a default location of the 'Save As' dialog box -- say, by dragging it to the corner of the screen so that the next time Adobe opens, the 'Save As' box will open in that location (rather than in the center by default).
    By this, I don't mean setting a location for one session, which it does automatically, but rather setting an initial location for when Acrobat starts up.
    Any help would be appreciated.
    Regards,
    Scott

    Cool. BTW because you are recent switcher from the Windows world you may find these URL's useful.
    Mac 101
    Switch 101
    Find Out How Video tutorials
    List of Useful URLs for switchers

  • How to set a default integer value in a form

    I have a form defined as follows:
    =================================================
    public static class ProjectForm extends FormData
    private int idx;
    private String name;
    private String projectNumber;
    private String description;
    public void setIdx(int index)
    this.idx = idx;
    public int getIdx(){
    return this.idx;
    public void setName(String name)
    this.name = name;
    public String getName()
    return this.name;
    public void setDescription(String description)
    this.description = description;
    public String getDescription()
    return this.description;
    public void setProjectNumber(String projectNumber)
    this.projectNumber = projectNumber;
    public String getProjectNumber()
    return this.projectNumber;
    ======================================================
    When I add a new entry into the database, I have no issues. However, when I want to modify an entry I run into some issues with the idx entry. For some reason, I cannot set a default value into the netui:label tag. My jsp code is as follows:
    ===================================================
    <tr valign="top">
    <td>
    Index:
    </td>
    <td>
    <netui:label value="{actionForm.idx}"
    defaultValue="{pageFlow.project.idx}"/>
    </td>
    </tr>
    <tr valign="top">
    <td>
    Name:
    </td>
    <td>
    <netui:textBox dataSource="{actionForm.name}"
    defaultValue="{pageFlow.project.name}"/>
    </td>
    </tr>
    <tr valign="top">
    <td>
    ProjectNumber:
    </td>
    <td>
    <netui:textBox dataSource="{actionForm.projectNumber}"
    defaultValue="{pageFlow.project.projNum}"/>
    </td>
    <tr valign="top">
    <td>
    Description:
    </td>
    <td>
    <netui:textBox dataSource="{actionForm.description}"
    defaultValue="{pageFlow.project.description}"/>
    </td>
    </tr>
    ======================================================
    The the project class is passes into the page and has the appropriate values. The name, project number and description fields work as I would expect. However, the idx value is alway '0'. If I print out pageFlow.project.idx it has the correct value.
    How do I fix this? My feeling is that it is related to the form field being an int and not a string. The default parameter indicates that is only works with null values, and ints default to zero. Do I need to use an Integer value instead in the form, or just stay away from non-string form fields.
    Thank for the help!!
    --John                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    In the action which displays the edit page just set the form idx value before displaying the jsp.

  • How to set a default page setup in P6?

    Hi,
    Anyone know how to set a default page setup in P6?
    Thanks,
    Manuel

    Hi Manuel,
    For printing, the settings are stored within the layout. If you have one layout containing the settings you use, you can then use this layout as your template and do a 'Save As' every time you make your changes.
    Hope that helps
    David

  • How to Set A Default Start Time For New Events In Calendar?

    How to Set A Default Start Time For New Events In Calendar?

    John,
    Thanks for that suggestion - could not get it to work. However, I did manage a different approach. I finally determined the sequence of events in terms of how the various events and listeners fire (I think).
    Basically, the CalendarActivityListener fires, followed by the listener associated with the Calendar object's Create facet, followed finally by the CalendarEventListener - the final is where the TriggerEvent is available and then finally, control is passed to the popup/dialog in the Create facet. So, my approach of trying to set/get the TriggerDate in the user's HTTP session was doomed to failure because it was being get before it had been set :(
    Anyway, I ended up adding a bit of code to the CalendarEvent listener - it grabs the current BindingContext, navigates through the DCBindingContainer to derive an Iterator for the ViewObject which drives the calendar and then grabs the currently active row. I then do a few tests to make sure we're working with a "new" row because I don't want to alter start & end dates associated with an existing calendar entry and then I define the Start and End dates to be the Trigger Date.
    Works just fine. Snippet from the listener follows
    BindingContext bindingContext = BindingContext.getCurrent();+
    *if ( bindingContext != null )    {*+
    DCBindingContainer dcBindings = (DCBindingContainer) bindingContext.getCurrentBindingsEntry();+
    DCIteratorBinding iterator = dcBindings.findIteratorBinding("EventsView1Iterator");+
    Row currentRow = iterator.getCurrentRow();+
    if ( currentRow.getAttribute("StartDate") == null)+
    currentRow.setAttribute("StartDate", calendarEvent.getTriggerDate());+
    if (currentRow.getAttribute("EndDate")==null)+
    currentRow.setAttribute("EndDate", calendarEvent.getTriggerDate());+
    *}*

Maybe you are looking for

  • How to put links into these weird buttons?

    hi, ive got a flash template, but its really difficult to edit. heres the thing: there are 4 main categories buttons, and when i click each categorie, 3 options appears. for example green                    blue                    red               y

  • How to get from v3.1 to v.3.1.1

    Folks, we currently have WLCS v3.1 running and want to install service pack 1. The instructions for this service pack say that we should NOT try to install it on a v3.1 directory structure, only on a 3.1.1 directory structure. How do we upgrade from

  • Quick question on conversion of source system after transport.

    hello all, I have transported all my objects from dev to QA in BW (and same in r/3). Now i want to let it all go to production environment. So do I have to go in rsa1 of BW prod system and make a entry in there ? In my BWQAS i have an entry in there

  • Digital Mixing board recommendations?

    I've had Logic Express 7 for about a year. I've been using my 4-track as a mixing board up till this point. My 4-track just got stolen so I want to replace it with a digital board that I can use to record multiple tracks independently and then mix th

  • Can you keep your playlist when moving from computer running xp to computer running vista.          v

    can you keep your playlist when moving from computer running xp to computer running vista as i keep losing my playlists when using computer with vista running on it.ipod touch 3rd gen set up originally on computer running xp.thanks.