How to change display type of an existing Text field to a Picklist

I need to modify an existing Text Field in the Expense report page to a Picklist and associate values to that picklist. Is this possible through Personalization ? If not, can someone let me know how this can be achieved.
Thanks
Meera

We created an item instead of creating a region and extending it. But here we have one more problem. The item we added is getting displayed at Button Layout section
Where did you create it, you should choose the appropriate region's create item icon to add it. If think you added it in a wrong place.
And one more issue that we are facing is - we are getting an error (No current row for View (<ViewInstance>)). when we clicking the save or next button in that page. Please let us know how to update the existing controller and save the value in that picklist item to the database.
There are two issues here,
- you are trying to replace the messageTextInput with the poplits, so you should get the viewAttribute and viewUsage name associated with the textinput and provide that as part of the messageChoice definition.
- the picklist VO which is the datasource for the poplist is not included in the existing seeded AM since you didnot follow the steps I mentioned earlier to create the stacklayout and add it instead of adding it directly. Probably you are on a version earlier than CU2, in which case you need to follow the additional steps mentioned below.
While adding the poplist donot specify the picklist view definitions,
1. extend the controller on the page and write your controller
2. Call super first
3. get a handle to the root AM and create the viewobject dynamically by using the createViewObject API on the AM.
4. get a handle to the poplist in the controller, you need to do this first before creating the poplist in the personalization(otherwise the page might error out if you created the poplist first without the picklist view definition properties) and set the display, value attributes as well as the picklist view defintions based on the viewobject you created in step 3.
5. Use personalization and add your poplist
6. replace the old controller class with the new one.
You are done.

