Context Element Issue In OVS Usage
Hi Experts,
I have a table to which there has been an OVS declared for a Paticular column. The ovs is working fine but the problem arises when i click on some value in the ovs the selected value goes and sits in the first row as that is the lead selected element.
The ovs method doesnt allow us to create a new method parameter context_element like in other methods so is there a way i can get the reference of the row (element) that i click on the table to generate the ovs.
Thanks In Advance,
Chaitanya.
Hi,
Try the below code to set value for the selected row in phase 3 of OVS.
Node= wd_Context->path_get_node( wd_This->nodename ).
Node->set_lead_selection( ovs_callback_object->context_element ).
Elem= Node->get_Element( ).
lr_context = wd_Context->get_context( ).
lr_context->add_context_attribute_change(
element = Elem
attribute_name = ovs_callback_object->context_attribute
new_value = "ABC"
Node->set_attribute(
name = ovs_callback_object->context_attribute
VALUE = "ABC"
Regards,
Shruthi R
Similar Messages
-
Issue in the PDF at the time of Using current context element
Experts,
For retrieving the values in the WebDypro applications, I have used the current context element. Using that current context element I have generated the PDF.
I have faced critical issue, if the two different persons are accessing the same PDF button at a same time in the different system.
Both of them have selected the different values in the table (different id). But in the output it displays the same results (same id) for both the persons.
The PDF displays the correct results (different id) at different time interval for both the persons.
We are facing this issue, only if both the persons are clicking the PDF button at the same time.
Could you please anyone give the solution for this problem?
Application developed using WebDynpro Java NW2004
Kind Regards,
Hariprasath RHi,
First u invalidate() the current context element.
after that u put data in current context element.
Regards,
Sunaina Reddy T -
Hi Gurus,
We have an issue related to OVS usage for search helps in one of the Webdynpro applications.
In the Webdynpro application we have two options for creating a shopping cart.
When option 1 is used a set of screens would call and the fields are mapped to one structure.
When option 2 is used different set of screens would be called and the fields are mapped to a different structure.
In both the option 1 and option 2 screens some fields are common like GL account, Cost centre, Project and Work order etc though they are mapped to different structures and all the fields have search helps.
In option 1 the search helps are working fine with OVS usage.
However when we are trying to use the same OVS usage for the same fields in option 2 the search helps are not working and we are getting an error message saying OVS usage 'XXXX' has already been used.
Early response and leads / inputs to resolve this issue would be appreciated and ofcourse full points would be awarded.
Regards,
TejaHi Sarabjeet / Sana -
Thanks for your inputs.
Yes, same OVS usage could not be used.
We have copied the existing OVS usage say ZOVS usage and tried using it but system is still throwing an error message that 'OVS has already been used'.
We believe some minor thing is missing which is throwing this error message.
Please provide any leads....to resolve this issue.
Regards,
Teja -
Hi all
I have got an question. I have an ABAP webdynpro with a context node which is connected to an ABAP structure.
The context node is mapped to a context node of a view and the fields of the view are mapped to the context node of the view. So the data is send through them. That works fine.
Within this ABAP structure i have added 3 extra new fields. After creating them i activated the structure.
Within the webdynpro i have updated the context mapping between the node and the structure and also between the different mappings between the views and the componentcontroller where this node is used,
Within the context tab of all the views i see all the three new fields.
When i try to map those fields to a field in the screen it cannot be done. i get the following message:
Type (..) of the context element (..) in view (..) does not exist
Anf the new fields are gray.
Does anybody know the solution for this?
kind regards,
Anton PierhagenHi all
Thanks for all of the replies. But unfortunately the right answer wasn't there.
I had tried to map the structure and re-create the node on several levels in my web-dynpro, but there was no change after this changes.
When i created an own dataelement and an own domain in my ABAP structure, it worked.
I could select them in the webdynpro. But why????
i still not get it..
But thanks for the replies!
Kind regards,
Anton Pierhagen -
Select Option's Context Element for the REPORT_ATTRIBUTE_ERROR_MESSAGE
Hi,
We're on 7.0 ehp1.
I found a thread on same subject u201Cwdr:select_options and highlight Error Message with a Link to Inputfield u201C, Jul-23-2008, in which Thomas Jung gave an explanation of how to get the context element of the Select Options on a view.
I tried to follow it, but Iu2019m still not getting it. Please show how to get the context element of a Select Option for the u201CREPORT_ATTRIBUTE_ERROR_MESSAGEu201D .
wd_comp_controller->go_message_manager->report_attribute_error_message(
exporting
message_text = ls_messaga_text
element = ?????
attribute_name = ls_option_id
Thomas' explanation:
I gave you the code that gets you to the interface controller. From there you call the GET_API to get the component controller. After you have the component controller it is normal context coding to read the context of the Select-Options context. Run the debugger and use the Web Dynpro view to see what your context looks like at runtime. When I test this with one of my applications, the names of the context nodes that were dynamically generated was really straight forward - as it uses the names of the select-option itself. Nothing special once you reach this point - just normal context coding...."
Kind regards,
HuntrHi ,
Use the below approach to achieve this,
data:
lr_context_node type ref to if_wd_context_node,
lr_element type ref to if_wd_context_element,
message_text type string.
get the node and leadSelection of that field
lr_context_node = get_node_of_sel_field( <field>-m_id ).
lr_element = lr_context_node->get_lead_selection( ).
case <field>-m_type.
For Select option field
when if_wd_select_options=>mc_sscreen_item_type_field.
m_message_manager->report_attribute_error_message(
element = lr_element
attribute_name = 'LOW'
message_text = message_text ).
"For Parameter field
when if_wd_select_options=>mc_sscreen_item_type_parameter.
m_message_manager->report_attribute_error_message(
element = lr_element
attribute_name = 'VALUE'
message_text = message_text ).
when others.
endcase. -
How to get the context element of a F4 help of a column in ALV table?
Hello!
I know to get the context element of the current row normally through
lo_el = WDEVENT->get_context_element( 'CONTEXT_ELEMENT' ).
or: lo_el = lo_nd->get_element( index = r-parm->index ).
But this time, I have a F4 help on the cell of a column. After clicking on the F4 help I need to get the current context element. Do you have any idea, to help me?
Many thanks!
regards
MeerHello,
Kindly close the thread if your query is resolved now.
Thanks
Pradeep -
How to create a context element
Hai,
How can i create a context element for a view dynamically.
regards,Hi,
Context element or context attribute?
For context element use appropriate method in your IWDNode implementation and after creation call add method of node.
For context attribute - see appropriate tutorial : https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/tutorial on dynamic programming of web dynpro applications - 17.htm
Best regards, Maksim Rashchynski. -
I had created one Interactive Adobe form earlier.
Now I am going to its interface and renaming some of the parameters.
I want to know whether this parameters' new names would be automatically reflected in:
a. context of the adobe form
b. all the names of the elements drag and dropped on the interactive form
Or i've to do this activity manually for each and every element renamed.
Is there a way to rename all the elements on the adobe forms to reflect the new names ?
Thanks in anticipation.Hi Mate,
if you change the interface for new fields in a table type, or data element of a field or field name sort of.
Adobe cant recognize and pickup these changes automatically.
so you need to goto sfp tcode, open the form and refresh the context element by element.
if there are new fields to be added you need to drag and drop only then it reflects.
Cheers,
Sai -
Is it mandatory to bind each & every CONTEXT element to a text field on the form?
Hello,
I am developing an Adobe Interactive Form, i have Designer 8.1 and Reader 9.0 in my Windows 7 Laptop. When i checked the menu EDIT-->form properties --> Compatability, its Adobe XML form File (XDP)
I have 3 elements (say, 1_Name, 2_Street and 3_City) in the CONTEXT and drawn ONLY 2 input enabled TEXT fields (for items - Name and Street of conetext) and then, BINDED them.
I did not put any associate text field for CITY and no chance of binding!
Pls. let me know that, Now can i utilize this CITY (of context) element containign data in the Java script? is this CITY is VISIBLE in the java script, even though it did not get BINDED with any text field on the form?
THank youThank you.
If it got BINDED, i knew how to point/get/visible the CITY element (of CONTEXT) containming data by using the below java script,
(this.rawValue == "A") or i can also get it with script of VISITOR.Page3.Subform11.CITY.rawvalue = "A"
If i do NOT bind CITY to any TEXT FIELD of FORM, then, how i can retrieve/get/visible/point CITY content? -
OA_MEDIA referencing a value outside the Context Element
I am attempting to use XML Publisher to change a logo image at the top of a template. I have used the following command with great success:
url:{concat('${OA_MEDIA}’,’/',//C_PAYGROUP',.jpg')}
Unfortunately, this works fine when I have C_PAYGROUP in the Context Element of the XML output I am referencing... in reality this is not the case as I need to get to the absolute path and specify my C_PAYGROUP value from the top level down... i.e:
/HBOSRA0830/LIST_G_SEL_CHECKS/G_SEL_CHECKS/C_PAYGROUP
I have tried the following syntax to no avail and hope someone will be able to help me out a little...
url:{concat('${OA_MEDIA}/',/HBOSRA0830/LIST_G_SEL_CHECKS/G_SEL_CHECKS/C_PAYGROUP,'.jpg')}
Many many thanks,
TerenceHi Terence,
Looks like a slight problem with where the slashes etc are.
The following will work - note the slash after OA_MEDIA as a seperate field in the concat.
url:{concat('${OA_MEDIA}','/',/HBOSRA0830/LIST_G_C_PAYGROUP/G_C_PAYGROUP/C_PAYGROUP,'.jpg')}
Robert -
Lead Select Context Element in WD ALV
Hi,
Can anyone tell me how to retrieve the lead select row( Context element) for an ALV Table.
Best Regards
SidHi Sid,
You can use ON_LEAD_SELECT method of ALV to do this.
Go to the Methods tab of the view in which you have embeded your ALV.
give method name lead_Select, method type as Event Handler, in event select from F4
ON_LEAD_SELECT.
Hope this solves your problem.
Regards,
Ismail. -
Tracking the CONTEXT element's holding values?
Hello
I am developing an Adobe Interactive Form, i have Designer 8.1 and Reader 9.0 in my Windows 7 Laptop. When i checked the menu EDIT-->form properties --> Compatability, its Adobe XML form File (XDP)
I have CONTEXT and drwan input text fields in my_interactive_form.
1) I want to debug the form that How the CONTEXT is holding the values and With wht values the HIDDEN input text fields are holding?
2) is it mandatory to BIND each & every CONTEXT element to a text input field on the form IN ORDER TO utilize the context element content in the Java script editor?
Thank youThank you.
I am developing an VISITOR Adobe Interactive Form, i have Designer 8.1 and Reader 9.0 in my Windows 7 Laptop. When i checked the menu EDIT-->form properties --> Compatability, its Adobe XML form File (XDP) When i opened this VISITOR interactive form in a browser, right clicking and checked form
PROPERTIES, then i saw the "PDF Version: 1.6 (Acrobat 7.x)"
When i opened this VISITOR interactive form in the browser, i did not see MENU options (like EDIT)! i saw small icons of Pring, Save, Page, Zoom, Find.
And a Purple ribbon with text of "Please fill out the following form. You can save data typed into this form"
But, i did not see any other MENU optios, like FILE, EDIT, VIEW, DOCUMENT, TOOLS, WINDOW, HELP! Pls. let me know
But, i downloaded some 'ABC' pdf from internet and opened it, here i can see all these MENU options, like FILE, EDIT!
1) In this case, How can i setup DEBUGGING settings as mentioned above?
2) Why the MENU options got disappearing!
Than you -
Where-used list for view methods, and context elements
I want to know where a context element in the component controller is used (and if I can delete it).
Is there something like a where-used list for a context element?
Similar question:
Is there a where-used list for a method of a view?
Best regards,
DanielHi Daniel,
Its not supported for both of these..
Regards
Anuj Goyal -
Element attributes linked to context elements
Is there a way to find out what interface element attributes are linked to specific context elements (without searching the entire layout)?
Hi Bob,
There is no direct way to identify the field associated to a UI element. SAP has porvided some protected methods to get this details for internal purpouse but not for external use.
the only way is to drill down through the context path of the root container.
Regards
Sravan Varagani -
Bind additional context elements
Hi
İs it necessary to restart AS Java when editing the model
binding and bind additional context elements to an
already existing Model Node in the context?
Regards
erdemHi,
It is only necessary when you are trying to reimport the BAPI ....incase your portal is IN SP14 then no problem.
You can use the ARFC tool to remove the cache
http://blrsapepdev002:50000/webdynpro/dispatcher/sap.com/tcwdtools/WebDynproConsole
Try removing the cache from here , or wht you can do ....open the JCO which is used for the MetaData and recreate it.
all of them works fine
regards
pankaj prasoon
Maybe you are looking for
-
How to implement logical equation as LabView?
Hi, I have this bit test logic I need to implement as a Labview code. Should I use formula node or either something similar to this already in Labview? "((var & (1<<bit)) != 0)" where 'var' may be 8, 16, or 32bit, 'bit' is a number 0 - 31 representi
-
Missing JMSsample.java for ENS notification
I'm trying to find the JMSsample.java that is mentioned in the "Event Notification Service Guide" ... the guide claims that it is located at: msg_server_base/bin/msg/enssdk/java directory Which I simply cannot find! I've installed the entire JES suit
-
The Acrobat PDF Maker Add-in for Office got disabled and I can't seem to re-enable it. I've tried the suggestions in http://kb.adobe.com/selfservice/viewContent.do?externalId=kb401734&sliceId=2 except for uninstalling Acrobat. I can't uninstall it be
-
Custom APNS to use in local network for push notifications
We have successfully published a B2B app in Appstore. Now we are in need to add push notifications option. But we use only intranet without having access to internet inside our working environment. Is there a way to have/customise APNS and utilise pu
-
Problems with my battery life.
I have had my macbook since 2009, usually i get a good 3 hours on the life depending on what I am doing but lately it has been going a little weird. My battry life will go brom 99% to 14% and then back up to a 50%. Then comestimes when I put my lapto