Restricting Entries In Drop Down

Hi ,
We have a requirement where we want to restrict the drop down of tax codes on portal.The scenario is like this in the standard table t007a we have lets say 50 tax codes created for input tax code on the portal we want to show only 10 tax codes relevant for T&E booking.Kindly tell from where the data gets populated in drop down,so that we can restrict the same.

Hi Sanjeev,
Use DDBy Key and fill dropdown with 10 tax codes which you are required. or based on certain condition you ca restrict values.
Here sample code for fixed values in dropdown using dropdown by key.
  data: wd_node_info type ref to if_wd_context_node_info,
        entry type wdr_context_attr_value,
        value_set type wdr_context_attr_value_list,
k6 type string value '1',
v6 type string value 'Dealership HO',
k7 type string value '2',
v7 type string value 'Area',
k8 type string value '3',
v8 type string value 'Region',
k9 type string value '4',
v9 type string value 'HO' .
  entry-value = k6.
  entry-text = v6.
  APPEND entry to value_set.
  entry-value = k7.
  entry-text = v7.
  APPEND entry to value_set.
  entry-value = k8.
  entry-text = v8.
  APPEND entry to value_set.
  entry-value = k9.
  entry-text = v9.
  APPEND entry to value_set.
  wd_node_info = wd_context->get_node_info( ).
  wd_node_info = wd_node_info->get_child_node( 'LEVEL' ).
  wd_node_info->set_attribute_value_set( name = 'LEVEL' value_set = value_set ).
Cheers,
Kris.
Edited by: kissnas on Mar 7, 2011 12:09 PM

