Appending New item to drop down .. drop down data comes from R3

Hi,
We have deployed ESS 1.0 BP. In leave request application we select the leave request type(PL, CL, SL) from drop down menu.
Here privelige Leave is by default selected... but we need to remove PL from default and add hipen(-) so that user has to compulsory select the leave type from drop Down,
Now the problem is as this list comes from R3 .. so how can we add new item to this drop down menu. Whether its needed to be done R3 side or do i need to modify Leave request Application. If i need to modify this leave request application than h0w can append hipen to the already list coming in drop down menu...
Can any person specify in detail from where this configuration is needed to be done..?
Regards,
Jigar OZa

Hi,
For example the leave types are coming in the below model node from R/3.
LeavesModelNode - Model Node
         LeaveType - Model Context Attribute
And the data in this model node is
- Privlige Leave
- Casual Leave
- Sick Leave
Now create one Value node with the same structure as below in the Component Controller.
LeavesValueNode - Value Node
         LeaveType - Context Attribute
Populate your extra value here
IPublicTestComp.ILeavesValueNodeElement element=wdContext.createLeavesValueNodeElement();
element.setLeaveType(" - ");
wdContext.LeavesValueNode ().addElement(element);
Now Populate the values from model node to value node as below
for(int i=0;i<wdContext.nodeLeavesModelNode.size();i++)
IPublicTestComp.ILeavesValueNodeElement element=wdContext.createLeavesValueNodeElement();
element.setLeaveType(wdContext.nodeLeavesModelNode().nodeLeavesModelNodeElementAt(i).getLeaveType());
wdContext.LeavesValueNode ().addElement(element);
Now map this LeavesValueNode to your View Controller and bind to your dropdown list also.
Regards,
Charan