Similar Messages

  • How to change Font Type of the Title Text of a JFrame?

    Hi,
    I want to set a different Font Type for the Title text of the titlebar of my JFrame.
    Is it possible? Can anyone show me how if it is?
    Thanks.
    Niteen

    Michael,
    Thanks. It works!
    But there was a problem. I was not using the :-
    JFrame.setDefaultLookAndFeelDecorated(true);
    so I have to use it now.
    Is it possible to do it without the default decorated look and feel? Because the default LNF title bar has too much height and I am cramped for space.
    I know that's no excuse. I tried but it doesn't work.. I am using a extended JFrame like this:-
    class Testing extends JFrame
    public Testing()
    setSize(300,100);
    setLocation(400,200);
    Container container = getContentPane();
    /* add components to this container here */
    setVisible(true);
    When I use getComponent() for the container, I get an ArrayIndexOutOfBound Exception.
    When I set the argument to getComponent(0), the font in the title bar is not changed.
    What else should I do?
    Thanks.
    Niteen.

  • How to change a list/menu to a text field when 'Other' is chosen?

    Hi there. I've been trying to solve this for a week now and I have depleted all my resources, that is why I'm here. I even went to jquery but nothing works and I think I was over-complicating this way too much.
    In short: I have a contact form, which have a list/menu with validation, and one of the options of that list/menu is "other". What I want is that when the user select "other" automatically change to a text field in order to let the user put his custom color. This is what I have:
    <form method="post" action="process.php">
    <span id="spryselect1">
    <label for="colors"></label>
    <select name="colors" id="colors">
    <option selected="option1">Blue.</option>
    <option value="option2">White</option>
    <option value="option3">Red</option>
    <option value="other">other</option>
    </select>
    <span class="selectRequiredMsg">Please select a colour.</span></span>
    <input type="submit" value="Send">
    </form>
    I know now that the approach is to show/hide a separate textbox besides the other... well. I don't know how to implement that, I think I really need your help guys. I'm completely frustrated.
    Thanks in advance.

    Have a look at the following
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="http://labs.adobe.com/technologies/spry/widgets/selectvalidation/SpryValidationSelect.css" rel="stylesheet">
    <link href="http://labs.adobe.com/technologies/spry/widgets/textfieldvalidation/SpryValidationTextField.css" rel="stylesheet">
    <style>
    .hidden {display:none;}
    </style>
    </head>
    <body>
    <form action="" method="post">
      <span id="spryselect1">
      <label for="colors">Colours:</label>
      <select name="colors" id="colors" onchange="MyOnClickHandler(this.value)">
        <option value="">Please select...</option>
        <option value="blue">Blue</option>
        <option value="white">White</option>
        <option value="red">Red</option>
        <option value="other">other</option>
      </select>
      <span class="selectRequiredMsg">Please select a colour.</span></span><span id="sprytextfield1">
      <input name="other" id="other" class="hidden" type="text">
      <span class="textfieldRequiredMsg">A value is required.</span></span>
      <input name="" type="submit">
    </form>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryDOMUtils.js"></script>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryValidationSelect.js"></script>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryValidationTextField.js"></script>
    <script>
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1");
    var sprytextfield1;
    function MyOnClickHandler(value) {
         if(value =='other') { //show text field and set validation
              if(!sprytextfield1){
              sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
              Spry.$$('input#other').removeClassName('hidden');
         } else { //hide textfield and destroy validation
              if(sprytextfield1 && sprytextfield1.destroy){
                   sprytextfield1.resetClasses();
                   sprytextfield1.destroy();
                   sprytextfield1 = null;
              Spry.$$('input#other').addClassName('hidden');
         return false;
    </script>
    </body>
    </html>
    Gramps

  • How do I display array values in a text field?

    Hi there-
    I have a small Flash movie I'm trying to complete, it's my
    first go around with Flash 8 so I appreciate your patience:
    I built an array with some actionscript which seems to work
    fine (I can trace it and all is well in the trace window). Now I'm
    simply trying to display it to my Flash movie screen and I've built
    a dynamic text window which is working, except that I only ever get
    the last array element to appear in the dynamic text window. I've
    traced the code and see all of my array values, but when I use
    "myResults_txt.text=picker_array;" I only see the last position's
    value in my array. I tried playing with the "multiline" attribute
    for the text field, it didn't seem to make any difference.
    I'm sure it's probably something silly that I've missed, but
    how do you display an array, with all of it's values to a dynamic
    text field (I even tried using the textArea component but ran into
    the same problem).
    Thanks in advance for any help-
    rich

    Thanks for your input. I tried just about everything but
    ended up re-writing the contents of the array to a var and looping
    through the var. Not my first choice but it got me to done.
    Thanks again,
    Rich

  • How to change solid size automatically to a text field?

    Does anyone know how to make a solid change the scale parameter automatically when the layer above it goes longer / shorter then it? I’m trying to have a text field that can be changed and need the solid underneath it to change the scale parameter when the text goes longer or shorter then the solid. Sounds like an expression…

    I got this working with the following expression:
    xExtra=effect("xExtra")("Slider")
    yExtra=effect("yExtra")("Slider")
    x=thisComp.layer("Text 1").sourceRectAtTime().width + xExtra;
    y=thisComp.layer("Text 1").sourceRectAtTime().height + yExtra;
    [x,y]
    The Problem:
    it resizes from the middle out. I need the text justified left (which it is not, because then it is not lined up and if I drag the shape layer over to line it up as I add text it still goes from the middle out and does not completly cover the whole text) and have this expression change only the length of the box below on the right side and keep the left justified.
    Any Ideas?

  • How to Change Industry type in a existing running CRM system

    Hi Experts,
    We are running presently on CRM 5.0 and we went live on Nov 2006.Currently we found that the industry type has been configured as CG (We are HT industry type).
    If we change the industry type in the current running CRM system what will be the impact.Can we do it and what is the process to do it.
    Thanks
    Subhabrata

    Hi Subha,
    As far as my knowledge when the industry has beeen selected it should not be changed becuase once the industry is selected it would generate all the required objects objects of the CRM repositry. But I think you have a choice if you have a seperate client then you can Generate industry-specific objects for HT industry.
    Anyways check twice before you do a major change.
    Best Regards
    Shiven

  • How to change data type of attribute in caf

    hi.
    this is my problem.
    i been added a attribute in an entity service called emloyee. named "Birthday", use the data type "com.sap.caf.core.date".
    when i tried modify the entity service, i hit exception about "DST Daylight Saving Time".
    because of DST, the date will add an hour such like "1957/04/01 00:00:00.0" to "1957/04/01 01:00:00.0", and com.sap.caf.core.date will throw an exception.
    is anyone had same problem like me?
    how to fixed it(if passable)?
    and, how to change data type?
    thanks.

    Hi Sruthi,
    all you need to do on this is open the report go to the parameters, select the parameter that you wish to change and click "Edit". This will allow you to change thefield to a date rather than a date time.
    Regards,
    Noel

  • Where is "save as" or how to change file type in Preview in Lion?

    Where is "save as" or how to change file type in Preview in Lion? I used to use Preview to change quickly change a lot of PNGs to either JPEGs or PDFs but with the introduction of versions auto save etc there no "save as" in the File menu. Any suggestions how to get this functionality back or how to get around it within OS X (no Photoshop etc)?

    Just wasted 15 minutes looking for that.  What's wrong with Save As?

  • How to change light type?

    Does anyone know how to change light type?
    What happens is that I have a button that I would want to create a Point light, but it just create a spot light.
    Does anyone know how to change it to create a point light?
    My code is:
    //Add a Point Light to active Comp
           addLightCtrl.onClick = function(){
               var pointLight = proj.layers.addLight("Light", [960, 540]);

    See the LightLayer object's lightType attribute. Page 100 of the AE CS6 scripting guide.
    pointLight = activeItem.layers.addLight("Light", [960, 540]);
    pointLight.lightType = LightType.POINT;

  • How to change latency type to fast?

    How to change latency type to fast?

    ADSL Line Status
    Connection information
    Line state:
    Connected
    Connection time:
    5 days, 03:08:00
    Downstream:
    16,403 Kbps
    Upstream:
    948 Kbps
      ADSL settings
    VPI/VCI:
    0/38
    Type:
    PPPoA
    Modulation:
    G.992.5 Annex A
    Latency type:
    Interleaved
    Noise margin (Down/Up):
    3.1 dB / 4.7 dB
    Line attenuation (Down/Up):
    30.5 dB / 16.2 dB
    Output power (Down/Up):
    20.9 dBm / 12.2 dBm
    FEC Events (Down/Up):
    313987846 / 3701
    CRC Events (Down/Up):
    2155 / 18271
    Loss of Framing (Local/Remote):
    0 / 0
    Loss of Signal (Local/Remote):
    0 / 0
    Loss of Power (Local/Remote):
    0 / 0
    Loss of Link (Remote):
    0
    HEC Errors (Down/Up):
    49173 / 14016
    Error Seconds (Local/Remote):
    0 / 17361

  • How to change nat type 3 to nat type 2 for Plastation 4?

    how to change nat type 3 to nat type 2 for adaptation 4? i am havng a complicated time with this im'm just trying to play online and been at it fotr 3 days i have tried about everuyhing n portforwarding.com i have a Cisco Linksys E1000

    Hi ceasar14. I actually found some steps (from a source) that worked for me. I'm not sure if it will work for you. Here are the steps:
    1. Get the MAC address of your PS3. To find your MAC address simply go to
    Settings > System Settings > System Information
    2. Assign a static IP address on your PS3.
    3. Access your router's user interface to open a few ports. 
    4. Under Applications and Gaming > Port Range Forwarding, open the following ports:
    TCP: 80, 443, 5223
    UDP: 3478, 3479, 3658
    5. Once this is done, powercycle your PS3 and the router.
    6. Run a connection test and check if it is now on NAT2.
    Good luck.

  • HT1904 How to change Payment type

    How do I switch back from credit card payment to redeem cards?

    For anything in configuration, the IMG path is: Personnel Management > Personnel Administration > Payroll Data > Recurring Payments and Deductions > Payment Models
    Try the following tables:
    T549V - define defaults
    T549W - define periodicities
    T549X - define deduction periods
    Obviously, this only helps for records that will be created in the future. I'm not sure how to change all of the currently existing records other than accessing each record and then changing it. That isn't very productive.
    Regards,
    Howard

  • HOW TO CHANGE ACCOUNT TYPE FROM IMAP TO POP

    HOW TO CHANGE ACCOUNT TYPE IN YOUR EMAIL FROM IMAP TO POP

    You can't.  You need to create a new account in Mail.
    Note, when setting up a new account (after clicking the '+' in the Accounts proeference), enter an invalid email address or option click the Continue button to be given the choice of account type (POP or IMAP).

  • How to change the font size of the text that is revolving ?

    Hi there,
    I am using the Revolution theme.
    How to change the font size of the text that is revolving (on the first menu page) ?
    Thanks

    You can't.  That's hard coded into the theme.
    OT

  • Change the font color of a text field in a table by key-combination

    I want to change the font color of a text field in a table (single cell only) on pressing a key combination. Does anybody know how to do this.
    I have a lot of data in a table. During an evaluation of the data in a meeting I want to change the color of the text depending on the result of the meeting. (for example: High risk = CTRL+R makes the text red).
    I know how to change the color using a button, but I do not want to add a button after each cell. For this reason I would like to do it on a key combination that alway refers to the active cell.
    Many thanks for your help in advance.
    Marcel

    Hi,
    I don't think you can use the ctrl key like that as those shortcuts will be intercepted by Reader (ctrl-R toggles the ruler display on / off).  You also might have trouble updating the color while you still have focus on it.  You can use the shift key in a similar way, so if you only have lower case characters in the text fields then you can do something like;
    if (xfa.event.shift)
        switch (xfa.event.change)
            case "R":
                this.fontColor = "255,0,0";
                break;
            case "O":
                this.fontColor = "255,102,0";
                break;
            case "G":
                this.fontColor = "0,255,0";
                break;
        xfa.event.change = ""; // ignore character
    If you need uppercase characters maybe you can have one button to set "review mode" and test that on the if (xfa.event.shift) line.  But again it wont take effect until you have tabbed out of the field.
    Regards
    Bruce

Maybe you are looking for

  • Multiple devices, multiple users, and 1 apple ID?

    I bought an ipad for my wife.  When setting it up it synced to my daughter's iphone.  We used the same apple ID but I thought we didn't need a new one.  Is there a way to change this?

  • What is the differences on customer

    what is the differences in customer both technical and functional areas.

  • To hide page options

    My requirement is to hide page options for users and to enable the same for Administrator. I referred method one from this site. http://mustafamyalcin.blogspot.com/2010/04/hide-page-options-button-from-non-admin.html This option worked only for one d

  • How to get the username/password of the current owner of the running code

    Dear friends, Our product is running on the App Server(weblogic/websphere...) and we also use security provider(OpenLDAP) and kerberos to support SSO. Before, when a user tyies to login in the first time, the way we use to authenticate the user is: 1

  • I'm getting error (-3259) whilst trying to update to version 4.3.2.

    I'm wondering if anyone can help me here. I try to update my iPhone as it says there is an update available, and it fully downloads. It then tries to verify the download and I get an error (-3259). Can anyone help me with this as it would be greatly