RE:Extended Value Selector.

Hi All
I have taken a evs i.e Extended Value Selector. i have got the values in the evs at runtime and the code that i have used is
IWDAttributeInfo attributeInfo =     wdContext.getNodeInfo().getAttribute("Status");
     ISimpleTypeModifiable StatusType =     attributeInfo.getModifiableSimpleType();
     StatusType.setFieldLabel("Status");
     IModifiableSimpleValueSet valueSet =     StatusType.getSVServices().getModifiableSimpleValueSet();
     valueSet.put("Key_0","New");
     valueSet.put("Key_1","Open");
     valueSet.put("Key_2","Assigned");
     valueSet.put("Key_3","Closed");
     wdContext.currentContextElement().setStatus("Key_0");
But i was unable to read the values i.e is selected in that evs can anybody tell how to read values from EVS.....

Hi,
You can retrieve the selected value from the attribute mapped to UI. For example for dropDownByKey, from the property selectedKey.
USE:
wdContext.currentContextElement().getStatus();
It will return the key of the value selected.
thanks & regards,
Manoj

Similar Messages

  • How to Catch the Event when a Row is Selected in Extended value Selector

    Hi All.
    I Want to Call the Action when a perticular row is selected in Extended value Selector.
    How can I do it
    Thanks & Regards
         Kiran

    Hi Kiran,
                  Create a seperate view with the table of records same u are showing EVS because with EVS it is not possible to raise any event.
    So add ths view to a seperate window and open that window instead of EVS .So here you can raise an event becuse it a view.
    Regards
    Padma N

  • How to call BAPI in Extended Value Selector in Webdynpro for java

    Hi all
    i need to call a BAPI and populate the data in Extended Value Selector UI element.
    can you please provide sample codes and required help.
    Regards
    Sunil

    Hi,
    Go through the following link
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/391ee590-0201-0010-1c89-f1193a886421]
    [Re: Creat organization tree in OVS]
    and also you can search in SDN, there are lots of threads
    Regards
    Raghu

  • Add columns to extended value selector

    Hi All,
    I have created an Extended value selector that has 2 columns(KEY column and VALUE column). How do I add columns to Extended Value Selector.
    Thanks,
    Tom

    HI Tom,
    ->EVS just picks value from enumeration type which you must have created and displays those value.
    ->ONLY key and Value are the two columns possible. You cannot add any new columns to that.
    ->F4 help  helps only to get values for a particular field which are already present somewhere ex may be some bapi or database.
    ->OVS is new version and you can look for that also if it suits you.
    Thanx.

  • Extended Value Selector (EVS) and search function

    Hi,
    the tutorial "Value Help in Web Dynpro Applications" mentions that the EVS provides a search function. What does the search function look like? Does it work in such a way that only values beginning/containing a predefined String are displayed? How could one realise such a behaviour?
    Thanks in advance for any hints,
    -STEFFEN-

    Hi Steffen,
    nice to meet you here The filtering functionality of the EVS UI is based on a simple "starts with"-criterion. It does not support regular expressions. In addition it does not display those displaytexts which contain the given string as a substring.
    For getting more information on how to show displaytexts for keys in combination with the EVS search help please read this article:
    <b>Yet Another EVS Valuehelp - Showing Displaytexts for Keys (36)</b> - http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/0c0dcacd-0401-0010-b4bd-a05a0b4d68c8.
    Regards, Bertram

  • Extended Value Help Selector (EVS): Manually open Value-table

    Hello,
    i have implemented the Extended Value Help Selector as shown in the tutorial.
    Possible values are for example: Lufthansa, AmericanAirlines, Italia, and so on.
    Now if somebody manually (without using the help selector) enters "luf" and hits enter, an error message comes up with the text key not found in list.
    Now i want to modify the Value Help selector: If the user enters a text in the textfield which does not exist in the list of allowed values, the value help selector-table should come up automatically with the entered value as search / filter criteria.
    Is this possible?
    Kind Regards,
    Thomas

    Hi Thomas,
                      Sorry to say but its not possible with EVS. I think for ur requirement ,OVS is better option.
    regards
    Sumit

  • Portal Runtime Error while clicking on value selector

    Hi,
    I am facing problem while clicking on value selector on Picklist search iview and also any lookup table value selector.
    If I assign the same role to my portal user(Admin rights) working fine...but if I assign it to end users...not accessible on popup and giving portal runtime error.
    Currently i have assigned standard "eu_role" to the end users...Do I need to give any special permissions to some of end users?
    Appreciate all your help in this regard.
    Thanks,
    Pooja

    System Administration > Permission > Security Zones >
       com.sap.pct.mdm.appl.masterviews > high_safety >
       com.sap.pct.mdm.appl.masterviews > low_safety >
    com.sap.pct.mdm.tech.systems > high_safety
    com.sap.pct.mdm.tech.wizards > high_safety
    give Read / Write and End User access to the custom role/standard role that has to access MDM Views.
    Regards,
    Nitin

  • Using OVS (Object value selector) inside a tabe.

    I am new to the WebDynpro Java development. I am developing a simple UI ,where I have to put inputfield in table row and apply OVS to that inputField. I have already done that , but the problem is when selecting the inputField the value hep button is showing and , when clicking on the value help button nothing happens.Can any body suggest me , how to use OVS inside a table row.
    Thanks,
    Srikanta

    Hi Srikanta,
    you can use object value help selector in table by creating a singleton node attribute by this you will make sure that one row's value is not affected by other row's value selection for object value help please refer to this wiki article [Value Help - Object Value Selector|http://wiki.sdn.sap.com/wiki/display/WDJava/ValueHelp-ObjectValue+Selector]. Please let us know if you need any help.
    Regards
    Jeetendra

  • Object Value Selector (OVS) Tutorial Help!

    Hi,
    I am working on the advanced input help: The Object Value Selector (OVS) tutorial. I downloaded the ready- to- use from SDN and tried to deploy and run it. I don't know what user name and password to use in order to maintain JCo to create the MODELDATA and METADATA in local J2EE engine. In NetWeaver Developer Studio, the models AdRFCFlightListModel, Model Classes, and the BAPIs have been created by SDN already, so I don't really know what username and password to use. If anyone could help me with this, I would greatly appreciate that.
    Regards,
    -Napadol

    Hi,
    For creating JCO,
    SAP JCo Functions,Architecture,Applications,Installation,Client & Server Programming :
    http://help.sap.com/saphelp_nw70/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/frameset.htm
    Creating Jco destination:
    http://help.sap.com/saphelp_nw70/helpdata/en/3a/3b1b40fcdd8f5ce10000000a155106/frameset.htm
    Maintaining Jco destination:
    http://help.sap.com/saphelp_nw70/helpdata/en/94/3c1b40fcdd8f5ce10000000a155106/frameset.htm
    The SAP JCo Repository :
    http://help.sap.com/saphelp_nw70/helpdata/en/01/43e13d82fcfb34e10000000a114084/frameset.htm
    Dynamic Jco creation Blogs:
    /people/anilkumar.vippagunta2/blog/2007/02/06/dynamic-jco-creation
    /people/gregor.wolf3/blog/2004/09/23/from-function-module-to-jco-application--part-1-of-3

  • Object Value Selector

    Hi,
    can you please tell me
    How to create Object Value Selector ?
    Thanks in Advance,
    Ravi Kiran

    Hi Ravi,
               refer this link for OVS:
    [https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdjava/valueHelp-ObjectValue+Selector]
    Thanks and Regards

  • WS & WD context binding: SVS & EVS (help value selector)

    Hello !
    I've built the J2EE and WS example described here: http://help.sap.com/saphelp_nw04/helpdata/en/70/13353094af154a91cbe982d7dd0118/frameset.htm
    On top of that I've built with Web Dynpro an input form, reservation view and cancel form: all works fine.
    I'd like to provide a help value selector for the input fields of the form (Drop down list, and external window containing a list or even an OVS retrieving possible locations in a DB) to make the WD app more user friendly.
    The solution I'd like to implement: to bind the context of another input to a local dictionary and "map" it to the real input field (mapped to the controller context) which should be hidden. How can I do that at runtime ?
    Thanks in advance !

    Finally I solved my problem by myself after having a look at this thread: serialization error [problem with setting attr values in the context]

  • Collection Based on Null Value from Custom MOF extended value

    I extended the MOF to create collections based on registry keys and its working great!
    I would like to know how to modify the below query that looks for "Automatic" to actually return all servers without this value - a collection of servers without this custom registry value we are using.
    Below is the working query for finding servers with "Automatic" - how can I adjust this to give me all servers without any value here? I want all servers with a NULL value....
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_ServerReboot_ServerReboot_1_0 on SMS_G_System_ServerReboot_ServerReboot_1_0.ResourceId
    = SMS_R_System.ResourceId where SMS_G_System_ServerReboot_ServerReboot_1_0.Reboot = "Automatic" order by SMS_R_System.NetbiosName
    What we want:
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_ServerReboot_ServerReboot_1_0 on SMS_G_System_ServerReboot_ServerReboot_1_0.ResourceId
    = SMS_R_System.ResourceId where SMS_G_System_ServerReboot_ServerReboot_1_0.Reboot = "NULL" order by SMS_R_System.NetbiosName

    Use "is null" like this.
    SMS_G_System_ServerReboot_ServerReboot_1_0.Reboot is Null
    http://www.enhansoft.com/

  • Problem running Object Value Selector

    Hi,
    We have implemented OVS for GetFlightList BAPI. We are able to get the data on the OVS selector. But once we click on a particular record of the table, the value is not passed to the base control and we get <b>ClassCastException</b> in applyResult() method of the listener.
    The code is pasted below.
    public void applyResult(IWDNodeElement applicationNodeElement,
         IWDNodeElement queryOutputNodeElement) {
    try
    <b>IPrivateOVS_testView.IFlight_dataElement ovsCallerNodeElement =(IPrivateOVS_testView.     IFlight_dataElement) applicationNodeElement;</b>
    The exception thows on this line of the code.
    Any help?
    regards,
    Deepika

    I am still getting the same Exception.I am explaning the scenerio:
    I created a set of Flight_data attributes in the custom controller and mapped to a similar set in the view controller to fix the error.The listener is implemented in the Custom controller.On selecting a row from the OVS table i get the CastClass Exception in the applyResult()method of the listener at the following point of code:
    <b>IPublicTestOVS_Custom.IFlight_dataElement ovsCallerNodeElement =
         (IPublicTestOVS_Custom.IFlight_dataElement)
         applicationNodeElement;</b>
    The exception is given below:
    <i>java.lang.ClassCastException
        at com.sap.training.ovs.cust.TestOVS_Custom$OVSDemoContextNotificationListener.applyResult(TestOVS_Custom.java:235)
        at com.sap.tc.webdynpro.progmodel.valuehelp.OVSCMIQuery.applyResult(OVSCMIQuery.java:143)
        at com.sap.tc.webdynpro.components.ovs.ResultView.onActionLeadSelected(ResultView.java:195)
        at com.sap.tc.webdynpro.components.ovs.wdp.InternalResultView.wdInvokeEventHandler(InternalResultView.java:149)</i>

  • Value selector for htmlb:inputbox

    Hi experts,
      There is an pop-up with really classic date template coming for an <htmlb:inputbox> with type 'DATE' and showHelp = 'X'.
      Is that possible to Provide a popup with classic window with the list of values coming from a table which shows something like Equipment, Functional Location, Distribution channel etc. And once selected passing the value back to the <htmlb:inputbox>.
      Can some expert Provide code and guidance for this?
    Thank you
    arun

    Hi Arun,
    Check out the following post.
    Re: Display search results in popup window
    Regards
    Raja

  • How to fill Object Value Selector

    Hello All,
    I want to fill values for my value help node dynamically. Where should I write the code. I mean in which Method I should write.
    Any help on this is highly appreciated.
    Regs,
    Venkat

    Venkat,
    if you want to get the help, before view is shown to user , then write the code in WDDoInit() , if you want to get the help on performing any action lets say, on clicking button then
    create one action , bind this to the OnAction of button , then you can write the code in the action event handler of that button; so value help will be recieved on clicking the button.
    if you want to refer any tutorial , here it is:
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/5dcbe990-0201-0010-2c99-a2bc9e61acfc [original link is broken]
    let me know if you have any problem
    regards

Maybe you are looking for