Similar Messages

  • Append New Item with BAPI_RESERVATION_CHANGE

    Good Day Gurus,
          I was able to modify Material Reservation Items with BAPI_Reservation_Change, but appending a new item causes a bapi message of "Not possible to add and update at the same process"
    what's causing this error? or is there any other work around to achieve my goal?

    Hello,
    Check this standard function module IDOC_INPUT_MATERIALRESERVATION A. Inside this this BAPI has been called. So, go through it and see anything you have missed.
    Also, check the function module documentation available.
    Thanks,
    Abhijit

  • My i pad is suddenly shutting down a dark curtain comes from left to right

    Whatdo you do when your i pad suddenly shuts dowm with a dark curtain that closes over your pad. It acts like the cover and shuts if off. Is there a setting I have changed or something?

    You may have to force iPad into Recovery Mode
    1. Disconnect the USB cable from the device, but leave the other end of the cable connected to your computer's USB port.
    2. Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to turn off.
    3.While pressing and holding the Home button, reconnect the USB cable to the device. The device should turn on.
    4. Continue holding the Home button until you see the "Connect to iTunes" screen. When this screen appears, release the Home button. iTunes should alert you that it has detected a device in recovery mode. Click OK, and then click Restore to restore the device.
    Note: Data will be lost.

  • I just bought a new macbook pro and after doing the data migration from my time machine I cannot get pages to work

    the error message said to check with the developer to make sure that pages works with this version of iOS

    "the error message said to check with the developer to make sure that pages works with this version of iOS"
    IOU is operating system for iPhone, iPad not MBP. Is Pages the only issue you are having? What version of Pages are you using? Post in the Pages forum where those experts are.

  • The following error occurs after Goodle News loads and I try to use the cursor to select a news item Script: chrome://vidbar/content/downloader.js:107

    Updated to the latest Version of Firefox and checked for updates on all apps but no change and the error occurs every time I select a news item or try to scan down or up the page.

    That issue is caused by the vidbar extension
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • DVWP with Multiple Item Form duplicates values on the screen on new item

    Hello,
    I have created a custom page in SPD called Submit.aspx. I have 3 custom lists (A,B and C). On that page I have two list webparts (from list A and B) and one multiple item form DVWP (list C). I have edited the list webparts to display the Add new item link only.
    Sometimes when a user adds a new item numerical values are duplicated on the screen from the item below (see the screenshot). It happens only on the screen. When a user saves the form or refreshes it the values disappear. How can I fix this to not duplicate
    the values when a new item is created. Projects on the list are sorted alphabetically. The item before the last one on the screenshot is the new item that has identical values as the last item. On save or refresh duplicate values
    disappear from a new item.

    Hi LetMe, it would be difficult for anyone to help you with the amount of customization you've done, unless you provide the code for us to check.
    cameron rautmann

  • Can KM news Items be restricted in KM News iView?

    Hi,
        We are working on EP 7.0 SR1. We have created a KM news iView.
    We would like to restrict the no. of news items, published on this iView.
    So that always top 4 News will be displayed.
    Does any one have solution for this?
    Regards
    Sunil Kulkarni
    PS: Rewarding points will be given for helpful answer.

    Hi,
    Check the CollectionRenderer of your IViews layoutset.
    In the CollectionRenderer you will find <b>Number of Rows</b> property, which you should set to 4 to show only 4 news items at a time.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/87/3d48475ee8bd448c4031aa98d90524/frameset.htm
    Number of Rows: Number of rows per page for displaying the resources of a collection.
    Greetings,
    Praveen Gudapati

  • Get the next new item number of service contract va43

    Hi Experts,
    I have to get the next new item number of the service contract (va43)
    For example: I have the service contract number like 50100929
    For this existed line items like 10,20,30
    in this case The next new item number is 40.
    How we can get this number .
    Could any one suggest me.
    Thnx,
    Jaya.

    Hi Nitish,
    Thnx for Reply,
    Acually I have to create the new item to the existed service contract , for that I am using the FM 'BAPI_CUSTOMERCONTRACT_CHANGE' .
    1 . Except the Item numebrt,  if I pass the remaing data like (material,plant) I will create the new Item in the service contract.
    2 .But for the same new Item if I pass the condition data with out the Item number it is going to short Dump ( In the short dump it showing Item number is missed )
    I should do the above steps ( 1 & 2)  at a time using the FM 'BAPI_CUSTOMERCONTRACT_CHANGE'  other wise performancely its taking the time.
    Thnx,
    Jaya.

  • Display Field Filled With 'New Item' when Blank

    Hi all,
    I am facing a Strange Problem.
    When i try to create a Record Via DM, When a DF is Blank and once the record is saved it is being filled with a text called 'New Item'..This is Occuering siometimes when i create and sometimes not.
    There is a validation which will not allow to leave it blank, but the validation is not executing properly as the Field is filled with text 'New Item' Some times (Which inturn says it is not NULL)
    How to get rid of this issue.
    I need this Feild to be DF Because i need to include this field in Email notification.
    In production the records will be created via Portal.
    I am worried if this will be replicated via Portal!!
    Can anyone suggest me..
    KR
    John

    Hi John,
    Yes you are correct. When your field is a  display field & if you dont enter data in it while creating record, MDM will add default value "New Item" in it. (even if you create record from Portal same thing will happen)
    If you want to write Not Null validation on this field below is the work around:
    Enable the Required property for your field in console.
    But Required property in console works only when u write validation in Data manager.
    The default REQUIRED_FIELDS validation does not work if your required field is also a Display field
    You need to write addition condition along with REQUIRED_FIELDS.
    When you try to create record without entering data in display field, MDM will add default value "New Item" if field lengh is equal to or more than 8 ( or "New It" if legth is 6 for example)
    So copy the value which you will get in ur display field and use it as shown below:-
    REQUIRED_FIELDS AND Name < >"New Item" (Here Name is considered as display field) (REQUIRED_FIELDS you need to type in expression window)
    Or if you dont want to enable required property Then just add Name <> "New Item" validation in your existing expression (Here Name is considered as display field)
    Thanks,
    Mahi

  • Lookup field not rendering like drop down in New Item form

    Hi
    I have been making a page to add new item to a list, for this i am using new item form.
    I am having a two lookup fields in that list of which one contains more than 20 items and other only 3.
    My first problem is that first lookup renders as a text box ONLY in IE 9 mode(nothing appears even when you click on the down arrow), but when I change the mode to IE 8, the rendering changes to a textbox + ajax + filtering list instead of the simple drop
    down list control.
    BUT FIREFOX AND OTHER BROWSERS RENDER PROPERLY AS A SIMPLE DROPDOWN.
    I have read several blogs about this, but could'nt find a simple solution.
    Anyone has any idea on this?
    thanks!
    IE rendered 1st lookup like this:
    <INPUT onkeydown="CoreInvoke('HandleKey')"
    id=ctl00_ctl20_g_2f56956b_9ff1_48a5_af9a_ba167804f29a_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_ctl01 onchange="CoreInvoke('HandleChange')"
    class=ms-lookuptypeintextbox
    title=Country onfocusout="CoreInvoke('HandleLoseFocus')"
    onkeypress="CoreInvoke('HandleChar')"
    name=ctl00$ctl20$g_2f56956b_9ff1_48a5_af9a_ba167804f29a$ctl00$ctl05$ctl01$ctl00$ctl00$ctl04$ctl00$ctl01
    value=(None) type=text match choices="(None)|0|Austria|1|Belgium|2|Bulgaria|3|Cyprus|4|Denmark|5|Finland|6|Germany|7|Kazakhstan|8|Liechtenstein|9|Moldavia|10|Norway|11|Poland|12|Portugal|13|Romania|14|Russia|15|Slovania|16|Spain|17|Sweden|18|Switzerland|19|The Netherlands|20|Turkey|21|Ukraine|22|United Kingdom|23" optHid="SPCountry_Hidden"
    opt="_Select">
    <IMG style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; VERTICAL-ALIGN: middle; BORDER-LEFT-WIDTH: 0px"
    onclick="CoreInvoke('ShowDropdown','ctl00_ctl20_g_2f56956b_9ff1_48a5_af9a_ba167804f29a_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_ctl01');"
    alt="Display lookup values"
    src="/_layouts/images/dropdown.gif">
    <SELECT style="Z-INDEX: 2; POSITION: absolute; DISPLAY: none; TOP: 871px; LEFT: 640px"
    onkeydown=HandleOptKeyDown()
    id=_Select
    class=ms-lookuptypeindropdown
    onfocusout=OptLoseFocus(this)
    ondblclick=HandleOptDblClick() tabIndex=-1 size=8
    name=_Select ctrl="ctl00_ctl20_g_2f56956b_9ff1_48a5_af9a_ba167804f29a_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_ctl01">
    <OPTION selected value=0>(None)</OPTION>
    <OPTION value=1>Austria</OPTION>
    <OPTION value=2>Belgium</OPTION>
    <OPTION value=3>Bulgaria</OPTION>
    <OPTION value=4>Cyprus</OPTION>
    <OPTION value=5>Denmark</OPTION>... and so on
    </SELECT>
    Regards, Nayan

    We had the same issue in our environment and we made use of jQuery to resolve the issue. The idea has been taken from SPServices.codeplex as mentioned by Christophe, but extends it in a way with few changes to make it work in our environment for each instance
    of this drop-down in the entire web application.
    $("input[class='ms-lookuptypeintextbox']").each(function
    columnName = $(
    this).attr('title');
    OverrideDropDownList(columnName);
    // Main Function
    function OverrideDropDownList(columnName) {
    // Construct a drop down list object
    var lookupDDL =
    new DropDownList(columnName);
    // Do this only in complex mode...
    if (lookupDDL.Type ==
    "C") {
    // Hide the text box and drop down arrow
    lookupDDL.Obj.css(
    'display',
    'none');
    lookupDDL.Obj.next(
    "img").css('display',
    'none');
    // Construct the simple drop down field with change trigger
    var tempDDLName =
    "_" + columnName;
    if (lookupDDL.Obj.parent().find("select[ID='"
    + tempDDLName + "']").length == 0) {
    lookupDDL.Obj.parent().append(
    "<select name='" + tempDDLName +
    "' id='" + tempDDLName +
    "' title='" + tempDDLName +
    "'></select>");
    lookupDDL.Obj.parent().find(
    "select[ID='" + tempDDLName +
    "']").bind("change",
    function () {
    updateOriginalField(columnName, tempDDLName);
    // Get all the options
    var splittedChoices = lookupDDL.Obj.attr('choices').split("|");
    // get selected value
    var hiddenVal = $('input[name='
    + lookupDDL.Obj.attr("optHid") +
    ']').val()
    if (hiddenVal ==
    "0") {
    hiddenVal = lookupDDL.Obj.attr(
    "value")
    // Replacing the drop down object with the simple drop down list
    lookupDDL =
    new DropDownList(tempDDLName);
    // Populate the drop down list
    for (var
    i = 0; i < splittedChoices.length; i++) {
    var optionVal = splittedChoices[i];
    i++;
    var optionId = splittedChoices[i];
    var selected = (optionId == hiddenVal) ?
    " selected='selected'" :
    lookupDDL.Obj.append(
    "<option" + selected +
    " value='" + optionId +
    "'>" + optionVal +
    "</option>");
    // method to update the original and hidden field.
    function updateOriginalField(child, temp) {
    var childSelect =
    new DropDownList(child);
    var tempSelect =
    new DropDownList(temp);
    // Set the text box
    childSelect.Obj.attr(
    "value", tempSelect.Obj.find("option:selected").val());
    // Get Hidden ID
    var hiddenId = childSelect.Obj.attr("optHid");
    // Update the hidden variable
    $(
    'input[name=' + hiddenId +
    ']').val(tempSelect.Obj.find("option:selected").val());
    // just to construct a drop down box object. Idea taken from SPServces
    function DropDownList(colName) {
    if ((this.Obj
    = $("input[Title='" + colName +
    "']")).html() !=
    null) {
    this.Type =
    "C";
    // Multi-select: This will find the multi-select column control on English and most other languages sites where the Title looks like 'Column Name possible values'
    // Simple - when they are less than 20 items
    if ((this.Obj
    = $("select[Title='" + colName +
    "']")).html() !=
    null) {
    this.Type =
    "S";
    // Compound - when they are more than 20 items
    else
    if ((this.Obj
    = $("input[Title='" + colName +
    "']")).html() !=
    null) {
    this.Type =
    "C";
    // Multi-select: This will find the multi-select column control on English and most other languages sites where the Title looks like 'Column Name possible values'
    else
    if ((this.Obj
    = $("select[ID$='SelectCandidate'][Title^='" + colName +
    " ']")).html() !=
    null) {
    this.Type =
    "M";
    // Multi-select: This will find the multi-select column control on a Russian site (and perhaps others) where the Title looks like 'Russion stuff: Column Name'
    else
    if ((this.Obj
    = $("select[ID$='SelectCandidate'][Title$=': " + colName +
    "']")).html() !=
    null) {
    this.Type =
    "M";
    else
    this.Type =
    null;
    // End of function dropdownCtl
    - Sid

  • How to add a new status to the Status drop down menu in CRM

    Hi All,
    Help me guyz i am new to CRM,
    i have to add a new status to the Status drop down menu in CRM Sales Area.
    Please help me for steps.
    Thanks
    DST

    Hi,
    You can add New status to the Drop Down menu by defining a catalog,codegroups & code group profiles to that...... Once assigned assign them to the Subject profiles and assign this subject profile to the transaction type that is assigned.
    This would populate all the profiles that u have mentioned in the subject profile.
    Award points if this answer helps you.
    Regards,
    Ravi

  • Is there a way to cut down on the "suction power" of the drop items in drag and drop?

    I am trying to develop a game where the user has to correctly space objects from one another depending on what their relationship to one another is.  The drop objects are actually completely transparent and the user has to place the drag item perfectly on top of it. The problem is that when the user doesnt place the drag object directly on top of the drop object, it nevertheless gets pulled to that object . 1.  I want there to be virtually no pull power.  2. I would also like the the user to be able to continuously click on the drop object and move it slightly until he thinks it is perfectly correctly, and the object stay where he dropped it -- I dont want it pulled back to its origin.
    If this is possible, please let me know!!
    Thank you!
    Ryan

    What you are referring to is called Snapping Behaviour.  In the Cp version of drag and drop, there's really no way to turn it off.
    If you are not intending to output to HTML5, you could trial Infosemantics Drag and Drop widgets.
    http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets
    The drag and drop widgets have the option to turn off Snapping Behaviour altogether so that your user can just place the object where he wants before submitting the answer. 
    Just remember that the target object is the drag object's 'hit' area. The way Flash hit areas work means that if the drag object touches any part of the hit area, this is counted as Success.  So the size of the hit area really determines how precise your user has to be in hitting the target.  It's not determined by whether or not the target and hit area are the same size and the user places the drag object exactly on top of the target.
    Teh video at the very bottom of this page shows an example where snapping is turned off:
    http://www.infosemantics.com.au/adobe-captivate/youtube-video-tutorials

  • Populate second drop down box based on selection from first drop down box

    Hello, I have a situation involving a drop down box with 9 items to choose from. What I want to do is depending on which of the 9 items the client chooses, this will determine what items are populated in the second drop down boxes (the items in the second drop down box will be mirrored on 9 other drop down boxes).
    For example, my first list box would be titled Review Type and there would be MF, VA, FA, etc. If the MF was selected, then the 10 boxes below (all drop-downs) will be prepopulated with a specifc selection of topics and if they chose VA then another set of topics would be prepopulated.
    Can you please point me out on the proper script to accomplish this? I don't have a xml/data source to connect to so I will be manually inputting the choices.  Thanks!
    Header 1
    Header 2

    I came across a sample of a script that seems to do what I want it to however I can't seem to get it to work all the way through.  It only compiles the items from the 1st case and not the 2nd or 3rd case.  If I click on the 1st case, it will not clear if I click on the 2nd or 3rd case. The items from the 1st case stays static and shows up for other cases.  However if I open the form and click on the 2nd or 3rd case first, it's blank and nothing shows up. Can you please help me out with any fixes to this problem?  Please help!!
    Here's the script:
    switch (this.rawValue){
    case "General Client File Review":
    ft1.clearItems();
    ft1.rawValue
    = null;ft1.addItem("UBIS New Account Application");
    ft1.addItem("Suitability Update Form");
    ft1.addItem("Trust Certification Form");
    ft1.addItem("Corporate Account Form");
    ft1.addItem("Partnership Account Form");
    ft1.addItem("LLC Account Form");
    break; 
    case "529 Plan":
    ft1.clearItems();
    ft1.rawValue
    = null;ft1.addItem("UBIS New Account Application");
    ft1.addItem("Suitability Update Form");
    ft1.addItem("Trust Certification Form");
    ft1.addItem("Corporate Account Form");
    ft1.addItem("Partnership Account Form");
    ft1.addItem("LLC Account Form");
    ft1.addItem("529 College Plan Disclosure");
    ft1.addItem("Vendor Application");
    ft1.addItem("Fund Direct Addition Form");
    ft1.addItem("Investment Replacement Form");
    ft1.addItem("RT Transaction Approval");
    break; 
    case "Direct Held Mutual Fund":
    ft1.clearItems();
    ft1.rawValue
    = null;ft1.addItem("UBIS New Account Application");
    ft1.addItem("Suitability Update Form");
    ft1.addItem("Trust Certification Form");
    ft1.addItem("Corporate Account Form");
    ft1.addItem("Partnership Account Form");
    ft1.addItem("LLC Account Form");
    ft1.addItem("Mutual Fund Disclosure");
    ft1.addItem("FINRA MF Expense Analyzer");
    ft1.addItem("Vendor Application");
    ft1.addItem("Fund Direct Addition Form");
    ft1.addItem("Investment Replacement Form");
    ft1.addItem("RT Transaction Approval");
    break;}

  • I dropped my phone down the toilet then turned it off and left it in rice over night now it's saying battery dead and needs to be charged but I've read charing it is the worst thing to do, help please?

    I dropped my phone down the toilet then turned it off and left it in rice over night now it's saying battery dead and needs to be charged but I've read charing it is the worst thing to do, help please?

    After taking a dip in my vest pocket in the washing machine for about 10 minutes, my nearly new 5S spent 5 days in rice and silica gel packets.   It definitely dried out, but there is damage to either the battery or the circuit board because it turns on, and I continuously get a blue screen and it reboots every five minutes for a half hour, and then miraculously, it stays on and works perfectly.  But I wound up having to fork over $700 for a new 6+. because I couldn't stand the rebooting any longer.   I had no insurance, but I do now, Apple insurance, not carrier ins.

  • HT4061 Hi, I dropped my phone down the toilet this morning. I took out my SIM so it would do. I put my phone into a bag of rice for about three hours. I tried rebooting it. My phone still isn't turning on-what shall I do?

    This is URGENT-please reply.
    I dropped my phone down the toilet this morning. I took the SIM out straight away so it would not get damaged. I put my phone in a bag of rice for almost four hours. I tried to reboot my phone back to it's factory settings like it said on the internet but my phone doesn't connect to Itunes at all. My phone won't turn on. What shall I do?

    It would need to be rice for around 7 days ,however trying to turn on has probably fried it so try around 7 days and then when it still doesn't work either exchange for a refurbished iPhone 4 or use the money to get a new one.An iPhone 4 is $149 in US
    ps the sim is not likely to be damaged water conducts electricity across all the wrong circuits frying the iPhone

Maybe you are looking for