Calling Inbound Plug of one Window of one Component in another WD Component
Hi All,
Can anyone please tell me how to call a Window's Inbound Plug of one WD Component in another WD Component.
Thanks in advance!
Best Regards,
Devyani
Hi Devyani,
are you calling the view (embeded in a window ) of a component 1 in component 2. If so,
1. Define the used component(Component 1) in the using component (Component 2)
Component Use : Comp1
Component : Component 1(Name of the component)
2. On action: using component usage window, window of component can be called as a pop up window in component 2
If this is not your requirement, let me know. i will try to help
Regards,
Sankar
Similar Messages
-
I have two iTunes libraries on two different pc's (one windows and one Mac). Can I consolidate these on an external hard drive?
I'm sorry I just saw the last post. I had two users on my hard drive, one for me and one for my daughter, but I am not sure what you mean by partioning my external????? I have heard the term before, but don't know how to do it. I am having serious crashing issues with this computer and believe I really need to do a clean install. I just want to make sure everything for both ipods is safe (is???? I think so, everything is......I hate when the English language does this to me!)
-
Calling parent's view inbound plug from modal window?
Hi,
I have a window A with a view ("the parent") that calls another window B as a modal one. This window B uses own buttons for actions, no standard ones (OK, Yes, No ...). The problem is that the actions in window B are changing the content in window A. I want that after closing the modal window B a specific inbound plug of the view of the other window A is called (where a refreshing mechanism is available). How to do that? I tried with the - at other posts - suggested method of exit-plugs, but that didn't work (because outbound and requested inbound plug belong to different windows ???).
Thanks for your help,
AlexanderHi,
thanks for your reply. My problem was that in my popup window no standard buttons are available, so that the SET_ON_CLOSE_ACTION can't be used (cf. documentation it only works with the CANCEL-Button). But with this hint I was able to find another solution (which was by the way explained in another thread answered by you 8-) ): I have to create an event in the component controller and fire this event from my window B. Then I have to subscribe a method of window/view A to that event which does the required refreshing. [trigger event from "child" webdynpro;.
Best regards,
Alexander -
Call Inbound Plug or other method of usage component
Hi guys,
in crm web ui i created one component named "A" which has several component usages. One of the usage component is named "B".
Now the usage component "B" has an inbound plug called "ClearAll", which i want to trigger from component A.
How do i do that? Or more specific, how do i get the interface controller of component B, so that i can call a the inbound plug method "clearall",
My Problem is not about Popups.
in WD_USAGE_INITIALIZE i'm already able to populate the context, but what i need is a method call before or after sharing the context node:
call method super->wd_usage_initialize
exporting
iv_usage = iv_usage.
case iv_usage->usage_name.
when 'CUBP_HEAD_SEARCH'.
try.
iv_usage->bind_context_node( iv_controller_type = cl_bsp_wd_controller=>co_type_component
iv_target_node_name = 'PARTNER2'
iv_node_2_bind = 'PARTNER' ).
Thanks!Very Good ! thanks for this, i also analysed a little bit yesterday and achieved to really call the window controller:
What i wanted to do is to call the clear_all of BP_HEAD_SEARCH - component, which i always specified as component B.
In Component A using BP_HEAD_SEARCH, i hooked some coding into method DO_PREPARE_OUTPUT of the only View, which is an overview Page
Hooking up this method, i'm sure that the initialitation of all context nodes etc. of component B took place and i'll be able to successfully call the inbound plug:
if me->prepared_output <> 'X'.
data lr_usage type ref to cl_bsp_wd_component_usage.
data lr_if_window type ref to cl_bp_head__searchhelpwin_impl.
data lr_if_window_abstr type ref to cl_bsp_wd_window.
lr_usage ?= me->comp_controller->get_component_usage( 'CUBP_HEAD_SEARCH' ).
lr_if_window ?= lr_usage->get_interface_view_contr( 'SearchHelpWindow' ).
lr_if_window->ip_clear_all( ).
endif
the clue was not to use the interface if_bsp_wd_component_usage, but to use the class cl_bsp_wd_component_usage as type of the usage object.
Doing so, i'll be able to call method get_interface_view_contr which will give me the window controller finally.
But your solution is good as well !
Thanks! -
How to link Inbound plug between 2 windows
Dear All,
I create a linktoaction link,
and I want come out when I click this link then windows.open a new view in other windows,
by the way have some data transfer between 2 views,
if 2 viewes in one windows is easy ,but my task is in 2 different windows !!
I don't know how to use Inbound plug or Outbound plug ?
can you help me ?Doke,
In a Web Dynpro project, only applications can be addressed by a URL. So, trying to get a URL for your new Window may not be possible. There are 2 ways to get past this issue though.
1. Use the approach suggested by Satyajit in [this Blog|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/7143].
or go this way. I tested this and it works.
2(a). In your popup window, 'Win_Popup' embed an 'Interface View' say"Popup_InterfaceView".
2(b). Assign a plug of type 'Startup' to this Interface View and to embedding Window too if you are using CE 7.1.
2(b). Create a new Application say "Popup_App"and assign your newly created Interface View "Popup_InterfaceView" as its target.
2(c). Get URL for this new application like this.
String deployableObjectName = wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
try {
WDDeployableObjectPart deployableObjectPart = WDDeployableObject.getDeployableObjectPart(
deployableObjectName,"Popup_App",WDDeployableObjectPartType.APPLICATION);
String urlToTargetApp = WDURLGenerator.getApplicationURL(deployableObjectPart);
catch (WDURLException e)
messageMgr.reportException(e.getLocalizedMessage(), false);
2(d) Use the generated URL for navigation.
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(urlToTargetApp ,"title");
wdContext.currentContextElement().setWindowRef(window);
window.setWindowSize(300, 300);
window.setWindowPosition(50, 50);
window.setTitle("Title Name");
window.open();
This works.
Hope this helps.
Vishwas. -
Can't call Inbound Plug before DO_VIEW_INIT_ON_ACTIVATION
Hi everyone,
I have a custom quotation search page containing an extra column (quotation-ID) that:
shows the quotation id
acts as a link
points the user to a completely custom screen
In this custom screen I need to access the GUID of the selected quotation. Here's how I solve this:
Event handler -- called when user clicks Quotation ID
Using dynamic navigation, I redirect the user to the page containig my custom UI object type 'ZREA_FOLLOW_BCG', and I pass along the quotation that was selected, the entire entity. (see partly code below)
CALL METHOD cl_crm_ui_descriptor_obj_srv=>create_entity_based
EXPORTING
ir_entity = lr_entity
iv_ui_object_type = 'ZREA_FOLLOW_BCG'
iv_ui_object_action = 'B' "display
RECEIVING
rr_result = lr_desc_object.
Inbound Plug -- fired when navigating
I created an inbound plug 'IP_FROM_SEARCH' in my custom window. In SPRO I made sure this IP is called when navigating dynamically using my UI object type. (see image)
In the body of this inbound plug I can access the quotation in the local variable 'iv_collection'. I pass the GUID of this entity on to a public attribute of the component controller. This way I will be able to access it from everywhere in the component. (see code partly below)
lv_guid = lr_entity->get_property_as_string( 'GUID' ).
lr_coco->current_rea_guid = lv_guid.
DO_VIEW_INIT_ON_ACTIVATION
In DO_VIEW_INIT_ON_ACTIVATION the following code lets me access the GUID from the attribute in the component controller:
lr_coco ?= me
->comp_controller.
CHECK lr_coco IS BOUND.
lv_value = lr_coco->current_rea_guid.
As a result, I now possess the GUID I wanted, and I can load my custom screen using this GUID.
However.....
All of this works fine. The inbound plug is fired, and then comes the DO_VIEW_INIT_ON_ACTIVATION, as it should.
But when I test this in the webui, and I then click the 'Back' button, I'm being redirected to my custom search page. If i then select another quotation, the custom page loads again, but using the quotation that I selected the first time!
I debugged this and I noticed the following: The second time (after I pressed 'back'), the DO_VIEW_INIT_ON_ACTIVATION is loaded BEFORE my inbound plug is. This is why the GUID is not updated yet...
Can anyone tell me how I can make SAP fire the inboud plug first? Maybe I need to clean something up?
Thanks in advance!
JonathanHi Jonathan,
have you tried to put the code you have in the DO_VIEW_INIT_ON_ACTIVATION method in a different method? I'd suggest putting this code in the DO_PREPARE_OUTPUT method.
The following post contains th eorder in which the different methods of a component are called: Order of methods in WEB UI. Maybe this is also useful for you.
Best,
Christian -
Webdynpro: Reading attribute of one component in another WD component
Hi All,
This is a scenario in the SAP SRM system.
I am trying to access the Contract number attribute (V_CTR_H_BD.HEADER_BD.OBJECT_ID) from the webdynpro component /SAPSRM/WDC_CTR_DODC_H_BD.
I want that attribute to be accessed in the WD component /SAPSRM/WDC_DODC_CND view V_DODC_CONDITION.
So, in order to achieve the above requirement, I tried to add a node as an Interface Node in the webdynpro component /SAPSRM/WDC_CTR_DODC_H_BD. But, I am unable to create any node in the component controller of WD component /SAPSRM/WDC_CTR_DODC_H_BD as a Interface Node, and hence, I am unable to create any node of Interface Controller. This is due to the reason that the node that we are creating have the Interface Node option in disable state.
Can anybody suggest what approach we need to follow to satisfy the above requirement? (It would be great if the resolution will be containing the steps)
Regards,
SusantaHello,
this is the scenario.
I could populate the account name in location field now. I do have partnerno. however, i am not able to retrieve the account number. is it possible to retrieve account number by get_related_entity when i have name. If yes, please share the piece of code that has to written. I am also doubtful about where to write it. Currently i am writing code to get account name in GET_ACT_LOCATION.
More details :
I need to populate the address here.
Component - BT126H_APPT
view-BT126H_APPT/ApptDetails
Node- BTACTIVITYH Base Entity BTActivityH
attribute- STRUCT.ACT_LOCATION
details about the name i am getting curently
Component - BT126H_APPT
view-BT126H_APPT/ApptDetails
Node-BTPARTNERACCOUNT Base Entity BTPartner
attribute-PARTNERNO
Kindly tell me can i get the partnernumber from this node anyhow. if yes, please explain.
REGARDS
CHANDRAKANT -
How to call mxml component in another mxml component
I have added submenu in menu bar in adobe Flex.
For Example : Menu A has submenu A1 A2 A3 like that, right now Submenu is not performing any action.
I want to open a new mxml page on click of submenu A1 in the same frame .Please suggest me how to achieve it
Simply, I want to to have a MENU BAR just like in any website, with submenus and on click of each submenu items, it should navigate to other page .
Regards,
GauravIf the functionality you need is self-contained within the component, you can dispatch generic event to the main application, and over there define the handler function.
If you need more specific interaction triggered by the component, you have to create custom event Class and then dispatch custom event.
I believe there are some clear tutorials in Flex in a week: http://www.adobe.com/devnet/flex/videotraining/?devcon=f2
HTH,
FTQuest -
How do I create more than one "window"?
Hi.
I just started with JavaFX and know about the basics (at least I thought so).
But: How do I create an application with more than one "window"?
One stage has one scene with several components like buttons - ok... I already have a stage with a scene with buttons and actions - Now I want to click one of these buttons and then get to another stage (or scene or whatever) where I see some other textfield and buttons.
How do I realize this with JavaFX? I did not find anyone example in the web? What am I missing? Do you not create this flow with JavaFX?
Please can someone explain this to me (and if possible post a link where I can some code where this is implemented)?
Thanks a lot...Recent thread: [Multiple stages app dev|http://forums.sun.com/thread.jspa?threadID=5405420]
Other threads... well, hard to find back, I reckon.
Simple example:
// Some control/shape
Circle
centerX: 15
centerY: 15
radius: 10
fill: Color.LAVENDER
stroke: Color.PURPLE
onMouseClicked: ShowDialog
}and elsewhere:function ShowDialog(evt: MouseEvent): Void
println("Circle pressed");
var dialog: Stage = Stage
title: "A Dialog"
visible: true
scene: Scene
width: 300
height: 50
content:
Text
x: 5, y: 5
font: Font { size: 24 }
content: "I am a secondary window"
textOrigin: TextOrigin.TOP
}Apparently, you just have to create an instance of Stage to have it to appear. -
How to cpoy a window from one smartform to another smartform
Hi experts,
can u please help me .
how to copy one window from one smartform to another smartform..
Thanks
SaiHi,
we can copy the window from one smartform to other.
first select the window what you want to copy then go to utilities-> download subtree.
and save the xml file as local file.
Go to another smartform and select the page and upload the window by goto utilities->upload it will ask the file you have to give the name of the file what ever you saved earlier.
Then you got the success message as window <win> copied to clipboard.
then right click on the page choose paste. You will get the the window of another smartform.
Regards,
Jagadeesh. -
Passing data from one component to another
I have one composite component (HtmlGroupPanel) that holds one or many primitive component. I have to sum up all the number of X in each primitive component and pass it to the parent/composite component to render that data to the user.
Can any one please let me know the popular practices to do this task or anything close to it?hi shabeeb......
you can have an inbound plug in the window. the default inbound plug has the option for entering the parameters and it also has an option to give it as optional. you can make use of that.
---regards,
alex b justin -
Inbound Plug in standard SAP (create as an interface)
Hi All- I have a standard SAP component that I create an Inbound PLUG at the window level, I'm using that component (standard SAP) in another component (custom) but I don't have access to the inbound plug that I just create in the standard SAP because the check-box for interface is not "CHECKED".
When I try to enhanced the standard SAP the interface check-box disappear, how can I check that check-box interface box?
How I can make my custom inbound plug accessible globally?
thanks!
Jason PVYou Can not enhance that.( creating interface inbound plug) according to the sap enhancement documentation.
-
Fire Plug from one window to another
Dear All,
Is it possile to fire an outbound plug from one window to another?
I am using a Popup window and on clicking a button in the popup window, I want to navigate to another view in the parent window.
I know there are other ways to handle these kind of scenarios like using an eventhandler in the parent view and them firing a plug, but that would affect the rest of the applicatin flow.
So I cannot avoid firing the plug from the view in the popup window.
Can it be done?
Thanks and regards,
MayureshHi Mayuresh Kanvinde ,
I believe your popup is a modal window. If so in your action handler of the button on the popup window you can hide the popup window and then fire the navigation plug of your parent window.
Your popup button action handler can call a method in your component controller where you can write the code to hide the existing popup window and then fire the plug in your parent window.
make sure you store the IWDWindow object of your popup window on the context so that you have access to it to hide the popup window.
Regards,
Sanyev -
Can we call a window of one smartform in another smartform
can we call a window of one smartform in another smartform?
hi
No it is not possible
regards
vijay
reward points if helpful -
Is one out bound plug pointing to many inbound plugs ?
Hai Experts,
i hav the doubt one outbound plug is pointing to many inbound plugs in different view is it possible.
in web dynpro ABAP.
plz help.Hi,
Yes it is possible to have one outbound plug for multiple inbound plug
depends on the condition you mention.
For example
If you enter range between 10 to 20 you may fire VIEW1 or
if you enter range between 20 to 100 you may fire VIEW2.
When creating navigation link you can set one outbound plug to multiple inbound plugs.
Regards and Best wishes.
Maybe you are looking for
-
Adapter Modules in PI 7.1 EAR/SDA?
Hi guys, is it possible to deploy adapter modules in the 7.1 version in the same form as before? I mean EARs? Thanks, Olian
-
Provide alternative select statements to improve performance
Hi Frnds I want to improve the performance of my report. below statement is taking more time. Please provide any suggestions to include alternative statement for the below select statement. SELECT H~CLMNO H~PNGUID P~PVGUID V~PNGUID AS V_PNGUID
-
OIM-OAM integration and LDAP Sync
Hello All, I have deployed OIM 11g R2 and OAM/OVD 11.1.1.5. Now I need to enable LDAP sync for OIM-OAM integration and I'm not allowed to extend Oracle schema in AD. So I decided to use OUD for FMW schema and I have completed all those steps and OUD
-
Why Firefox doesn't update automatically?
Hello, I have the option of "Install updates automatically" selected. But firefox don´t aske me if I want to update never. For instance I have version 29.0 installed and I know that are a new correction version 29.0.1 but my firefox didn´t notify me.
-
How do I move photos sent with a text message to my computer?
How do I move photos sent with a text message to my computer?