How to read value of OVS Input field on pressinf of F4

In my case I have to read value from context node as I am skipping the phase 1 of  on OVS PHASE MODEL
but not sure how to read the value from context element
METHOD on_ovs .
  DATA: lo_nd TYPE REF TO if_wd_context_node,
        lo_el TYPE REF TO if_wd_context_element,
        lo_el_parent TYPE REF TO if_wd_context_element.
  lo_el = wdevent->get_context_element( name = 'OVS_CONTEXT_ELEMENT' ).
  lo_el_parent = lo_el->get_node( )->get_parent_element( ).
  DATA: criteria TYPE string.
  DATA text TYPE string.
  lo_el->get_attribute( EXPORTING name = 'ATTR_TEXT' IMPORTING value = text ).
  DATA: ls_search_input  TYPE cl_grac_feeder_role_search=>lty_stru_input,
        lt_select_list   TYPE STANDARD TABLE OF cl_grac_feeder_role_search=>lty_stru_list,
        ls_text          TYPE wdr_name_value,
        lt_label_texts   TYPE wdr_name_value_list,
        lt_column_texts  TYPE wdr_name_value_list,
        lv_window_title  TYPE string,
        lv_table_header  TYPE string.
  FIELD-SYMBOLS: <ls_query_params> TYPE cl_grac_feeder_role_search=>lty_stru_input,
                 <ls_selection>    TYPE cl_grac_feeder_role_search=>lty_stru_list.
  CASE ovs_callback_object->phase_indicator.
    WHEN if_wd_ovs=>co_phase_0.  "configuration phase, may be omitted
  in this phase you have the possibility to define the texts,
  if you do not want to use the defaults (DDIC-texts)
     lt_label_texts =  wd_this->get_ovs_label_texts( criteria ).
     lt_column_texts = wd_this->get_ovs_column_texts( criteria ).
     lv_window_title = wd_this->get_ovs_window_title( criteria ).
     lv_table_header = wd_this->get_ovs_table_header( criteria ).
     lv_window_title = wd_assist->get_text( `003` ).
     lv_table_header = wd_assist->get_text( `004` ).
      CASE text.
        WHEN 'SYSTEM'.
          ls_text-name = `CONNECTORID`.
          ls_text-value = `System`.
          INSERT ls_text INTO TABLE lt_label_texts.
          lv_window_title = ls_text-value.
          lv_table_header = ls_text-value.
          lt_column_texts = lt_label_texts.
        when 'PERMISSION' .
          return.
        when 'ACTION'.
          RETURN.
      ENDCASE.
      ovs_callback_object->set_configuration(
                label_texts  = lt_label_texts
                column_texts = lt_column_texts
                window_title = lv_window_title
                table_header = lv_table_header ).
    WHEN if_wd_ovs=>co_phase_1.  "set search structure and defaults
  In this phase you can set the structure and default values
  of the search structure. If this phase is omitted, the search
  fields will not be displayed, but the selection table is
  displayed directly.
  Read values of the original context (not necessary, but you
  may set these as the defaults). A reference to the context
  element is available in the callback object.
     ovs_callback_object->context_element->get_static_attributes(
         IMPORTING static_attributes = ls_search_input ).
    pass the values to the OVS component
     ovs_callback_object->set_input_structure(
         input = ls_search_input ).
      CASE text.
        WHEN 'SYSTEM'.
      DATA: l_conn TYPE grac_s_grfncgrpconlk.
          ovs_callback_object->set_input_structure( EXPORTING input = l_conn ).
      ENDCASE.
    WHEN if_wd_ovs=>co_phase_2.
  If phase 1 is implemented, use the field input for the
  selection of the table.
  If phase 1 is omitted, use values from your own context.
     IF ovs_callback_object->query_parameters IS NOT BOUND.
TODO exception handling
     ENDIF.
     ASSIGN ovs_callback_object->query_parameters->*
                             TO <ls_query_params>.
     IF NOT <ls_query_params> IS ASSIGNED.
