Embeding WebDynpro component into another webdynpro component
Hi,
I am trying to embed one (embeded) WebDynPro Component in to another(inner) . I have followed the tutorials for Server side eventing at
http://help.sap.com/saphelp_nw04/helpdata/en/24/243ca46e1c334f8a6f8b0792656bc7/content.htm
Here are the steps I did.
1) Created two WebDynpro component "embeded" and "inner" components in a project with two views embededView and innerView respectively.
2) Defined the component usage in "embeded" component.
3) created a viewset at "embeded" component. included embededView and innerView in the viewset.
4) Included required controllers at embededView.
5) Created two button at embededView and linked it to action and wrote code to create the componet using componentusage instance.
But unfortunately i could not able se to any component created i.e the view of inner component is not visible at all.
Could anybody have an answer to the above query.
Regards
Alok
Hi Alok,
As far i understood the scenario. You want to see/embed one webdynpro view inside another web dynpro view when you click some button in the outer web dynpro view.
Is it correct ?
I had the the following approach.
>created two wen dynpro component in a project.
>define the view for the inner component.
> In the Outer component, i added View Container.
> In the View Container, i embedded Interface View of inner component.
> write some code to view this in the on action event of the button used to display the inner view.
If you are working on the same scenario, it is one method to go
Rgds,
Vilish
Similar Messages
-
How to read URL parameters of one wdp component into other WDP component?
Dear Experts,
Can anyone let me know how to read URL parameters of one wdp component into other WDP component?
My requirement is i have one standard WDP component with 3 URL parameters and i needto
read that URL parameters along with their values in my Z-WDP component.
Thanks
SKHi Santosh,
You can read parameters send from one WebDynpro Component to another component by adding code in "HANDLEDEFAULT" Event Handler method ( Window )of your target Web Dynpro Component.
data: lt_parameter type tihttpnvp,
ls_parameter type ihttpnvp.
lo_api_controller ?= wd_this->wd_get_api( ).
call method lo_api_controller->get_message_manager
receiving
message_manager = lo_message_manager.
clear : ls_parameter.
refresh : lt_parameter[].
* Read all URL parameters
wdevent->get_data( exporting name = if_wd_application=>all_url_parameters importing value = lt_parameter ).
if not lt_parameter[] is initial.
clear : ls_parameter.
read table lt_parameter into ls_parameter index 1.
if ls_parameter-name = 'ACTION' and
ls_parameter-value is initial.
lv_flag = 'X'.
clear : lo_msg.
lo_msg = 'Action Parameter Missing in URL Link !'.
* report message
call method lo_message_manager->report_error_message
exporting
message_text = lo_msg.
else.
endif.
Best Regards
Priyesh Shah -
Reg:call webdynpro application in another webdynpro application
Dear All,
I created a Webdynpro component which on execution displays the Table output.I got a requirement to call the same Webdynpro
component in another webdynpro component which contains a BUTTON UI element on click of it i should call the first webdynpro application output.
How can it be done?you can check my wiki in SDN, link for the same is given below:
https://wiki.sdn.sap.com/wiki/display/WDABAP/Example%20for%20passing%20values%20from%20one%20Application%20to%20another%20Application%20in%20WebDynpro%20ABAP.
With luck,
Pritam. -
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,
DevyaniHi 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 -
Calling A Webdynpro Application From Another Webdynpro Application
Hi,
i want to call a webdynpro application from another webdynpro application with sending parameters.
i used this method,
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = lv_webapp
IMPORTING
out_absolute_url = lv_url.
CONCATENATE lv_url '?param1=' lv_param INTO lv_url.
data lo_window_manager type ref to if_wd_window_manager.
data lo_api_component type ref to if_wd_component.
data lo_window type ref to if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->CREATE_EXTERNAL_WINDOW(
URL = LV_URL
lo_window->open( ).
but this method shows the parameters on the address bar.
is there a method to send the parameters to another webdynpro application without show the parameters on the address bar?
Can somebody help me pls?
Thanks.I've used a server cookie before. This was built for BSP, but it is really usable anywhere. It just writes the data temporary into the database. This way you can just pass one meaningless URL parameter - like a GUID and use this key to read the data (the server cookie) upon initialization of the new application. I generally serialize all the data that I want into one server cookie by serializing a class. I can then restore whatever attributes of the class that I want on the receiving side.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bd/4cd23a09313b37e10000000a11405a/frameset.htm -
Nesting .fxml component in another .fxml component using SceneBuilder
Hello,
Is it possible to use SceneBuilder to nest one JavaFX component into another?
ThanksYes we can do it from SceneBuilder by File-->Import--> <<select the .fxml file which you want to import>>.
-
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 -
Calling a view into another Dynpro Component
Hi,
Could you please let me know the steps involved in calling one of the view into another abap webdynrpo applications.
Thanks,
KumarIf you want to use a view from another WD Component, then you have to have a Component Usage for that other view. Have you ever used the ALV Component? If so this is exactly the process that you would follow. You can read more about the techique here:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/a7/1d8b412bb5b35fe10000000a1550b0/frameset.htm -
Setting text to overflow into another text component in flex
This was pretty easy when I've done it in html but I can't find any info on how to incorporate this into flex. I want to get this sort of thing into my app where once the text reaches the bottom it wraps underneath the bottom of the left hand image the way it does in the top product here in this html site:-
http://www.imageproduct.co.uk/acatalog/glass_mirror_tvs.html
I've tried to emulate this and I have a top left container containing all my images which is within a hbox and also within this hbox on the right is my text. The text box has it's height and width set to 100 so it takes up 100% of the h box height wise and the remainder of the width left over from the product image which resizes based on what product is selected. The maxHeight of the h box is set to 400 (my images only go up to this size) but what I want is when the textbox exceeds this it will 'overflow' into another text box below the image/text like in that example. I have no clue how to implement this though.
Can anyone help me out?Thanks coldMiner,
I tested that. I presume that it can be expanded to go
page1_txt, page2_txt, page3_txt (replacing test_txt and rest_txt)
and so on. And I can see how it works for the text string, but how
do I import an external text file to replace the string?
Thanks,
Art -
Custom mxml component extending another mxml component
I want to create a custom mxml component that extends another mxml component. Bacially I want structure like Group -> BaseMXMLComponent -> MyMXMLComponent. I understand that it used to be the case that trying to add child component to MyMXMLComponent would throw "Error: Multiple sets of visual children have been specified for this component (base component definition and derived component definition)." error. But i've been reading few articles that says this has been fixed in Flex 4.
My question is.. is it an actually fixed, documented, and supported behavior of Flex 4? or just an undefined behavior that appears to be "fixed" but can change on future update?I dont know what is happening inside datagrid.But If
you want to maintain a single instance you could use singleton design pattern
read about it
http://en.wikipedia.org/wiki/Singleton_pattern
public class Singleton
private static var instance:Singleton= new Singleton();
public var userdata:*; // keep user object
public function Singleton()
if (instance != null) { throw new Error('Cannot create a new instance. Must use Singleton.getInstance().') }
public static function getInstance():Singleton
return instance; -
How to Call Methods of one component into another Component
Hi Experts,
I have one requirement...
I have 2 components A and B, i used A comp in B, i need to call Comp A methods in Component B, can anybody give me the syntax?? please...
Thanks and Regards,
Kissna.Hi Manas Thanks for your fast reply,
My question is, for example we have wd_comp_controller or wd_this objects to call methods of view from view and comp controller right.. like this we have any methods to call used component methods? if yes can u please give me the objects syntax?...
Thanks and regards,
Kissna. -
Through Enhancement, how to call a Webdynpro method from another webdynpro?
I have a standard page with 2 iViews with a standard abap webdynpro in each.
The first webdynpro needs to refresh the second webdynpro.
Through enhancement, I tried to follow the solution below:
first of all in the child component's component controller method(which you want to expose to another component) must be checked in the interface column.
Double click on the webdynpro project(parent component)->In the used components tab, in the column of component type the child project name(whose method you want to call) and in component usage column give any name->save the project.
goto the controller(VIEW or COMPONENT) from where you want to call the method->click create controller usage->select the interface controller of the child component->save the project.
click the code wizard->select method call in used controller->select the child component interface controller ->select the method you want to call.
Link of thread: Calling a method of other webdynpro component
But this solution doesn't worked because in this standard webdynpro is not possible to check the method as Interface.
Is there other way to do this?
Thanks.Hello,
you can refer the following documentation for portal eventing
http://help.sap.com/saphelp_nw70/helpdata/en/f6/7d6f4151dc5758e10000000a1550b0/frameset.htm
Br, Saravanan -
Calling an Portal Webdynpro iView from another Webdynpro iView - Error
Hi,
I have modified the DefaultFramework Page by adding an Alert iView (based on WebDynpro) and assigned this modified framework page to all users. It works fine.
The Alert iView on the Left hand side (right above the Detailed Navigation) consists of links to different WebDynpro iViews in the same Portal.
I have used LinkToAction UI element, on event of click
i am executing this piece of code.
onActionClick (com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent)
WDPortalNavigation.navigateAbsolute("ROLES://portal_content/folders/X.Iview", WDPortalNavigationMode.SHOW_INPLACE, (String)null, (String)null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS, "Called iView Name", (String)null, (String)null);
I have picked up the iView name from the Portal(exact PCD location).
It is not working. Once in a while it worked. But now it is not loading at all.
Please let me know your thoughts on the same.
Thanks
SenthilHi,
Got it solved. User has authorization to execute the page.Their roles were not added in Permission list of that Page.
Added the roles. Now it works fine.
Thanks
Senthil -
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 -
Reading the data from one component view into another component view
Hi All,
I have requirement to read the data from one component into another component while creating the service order. Here are the details.
Main View for Service order: BT116H_SRVO in that we have two assignment blocks like Organizational data(BTORGSET) and amount allocation(BTAMNTALL).This two blocks are two different component which are associated with main component(BT116H_SRVO).
I need to read the sales org data from component/View(BTORGSET/Orgsetdata) into Component/View(BTAMNTALL(HdrBillPlanDet) method DO_VALIDATE_INPUT.
I searched in SDN but all the posts are related to the data exchange between two views in same component. But My scenario is different as explained above.
Refer the attachments for the component link..
Please let me know how we can achieve this one..
Thanks,
Sapsar.Finally I was able to fix my code...My Mistakes were need to read the parent node above three levels and need to use the relation entity name while reading the data..
Below is the correction code
IF iv_index IS NOT INITIAL.
lr_iterator ?= collection_wrapper->get_iterator( ).
lr_current ?= lr_iterator->get_by_index( iv_index ).
lr_entity ?= lr_iterator->get_by_index( iv_index ).
ELSE.
lr_current = collection_wrapper->get_current( ).
ENDIF.
*loop back to root entity
WHILE lr_entity->get_name( ) NE 'BTAdminH'.
lr_entity = lr_entity->get_parent( ).
ENDWHILE.
*Get the related entity
IF lr_entity IS BOUND.
lr_collection ?= lr_entity->get_related_entities( iv_relation_name = 'BTHeaderOrgmanSet' ) .
IF lr_collection IS BOUND.
lr_orgset_m = lr_collection->get_current( ).
* lr_orgset = lr_orgset_m->get_related_entity( iv_relation_name = 'BTOrgSet' ).
lr_orgset = lr_orgset_m->get_property_as_string( 'SALES_ORG' ).
ENDIF.
ENDIF.
Thanks,
Sapsar.
Maybe you are looking for
-
SQL query returning error in 1 db and not in other db
database1 Select AMT_OFF, COMMENT_TXT, COOP_AMT_OFF, DEAL_NO, DETAIL_ID, DETAIL_TYPE, MAX_QTY, MIN_QTY, PACK_QTY, PACK_TYPE, PCT_OFF, SEQ_NO, SITE_NO, VENDOR_ITEM From dealdtl WHERE (deal_no, site_no, seq_no) IN (select deal_no, site_no, seq_no from
-
i have compile and run my program. First time the program can run. But after that when i run, come out error messege as below: java.lang.NoClassDefFoundError: FormPoster (wrong name: search/FormPoster) at java.lang.ClassLoader.defineClass0(Native Met
-
Disadvantages of Using Business Area
Dear All We have to define Plant Level Financial Statements. We intend to use the Business Area for generating Plant Level Financial Statements. What are the disadvantages of using Business Area for generating plant wise Financial Statements Regards
-
Dear Experts, We have a problem in MB56 - Display Batch Where used list Report. When the report is run with the following inputs in the selection screen , the report runs for a longer time and goes for dump with timeout error. Material (Component
-
Revision: 5146 Author: [email protected] Date: 2009-03-02 16:06:06 -0800 (Mon, 02 Mar 2009) Log Message: Fix Gumbo_Priority bug, SDK-19515 - RTE in Path when data is empty. Reviewer: Glenn Checkintests: Pass Ticket Links: http://bugs.adobe.com/jira/b