on 12-04-2009 3:38 AM
Hi to All ABAP Web Dynpro Experts,
I am Having some Questions regarding ABAP Web Dynpro Please Clarify These,
1.How to Pass the data from one view to another view without any component controller or any controllers?
2.How pass Parameters to domodifyview() method through dynamic programming?
3.How to know how many times domodify() method is executed in ABAP WebDynpro?
4.Explain Model, View and Controller In ABAP WebDynpro?
5.Advancements in 2004s ABAP WebDynpro Component?
6.How to add a row to a table in dynamic programming?
Thanks In Advance
VijayKumar
hi
How pass Parameters to domodifyview() method through dynamic programming?
The interface of method wdDoModifyView provides a parameter VIEW, which is a reference to an object of type IF_WD_VIEW representing the instance of a view at runtime
check out my WIKI :
http://wiki.sdn.sap.com/wiki/display/stage/dynamiclayoutmanipulationinWD+ABAP
I am creating the drop down by index . I have used the reference using the attribute mr_view .
mr_view refers to the associated TYPE IF_WD_VIEW .
How to know how many times domodify() method is executed in ABAP WebDynpro?
proceed like this :
1 in ur view ATTRIBUTE's tab declare a variable of type numc , say lv_var
2 similarly in comonent controller ATTRIBUTe's tab , one variable of type numc , say gv_var
2 when u have not specified any value , its value is '00' by default
3 now in ur do modify , increment lv_var by 1 and pass it to gv_var
DATA : lv_variable type NUMC.
wd_this->lv_var = wd_this->lv_var +1 .
lv_variable = wd_this->lv_var .
wd_comp_controller->gv_var = lv_variable.
// now COUNTER wd_comp_controller->gv_var can be accessed across several views
.
Explain Model, View and Controller In ABAP WebDynpro?
The model forms the interface to the back end system and thus enables the Web Dynpro application access to data.
The view is responsible for the representation of the data in the browser.
View is nothing but UI layout design to show the data
The controller lies between the view and the model. The controller formats the model data to be displayed in the view, processes the user entries made by the user, and returns them to the model.
regards,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijay,
1.How to Pass the data from one view to another view without any component controller or any controllers?
If you dont want use component controller to pass value from one view to other, then you need pass parameters to event handeler of in-bound plug of the destination view. Open the destination view, in methods tab find the event handler method assosicated with in bound plug, open the method and add Importing parameters as per the requirement. Now open the
source view and in method tab open the method in which you have fired the outbound plug. Pass the oparameters here while
fireing the outbound plug to pass your values.
2.How pass Parameters to domodifyview() method through dynamic programming?
I think one way to pass parameters to domodifyview() method is create attributes as per requirement in the view's context
or create globle attributes in the attribute tab of the view. Now set values to these attributes that you want prior to firing any
action/event that calls domodifyview() method. And access these context attribute or global attribute in domodifyview() method.
3.How to know how many times domodify() method is executed in ABAP WebDynpro?
Same as explained in answer 2, create context or global attribute and increament the value in domodifyview().
4.Explain Model, View and Controller In ABAP WebDynpro?
Please refer to the Architecture of Web Dynpro at the following link:
http://help.sap.com/saphelp_nw2004s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
5.Advancements in 2004s ABAP WebDynpro Component?
Please go through the following link or serch more at SAP help portal.
http://help.sap.com/saphelp_nw2004s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
6.How to add a row to a table in dynamic programming?
To add a row to a table control, you need to add an empty element to the node which binded to table control
Use the method CREATE ELEMENT of the node object/instance to create empty element.
Regards,
Vikrant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Vijay ,
How to add a row to a table in dynamic programming?
refer Dynamic Programming of Properties in SAP online help
http://help.sap.com/saphelp_nwmobile71/helpdata/en/b5/ac884118aa1709e10000000a155106/content.htm
refer WD ABAP documentation / for beginners :
http://help.sap.com/saphelp_nw2004s/helpdata/en/7c/3545415ea6f523e10000000a155106/frameset.htm
https://www.sdn.sap.com/irj/sdn/nw-ui?rid=/webcontent/uuid/fed073e5-0901-0010-4eb4-c9882aac7b11 [original link is broken]
http://help.sap.com/saphelp_nw2004s/helpdata/en/03/0048413e466e24e10000000a155106/content.htm
Main Topic Page:
http://sdn.sap.com/irj/sdn/nw-wdabap#section2
Tutorials for Beginners:
eLearning Videos:
/people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
regards,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
4.Explain Model, View and Controller In ABAP WebDynpro?
http://help.sap.com/saphelp_nw70/helpdata/en/47/4575fc80f81962e10000000a114a6b/frameset.htm
5.Advancements in 2004s ABAP WebDynpro Component?
Refer this link of SAP online help:
http://help.sap.com/saphelp_nw70/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
3.How to know how many times domodify() method is executed in ABAP WebDynpro?
This can be taken care of by using an Attribute.
+1.Define an attribute in View Controller's Attribute Tab. lv _count type I
+2.In the wddomodify , increment it by 1 using
+3.wd_this->lv_count = wd_this->lv_count + 1.
Whenever you want to check how many times domodify has been called , just read the value of this attribute.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1.How to Pass the data from one view to another view without any component controller or any controllers?
If you donot want to sue the component controller then you can use the plugs where you can pass data from one view to other
2.How pass Parameters to domodifyview() method through dynamic programming?
For dynamic programming, you can use tghe paraemter VIEW for creating UI elements dynamically...
Check the forum as there are many threads on the same.
3.How to know how many times domodify() method is executed in ABAP WebDynpro?
It isi excuted for first time when the component is instantatied fro that view and when ever there is any change in the UI ie any action on UI this modifyview gets triggered.
4.Explain Model, View and Controller In ABAP WebDynpro?
Check the forum for the same there are seevral links
5.Advancements in 2004s ABAP WebDynpro Component?
Check the forum for the same there are seevral links
6.How to add a row to a table in dynamic programming?
Check the forum for the same there are seevral links - Dynamic programming....
Regards,
Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1.How to Pass the data from one view to another view without any component controller or any controllers?
If you mean that you dont want to do mapping of controllers i.e View controller and Component controller , then you can save the values in Attributes of Component controller. Use wd_comp_controller to access comp controller' values.
If you dont want to save in Attributes of Component controller, Use the concept of Assitance Classes.
By this, save the value in Assistance classes Variable and use in other views of other components.
Refer Online Help for Assitance Class :
http://help.sap.com/saphelp_nw70/helpdata/EN/43/1f6442a3d9e72ce10000000a1550b0/frameset.htm
Refer the Standard Component to know more on Assitance Classes : DEMO_COMMON_ASSISTANCE1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.