WDA: OVS dynamically

Hello,
I have a need to create F4 help for dynamically created input field.
I created component usage by name OVS.
When I dynamically create an input field I have to also create a context attribute. Than bind this context attribute to my input field.
The trick is when I create a context attribute I have to set some of its params so value help become available.
Here is what I do:
DATA: attribute TYPE wdr_context_attribute_info.
DATA: main_node TYPE REF TO if_wd_context_node_info.
main_node = wd_context->get_node_info( ).
"set name for the attribute
attribute-name = 'MY_NAME'.
"set data type for this attribute
attribute-type_name = 'some data type'.
"define F4 help
attribute-value_help_id = 'OVS'.
"add attribute into context node
main_node->add_attribute( attribute_info = attribute ).
For some reason this code does not produce clicable button right next to input field.
If instead of OVS I put OVR it does produce it but when I click on it it throws an erro message saying that component usage is not defined.
Why is my OVS not seen?
Thank you.
Regards,
Georgy

Hello Georgy,
I have a similar requirement wherein I have to provide the F4 help for a dynamically created attributes. but it's for an ALV table. Iam getting everthing. The problem with me is I have to get the context element i.e the entire row where Iam clicking.
In OVS  method there is an option
elem_ovs = ovs_callback_object->context_element.
elem_ovs->get_static_attributes(
    IMPORTING
     static_attributes = STRUC_OVS ).
This STRUC_OVS should be the structure of dynamically created node and attributes.
I would not know my strucure since I had created dynamically.
what should I give in place of STRUC_OVS to get the context element.
Please Suggest.
Thank You,
Suresh.

