ICCMP_BT_FOUP - How to call meth. 'DO_HANDLE_EVENT other Component/View?
Dear Experts,
when changing the field CONC_KEY-BTN in view BTSHeader in component ICCMP_BTSHEAD (Interaction Record Component)
the method DO_HANDLE_EVENT of the view controller is called.
The standard coding of the method is:
method DO_HANDLE_EVENT.
* Eventhandler dispatching
CASE htmlb_event_ex->event_server_name.
WHEN others.
global_event = super->do_handle_event( event = event
htmlb_event = htmlb_event
htmlb_event_ex = htmlb_event_ex
global_messages = global_messages ).
ENDCASE.
endmethod.
The component ICCMP_BTSHEAD is used in component ICCMP_BT_INR. Also visible in component ICCMP_BT_INR is the component ICCMP_BT_FOUP (View:CREATEFOLLOWUP) used to create Follow-Up Documents like Service Tickets.
What I want to is that, if the value of the field CONC_KEY-BTN is '1', the fields of the view CREATEFOLLOWUP follow-up-document have to be not modifiable. If the value of field CONC_KEY-BTN is '2' the fields are modifiable and it is possible to create a Follow-Up Document. That is my basic requierement. Better would be if the view CREATEFOLLOWUP would not visible if the value of the field CONC_KEY-BTN is '1'. But that would be more difficult I think?
To make the fields not modifiable, I think I have to modify the Get and Set Methods of the specific Atributes. But my problem is how can I modify the above mentioned method 'DO_HANDLE_EVENT' (View: BTSHeader) so that the event 'DO_HANDLE_EVENT' of the view controller of view CREATEFOLLOWUP is called at the same time (The problem is that the 'DO_HANDLE_METHOD of view CREATEFOLLOWUP is not called when changing the field CONC_KEY-BTN of the view BTSHeader ).
Best Regards
Oliver
Hi Oliver,
In my opinion, the logic is not to be controlled at the do_handle_event level. ICCMP_BT_FOUP is created as a component usage right? So in the component ICCMP_BT_INR, there will be a navigation link defined with source as outbound plug of ICCMP_BT_INR and target as inbound plug of ICCMP_BT_FOUP. In this outbound plug, you can fill the param IV_DATA_COLLECTION as follows:
data: lr_current type ref to if_bol_bo_property_access,
lr_col type ref to if_bol_bo_col.
lr_current = me->typed_context->YOUR CONTEXT NODE->collection_wrapper->get_current( ).
check lr_current is bound.
create object lr_col
type
cl_crm_bol_bo_col.
check lr_col is bound.
lr_col->add( lr_current ).
Now pass this collection to the target inbound plug.
In the inbound plug of the target, you can control the logic based on the value of the attribute field in the collection.
I think this should work.
Regards,
Nisha
Similar Messages
-
How to call a method of one view in other view
Hi
could any one suggest "how to call a method of one view in other view "
thanks
kaushikHi Kausic,
Its not possible to call a method from view to View.
Since view is private entity we can not pass the data directly.
I suggest you to declare the method in Component/Custom controller and call.
the code is,
wdThis.wdGet<Component/Custom Name>Controller().<methodName>();
Regards,
<b>Ramganesan K</b> -
How to Call Webservice in Portal Component?
Hi Experts,
Currently, I have a URL of WSDL file, how can I consume this webservice in portal component. I know that we can call webservice via webdynpro application/standalone proxy/deployable proxy, but it seems different in portal component.
Thanks & Best Regards,
JamesAccessing an External Web Services in Portal
Accessing an External Web Services in Portal
http://help.sap.com/saphelp_nw04/helpdata/en/e9/ae1b9a5d2cef4ea4b579f19d902871/content.htm
Consuming Web Service from ABAP
Consuming Web Service from ABAP -
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. -
How to call Ocx in swing Component
Hi i want to play Flash4 file xxx.swf in swing Component
JMF Api Supports upto Flash2 only i downloadled Flash4 player which is a ocx file .how can i integrate this ocx in swing Component
help me please
regards
Mahesh.BI have used the tool JacoZoom by InfoZoom (http://www.infozoom.de).
The tool can create JCWs (java callable wrappers) for COM and ActiveX objects.
If they are visual, you can create and display them within your Java app
either as AWT or in Swing.
In general, JacoZoom is the best tool I have found so far, it is my
favorite.
Sylvia -
How to call a method of a view in popup view
Hi Experts,
I have created WDJ program. It has 3 views - view1, view 2 and 1 pop up view. view1 and view2 are in window1. popup view is in window2.
There are input and output plugs in view1 and view2. view1 and view2 are connected by navigation links and input / output plugs. I have created fire plug methods for link between view1 and view2. These fire plug methods are part of view1 and view2.
How we can access this method from component controller?
In fact I want to access the methods from popup view. I have created some method in component controller. I can access component controller methods from popup view.
My question is how we can access the fire plug methods of view1 and view2 in component controller.
Regards,
GaryHi Jeetendra,
I have created event in component controller.
I have also created event in pop up view. How I can subscribe the event of component controller in pop up view.
I have written following code in pop up view
public void onActionevent(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionevent(ServerEvent)
wdThis.wdGetTest1Controller().WD_EVENT_NEWEVENT();
However it is not getting complied. I am getting message
The method WD_EVENT_NEWEVENT() is undefined for the type IPublicTest1
Popup.java test1/gen_wdp/packages/test1 line 168
Regards,
Gary -
How to call dynamically TablerowCount using Table view
Please help me urgent
I have one abc.htm view
==================
<htmlb:group>
<htmlb:groupBody>
<htmlb:tableView
id = "tv1"
columnHeaderVisible = "TRUE"
design = "alternating"
fillUpEmptyRows = "TRUE"
footerVisible = "TRUE"
headerVisible = "TRUE"
table = "<%= t_maintain %>"
iterator = "<%= iterator %>"
visibleRowCount = "<%=model->G_NO_SIMILARSUBNO%>"
width = "100%"
selectionMode="singleSelect"
filterButtonText = "Go"
filterButtonTooltip = "Filter content"
tableLayout = "AUTO"
/>
In this view i want to call visibleRowCount = "12".. User is going to give this rowcount dynamically through his page textbox.. How can i do this ?How can i paas the counting variable here.. -
Calling OninputProcessing of other page
HI,
How to call oninputprocessing of other page ?
I have a 2 BSP pages . A and B. When i click a button in page A, page B is appread as popup. And when i click button from page B, some content is transfred from B to A's Intilization and Layout. Thats fine.
But i want the field value in OninputProcessing.How to do ?
I want something like this ...
if the fieldA = 'Yes' go to oninputprocessing ( not by triggering any button) and
fieldB = 'No' no need to proceed..
Thanks,
Kanal
Edited by: SAP user on Jun 18, 2008 4:54 AMHi SAP User,
After coming back to page A, you can put following javascript code in your layout to trigger OnInputProcessing without clicking any button.
htmlbSubmitLib('htmlb',this,'htmlb:button:click:null','<form_name>','<button_id>','myClickHandler',0)
Regards,
Salil -
How to call specific view of used component
Hi All,
I have the following problem:
I have component 1 which have two views: 1A and 1B. They are included in one window. Default view is 1A.
Navigation between view 1A and 1B it made with buttons and plugs ("go to 1A", "go to 1B").
I have main component 2 which uses component 1 (used component). Component 2 has view 2A and 2B. I have button "Z" in view 2A which calls method of component 1 and navigates to view 2B (where used component 1 is embedded).
First time I press button I navigate to view 1A, its correct. Then I navigate to view 1B (within used component 1).
when I go back (in main component 2) and press button "Z" again, the used component 1 is open with view 1B, not 1A (which is default). That is, used component 1 remember which view the navigation stayed on.
I nee to always see view 1A first when I navigate with button "Z" (open used component).
How I can do that?hi ,
u must be using component usage ..
in ur component2 , place the view 1B of ur used component in separate window
pls refer this thread as well :
How to call a Particular View from a View of Current Component
regards,
amit -
How to call a Particular View from a View of Current Component
Hi Experts,
Pls let me get a solution for my small issue..
I do have 2 components cur_component and old_component which contain 2 Views each say, cur_vew1 & cur_view2 and old_view1 & old_view2 respectively.
Now, When i click a button in cur_view1 then it should call the view - old_view1 of old_component and when i click a button in cur_view2 then it should call the view - old_view2 of old_component.
When i tried, its calling the default view of the old_component. but i want to call the views of the old_component dynamically...
hope am clear enough about my issue..
Kindly help on me on this to solve this..
With Thanks in advance,
Amalahi ,
have u done component usage to reuse ur old component in ur new component .
refer this article on component usage :
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2e71ce83-0b01-0010-11a4-98c28a33195f
to know , how to set the context attribute for visibility , u wud also like to go to this thread :
Re: How to SET a value to an attribute usibng WIZARD?
refer to Uday's reply in this thread as well :
Call view of another WDA Component and pass the value to it
1) When you create your context at component controller level in component MAIN you have a property for the node which says as: "Interface Node" Just checkmark this checkbox. When you do this you would be able to share the data within your context nodes across other components.
2) Specify a default value of AA in the "Default Value" property of the attribute in component MAIN
3) Now go to your other component SUB which you would like to also get initialised. Define a usage of your component MAIN within this component.
4) Go to your component controller & create your context node & attribute with exactly the same names as how you had created in your MAIN component.
5) Do a mapping between the interface controller of your MAIN component & the component controller of your SUB component
6) You would be able to see that the appearance of the node has changed to an interface node. This means that your SUB component now has an exact replica of your MAIN components context data.
regards,
amit
Edited by: amit saini on Oct 13, 2009 2:47 PM -
How to call View of Component A from Compoenent B
Hi Friends,
I have a requirment like:
There are four views in component A and i want to use view2 of Component A in Component B. Can some one tell me how to work out.
Note: All four views are assigned to one window only.
Thanks in Advance
Regards
SankarYeah view cannot be called independently.
Here in the above post i am just saying call the interface view.
which will call the window and first view will be called.
in the wddoinit of the first view . we will check the interface node and if a particular attribute is set.
that means call is coming from the comp B then you can fire the plug to next view.
this will take the user directly to second view.
but the flow logic then will be as per by comp A only.
means after view 2 it will go to view 3 like that as you have defined in comp A.
so you cannot use it as an independent reusable entity.
thanks
sarbjeet singh -
How to call View of Component B in WINDOW of Component A .
Hi Experts,
I have 4 different webdynpro Component. On the button click of first component view, I want second component view should be open in same exiting WINDOW, and same when button click from view of second component, 3rd component view should be open . I want all 4 component should be opened in ONE WINDOW ONLY .
Now I am using URL of component to open next component but this is opening seperate window.
So please guide me how to open different different webdynpro component in ONE WINDOW.
Thanks & Regards,
Abhiiesh.Hi,
Why did you create 4 views in 4 different components when you want to use all of them in a single window?
You could have created all 4 views in a single component.
Answer to your query:
Define the usage of components 2, 3 & 4 in component 1
Add the interface views of components 2, 3 & 4 in window of Comp_1
Create inbound and outbound plugs for the interface views and windows of components 2, 3 & 4 . Use these plugs to create navigation links in Window of comp_1.
Use the outbound plugs of windows to navigate btw views(From view call a method in window controller which will fire the outbound plugs).
Regards,
Ashwin -
How to call the bean in jspdyn component?
Hi,
i created jspdyn component in that bean and bussiness logic class in NWDS.i created a method() in that businesslogic class.i called that method in bean class.i created both in same package,there is no error occur while creating the object of that class.but the bean class not recognize the business class method which i created. What is the cause? and also tell me how to call the bean in jsppage also.and also give me textfields,button and syntax of event handling in HTMLB,iam new to this area.so,give me one example step by step.Hi,
Please check on these links for a good start.
Java development methodologies (Part II)
Bean usage in JSPDynPage
jspDynPage portalapp.xml
Regards,
Harini S
Please avoid giving personal mail id(s). That may prevent others from getting the same information when needed. -
How to call Custom or Component Controller methods from View Controller
Hy Guys,
how do I call Custom Controller or Component controller methods from a View or Context Controlller?
thanks in advance
JürgenHi Juergen
Yes it is possible, pls follow the below approach to access the component controller in context node class
1) since the standard component controller class is protect variable , declare a variable of type component controller in your controller class.
say for example the public variable you declared is g_comp_controller
2) now redefine the controller class method WD_CREATE_CONTEXT and add the below lines of code
g_comp_controller ?= me->comp_controller.
3) go to context node class (CNXX) there declare the varaible which of type controller class (IMPL) as public variable, for example g_owner
4) redefine the method IF_BSP_MODEL~INIT and write the below code
CALL METHOD super->if_bsp_model~init
EXPORTING
id = id
owner = owner.
g_owner ?= owner.
5) now the variable g_owner that is declared in (CNXX) contains reference to your controller class
6) in on_new_focus method access your component controller in the below manner and access the entities also.
DATA: lv_owner TYPE REF TO xxxxx_impl, " Implementation class
lr_comp_cont TYPE REF TO xxxx_bspwdcomponen_impl, " component controller class
lv_entity type ref to cl_crm_bol_entity.
lv_owner ?= g_owner.
lr_comp_cont ?= lv_owner->g_comp_controller.
IF lr_comp_cont IS BOUND.
lv_entity ?= lr_comp_cont->typed_context->mdfcampaign->collection_wrapper->get_current( ).
now lv_entity contains the value of component controller context node.
Thanks & Regards
Raj
Edited by: bmsraj on Sep 27, 2011 3:28 PM -
How to call method of Component A in Component B
Hi Friends,
I want to use Method A of Component A in Component B. Can some one tell me how to call method A on action of a button in component B.
Regards
SankarHi,
DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_method( ).
IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->create_component( ).
ENDIF.
DATA lo_interfacecontroller TYPE REF TO yiwci_sg_method .
lo_interfacecontroller = wd_this->wd_cpifc_method( ).
lo_interfacecontroller->execute_method(
i was able to do the above process successfully but how to bind data to the node of component 2.
In the component 1 : method A i defiend to get records upto 25 rows. now i tried using same method . but how to bind data using this method
Regards
sankar
Maybe you are looking for
-
How do I make one block shrink as another grows to replace it?
I'm trying to show some sort of Magic Move or Action event that show two objects in slide one that become one object in slide two when Object A shrinks to nothing and Object B grows to fill the space vacated by the absence of A. In other words, say I
-
I have a MACBOOK PRO running under 10.9 and 4 Gigs memory. I bought FCP to be able to burn blu-rays videos (I produced a 4h30 video on a trip to Turkey) My video is produced in full HD. I have an LG blu-ray burner. I bought training videos on FCP at
-
Secondary exposure correction?
Is there any way to correct spot exposure problems [ie. clipping] like you can correct secondary color with Three-Way Color Corrector? I have a clip where a white box that reflects too much--it moves, so I need the exposure correction to move as well
-
Down payment role authorisation
Hi all, The user wants to change the description of down payments. so I want to assign a role authorisation for T code FB02 only for down payment section for this user, because in FB02 can change all FI documents. please suggest what are the document
-
purchase cannot be completed