TODO exception handling
     ENDIF.
    call business logic for a table of possible values
    lt_select_list = ???
     DATA: l_data TYPE grac_t_bproc.
     DATA: ls_data TYPE REF TO data.
     DATA: l_stru TYPE REF TO cl_abap_tabledescr.
     l_stru ?= cl_abap_tabledescr=>describe_by_name( 'GRAC_T_BPROC' ).
     CREATE DATA ls_data TYPE HANDLE l_stru.
     wd_this->get_ovs_selection_list( EXPORTING iv_criteria = criteria IMPORTING rt_list = l_data ).
     "ASSIGN l_data->* to <lt_list>.
     ovs_callback_object->set_output_table( output = l_data ).
      "ovs_callback_object->set_output_table( output = lt_select_list ).
      FIELD-SYMBOLS: <fs_query_params> TYPE cl_grac_feeder_role_search=>lty_stru_input1,
      <fs_selection>    TYPE cl_grac_feeder_role_search=>lty_stru_list.
      DATA lv_connector_grp TYPE grfn_connectorgrp.
      IF ovs_callback_object->query_parameters IS NOT BOUND.
TODO exception handling
      ENDIF.
      ASSIGN ovs_callback_object->query_parameters->*
      TO <fs_query_params>.
      IF NOT <fs_query_params> IS ASSIGNED.