Similar Messages

  • How to delete text entries in drop down's?

    I've been creating new PDF forms for my communications center and one of the forms I added a drop down box with all of our dispatchers names.  When someone is filling out the form after its been saved to the computer, if they accidentally enter the wrong name they cannot delete it.  This isn't so much an issue for the drop down for the person who filled out the form, but if they hit the drop down for who cleared the entry, then its a problem as like i said, you cannot delete the name.  Is there anything I can change so that if someone accidentally hits the wrong drop down it can be deleted or erased?
    Also the same question can be asked about a calendar add-on from formrouter, if you click the box where I have the date set up you can't get rid of the box without choosing a date.  I was hoping that something like hitting the escape key might remove it but that doesn't help.

    If you set up the dropdown to "Allow user to enter custom text", they will be able to manually set the field to blank, but this also lets a user enter anything they want, unless you restrict it further with a validation script.
    Regarding the formrouter calendar, since you have access to the code you can modify it to behave however you want.

  • To see all the entries when dropping down

    Hi All, I am executing   transaction code XD03 with a particular Customer number.Then i go to 'Regional Market' in tab 'Marketing' and push on the match code for 'Regional Market'.
    Now it says 'the number of entries is restricted to 500'.But the total number of regional market is more than 500.
    How can I see all the regions when dropping down?
    If poosible please reply through mail '[email protected]'.
    Thanks in advance.
    Rgds,
    Sanjeet

    It is possible to reset the zoom size.Have you tried [[Font size and zoom - increase the size of web pages|Firefox's zoom feature]]? This will help increase the size of web pages.
    * To make things bigger, press '''Ctrl''' and '''&#43''' at the same time.
    * To make things smaller, press '''Ctrl''' and '''-''' at the same time.
    * To reset the size back to normal, press '''Ctrl''' and '''0''' at the same time.
    You can also use the [https://addons.mozilla.org/en-US/firefox/addon/2592/ NoSquint]. add-on to change the default zoom level for all websites at once. After setting your global zoom level, you can still fine-tune the zoom on individual sites.
    '''Using NoSquint:'''
    #After installing NoSquint, make sure you have the Add-on Bar displayed:
    #*Right-click the new tab button ("+") or a blank area of the tab bar to the right of it and choose Add-on Bar from the shortcut menu.
    #Click the % on the Add-on Bar to call up site preferences, then click the Global Settings button, then the Zooming tab.
    #*You can experiment with sizes larger than 125%, but it's not recommended that you go higher than 150% unless you have a large high-resolution monitor.
    If there are particular sites that still present a problem, feel free to post their URLs.
    Please let us know if this helped you!
    Thank you.

  • Allow Custom Text Entry for Drop down not working For Dynamic form

    Dear All,
    In drop down field Allow custom text entry is working fine if the form is save as a static pdf form file.But if the form is save as a Dynamic pdf form file it is not working.I can enter custom text in drop down field but after filling it up when I click on next field the text from the drop down is disappearing.
    If any body can please help me to solve this problem.
    Thanks a lot in advance
    Regards
    Rakesh

    Dear Jimmypham,
    Thanks a lot for your quick response.But it's not working for me.I have even tried with a form having only single field and save it as a dynamic pdf file.In that form also it's not working.The text which I have entered is disappearing when I click outside of this field.
    Can you please help me to find out the solution for this problem.
    Regards
    Rakesh

  • Don't allow to select duplicate entries from drop-down fields, JS pls.?

    Hello
    I have 3 drop down fields in my_sub_form, say, my_country_1, my_country_2 and my_country_3. All drop down field's list boxes are populated with 10 country names, say, US, Canada, Spain, Germany, France...
    Say, user selected US in my_country_1 drop down field, again user is TRYING to select same entry as US in my_country_2 field======> Here at this point, as soon as user selected as US in my_country_2's droppped down list box=====> immediatley, I need to throw warning message to the user and make the my_country_2 as "" BLANK.
    Basically, my form should not allow the user to select the DUPLICATE entries in these 3 drop-down fields, all the 3 should be DISTINCT.
    If i write JS in EXIT event  of my_sub_form, its working fine, but not user friendly, it kind of late.
    Hence we want to have INSTANT alert to user AS SOON AS user selects a duplicate entry in any drop down field
    I tried to put some JS in CHANGE event of my_country_1 and my_country_2, but not working
    Pls. provide me some JS and the event name, object name
    Thank you

    you could put in the exit event of the my_country_1 list:
    if (this.rawValue == my_country_2.rawValue || this.rawValue == my_country_3.rawValue)
    xfa.host.messageBox("You cannot choose the same country");
    this.rawValue = ""
    and then put the same in the other dropdowns but change the names.

  • Dashboard prompt issue  (Restricting Values in drop down) ????

    Hi Friends,
    In my report I have "days to start" column which list almost 10,000 values ranging from -1000 to 5000.
    I need to create a prompt for this report on "Days to Start" column.
    When I create a prompt on Days to start with Operator "Greater than" and Control "Drop Down List" it shows me all the values in Drop down.
    I need only specific Values like 30, 60, 90, 180 which might not be in the "days to start" column.
    If I select "SQL Result" what should be the SQL for that??
    Is there any other way to solve this problem
    Aprreciate your help on this
    Thanks

    You could make a table VALUES with 1 column and fill it with values like 30,60,90....then in sql you'd write SELECT * FROM VALUES....as simple as that
    (of course, it'd have to be in RPD, and you'd need to expose it in Presentation layer)
    Edited by: wildmight on Feb 19, 2009 8:18 AM
    Also, you could try this - it works for me - but it could be slower and you might want to figure out how to round it - also, it has to be a number or cast to number format
    SELECT Table."Column"/30 saw_0 FROM "Subj Area" ORDER BY saw_0
    Edited by: wildmight on Feb 19, 2009 8:29 AM

  • Remove default entry from drop down

    How can i remove the default entry from a dropdown element?
    Florin

    Hi Florin,
    If you are using DropDownByKey, just setting the current selection to some key value will remove the default blank entry.
    wdContext.current<node name>Element().set<attribute>(<key value of the selected data>);
    This will set the value corresponding to this key as the currently selected one in the dropdown and along with this, the default entry will also disappear
    Hope this helps,
    Best Regards,
    Nibu.

  • Drop-down list, over riding the entry?

    Hello,
    I am developing an VISITOR Adobe Interactive Form, i have Designer 8.1 and Reader 9.0 in my Windows 7 Laptop. When i checked the menu EDIT-->form properties --> Compatability, its Adobe XML form File (XDP)
    When i opened this VISITOR interactive form in a browser, right clicking and checked form PROPERTIES, then i saw the "PDF Version: 1.6 (Acrobat 7.x)"
    I have a bunch of drop-downs in my interactive form, done by dragging & dropiing the 'Drop-down list' object, at the end i binded it with some data source, working fine, say its COUNTRY list.
    As soon as use opened the form, he saw the 'USA' prepopulated in the drop-down field, fine.
    User dropped down the entries, he saw a couple, like USA, Canada, UK, Spain, fine.
    But, now user want to enter / override this USA entry with his own value, like FRANCE, but, my form is not allowing, its behaving like a 'readOnly' field!
    Pls. let me know how to over ride a entry of drop-down values, as per user wanting value?

    If I understand your issue properly, then I think what you need to do is
    check the "Allow Custom Text Entry" box on the FIELD page of the OBJECT
    palette. It can be found under the area where you define the list items in
    your drop down list.
    I hope this helps

  • Over ride the drop-down value?

    Hello,
    I am developing an VISITOR Adobe Interactive Form, i have Designer 8.1 and Reader 9.0 in my Windows 7 Laptop. When i checked the menu EDIT-->form properties --> Compatability, its Adobe XML form File (XDP)
    When i opened this VISITOR interactive form in a browser, right clicking and checked form PROPERTIES, then i saw the "PDF Version: 1.6 (Acrobat 7.x)"
    I have a bunch of drop-downs in my interactive form, done by dragging & dropiing the 'Drop-down list' object, at the end i binded it with some data source, working fine, say its COUNTRY list.
    As soon as use opened the form, he saw the 'USA' prepopulated in the drop-down field, fine.
    User dropped down the entries, he saw a couple, like USA, Canada, UK, Spain, fine.
    But, now user want to enter / override this USA entry with his own value, like FRANCE, but, my form is not allowing, its behaving like a 'readOnly' field!
    Pls. let me know how to over ride a entry of drop-down values, as per user wanting value?

    Hello Srinivas,
    You can overide the entry of drop-down list by:
    selecting the "Allow Custom Text Entry" box of the field tab of the object palette
    of that drop-down list.
    Thanks,
    Debadas.

  • How prevent typoes reappearg in drop-downs.

    Sometimes I make a typo error filling in an entry, like my email address, or a topic, etc. Then when I encounter that space again and I start to type a similar, but spelled right, entry, the drop-down will appear usually with my correct spelling but also with my previous unwanteds &/or errors.
    It seems like once I make an error in one of these spaces I am doomed to see it shoved in my face everytime I return, forever.
    Is there any way to erase and delete these unwanted old entries so they don't keep haunting me in the drop downs?
    Knowudamean?
    I'm guessing this is an easy one.
    I will, as always, be appropriately grateful.

    Kinda disappointed that my current typoes plaguing me will eventually work themselves down and off the list. All I got to do is make some more entries? more typoes to shove the old typoes out of sight. I may tryy that.
    And I don't know much about cache, to me my cache ain't nothing but trash, and I looked at the site for cache cleaning but I'm not very hopeful that i can study and learn up on it even if I did download that applic.
    I was hoping for something simpler.
    Or am i just being unrealistic and too hopeful for
    a much easier solution.
    But thank you very much.

  • Restrict the number of visible values in drop down by key?

    Hello,
    Is it possible to restrict the max. number of entries displayed in a drop down by key element? By default i get 10 entries which i would like to limit to 5. Thanks.
    Regards,
    Vasu

    Hi,
    If you have a set of default values (which come from the domain), you can restrict them to the specific values which you need to display. In the INIT method of the view in which this UI element is present, you will have to write code to delete the entries which you do not wish to show in the drop down by key element.
    Have a look at this code snippet:
      data:     node_info type ref to if_wd_context_node_info,
                elem_attr type wdr_context_attribute_info.
      node_info = wd_context->get_node_info( ).
      node_info = node_info->get_child_node( 'CHILD_NODE' ).
      data:    lt_valueset type wdr_context_attr_value_list,
            l_value type wdr_context_attr_value.
      call method node_info->get_attribute
        exporting
          name           = 'ATTR1'
        receiving
          attribute_info = elem_attr.
      lt_valueset = elem_attr-value_set.
      delete lt_valueset where value = 'VALUE1'.
      node_info->set_attribute_value_set(
                name = 'ATTR1'
                value_set = lt_valueset ).
    Hope this helps.
    Regards,
    Wenonah

  • Cannot remove autocomplete entry from address bar; have already cleared history, and entry is not in the drop-down menu of the address bar either.

    I am having problems removing an autocomplete entry from my address bar; I have tried clearing my history, so it's no longer in that, and I do not have it bookmarked either, so it's not getting the URL from that location either. The autocomplete entry isn't even showing up in the drop down menu, so I can't even scroll through that to delete it.
    Basically, I want to be able to type "st" and go to "store.steampowered.com"; however, despite numerous times of typing in "st" and then going down into the drop-down menu to choose "store.steampowered.com", the bar continues to autocomplete "steamtrades.com", which is exceptionally annoying because I do not have that website bookmarked, or in my history, yet it continues to autocomplete to that address, which I do not want it to autocomplete to, and cannot figure out how to remove because I've already cleared my history multiple times, do not have it bookmarked, and it is not showing up in the drop down of the address bar for me to go down and force delete it.

    Did you try to remove some letters from steamtrades.com to see if that bring this entry up in the drop-down list?
    If it is not in the history then it might be present with a typed=1 flag indicating that you have typed or pasted it in the location bar.
    You can use the SQLite Manager extension in Firefox to inspect the places.sqlite file to see if this entry comes up in the moz_places table.
    *SQLite Manager: https://addons.mozilla.org/firefox/addon/sqlite-manager/
    <pre><nowiki>SELECT datetime(visit_date/1000000,'unixepoch') AS visit_date, url, title, visit_count, frecency
    FROM moz_places, moz_historyvisits
    WHERE moz_places.id = moz_historyvisits.place_id AND url LIKE '%steamtrades.com%'</nowiki></pre>

  • How do I remove an entry from the "Store Files" drop down list in the "Import Settings" section of Aperture 3.3.2

    The dropdown list "Store Files" in the "Import Settings" section of Aperture 3.3.2 displays the history of the entries previously added to the list. Some of the entries are no longer valid and I'm trying to delete them but I can't find a way to do this. This is a screenshot. Does anyone know how to do this?

    Once again - the Jive system ate my bullet points and messed up the formatting
    Is the MacOS X version in your signature correct? Then you cannot be using Aperture 3.3.2?
    You should not be seeing duplicate entries in the "Store Files" pop-up menu. This looks like your Aperture Preferences file is corrupted and needs fixing.
    Quit Aperture (and log off and on again, if you are running MacOS X 10.7 or later)
    Then reveal your User Library (from the Finder's main menu bar, the "Go" menu. Hold down the options-key until the library apears in the drop-down menu)
    In the Library folder select the "Preferences folder and locate the file "~/Library/Preferences/com.apple.Aperture.plist"
    Now you can either
    remove the com.apple.Aperture.plist file to the Desktop, to force Aperture to create a new one, but you will have to set again your Preferences from the "Preferences" panel,
    or make a backup copy of the file and edit it, if you are an experienced programmer and have Xcode installed. To fix the drop-down list you need to edit the item "RecentReferenceFolders" and delete the redundant folder names. Enter "recent" into the search field to find it quickly. If you click an item in the list, plus/minus buttons should appear. But only try this, if you know how to edit property lists, otherwise it will be much safer to delete the faulty list and to set your preferences again from the "Preferences" panel.
    Regards
    Léonie

  • I inadvertently typed in a wrong account number which now shows up in the Account # drop down box. Is there some way that I can clear this (or all) entry and still let Firefix remember search and form entry? Thanks Mike Callahan

    The Scottrade web sight requires an account number as well as a password to log in. I inadvertently typed in an incorrect number and would like to eliminate it from the 'remembered' accounts. My only solution seems to be to turn off Remember Search and Form Entry but that impacts the correct account numbers and all other web sites as well.

    Click the (empty) input field on the web page to open the drop down list
    Highlight an entry in the drop down list
    Press the Delete key (on Mac: Shift+Delete) to remove it.
    http://kb.mozillazine.org/Deleting_autocomplete_entries
    Firefox/Tools > Options > Privacy > Firefox will: "Use custom settings for history" > "Remember search and form history"
    https://support.mozilla.com/kb/Form+autocomplete

  • Is it possible to allow use to type entry into a drop down list box ?

    Hi ,
    Is it possible to provide  type in the value option ( provide option to user like he can select a value from the extracted data in a drop down list object and also he can enter a value manually ) to a drop down list box on an interactive form ?
    Nanda

    Hello Nanda,
    In the Adobe LiveCycle Designer you can specify several list items for objects of type 'Drop-down List' and it is also possible to allow custom entries (checkbox: "Allow Custom Text Entry").
    Regards,
    Philipp

Maybe you are looking for