How to clear value set values from node info

Hi,
I have set some values on value set to display on a dropdown in my view.  using following method.
  l_node_info->set_attribute_value_set(  name      = 'XYZ'  value_set = l_value_set ).
Now i need to clear node info value set. Otherwise particular attribute which i used for dropdown is always showing values added .
Please suggest how to clear value set.
Thanks,
Venkat.

Hi,
Interface IF_WD_CONTEXT_NODE_INFO is for metadata of a node. It has nothing to do with the values in dropdown list.
In order to manipulate the values in the dropdown of an attributes, you can use the IF_WD_CONTEXT_NODE.
As you are saying its a dropdown, what I can suggest is to write supply function for the node.
And then get the index (V_INDEX) of the value you wanted to see in the dropdown list, and then use the following code in the method WDDOINIT
LO_NODE->SET_LEAD_SELECTION_INDEX( INDEX = V_TABIX ).

Similar Messages

  • How to clear the variable value in session store?

    I'll try to build form for search. There are LOV and
    search button on form. When user don't select anything then push
    search button, I'd like the report to show query everything. I
    mean the report will show like condition where id like '%'.
    And I send variable between form to report by using session
    store.
    I select nothing in LOV but value that return by LOV is
    not null. It's in stead of old value of LOV.
    Please tell me.. How to clear the variable value in
    session store? I'd like to set it to null. If you have greater
    way to do like this, please tell me.
    Thank you.

    Please suggest on this..
    Thanks.

  • How to clear the selected values in the JCombobox

    Hi All,
    Can you please tell - how to clear the selected values in the JCombobox
    I have four dropdowns in my application, When I click "CLEAR" button, what ever the values selected in the four drop downs should go off and view as "SELECT" in all the dropdowns.

    In addition to the above you should also check out [Combo Box Prompt|http://www.camick.com/java/blog.html?name=combo-box-prompt] which makes it easy to display the default prompt.

  • FndLoad updates wrong value set values

    Hello.
    When uploading value set values, fndload updates both US and N language value descriptions. Supposed is to update only N language values.
    Step by step what I have done.
    *1. Set NLS_LANG environment variable*
    export NLS_LANG=NORWEGIAN_NORWAY.WE8MSWIN1252
    *2. Downloaded value set*
    $ FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct KONTO.ldt VALUE_SET FLEX_VALUE_SET_NAME="KONTO"
    *3. Change environment*
    *4. Set NLS_LANG environment variable*
    export NLS_LANG=NORWEGIAN_NORWAY.WE8MSWIN1252
    *5. Uploaded value set*
    $ FNDLOAD apps/apps O Y UPLOAD $FND_TOP/patch/115/import/afffload.lct KONTO.ldt
    I have investigated that its happening because of the update statement which is called by the fndload control file. Procedure fnd_flex_values_pkg.load_row line 708:
    update FND_FLEX_VALUES_TL set
    FLEX_VALUE_MEANING = X_FLEX_VALUE_MEANING,
    DESCRIPTION = X_DESCRIPTION,
    LAST_UPDATE_DATE = X_LAST_UPDATE_DATE,
    LAST_UPDATED_BY = X_LAST_UPDATED_BY,
    LAST_UPDATE_LOGIN = X_LAST_UPDATE_LOGIN,
    SOURCE_LANG = userenv('LANG')
    where FLEX_VALUE_ID = X_FLEX_VALUE_ID
    and userenv('LANG') in (LANGUAGE, SOURCE_LANG);
    Problem is with this statement and userenv('LANG') in (LANGUAGE, SOURCE_LANG);, because there is included SOURCE_LANG which not always is the same as LANGUAGE. Therefore the update statement updates also US language values which source language is N
    Any suggestions how to override this problem?
    Thanks in advance!
    Aldis

    Hi Hussein,
    Thanks for the tip, but it is the same if I set the NLS_LANG environment variable *"export NLS_LANG=NORWEGIAN_NORWAY.WE8MSWIN1252"* before upload.
    I will try a workaround. Update the source_lang so it is the same as language and then upload with fndload.
    Aldis
    Edited by: user1579859 on 2010.8.3 00:49

  • How to display all value of metadata from nodes collection model in content presenter template

    Hi All,
    first of all the new look of OTN is great.
    coming to problem i am facing (i dont know whr to ask here or in portal forum).
    i am creating a content presenter template to display list of items.
    now as per requirement i need to create a drop down to filter the list.
    now while check- in a file author would choose a value in one metadata field lets say xCategory(which is a single select list).
    i have to display similar category list on portal to allow user to filter list.
    i could hv used view of xCategory but problem is files are targeted to role using ACL. so u see i cant display all category to all users.
    also customer wants this whole thing to be Dynamic i.e. they can add value of xCategory later that to could be only for specific role (on portal it should be role specific , author can see whole list not a problem there).
    so what i think is if content is given as search result so the category. so now if i can get the all xCategory metedata from 'nodes' collection model in template i can create drop down with out having any additional bean.
    somthing like this
    #{nodes.xCategory} (but this one is not correct).
    please suggest me any solution.
    thanks
    -somesh

    Hi,
    you can do all of what you said with JSF. ADF Faces provides drag and drop functionality (have a look at the Web Developer Guide) that allow you to move nodes within a tree. The drag and drop framework sends an event notification to the server with a reference to the changed node.You can also have context menus on a tree node to help users creating, deleting and editing a tree nodes. JavaScript isn't required at all, even if you wanted to drag and drop a row in a table on top of a tree node to create a new tree node.
    I just finished a book project in which we explained this usecase. As soon as I find the time, I'll follow up with a blog entry on this as it seems to be a common requirement. However, as mentioned, the web developer guide on OTN explains drag and drop in ADF Faces pretty well.
    However, if you choose the "Search" link above, choose JDeveloper and ADF as the product to search for and type drag and drop as the search string, then you get lots of code sample posted in the past to this forum
    Frank

  • How to clear invalid item value?

    Hi, All.
      I have two items: selectOneChoice and inputComboboxListOfValues. The second item list of values depends on the first item selected value. When the value of the first item is changed, the second item should be reset. I do this by
    calling setValue(null) on the second item. The partialTriggers property of the second item is set to the first item id. If the second item has a valid value, then everything works well. But if the second item has an invalid value, for
    example, the user after entering an incorrect value, clicks on another item, the setValue(null) does not reset the value.
      Moreover, it is possible that a user saves to the database invalid data. For example:
      1. Select a valid value on the second item.
      2. Remove some characters making the invalid value.
      3. Go to some other item by clicking the mouse.
      4. Change value in the first item. (At this time will invoke setValue(null), and the list of values of the second item will change.)
      5. Edit the value in second field to the value set in the first paragraph (this value is not valid after changing the value in the first element).
      6. After that the document can be saved, no further checks are not happening.
    Version of JDeveloper is 11.1.2.4.
    How to set null value and how to ensure that in the second item it was impossible to enter not valid value?
    Regards,
    Alexey

    OK, I looked into the issue. There are two problems:
    1) your data model does not check the entries in the SOME_DOCUMENTS. You only check the FK against the master tables. You need to check if hte combination of the keys are valid. On solution would be to use model driven dependent lov. Check Andrejus Baranovskis's Blog: Cascading LOV's in JDeveloper 11.1.2.3.0 for a sample. Next the VO you use is based on multiple EO which is not necessary if you use Andrejus's approach.
    2) There might be a bug in the af:inputComboboxListOfValues in this scenario when you you allow to enter values (or parts of it) in the inputText. However, if you validate the keys correctly, you can't insert something invalid. This problem has it's root in your data model. If you use the dependent lov and don't allow user input you can't change the selected value to something invalid. So my advice is to use dependent lov and don't allow input in the inputComboboxListOfValues (set editMode='select'), the user can still search or select the value, but only the valid ones.
    The inputComboboxListOfValues error need some more investigation which need more time. I'll see if I find out something more.
    Timo

  • How to clear the input values in WD4A

    Hi all,
    Thanks in Advance.
    In my login page i have ID and Password.If Login fails it back to the same login page.But at the same time the entered(In ID and Password)will be cleared.If i write the code in inboundhandler is it correct means how can i write to invalidate the input values???Is there any examples or related links???

    Hi,
    Please have a look at this similar thread:
    how to clear entered values.
    Hope this helps!
    Regards,
    Srilatha

  • Update values set values

    Dear Users,
    I am facing one issue in HRMS:
    i have a list of jobs defined in a translated value set.
    whenever i am updating one value in the value set  the changes are not affecting the job list.
    Please advice.
    Thanks

    Hi Wmaarbani,
    What is the validation type on your value_set. Is it translatable Dependent ?
    You can search for the values from -
    Navigate to Application Developer --> Flexfield --> Key --> Values
    On this form, you will see a small Globe on the menu bar.. make sure all the translatable values are updated.
    Cheers,
    Vignesh

  • How to call a set method from within a constructor

    Hello,
    I want to be able to call a set method from within a Scanner, to be used as the argument to pass to the Scanner (from a source file). Here's what i tried:
    private void openFiles()
            input = new Scanner( setSource );              
        and here is the set method:
    public String setSource( String in )
            source = in;
            return source;
        }obviously there will be more code in this method but i'm trying to tackle one problem at a time. Thanks in advance..

    The "String in" declaration says: "Nobody may ever invoke setSource() without specifying a certain String. The content of the String is known at run-time only."
    In no place in your code you say the compiler: "I want the 'in' variable (actually, parameter) of method setSource() to contain the first arg which is passed to the application".
    This is exactly the same mechanism allowing you to write "new Scanner" with something inside the two parentheses.

  • How to retrieve the long texts from  purchase Info record (ME13)

    Hi,
    How do I retrieve the long texts data from the tab, Texts of the Purchase Info record(ME13).  I want to retrieve the current long texts data(long text1, long text2 long text3, long text4) for a given purchase info record. These long texts points to the structure BRM06I.
    So, now how do I fetch the data from the structure BRM06I. Is there any function module for the same..
    Thanks.

    Hello,
    Texts are stored in tables STXH & STXL (header and item). You can search these tables by selecting Text object = EINA and Text name = Info Rec #. The text ID's you will see are the ID for various texts maintained.
    Cheers !

  • How to clear asset scrap value from the asset

    Hi,
    An asset has been partially retired in 2007 and transfered the balance to other asset. There is a scrap value in the same asset and still appearing in scrap value field of asset explorer. This is giving an error in asset year end closing. Please give a solution to solve this issue. The scrap value is visible in the asset under Planned values tab and there is zero net book value.
    Regards
    Paroy

    Dear Markus,
    I dont mean somebody would search for me. I replied to your query to get inputs from various people. Someone might have faced a similar issue, they may have a solution or someone might have known and implemented a Note.
    I think the main purpose of these forums is knowledge sharing and quick solution to an issue which a person in question could not figure out.
    Regards
    Paroy

  • How to Clear the form values

    Hi All,
    I am using JDeveloper11.1..1.5
    I have one main page inside that i am including 3 more pages by using <jsp:include> tag with the help of Radio buttons.
    For each and Every page one backing bean is associated as Session Scope. Now my problem is when i navigate from one page to another page the values are not getting cleared.
    Can anyone tell how can i achieve this?
    Thanks in advance

    Either you can use a reset method call in the taskflow between the page navigations. Also, you can try to include createinsert method call in between the pages. try and set the values to null on page load. It should work.

  • Significant digits not obeyed when value set through property nodes

    Hi, I have a front panel with a large number of indicators on it. As updating each one is a very straight forward task, I am using the This.Panel.Controls array to step through and update each indicator appropriatly. The problem is, that because I have so many indicators, and the actual numbers aren't that important (they are also being logged elsewhere) I only wish to have 4 significant digits displayed so that the value fits into the size of the indicator. I set each indicator to have a display format of %_4f, but when I run it this is not obeyed and 7+ digits are displayed. I'm guessing this has something to do with updating the controls via the property node, but I'm not sure why that should cause an issue. Any ideas?

    Nope, I double checked the format string. I do mean significant digits by the way. My imput values are expected to be in the range 0-100 but I've sized my indicators to fit only 4 digits, which will give me at worst a 0.1% error over the full range, which is good enough. Right now the channels from which I am grabbing data are all disconnected, so I am just getting noise. I've attached images of both the format string I'm using, the relavent part of my code where I update values, and an example of the output I get. Thanks,
    Jon
    Attachments:
    FormatString.PNG ‏32 KB
    ouput.PNG ‏2 KB
    ValueUpdating.PNG ‏25 KB

  • Highlighting TEXT - not the field - and clearing the set value for a new one

    I have a form in which various text fields are set with a message to inform the user as to what kind of information I want typed in. My goals are:
    1. Have the text get highlighted so when the user starts typing, the "old" value gets replaced with the "new"
    2. Or, when the user tabs or clicks in the field all of the "old" value is deleted and they can start typing the "new" value from the beginning of the field.
    I am trying to eliminate having to manually highlight the field in order to type in the needed information. But each field needs to start with a value so the user knows what kind of information I am looking for.
    Does this make sense? By the way, I have no JavaScript experience...uh oh!

    Use the Media Manager (under the File menu bar item).
    Link:
    What Can You Do with the Media Manager?

  • How to clear input field value on back

    Hi All,
    I have developed an application, in which user put sales order on first page and press a button then its detail display on second page using restAPI. Now when I press back button on second page then it takes me to first page with holding previous sales order value in input field. And when I change its value and press that button again then it shows me previous sales order detail.
    Please suggest me, how to refresh cache and input fields value on back button?
    Thanks & Regards
    Shubhanshu

    Hi Viren,
    My code is,
    First view
    sap.ui.jsview("uitest2.first", {
      getControllerName : function() {
      return "uitest2.first";
      createContent : function(oController) {
      var text = new sap.m.Label({
            text: 'Dealer Code',
           layoutData: new sap.m.FlexItemData({alignSelf: sap.m.FlexAlignSelf.Center })
      var input =  new sap.m.Input("CUSTOMER",{
            type: sap.m.InputType.Text,
          placeholder: 'Enter Dealer code...',
          layoutData: new sap.m.FlexItemData({growFactor: 1, alignSelf: sap.m.FlexAlignSelf.Center}) 
      var Dealer = new sap.m.HBox({ 
                items:[  text,input
    //                   new sap.m.Label({
    //                   text: 'Dealer Code'
    //                   new sap.m.Input("CUSTOMER",{
    //                   type: sap.m.InputType.Text,
    //                   placeholder: 'Enter Dealer code...'
                       height : "6em"
          var button = new sap.m.Button({
               text: "Submit",
               press: function(oEvent) {
                  oController.loadData();
                  app = sap.ui.getCore().byId("myApp");
                  app.to("idsecond1");//, sap.ui.getCore().byId("CUSTOMER").getValue());
               layoutData: new sap.m.FlexItemData({alignSelf: sap.m.FlexAlignSelf.Center}) 
          return new sap.m.Page({
         title: "Sales Dealer Info",
         content: [ Dealer,button
    First controller
    sap.ui.controller("uitest2.first", {
        loadData: function() {      
            var oParameters = ({
            "CUSTOMER" : sap.ui.getCore().getElementById('CUSTOMER').getValue(),    
             console.log(oParameters);
             var url = "http://###########:8000/sap/bc/zrst_customer?sap-client=800/";
             var oModel = new sap.ui.model.json.JSONModel();
             $.ajax({             
             url : url ,
             dataType : "jsonp",
             type : "POST",
             data: oParameters,
             success: function(data,textStatus,jqXHR) {
             data = JSON.parse(data);
                     console.log(data);   
                     oModel.setData(data);
             sap.ui.getCore().setModel(oModel);
    Second View
    sap.ui.jsview("uitest2.second", {
      getControllerName : function() {
      return "uitest2.second";
      createContent : function(oController) {
      var oTable = new sap.m.Table("table",{
           headerText: "Dealer data",
           columns: [
             new sap.m.Column({
               header: new sap.m.Label({text: "NAME"}),
      demandPopin  : true,
      minScreenWidth : "Tablet",
             new sap.m.Column({
               header: new sap.m.Label({text: "CITY"}),
      demandPopin  : true,
      minScreenWidth : "Tablet",
             new sap.m.Column({
               header: new sap.m.Label({text: "COUNTRY"}),
      demandPopin  : true,
      minScreenWidth : "Tablet",
             new sap.m.Column({
               header: new sap.m.Label({text: "COUNTRYISO"}),
      demandPopin  : true,
      minScreenWidth : "Tablet",
             new sap.m.Column({
              header: new sap.m.Label({text: "STREET"}),
      demandPopin  : true,
      minScreenWidth : "Tablet",
             new sap.m.Column({
              header: new sap.m.Label({text: "PST_CODE"}),
      demandPopin  : true,
      minScreenWidth : "Tablet",
             new sap.m.Column({
              header: new sap.m.Label({text: "TELEPHONE"}),
      demandPopin  : true,
      minScreenWidth : "Tablet",
             new sap.m.Column({
              header: new sap.m.Label({text: "EMAIL"}),
      demandPopin  : true,
      minScreenWidth : "Tablet",
           items: {
           path: "/KEY",
           template: new sap.m.ColumnListItem({
           cells: [
                   new sap.m.Text({                              //new sap.m.ObjectIdentifier
                   text: "{NAME}"
                   new sap.m.Text({
                   text: "{CITY}"
                   new sap.m.Text({
                   text: "{COUNTRY}"
                   new sap.m.Text({
                   text: "{COUNTRYISO}"
                   new sap.m.Text({
                   text: "{STREET}"
                   new sap.m.Text({
                   text: "{PST_CODE}"
                   new sap.m.Text({
                   text: "{TELPHONE}"
                   new sap.m.Text({
                   text: "{EMAIL}"
      return new sap.m.Page({
      title: "Dealer Info",
      showNavButton: true, 
      navButtonTap:function(){ 
      app = sap.ui.getCore().byId("myApp"); 
      app.to("idfirst1"); 
      sap.ui.getCore().getElementById('CUSTOMER').setValue("");
      oModel.refresh();
      content: [ oTable
    Index.htm
    <!DOCTYPE HTML>
    <html>
      <head>
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <script src="resources/sap-ui-core.js"
      id="sap-ui-bootstrap"
      data-sap-ui-libs="sap.m,sap.ui.commons"
      data-sap-ui-theme="sap_bluecrystal">
      </script>
      <!-- only load the mobile lib "sap.m" and the "sap_mvi" theme -->
      <script>
      sap.ui.localResources("uitest2");
      var app = new sap.m.App("myApp",{initialPage:"idfirst1"});
      var page = sap.ui.view({id:"idfirst1", viewName:"uitest2.first", type:sap.ui.core.mvc.ViewType.JS});
      var page1 = sap.ui.view({id:"idsecond1", viewName:"uitest2.second", type:sap.ui.core.mvc.ViewType.JS});
      app.addPage(page).addPage(page1);
      app.placeAt("content");
      </script>
      </head>
      <body class="sapUiBody" role="application">
      <div id="content"></div>
      </body>
    </html>
    Thanks
    Shubhanshu

Maybe you are looking for