on 04-28-2009 3:19 PM
Hello Experts,
how can I create a global variable (internal table) so that I can fill in inside WDDOINIT and later within another
method inside the view.
Thx in advance
Best Reagards
ertas ilhan
Hi,
Declare a Table type in SE11 for your table data. In the component controller's Attribute tab declare a variable for the internal table wiht the table type and scope as Public.
In the view you can use it using the WD_COMP_CONTROLLER attribute.
Regards,
Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI ,
You can do it with two type.
1. You can define structure in database mens se11 & after that u can define type in attribute.
2. (A). IF you want to use table in same view then you can make any node & attribute in ur view's
context & define it in attribute after that you can use it with wd_this->[attribute name]
(B). But if you want use this table in another view then you have create it at component controler's
context & drag it into your diffrent diffrent view.
Thanks & Regards,
Jaten Sangal
Edited by: jaten Sangal on Apr 29, 2009 6:38 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
declare the variable in ComponentController Attributes.
Now u can access this variable in Componentcontroller as WD_THIS->variable_name and in view
controller u can access this as WD_COMP_CONTROLLER->variable_name.
Regards
Pankaj Aggarwal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
You have two options:
1. Define the table in View. For that, go to attributes Tab and define your table there with appropriate table type.
Use this Table in your methods using wd_this->Table.
2. Define the table in Component Controller. For that Declaration is same , just accessing that table is done by :
wd_comp_controller->Table.
Thanx.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Global Variables should be declared in Component Controller->Attributes tab.
and can be accessed using wd compcontroller->variable name
Regards,
Radhika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Go to attribute tab and declare Your variable there.
You can access that variable in the following way in another method as well.
to use that variable use following syntax.
wd_this->variable_name
If you will declare the variable in component controller and define as public.
then you can access this in all the views of component.
to access that use following syntax.
wd_comp_controller->variable name.
I hope it helps.
Regards,
Rohit
Edited by: Rohit Makkar on Apr 28, 2009 7:53 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.