Similar Messages

  • Wda How dynamic the show or hide the window

    Hello
    wda How dynamic the show and hide the window.
    thank you

    Hi Sarah,
    For any webdynpro queries , post it under Application server->Webdybnpro-ABAP OR JAVA forum.
    You can hide the entire group by binding a attribute to the visible property of the group.
    if lv_i_text is initial.
    * to set GROUP hidden
          lo_el_context->set_attribute(
            name =  `VIS_GRP`    " Attribute name in the context binded to visible property of the group.
            value =  'X' ).
    endif.
    I hope it solves your problem.
    Regards,
    Kiruba

  • How to pass the selected Pernr from Portal to WDA iview dynamically ?

    Hi ,
    How we can pass the selected Pernr from portal page to the webdynpro application dynamically?
    Ex:
    If a manager select a employee id of an employee then it should display all the related document regarding the employee in the ivew.
    For that we need to pass the employee id(Pernr) to the iview.How it is possible.
    Thanks,
    Deepika

    Hi Deepika,
    Try using portal events. You will have to register and handle the required portal event in your WDA application.
    [Portal Events Help|http://help.sap.com/saphelp_nw70/helpdata/EN/03/0048413e466e24e10000000a155106/frameset.htm]
    In this link, navigate to Integration->portal integration->Portal Events.
    Also go through some sample applications:
    WDR_TEST_PORTAL_EVENT
    Regards,
    Reema.

  • Passing values to custom OVS dynamically

    Hi,
    I am trying to select the Address from a list of addresses available for an Account while creating Visit for that account.
    In Visit QC, I populate the Account field using the standard Account OVS. After this, I want to show the list of Addresses available for this selected account in my custom Address OVS.
    Currently I have configured my OVS to Customer XBO. In this, I am passing Account ID as the parameter to the query and I am displaying the Account ID and the Addresses for that account.
    But this OVS displays all the Account IDs and only 1 address for all the available Accounts.
    As can be seen from the below screenshot, I have selected Account= ‘Lowes’ in Visit QC. But when I click on Addresses OVS, it displays me entire list of Accounts.
    Is there a way in which I can dynamically pass the Account ID of the account selected in the Visit QC to my custom OVS? I also need to display all the Addresses available for this AccountID.
    Please suggest how this can be achieved.
    Thanks,
    Ambuja

    Hi,
    By Custom OVS what I mean is, I have created an OVS based on standard Customer object. I am not using the public OVS. I have not defined any Custom BO. Do I need to define a custom BO for this?
    I am using Customer XBO to show the list of Addresses as shown in below screenshot.
    ValueHelpQuery is bound to InternalID of Customer.
    I have not configured any Inport or Outport. Actually I am implementing the OVS for the first time. Could you please guide me on what needs to be configured in the Inport. I referred the PDF documentation for configuring OVS but did not find much info on configuring Inport and other event hanldlers.
    Thanks,
    Ambuja

  • How to get the link of the WDA application dynamically

    Hi,
       I have created one web dynpro application. when it is saved the approver get a work item in his inbox.The work item should have the link to the web dynpro application.So that when the user clicks the link,He should able to view the web dynpro screen.
       My question is how to get the link of the web dynpro application dynamicaly . I want to know whether it is stored in any DB tables or is there any function modules to call the web dynpro application ?
    Regards,
    Charumathi.B

    Hi,
    use
    cl_wd_utilities=>construct_wd_url(
    EXPORTING  application_name = <name_of_your_application>
    IMPORTING  out_absolute_url = lv_url.
    Best Regards,
    Anika

  • Dynamically applying OVS on input field

    Hi,
    I have table with drop DropDownByKey UI element in one column. In all the other columns i have input field. Now based on the value of the DropDownByKey i have to apply the OVS on the input fields of the table column.
    Now my question is how can i apply the OVS dynamically.
    I can not change the properties of attributes, so want to change them dynamically.
    Thanks,
    Reeha Verma.

    Hi,
    You can check the value of context attribute binded to dropdown(KEY) and accordingly formulate the Input structure and output table.
    It seems that you have to do the data declecration in advance for all the possible values of dropdown.
    If you want to avoid the data decleration in advance then i think you have to dynamically create the context node and attribute to acheive the functionality.
    If you have limited values in DropDown then i think you can go with data decleration otherwise please try out with Dynamic context programming.
    Thanks,
    Rahul

  • Dynamic element binding between XML based PDF form and WDA context

    Hi Experts,
    I am working on a XML based interactive form.There is a table node in the XML interface which generated by WDA context, and binding on a subform in the PDF form.
    I tried to add instances to the subform using javascript. Unfortunately, I can not get the internal table in WDA.
    If I initialize the table to 10 lines in WDA , and then add 5 line to it in PDF, when I submit the PDF, I can only get 10 lines in the WDA framework. It seems that the element which is create dynamically can not be past to the interface.
    Could you tell me why? And is there any other better solution? I just want build a table in PDF form in runtime and pass it to WDA context.
    Thanks a lot!
    Best Regards,
    Guo Guo Qing

    Hi Thomas,
    Thank you for your reply.
    I think the performance will be a problem if I create the elment in WDA using submit event. I need to create hundreds of record dynamically. I must find some way to reduce the communication between the WDA and PDF form. Maybe I can set a container with a number of elements before the PDF output. Do you have some better ideas?
    Best Regards,
    Guo Guo Qing

  • Dynamically passing input to the OVS field??

    Hi Experts,
    I have Two custom BO's, CBO1 and CBO2. For custom BO CBO2 i have created a OVS with exposing few fields in the OVSValueSelectorInport.
    This OVS i am using in CBO1 .
    But i have a requirement where i need to pass the value to the exposed fields dynamically.
    Example : i have a common field called X in the both the BO's.
    When the CBO1 status field value is OPEN, i need to set the  CBO1 - X field value  to the CBO2 OVS Search parameters.
    When the CBO2 status field value is COMPLETED , I don't need to pass any value to the CBO2 OVS search parameters( In this OVS also i have X field?).
    i feel , Here i need two configurations of the OVS to acheive my requirement.!!
    Is there any way to create multiple configurations for OVS in C4C??
    When i am assigning OVS Component to the CBO2 field in the UI designer , If i bind the exposed X field value with the CBO2 field value , then in the both OPEN and COMPLETED Status of CBO2 it will filter the result and will show to me, but this is not what i want.??
    Can any one please share an idea??
    Thanks,
    Mani

    Hi Vinod,
    Thanks for the reply..!
    Its not triggering my event handler script and not taking the assigned values form the Script. I have tried in different ways to assign values to it.
    So i found one more work around, I have created a transient fields in my BO and in the after modify script file i am assigning the values to these transient field. Here i can differentiate the status and can fill the field values . the same transient field, I am using in OVS Import fields binding..
    Now its working as per my requirement..
    Cheers,
    Mani

  • OVS in WDA  is not Advisable by SAP ?

    Hi All,
    Can anyone clarify me that OVS is not Advisable in WDA Applications  by SAP  is that True? In that case what is the alternative for Search  Help?
    Or Still we can Use OVS in WDA applications..
    Thanks,
    Raju.

    Hi Raju,
    in Web Dynpro ABAP you are completely free to use any sort of input help you want.
    Several types of predefined input help exist, and OVS is an integral part of the Web Dynpro progamming model. It's just often the easiest way to use the ABAP dictionary search help, but OVS is also possible, of course, without limitations. Just as a recommendation, you can use the OVS input help if it is not possible to use the ABAP Dictionary for the search, for example, if the value set is not to be defined in the Web Dynpro application.
    Regards, Heidi

  • WDA dynamic navigation

    Hello everyone
    I am currently creating a componet for displaying detailed information for diffentent plants.
    On the leftside i have an ALV-List of different plants and right an Info-Component displaying detailed information for the selected plant. The Info-Component contains a Tab-Strip which is dynamicly created in dependence of the selected plant.
    I have many different Info-Item-Components (basic_data, measurements, packing_details, addition_notes, etc.) which all implement the same Interface (all of them are Info_Items) and a customizing that defines which of these components are relevant for a specific plant.
    If a plant is selected, my Info-Component determines the relevant Info-Item-Components for the plant, creates component usages for the Info-Item-Components and creates a Tab with a view-Container for each ComponentUsage. If there are no InfoItems defined for a Plant a default Tab ist displayed.
    Examle:
    Plant A selected -> Tab_Strip with 2 Tabs which contain the components (basic_data and measurements);
    Plant B selected -> Tab Strip shows only one Tab (packingdetails)
    Plant C selected -> Tab_Strip with 4 Tabs which contain the components (basic_data, measurements,  packing_details, ...)
    My problem is the following:
    The Interfacecontroller of my Info-Component has a method init_for_plan, in which i determine all relevant InfoItems for the plant and create the component usages.
    The WDDOMODYFIEVIEW-Method of the only view (V_MAIN) creates the corresponding tabs and view_container of the tabstrip and prepares the dynamic navigation links to the embedded components.
    But I can't navigate along the created navigation links in the WDDOMODYFIYVIEW (Link: [WDA Phasemodel|http://help.sap.com/saphelp_nwpi71/helpdata/de/49/b8c706c7c26d7ce10000000a421937/content.htm]) and i can't do the navigation in the Componentcontroller because there i can't get a to the necessary controller; also navigation after WDDOMODYFIYVIEW is not possible, is it?(WDDOPOSTPROCESSING)
    Where do I have to embed the dynamicly created component useages into there corresponding view_containers to display them correctly?
    Kind regards
    Markus

    When you click on Plant,
    As there is a default tab already avaiable, in the WDOINIT of view or before Modifyview create the component usage of the componet that needs to be displayed in 1st/default tab and fire the plug. also create teh number of tabs required in modiyfview when 1st component is embdedded.
    In the TAB click event, embded the respective component (do_dynamic_navigation ) and fire the plug in tab click event.

  • Interactive Form - Dynamic Table - OVS

    Hi,
    I have an interactive form with dynamic table. I have few other fields which are not part of the table, but do participate in Object Value Selection. The table fields are bound to context variables. I am able to add more rows to the table. However, the moment I use OVS on the other fields, my table rows are getting lost.
    I tried with both "Generate PDF" and "Update PDF" mode. Both have the same behaviour. Why are my table rows getting lost when I am using OVS?
    Any idea?
    Thanks
    Ram

    Hi,
    Select the InputField1 and goto Script Editor and select the Event type: "Change" and Language as "FormCalc" and in editor write the below code:
    InputField2.rawValue = Num2Date(IsoDate2Num($.rawValue)+7,"DD/MM/YYYY")
    Based on your requirement change the display pattern of both the date fields in the object pallette.
    Note: Make both the fields as Date/Time Fields and not TextFields.
    Regards
    Pradeep Goli

  • Changing the Title of the Browser window dynamically in WDA

    Hello All,
    I have a window created in WDA where I am looking at the possibility of changing dynamically the title displayed on the Browser window. I am aware that this title is derived from the description of the application created for the WD component.
    Is there any way to modify this title/description at any point in the flow?
    Thanks & Regards,
    Sharat.

    >
    Hagen Eck  wrote:
    > Hi Sharat,
    >
    > if you're on NW 7.02 or 7.20 you can use method SET_WINDOW_TITLE of interface IF_WD_APPLICATION. In a View's method this looks like:
    >
    >  
    DATA: lr_appl TYPE REF TO if_wd_application.
    >
    >   lr_appl = wd_comp_controller->wd_get_api( )->get_application( ).
    >   lr_appl->set_window_title( 'This is an overwritten title text.' ).
    > Hth,
    > Hagen
    Important to note to people who aren't SAP employees using this forum that NW 7.02 and 7.20 are not available yet. They are still within internal development at SAP. Ramp-Up for these releases are not scheduled to begin until Q4 2009 at the earliest.

  • How to make Required Fields in WDA  Dynamic Table

    Hello all,
    I have a WDA Dynamic Table and want to make some fields as mandatory fields.
    can you please show me how to do this?
    thank you very much

    Hi,
    Write the below code:
    DATA: lr_table          type ref to cl_wd_table,
          lr_table_column    type ref to  cl_wd_table_column,
          lr_input            type ref to cl_wd_input_field.
       lr_table ?= view->get_element( id = 'TABLE' ). " TABLE id ID of Table UI
    * Get column
       lr_table_column ?= lr_table->get_grouped_column( id = 'TABLE_COL' ). TABLE_COL is the ID of table Column
    *Get Cell Editor
       lr_input ?= lr_table_column->get_table_cell_editor( ).
    *Set Required
       lr_input->set_state( cl_wd_input_field=>e_state-required ).
    hope this helps u,
    Regards,
    Kiran

  • Dynamically display OVS or f4 help....? possible

    Hello Friends,
    I have a table which will have e.g "dropdownbyIndex" depending upon the value of dropdownByIndex, I want to display either OVS help or f4 help ? so user can search the value mark one row and values will be written next to the columns of dropdownbyindex column....
    so my question is: ..........is it possible to popup/triger dynamically f4 help or ovs help ?
    Regards,
    Any ideas ??
    Edited by: Shah H on Mar 24, 2009 3:09 PM

    Have you tried the set_search_help method of the context node?  or context info node, I don't remember.

  • WDA Embedding a view dynamically on an other view

    Hi gurus,
    I'm developing my first serious wda application, it has several views (esp_view1...10) that must be embedded at runtime on a view (com_view) on the main window, that has embedded at design time two views: com_view and an other (not relevant for my question).
    I have defined a global variable in the controller esp_view type string that (depending on certain conditions) contains the name (esp_view1...10) that I want to embed on com_view.
    I've readed several threads in the forum, several manuals that show how embed views dynamically on a window (not on an other view), and after seeing several samples I've tried using do_dynamic_navigation, but I'm incapable to do it (may be I don't understand still component usages??).
    There is something that I'm forgetting??
    Thanks in advance,
    Alejandra

    hi,
    You can proceed this way :
    1. Make 10 ViewContainter in your view_common i.e Place ViewContaier UI element in your common view.
    2. Embed those views (V1-- V10) into these containers. For that Go to Windows, and inside windows you will find your View Containers. Drag and Drop your views under your component into the Windows.
    3. Now make Outbound plugs in your Views(V1-- V10) and 10diff Inbound plugs in your Common View.
    4.Create navigation link between outbound n inbound views.
    5. For that , Go to windows and drag n drop outbound plug to inbound plug.
    6.Now at run time you can fire the outbound plug of any View(V1--V10) whichever you want.
    7. For firing a plug , you can use Code Wizard(control + F7).
    Depending on your condition , fire plug using :
      wd_this->fire_out_view1_plg( ).     here out_view1 is outbound plug of View1.
    I hope it helps.
    Edited by: Saurav Mago on Apr 23, 2009 3:09 PM

Maybe you are looking for

  • Email submit button based on name in another feild

    I have a form that I am building. What I want is when you select a name from a drop down and click submit it generates the email to go to that person. In the example below what I want is when you choose yourself from the requestor drop down and then

  • Increasing Size of Mirrored RAID

    Hi All, I had a mirrored RAID set up with 2 500GB, and one by one rebuilt that with 2 1TB disks, but Finder and Disk Utility still report the logical drive as only 500GB. How can I get the system to recognize the extra space? Bartram

  • Imovie

    i deleted iMovie from my iMac how do i re-install without new purchase

  • Moving ARD license to new laptop

    I just got a new Macbook Pro and transferred everything from my old laptop. I want to transfer the license/serial number for ARD from my old laptop to the new one. Are there any special steps I need to take? Ever since I did this transfer, ARD does n

  • Eclipse and JDeveloper

    Somebody knows what is the purpose of eclipse with jdevelper? Do I need to install eclipse? I cant find the version that the guide is talking about eclipse SDK 3.0 from the eclipse web site - anyone knows where i can get this?