TODO exception handling
      ELSE.
        lv_connector_grp =  <fs_query_params>-field1.
      ENDIF.
     IF lv_connector_grp IS INITIAL.
       lv_connector_grp = '*'.
     ENDIF.
      CASE text.
        WHEN 'SYSTEM'.
          DATA: lt_system_list TYPE grac_t_grfncgrpconlk.
          FIELD-SYMBOLS: <ls_system> LIKE LINE OF lt_system_list.
          cl_grfn_cci_ts_configuration=>get_group_connectors(
            EXPORTING
              iv_connector_grp    = lv_connector_grp
             iv_no_authority_chk = ABAP_FALSE
            IMPORTING
              rt_connectors       = lt_system_list
          ovs_callback_object->set_output_table( output = lt_system_list ).
          WHEN 'ACTION'.
            data lt_action_output TYPE TABLE OF cl_grac_feeder_role_search=>t_action_list.
            ovs_callback_object->set_output_table( output = lt_action_output ).
          WHEN 'PERMISSION'.
            DATA: lt_perm TYPE TABLE OF cl_grac_feeder_role_search=>t_permission_list.
      ovs_callback_object->set_output_table( OUTPUT = lt_perm ).
      ENDCASE.
    WHEN if_wd_ovs=>co_phase_3.
      FIELD-SYMBOLS <system> TYPE grac_s_grfncgrpconlk.
      CASE text.
        WHEN 'SYSTEM'.
          ASSIGN ovs_callback_object->selection->* TO <system>.
          IF <system> IS ASSIGNED.
            ovs_callback_object->context_element->set_attribute(
            name  = 'INPUT1_SYSTEM'
            value = <system>-connector ).
            wd_this->mv_connectorid = <system>-connector.
          ENDIF.
      ENDCASE.
  ENDCASE.
ENDMETHOD.

Hi,
It depends how you are setting your parameter also as there are different types of parameters in portal. The best is to use the page level parameters..
Please read the developers gide Section 8.3 for more details....
The link is :-
http://download-east.oracle.com/docs/cd/B14099_19/portal.1014/b14135/pdg_pdk_plsql.htm#CHDGAHCF
Guneet

Similar Messages

  • How to prepopulate value in webapps input fields or for any custom fields in for any other forms?

    How to prepopulate value in webapps input fields or for any custom fields in for any other forms?

    What do you want to populate the form with?

  • How to read the contents of Input Field created via Screen Painter?

    Hi All,
    I have a module program / dialog program, on my second screen, I created an input/outbox field via screen painter of course,
    now in my PAI, how can I read the contents of the input/outbox field?
    Let's say the name of my input/outbox field is: P_WEKRS.  Note: Get Parameter and Set Parameter is ticked.
    PROCESS AFTER INPUT.
      LOOP WITH CONTROL TC_DATA.
        MODULE MODIFY_DATA.
      ENDLOOP.
    I want to get the value of the input/outbox field before my loop in table control?  I thought that it will work like normal parameter in non-dialog programs.
    Any helpful inputs will be appreciated/rewarded.
    Thanks.
    Jaime

    Hi, Jaime
    Do the following Change in you Follow Logic
    PROCESS AFTER INPUT.
    MODULE read_or_change_value. " Add this
    LOOP WITH CONTROL TC_DATA.
      MODULE MODIFY_DATA.
    ENDLOOP.
    Add the Bellow Module code in you Driver Program.
    MODULE read_or_change_value.
    DATA: P_WEKRS like " the Field on Screen. Must be the same name as on SCREEN. and Type must be same too.
    " Here you will find the Value in that Variable or if you will change the Value here you will find it change on Screen
    END MODULE.
    Please Reply if any Issue..
    Best Regards,
    Faisal

  • How to restrict the user to enter only numeric values in a input field

    How to restrict the user to enter only numeric values in a input field.
    For example,
    i have an input field in that i would like to enter
    only numeric values. no special characters,alphabets .
    reply ASAP

    Hi Venuthurupalli,
    As valery has said once you select the value to be of type integer,once you perform an action it will be validated and error message that non numeric characters are there will be shown. If you want to set additional constraints like max value, min value etc you can use simple types for it.
    On the project structure on left hand side under local dictionary ->datatypes->simple types create a simple type of type integer
    The attribute which you are binding to value property ;make its type as simple type which you made
    Hope this helps you
    Regards
    Rohit

  • Get Value From an input field

    Hi All,
    I am a newbie to ABAP Webdynpro.I would liketo know how should I get the value from an input field at runtime?
    Thanks,Mukta

    By reading the context attribute which bound to inputfield, you can get the value.
    Say you have a node called 'MAIN_NODE' and has the attribute 'INPUT_VALUE', which is bound to the Inputfield.
      DATA LO_ND_MAIN_NODE TYPE REF TO IF_WD_CONTEXT_NODE.
      DATA LO_EL_MAIN_NODE TYPE REF TO IF_WD_CONTEXT_ELEMENT.
      DATA LS_MAIN_NODE TYPE WD_THIS->ELEMENT_MAIN_NODE.
      DATA LV_INP_VALUE LIKE LS_MAIN_NODE-INP_VALUE.
    * navigate from <CONTEXT> to <MAIN_NODE> via lead selection
      LO_ND_MAIN_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = 'MAIN_NODE' ).
    * get element via lead selection
      LO_EL_MAIN_NODE = LO_ND_MAIN_NODE->GET_ELEMENT(  ).
    * get single attribute
      LO_EL_MAIN_NODE->GET_ATTRIBUTE(
        EXPORTING
          NAME =  `INPUT_VALUE`
        IMPORTING
          VALUE = LV_INP_VALUE ).  "LV_INP_VALUE will have the value of inputfield
    Raja T
    Message was edited by:
            Raja Thangamani

  • How to do ICON_EXPAND and ICON_COLLAPSE input fields in module pool screen?

    hi frnds.
    My problem is in module pool screen how to do ICON_EXPAND and ICON_COLLAPSE input fields in module pool screen?And how to do GUI STATUS and GUI TITLE? IN SE80.
      ITS URGENT.POINTS WILL BE REWADED.THANKS  IN ADVANCE.

    Hi,
    Go through this thread.
    [expand and collapse|expand and collapse]
    Cheers,
    Simha.

  • How to populate values for a new field in target infoprovider

    Hi Experts,
    am new to BI. i would like to know on how to populate values for a new field in the target cube with start rotuine.In my case,  i have a source infoprovider, which has 3 fields and a target infoprovider, which has 5 fields. i need to populate the new 2 fields in start routine. i dont want to populate using Field routine and am using 3.5 version. please assist with code on how to solve this issue.
    Thank you,
    Chitra.
    Edited by: Chitra_BI on Jun 13, 2011 10:23 AM

    Debug the standard code and see where the other fields are getting update. you can use the similar approach and area to code for the new field.
    Regards,
    Lalit Mohan Gupta.

  • Default Value in Numeric Input Field in Visual Composer Application

    Hi All,
    I have developed a visual composer application which has a numeric input field for Hours.
    It is mapped to a backend module.
    We are using portal 7.31
    The problem is that the deafult value of this input field is "0", but the rquirement is to display as "0.0"
    The functionality has been tested with input values in decimals and works fine. The problem is when the screen first populates, that field should show "0.0" .
    Please advise.
    Thanks

    Hi Soumya Chanda,
    I don't know of an agreeable way around it. You could have a textual input, but then it doesn't have the numeric control behavior, plus you need to handle incorrect typing (alphanumeric notes).
    Sorry!

  • Mixing Html/JSP - Is it possible to retain value in "file" input field?

    I have a jsp page with the following snippet:
    <% String text1 = (String)session.getAttribute("text1");
    if(text1 == null) {
    text1 = " "; }
    //get more attributes here
    %>
    <form name="file" action="checkFields_images.jsp" method="post" enctype="multipart/form-data">
    <input type="text" size="15" name="text1" value="<% =text1 %>"><br>
    <input type="file" name="image1" />
    <br>
    <input type="text" size="15" name="text2">
    <br>
    <input type="submit" name="submit" value="submit">
    </form>
    ...upon submission, it will go to a jsp that will check the fields for blanks or errors. If there are errors, the page will forward the user BACK to the original page, and each field that had an entry will be displayed with what the user had entered.
    The way my code operates is when the user hits the submit button, the jsp page that checks the fields is also setting the values submitted in session attributes. Those of you familiar with JSP code will know what I mean.
    That way when the page is redisplayed the "value" attributes of each <input> field will be set to what the user entered by way of such:
    <input type="text" name="text1" value="<%=text1%>">
    where <%=text1%> is a java variable set to the session attribute value for this <input> field.
    Now I know that the <input type="file> field has a value attribute, but I don't believe it is something that can be set. So how do I workaround this? I just want the field to display the file name the user had selected. I've worked with mixing JavaScript and Java code, but there are certain things you can and can't do, and I'm coming up with any "can do's" for this one.
    Any suggestions are appreciated
    Thank You,
    Love2Java

    You are absolutely correct.
    For security reasons, you can't specify a value for the input type="file".
    Here is one suggestion, of how I would see it work in a perfect world.
    - The file is uploaded and retained on the server
    - You send back a page without an input type="file"
    - The user fixes whatever fields they got wrong and submits again
    - The server picks up the correct fields, along with the file sent with the "bad" request, and then continues as normal.
    In this way, you only have to upload the file once.
    Instead of regenerating the <input type="file">, it would generate something like "File already uploaded. Correct other fields"
    pros:
    - Don't have to worry about repopulating the input type="file"
    - user only uploads the file once
    cons:
    - if the user wants to change the file? Maybe another link?
    - must retain file on server somewhere, and find it later.
    I didn't say it was easy, but it seems the most sensible approach to me.
    Cheers,
    evnafets

  • How to create value request for screen field text box tt1

    How to create value request for screen field text box tt1
    i have a text box name tt1,
    i want f4 help for that .
    remember i am asking for screen i.e done from screen layout not selectio-screen.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla,

    Hi,
    Create one Search Help in the SE11 for the particular Field that u want to display. In the Screen(Transaction SE51),For that Text Box in the Attributes,in Dict Tab ->Search Help Field give that Search Help Name.
    For Eg,
    If u want Purchase Order Numbers in that F4 Help.Create one <b>Search Help</b> by giving Table Name as <b>EKKO</b> & <b>Search Help Parameter</b> as <b>EBELN</b> with Lpos & Rpos as 0 & 1.Save & Activate it.
    Give this Search Help Name in Dict Tab ->Search Help Field of that Screen Attributes.
    Regards,
    Padmam.

  • How to restrict the length of input field

    Hi,
    How to restrict the length of input field. That is we should not be able to enter more thatn 10 charecters.
    Regards,
    H.V.Swathi

    Hi swathi,
    For this you have to create a simple data type. No need of writing a code.
    Go to Dictionaries -> Local Dictionary -> Data Type - > Simple Type - > Right click and "Create Simple Type".
    Here you should create a Simple type with String as built-in Type. Here you will also see the Length Constraints option.
    Set the value of maximum length and minimum length. In your case set the value of maximum length to 10. At runtime this will not allow the user to enter more than 10 characters.
    Now create an attribute and bind it to this newly created simple type. Bind the value of the input field with this particular attribute.
    Regards
    Manohar

  • Capture value from the input field

    Hello All,
            I'm new to BSP.
    I have a small querry.
    I have a input field.
    beside this a push button.
    if i enter a value in the input field and press the push button, i need to capture the value from the input field and pass it to a variable contained in a class.
    i'm attaching the layout code here.
    but i'm not knowing what to write in the event(on input processing)
    <u><b>Layout code &#61664;</b></u>
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title        = "Page to take the value from the screen and pass to the class "
                  marginBottom = "100"
                  marginLeft   = "250"
                  marginRight  = "100"
                  marginTop    = "100"
                  scrolling    = " AUTO" >
        <htmlb:form>
          <htmlb:tray id        = "tray1"
                      hasMargin = "TRUE"
                      title     = "Value Capture"
                      width     = "350" >
            <htmlb:textView text      = "Enter a value"
                            design    = "emphasized"
                            textColor = "negative" >
            </htmlb:textView>
            <br>
            <htmlb:inputField alignment = "left"
                              id        = "gv_var"
                              required  = "true"
                              type      = "STRING"
                              design    = "standard" />
            <htmlb:button design  = "emphasized"
                          id      = "button"
                          text    = "SUBMIT"
                          onClick = "btn_click" />
            </br>
          </htmlb:tray>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    eventhandler&#61664;on input processing code
    DATA: event TYPE REF TO if_htmlb_data.
    event = CL_HTMLB_MANAGER=>get_event_ex( request ).
    IF event->EVENT_NAME = 'button' AND event->EVENT_TYPE = 'click'.
        ENDIF.

    HI BSPian,
        htmlb:inputField value = "<%= v_value %>"
                         id = "gv_var"
                         required = "true"
                         size = "10"
                         type = "STRING"
                         maxlength = "10"
                         design = "standard" />
    Here u mean to say that v_value must be one more field type string. is it so ?
    But i want to see the value in the same input field
    id ="gv_var". i.e if i enter the value "BSPian" in the input field and press "submit" the internal processing will be done as told by u and after that ,on the screen i want to keep that value till i end that session.
    i passed a variable v_value in the inputfield value but it's not working ..
    regards,
    deepu.

  • How to  adjust the text in input field

    Hi Expert,
    New in VC development. Can someone guide how to adjust the text in input field? Because of  long text length it  is not displaying fully in visual composer iView so user are not able to see the entire text in input fields

    HI Kundan,
    I assume that you have already tried different options perent in Label Postion for the field.
    If none of these options meet your requirement then you can try the following workaround:
    In the display properties, select label position as no label.
    In the form view add a new UI Control for Plain Text or HTML text and change its Label to "Material Number".
    Now place this new UI Control in before your actual Input field such that it appears as the field label.
    Hope this helps.
    Regards,
    Rk

  • How to read values from DMM4040

    Hi,
       I am using DMM4040, NI PXI 6509 device.
    I need to make some port pins high which i have already done and now i have to read value captured by DMM then i have to make my port pins low if my value is within limits.
    Can u suggest me how to read values from DMM and then by notification i ll make my port pins low.
    '' A professional is someone who can do his best work when he doesn't feel like it''...........

    What language are you using?  If using LabVIEW, you use the NI-DMM API to communicate with the 4040.  Just take your reading, do your limit comparison, and set your lines based on the comparison results.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to display a value in an input field in webdynpro

    I want to get a value already shown in a particular input field
    i.e., have to fetch data to that input field as we enter that screen.
    how can we do that?
    kindly reply if anyone knows.
    Thanks and regards
    suju

    Hi,
    First of all u have to declare one variable in the prog. with the name of the i/o box u have given in the screen.
    Now in the PBO of the screen call one module.
    and in that module write the code like,
    if your i/p field name is INPUT_F then
    MODULE assign OUTPUT.
      INPUT_F = 'XYZ'.
    ENDMODULE. 
    Here u can assign the value by fatching through the DB also.
    I think this will help u.
    thanks

Maybe you are looking for

  • Any ideas for software to allow client insertion of photos/text

    My client is looking for cost savings by asking his employees to do their own brochures using the design that I have created as the template. Employees have no InDesign etc experience. This must be super simple. Can anyone point me toward a software

  • Reinstalling Xcode

    I have Xcode 3.2.3 currently installed on my Mac. Its somewhat buggy so I decided to update it to v. 3.2.5. But what is the correct procedure to remove v.3.2.3? Clearly moving its icon to the trash doesn't do it.

  • Could anyone explain this to me

    I don`t understand the two code that have bolded and how come he need to subtract ten . Could anyone rewrite this two code in more easier way. import java.io.FileReader; import java.io.BufferedReader; import java.io.*; import java.lang.*; public clas

  • Compare transmission speed between thunderbolt gigabit and usb ethernet adapters

    As the new MBA has an accessory (Thunderbolt ethernet adapter), will its transmission speed be significantly faster than using an old USB ethernet adapter in one of the new MBA's USB ports?

  • Timestamp as simple long

    This should be an easy one. I would like to obtain a timestamp in simple long format. The timestamp to seconds gives me this in some weird format that I can't cast to a long. How can I convert it to this basic format? Solved! Go to Solution.