Help on value help.

Hi,
I have 2 textbox with value help option. 1st text box has value help i successfully displayed the records as per your tips. In the second text box i hav another value help which displays the records based on the 1st text box. both retrieves records using different bapi's.
both bapi has key fields to compare. that is the first textbox element. for example emp id in first textbox. and department in the second textbox. the second value help should show only the records relevant to particulare emp id which is selected in the emp id value help. i hav two different custom controller. Help me out in this Lohi. i could't able map the value help attribute field to custom controller value attribute.
The only option is passing value of empid to second bapi. that can be done as follows.
.......bind(new bapi's)
//pass the parameter to bapi
input.setDeptid( <get 1st textbox value which is
selected from value help> ) remember the codes are in doInit(). i am unable to retrieve the value attribute of the view. the codes are done in second custom controller with respective to second textbox.
awaiting for your reply,
regards,
Ganesh.D

Hi,
Let me know when first  BAPI executes the records will be displayed in value help.
Here I am not getting "Value help"
and the first BAPI is executed by using the first BAPI input( u said the first input field value )
Am i Correct?
and After displaying the records
upon click the particular record in value help it return the key to the textbox
In this case When you click the record in the value help then getting the what ever do u need. I mean to say to display the records using Output node.
When you click the record get the value what ever do u need like this.
String one= wdContext.current<outputNode()>.getkey value();
And set to your attribute value.
wdContext.currentContextElement().setEmpId(one);
this attribute is not in your context declare it in Controller and map where ever you need.
This might helps you.
thanks
Lohi.

Similar Messages

  • Custom Error Message in Value Help

    Hi,
    In my application i have a Inputfield called "CLASS", for which i have added a value help..it has these values
    B    Business
    E    Economy
    F    First Class
    When the user enters a value(say "X") other than B, E, and F, it displays a message
    <b>String "X" does not match the enumeration</b>
    I want to put my own message like " Please enter a valid value" instead of the above message.
    Please let me know how to do this ?
    Thanks
    Senthil

    Senthil,
    First, "looping through the list and checking the user entered value with values in the list" is possible only with non-validating actions. Using non-validating actions is a tricky task in real life.
    Second, workarounds are possible, but they involves calculated attributes (like here: /people/valery.silaev/blog/2005/11/29/800format-your-way). Solving this problem generically (45 attributes is a good number to start with a generic solution) will result in solution with complexity comparable to this: https://weblogs.sdn.sap.com/pub/wlg/3309. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] Do you need such thing just to alter error message?
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • How do you use user defined error messages in Value Help?

    Hi,
    I'm currently working on a Modifiable Value Help Selector in Web Dynpro Java, and I want to use a user defined error message when I validate the values entered by a user. Currently, it's returning its default error message ("Character <string> does not match...").
    Since the project requires a different error message, is there a way to override the default error message and use my defined error message instead?
    Thanks!

    Hi Angelo,
    I am not sure why message area is showing both Custom and inbuilt messages but you can try the following:
    i guess you must be using reportContextAttribute exception for showing Error messages on the input fields as well.in that case you can disable the message area so messages will appear only on the Context level ie; on input fields.
    For other messages apart from validation messages you can enable the message area before reporting the exception.
    make sure the boolean context variable which will be used for enabling and disabling the message area should have Readonly property set as true.
    I am not sure whether this is the only solution for this but you can try and see if it works.
    Siddharth

  • Hide Toolbar and Value help drop downlist

    Hi,
    I created a IF with a Value help drop down list. I also make use of the Hide Toolbar options. The drop down list has an input like:
    key - text (eg. 0001 - Holiday)
    The pdfMode is "UpdateDataInPdf".
    When i run my wd everything works fine. What i want to do is this: when the user push the button "next" i want to show the IF in a read-only mode. What i did, is that when the user push to button i change the PdfMode from "UpdateDateInPdf" to "GeneratePdf" (also tried "UsePdf") and change the "enabled" property to false.
    What happens is, the Adobe toolbar is back and the value help dorp downlist shows the key instead of the text.
    If i don't change the "enabled" property it works well, but than it's still possible to change data in the form.
    I am using NW04 SP16.
    Hope somebody can helps me.
    Kind regards,
    Maarten Duits

    Hi Maarten
    in general, right now there is no standard (i.e. non-hack) way to make a physical interactive PDF form read-only.
    The only sure way this would work in your process is to send the data back to the backend and have a second (practically identical) template ready in the background to generate a read-only version of what the user saw previously.
    Best regards,
    Markus Meisl
    SAP NetWeaver Product Management

  • How to link Value Helps in Visual Composer?

    I would like to know, how to link value helps in VC...??? It's like.....after selecting a value from Value Help 1, how do i restrict my Value Help 2 values so that it contains the values that are relevant to the value selected from Value Help 1 only....???? Request you to please provide the solution.......

    Hi Christophe
    Thanks so much for your help. I have been trying to do the way that you have suggested but am unsuccessfull...... Can you please tell me as to where should I create a field in the second popup view...??? After I double click on the link between "Start" and the "BAPI" in the second popup view...... , I find no "+" symbol in the "Configure Element Panel"  using which I can add the value taken from the first popup view.....
    Is there any pdf file or documentation that shows as to how to do this process...????
    Waiting for your response..... Thanks for your suggestion.....
    Regards
    Deepak Jaju

  • Selection Screen - Text instead of Key in the value help

    Hi ,
    I have implemented selection options for Web dynpro.
    The value help for the selection fields displays the key of the selected value (standard).
    I would like to know if there is an option to display the text (instead of the key) in the field.
    Key Text
    01    AAAA
    02    BBBB
    03   CCCC
    So if I select say - 01 and 03 in the value help, Can I display AAA, CCCC in the field (or next to the field)
    Thanks,
    Sri
    Edited by: Sri on Sep 29, 2010 8:19 AM

    HI,
    You can dispaly it as dropdown and it shown the text:Use the beloe code refernce;
    DATA lt_valueset TYPE wdy_key_value_table.
      DATA ls_valueset LIKE LINE OF lt_valueset.
      ls_valueset-key = '1234'.
      ls_valueset-value = '1234test'.
      APPEND ls_valueset TO lt_valueset.
      ls_valueset-key = '1235'.
      ls_valueset-value = '1235test'.
      APPEND ls_valueset TO lt_valueset.
      ls_valueset-key = '1264'.
      ls_valueset-value = '1236test'.
      APPEND ls_valueset TO lt_valueset.
      CALL METHOD wd_this->lo_select->add_selection_field
        EXPORTING
          i_id = 'CAND_ID'
      it_result                    = lt_range_table
          i_as_dropdown                = abap_true
          it_value_set                 = lt_valueset
    *      i_read_only                  = ABAP_FALSE
    *      i_dont_care_value            =
    *      i_explanation                =
    *      i_tooltip                    =
    Regards,
    madhu

  • Date format is not working properly for Calender value help

    Hi Experts,
    We have two problems.
    1. We want to change the format of date displayed. We want format of dd-MMM-yy. For that we have created one Simple
    Type Dictionary Object with Displaying format dd-MMM-yy. It is working
    fine for the non editable UI. But once I apply the dictionary type
    object as data type for an input field, probem happens. Once the user
    choose a date from calender value help the value in the input field is
    coming like 01-011-12 not like 01-Jan-12.
    The date format is not changing from the calender. But if we set the
    display format of the dictionary object to MM-dd-yy or MM/dd/yy or
    dd/MM/yy or dd-MM-yy the format conversion from calender to input field
    is happening properly.
    The only problem once we put MMM in place of MM for the input field
    where user is selecting from a calender value help.
    2. We want to restrict users from entering the value manually for date input field. The user
    should be able only to enter value by selecting from calender value
    help.
    Please give suitable solution for these problems
    Thanks
    Shankha

    Hi Sankha,
    Please refer the links below:
    http://scn.sap.com/thread/1659463
    http://scn.sap.com/thread/1533443
    Regards,
    Manoj

  • Some fields from R/3 have automatic value help for input field on WD

    Hello,
    we have imported a Model from RFC/JCo (ABAP) with several fields. One of them is "IWAER" of SimpleType Iwaer and "Built-In-Type" string in J2EE. Though the enumeration of this type is empty, WebDynpro mystically generates a value help if the type is assignet to an ImputField. On the ABAP-side component type is IWAER with data type CUKY and in domain WAERS which has a value table TCURC (instead of fixed values in a value range).
    Where/why does WD find out that this is a currency-field and where do the values in the value selector come from?
    Best regards,
    Manuel

    Hi,
    at least for the ModelData-Connection (BAPI-Call) there is no data being transferred besides one value for each field.
    I don't know if the MetaData-Connection of JCo is able to get more information (e.g. key-value-pairs for the domain or type the field belongs to,..) than just the structure of the interface.
    -> Where and how do these EVS-values come from without doing something?
    Best regards,
    Manuel

  • Visual Composer 7.0.1 (EHP1) - Value Help only shows "Single Selection"

    I tried to add a value help to a field that allows multiple selections. However, when I used the wizard through "Add Value Help" drop-down menu, I can only see one proposed selection -  "Single selection". However this SAP help document (http://help.sap.com/saphelp_nw70/helpdata/en/b5/036d391f074f769e00602634ee9960/content.htm) mentioned about the "Multiple selection" option. What I can do to make this selection available?
    I am using VC 7.0.1 (EHP1). Thanks for any helps in advance.
    Kelly

    Hi
    Are you using 'BI Query' as 'data Service'? & are you creating value help for variable? If Yes -
    Create necessary variable as 'Multiple Single Options' in your BEx query & then create value help in VC. Then it will allow multiple options or interval values.
    Regards
    Sandeep

  • Value help dropdown list not showing up other values

    Dear all,
    I'm new to Adobe and Java WD. I managed to go through all the tutorials and developed a WDJ and embedded an interactive form in the view. I also used an RFC Model to pull some values from n R/3 table and populate in a context node element.
    These values are appearing perfectly fine in the WDJ if I'm using a table or a drop down list index field.
    But in the Adobe form, when i bind this context node to a WebDynpro native Value help drop down list box, only the first value of the table appears. On clicking on it, nothing happens. I'm not sure what is the problem.
    Can anyone please help me in this? Should i write some code to bring the other values too? (the tutorial doesn't say this!)
    If so, then please give some sample java codings and step by step process for populating the field values with the table values.
    My node structure is like below
    Context
         Ysam_Get_Values_Input(Node-RFC)
              Output (Node-RFC O/P)
                   Values(Node-table from the RFC)
                       Slno (attribute that has the values to be populated with)
    Any help is greatly appreciated.
    Thanks,
    Sam

    Hi Raja,
    In the view:
    <htmlb:gridLayoutCell id                  = "AddedProfileNameIF"
                                        columnIndex         = "2"
                                        rowIndex            = "2"
                                        horizontalAlignment = "LEFT"
                                        verticalAlignment   = "MIDDLE" >
                    <htmlb:dropdownListBox id         = "added_profile1"
                                           helpValues = "//model/ust10st.profn"
                                          />
                  </htmlb:gridLayoutCell>
    In the Model:
    method MODEL_INIT .
    select profn from ust10s into  table UST10ss.
    read table UST10ss index 1 into UST10st.
    endmethod.
    In controller:
    METHOD do_init .
      m_model ?= create_model( model_id = 'm'
                               class_name = 'zcl_model_zsox1' ).
    m_model->model_init( ).
    ENDMETHOD.

  • How to set a default value in a Value Help Drop Down List

    Hi,
    I used an age Range field in my adobe form, the control  is a Value Help Drop Down List. i am populating the drop down using following code.
    IWDAttributeInfo ageInfo = wdContext.nodePersonalData().getNodeInfo().getAttribute("CTAgeRange");
         ISimpleTypeModifiable ageType = ageInfo.getModifiableSimpleType();     
         IModifiableSimpleValueSet ageValueSet =  ageType.getSVServices().getModifiableSimpleValueSet();
         ageValueSet.put("1","21-29");
         ageValueSet.put("2","30-34");
         ageValueSet.put("3","35 or Above");
    My requirement is to set a default value e.g. 30-34 in the age range field.
    I want to give input to iform from my Implementation code only.
    Please help.
    Thanks in advance

    hi Ranjan,
    that means you have to set at design time,
    to set default drop down value you will have to set the value for particular attribute (which is linked to the dropdown element) in the context
    like
    wdContext.currentContext<nodeName>Element.set<FieldName>(<default value>)
    This generally done in Initialization method of the controller.

  • How to implement multiple Value Helps within the same Application ??

    Dear Experts,
    I want to implement multiple value helps in the same view.For that I have declared exporting parameters of type 'wdy_key_value_table.' within the component controller for each of the value helps.While I do activate and test the application I get the following error :
    The following error text was processed in the system HE6 : A row with the same key already exists.
    The error occurred on the application server hsdnt24s11_HE6_00 and in the work process 4 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: VALUESET_BSART of program /1BCWDY/9VSHJWRNR0EZPKFT3ZKC==CP
    Method: IF_PO_VIEW1~VALUESET_BSART of program /1BCWDY/9VSHJWRNR0EZPKFT3ZKC==CP
    Method: WDDOINIT of program /1BCWDY/9VSHJWRNR0EZPKFT3ZKC==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_DO_INIT of program /1BCWDY/9VSHJWRNR0EZPKFT3ZKC==CP
    Method: DO_INIT of program CL_WDR_DELEGATING_VIEW========CP
    Method: INIT_CONTROLLER of program CL_WDR_CONTROLLER=============CP
    Method: INIT_CONTROLLER of program CL_WDR_VIEW===================CP
    Method: INIT of program CL_WDR_CONTROLLER=============CP
    Method: GET_VIEW of program CL_WDR_VIEW_MANAGER===========CP
    Method: BIND_ROOT of program CL_WDR_VIEW_MANAGER===========CP
    I dont know how to implement multiple value helps.Need your help on this.
    Regards,
    Mamai.

    Hi
    Hint is : A row with the same key already exists it means , It is assigning the same value/Key to row and you are calling it at WDDOINIT  so it giving error at the time of initialization .
    Better way to do the coding at some event in view OR if not possible than just execute the first value help in wddoinit later clear all the value before gettig the other Value help. Code it at WdDoModify View to get its run time behaviour.
    BR
    Satish Kumar

  • Variables/Input Parameters Value help not showing texts

    Hello,
    I have created a crystal report based on a calculation view in Crystal Reports for Enterprise 4.1 SP5, which has a input parameter on the field "Region". For the value help, I am using a custom view based on T005U in which I have made sure that RegionName field is present in the "Label Column" property of the Region field.(Required for viewing descriptions of LOVs).
    In the crystal report, while previewing data in the query builder, I am able to see the value help for the input parameter in the prompt screen, which displays only the key part, but does not display the description of it. Moreover, after accepting the prompt value, the preview runs into an error(as shown below). Please note that I get the error below only when Region is a part of the output fields of the query.
    Instead of input parameter, when I create a variable on the region field in the main calculation view, with the same value help view, I am able to do data preview in the query builder as also data appears in the report on running the query. But, just as in the case of input parameter value help in the prompt screen, even over here, I am only able to see the key part and not the description.
    Are variables/input parameter LOV's supposed to display descriptions or just the key part? As also, any reason why I should be getting this error while using Input parameter?
    Kindly let me know if I am missing something in the development of this report.
    Regards,
    Alston

    Hi,
              I hope you are taking the BEx Query as a source to the crystal report. In the BEx query check region info object  should is maintained as  Text and Key. If text is not maintained over there you will not be getting text in Crystal reports.
    Krishna.

  • Want to read Field value set by Value help

    Hello,
    I have BSP View which is using Value help extensions for one of the input. The search help is based on the Elementary Search Help which is further based on Z-Table. In my BSP view [IE] I am able to popup the Search help and able to select the Value from list of choice. The selected value gets reflected in the Input field of browser. The problem is I am not able to capture the selected value in Event handler. I need to capture this value and get the related data in other input fields [which are display only]. How to do this?
    I even tried getting the value in the Javascript, but unable to assign the Javascript variable to my BSP View attribute or Controller attribute.
    Thanks in advance.

    >Do I have to trap it in DO_HANDLE_Event by doing Get_Form_Fields??
    If you are using MVC and data binding you don't have to do anything.  The field values will be brought in automatically for you.
    However in any MVC application, the highest level controller should always contain a small block of code in the redefinition of the DO_REQUEST method.  It is:
    if input is available, dispatch this input to subcomponent.
    * this call is only necessary for toplevel controllers.
    * ( if this is not a toplevel controller or no input is present,
    *   this call returns without any action)
      dispatch_input( ).
    * if any of the controllers has requested a navigation,
    * do not try to display, but leave current processing
      IF is_navigation_requested( ) IS NOT INITIAL.
        RETURN.
      ENDIF.
    This code is critical for properly dispatching events through the controllers.  It is also the code that triggers the MVC runtime to restore input values into the model.
    Also to eliminate the possibility with a problem in the implementation of the value help, why don't you temporarily switch out this element with just a plain htmlb:inputField.  This way you test to make sure that data binding works correctly with the standard field.

  • Java Script Error while deploying a Model with Value Help

    Hi,
    I am using EP 7.0 SP 10.
    I am trying to deploy a model which includes the Value Help for an Input field, and i am trying to deploy this model.
    The model compiles successfully, but gives a Java Script Error while deploying the model,
    ! Error on Page
    When Click on this java script error, it shows that ,
    Line:14985
    Char 1: Error
    object does n't support this property or method.
    code
    URL: <serverhost>/VCRes/WebContent/VisualComposer6.0/bin/223334.htm?24102006.1712.
    The Same model works in dev server, and it fails in the production server.
    Thanks and Regards,
    Sekar

    Hi jakob,
    Thankyou for your quick response.
    I did a basic model with the help of a documentation which i got from this forums.I created a iView and from there i used Bapi "BAPI_SALESORDER ".
    I created a Input Form and a outpot form (table view).I tested model and am able to get the output.but when i try to deploy it is giving me the error.
    And i think am not paring any formulas here.
    Please guide me.
    thanks and regrads
    Pradeep.B

Maybe you are looking for

  • How do i unlock the ipod controls on itunes?

    How do i unlock the ipod so can delete songs that r on my ipos without auto update???

  • Lenovo Launcher v3.2 Update (but in chinese language)

    Hi there, Just want to share what I've found There is an update of lenovo launcher that can be found in here http://launcher.lenovo.com/launcher/portal.php But there are problems It is not good for persons who don't understand Chinese like me The sit

  • Why not use work records in IB messages?

    Adding a derived / work record to a message now (tools 8.50) displays the following warning: Warning - Record TPT_EXP_HDR_WRK is a work record. (158,2758) The message then displays a "Structure references work records. (158,2759)" warning, for which

  • SAP MDM7.1 Change Management CTS+ Queries

    Hi. I have few doubts on  Change management CTS+ , Kindly please suggest! 1) Is it based on ABAP Stack / or do we need ABAP System for this ? 2) How transport can be handled ? from PI to MDM system? 3) What can we transport ? is it everything or some

  • Logic platinum upgrade help

    i purchased logic plat/ space des/ snd diver a few years ago as a crossgrade, i would like to upgrade to pro 8, but no one at apple seems to know how i handle the crossgrade part... noththig is registered at this point.. ive been touring or out of co