How to call parent view event or method from popup in java webdynpro
Hi ,
I have view in my webdynpro component. I created a button, when i click i am opening a popup window.
In side popup window i am doing some search criteria. I want call a parent view method from popup window and populate search results in parent view table control.I can able to pass the data through context mapping. But i want a custom method where i want to write a code to populate the table control ( i don;t want to use the wdDoModifyView() method).
Please help me.
Thanks
Aravinda
Hi,
The methods in a view are only accessible inside same view. you cannot call it outside the view or
in any other view although its in same component.
If you want to have a method in both views, then create the method in component controller and
from there you can access the method any where in whole component.
Similar Messages
-
How to call another view controller's method from a view controller?
Hi,
Iam new to webdynpro . so pls clarify my doubt.
How to call another view controller's method from a view controller in the same Web Dynpro Component?
Thanks,
KrishnaHi,
The methods in a view are only accessible inside same view. you cannot call it outside the view or
in any other view although its in same component.
If you want to have a method in both views, then create the method in component controller and
from there you can access the method any where in whole component. -
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 a remote external c++ program from a local java program?
local java program pass some parameters to a remote C++ program and get the result from that C program output.
You could use a tcp/ip connection (e.g. with Sockets), and pass the parameters as Strings in the socketstream.
-
How to call parent procedure in child type?
i have two types,A and B.
B inherits from A and overrides a procedure 'prints',
then how call A's prints method in B?
following is codes:
create or replace type A as object (
rowsID integer;
member procedure printRowsID
create or replace type body A as
member procedure printMembers is
begin
dbms_output.put_line(rowsID);
end;
end;
create or replace type B under A (
roundNO number(2),
overriding member procedure printMembers
create or replace type B as
overriding member procedure printMembers is
begin
dbms_output.put_line(roundNO);
/*here i also want to print attribute value of 'rowsID',
but how to call parent's procedure which is overrided? */
end;
end;A.<<method>> syntax is wrong here because method is
not static.
Unfortunately Oracle doesn't have the syntax like C++ -
A::<<method>> - which allows you to call methods of
superclasses directly.
TREAT function also can't help you because even if
you treat SELF as supertype Oracle will work with
real type of object:
SQL> create or replace type A as object (
2 rowsID integer,
3 member procedure printMembers
4 ) not final
5 /
 
Type created.
 
SQL> create or replace type body A as
2 member procedure printMembers is
3 begin
4 dbms_output.put_line('Class A - ' || rowsID);
5 end;
6 end;
7 /
 
Type body created.
 
SQL> create or replace type B under A (
2 roundNO number(2),
3 member procedure whatisit
4 )
5 /
 
Type created.
 
SQL> create or replace type body B as
2
3 member procedure whatisit
4 is
5 aself a;
6 begin
7 select treat(self as a) into aself from dual;
8 if aself is of (b) then
9 dbms_output.put_line('This is B');
10 else
11 dbms_output.put_line('This is A');
12 end if;
13 end;
14
15 end;
16 /
 
Type body created.
 
SQL> declare
2 bobj b := b(1,2);
3 begin
4 bobj.whatisit;
5 end;
6 /
This is B
 
PL/SQL procedure successfully completed. One of workarounds is to use type-specific non-overrided
static method:
SQL> create or replace type A as object (
2 rowsID integer,
3 member procedure printMembers,
4 static procedure printA(sf A)
5 ) not final
6 /
 
Type created.
 
SQL> create or replace type body A as
2
3 member procedure printMembers is
4 begin
5 A.printA(self);
6 end;
7
8 static procedure printA(sf A)
9 is
10 begin
11 dbms_output.put_line('Class A - ' || sf.rowsID);
12 end;
13
14 end;
15 /
 
Type body created.
 
SQL> create or replace type B under A (
2 roundNO number(2),
3 overriding member procedure printMembers
4 )
5 /
 
Type created.
 
SQL> create or replace type body B as
2
3 overriding member procedure printMembers
4 is
5 begin
6 dbms_output.put_line('Class B - ' || roundNo);
7 A.printA(self);
8 end;
9 end;
10 /
 
Type body created.
 
SQL> declare
2 b1 b := b(1,2);
3 begin
4 b1.printMembers;
5 end;
6 /
Class B - 2
Class A - 1
 
PL/SQL procedure successfully completed.Rgds. -
How to call a particular event?
Hello All,
How to call a particular event like handle_data_changed after you press a button which is created in ALV.
Regards,
Lisa.ALV (Abap List Viewer)
We can easily implement basic features of reports like Sort, Allign, Filtering, Totals-Subtotals etc... by using ALV. Three types of reports we can do by ALV as 1. Simple Report, 2. Block Reprot and 3. Hierarchical Sequential Report.
alv grid types
1) list/ grid
these are having rows and columns
function modules for this type are
REUSE_ALV_LIST_DISPLAY
REUSE_ALV_GRID_DISPLAY2)
2) HIERARCHY
this will have header and line items
function module for this type
REUSE_ALV_HIERSEQ_LIST_DISPLAY
3) tree
this will nodes and child type structure
function module for this type
REUSE_ALV_TREE_DISPLAY
4) APPEND
this can append all the different types of lists where each list has different number of columns
events associated with alvs
1) top of page
2) end of page
3) top of list
4) end of list
5) on double click
6) on link click
7) on user command
some useful links:
http://www.sapdevelopment.co.uk/reporting/alvhome.htm
http://help.sap.com/saphelp_nw04/helpdata/en/99/49b844d61911d2b469006094192fe3/frameset.htm
Examples:
REPORT Z_ALV__ITEM .
TYPE-POOLS : slis.
Data
DATA : BEGIN OF itab OCCURS 0.
INCLUDE STRUCTURE t001.
DATA : flag tyPE c,
END OF itab.
*DATA: itab like t001 occurs 0 with header line.
DATA : alvfc TYPE slis_t_fieldcat_alv.
DATA : alvly TYPE slis_layout_alv.
data v_repid like sy-repid.
Select Data
v_repid = sy-repid.
SELECT * FROM t001 INTO TABLE itab.
*------- Field Catalogue
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
i_program_name = v_repid
i_internal_tabname = 'ITAB'
I_STRUCTURE_NAME =
I_CLIENT_NEVER_DISPLAY = 'X'
i_inclname = v_repid
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
changing
ct_fieldcat = alvfc[] .
Display
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_fieldcat = alvfc[]
i_callback_program = v_repid
is_layout = alvly
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
In very detail it's not easy, i believe it's better for you to test the function modules to work with ALV :
REUSE_ALV_FIELDCATALOG_MERGE to create the fieldcatalogue
REUSE_ALV_GRID_DISPLAY - to display the ALV in grid format
REUSE_ALV_LIST_DISPLAY - to display the ALV in list format
Anyone, here's one exemple of creating ALV reports :
REPORT ZALV_SLAS_GDF .
Declaração de Dados
TABLES: ZSLA_NIV_SAT.
selection-screen begin of block b1 with frame title text-001.
select-options DATA for ZSLA_NIV_SAT-DATA. " Data
select-options LIFNR for ZSLA_NIV_SAT-LIFNR. " Nº de conta fornecedor
select-options WERKS for ZSLA_NIV_SAT-WERKS. " Centro
select-options EBELN for ZSLA_NIV_SAT-EBELN. " Nº contrato
selection-screen end of block b1.
DATA: BEGIN OF itab1 OCCURS 100.
include structure ZSLA_NIV_SAT.
data: END OF itab1.
Outros dados necessários:
Campo para guardar o nome do report
DATA: i_repid LIKE sy-repid.
Campo para verificar o tamanho da tabela
DATA: i_lines LIKE sy-tabix.
Dados para mostrar o ALV
TYPE-POOLS: SLIS.
*DATA: int_fcat type SLIS_T_FIELDCAT_ALV with header line.
DATA: int_fcat type SLIS_T_FIELDCAT_ALV.
DATA: l_key TYPE slis_keyinfo_alv.
START-OF-SELECTION.
Ler dados para dentro da tabela imat
SELECT * FROM ZSLA_NIV_SAT
INTO CORRESPONDING FIELDS OF TABLE itab1
WHERE data in data
and lifnr in lifnr
and ebeln in ebeln
and werks in werks.
CLEAR: i_lines.
DESCRIBE TABLE itab1 LINES i_lines.
IF i_lines lt 1.
WRITE: / 'Não foram seleccionadas entradas.'.
EXIT.
ENDIF.
END-OF-SELECTION.
Agora, começa-se o ALV
Para usar o ALV, nós precisamos de uma estrutura do dicionário de
*dados DDIC ou de uma coisa chamada Fieldcatalogue.
Existe 2 maneiras de preencher a coisa referida acima:
*Automaticamente e Manualmente
Como preencher Automaticamente?
O fieldcatalouge pode ser gerado pela Função
*'REUSE_ALV_FIELDCATALOG_MERGE' a partir de uma tabela de qualquer fonte
Para que se possa utilizar esta função tabela tem que ter campos do
*dicionário de dados, como é o caso da tabela ITAB1
Guardar o nome do programa
i_repid = sy-repid.
Create Fieldcatalogue from internal table
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME =
i_repid
I_INTERNAL_TABNAME =
'ITAB1' "LETRAS GRANDES
I_INCLNAME =
i_repid
CHANGING
CT_FIELDCAT =
int_fcat[]
EXCEPTIONS
INCONSISTENT_INTERFACE =
1
PROGRAM_ERROR =
2
OTHERS =
3.
IF SY-SUBRC <> 0.
WRITE: / 'Returncode', sy-subrc,
'from FUNCTION REUSE_ALV_FIELDCATALOG_MERGE'.
ENDIF.
*Isto era o Fieldcatalogue
E agora estamos preparados para executar o ALV
Chama o ALV
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = i_repid
IT_FIELDCAT = int_fcat[]
I_DEFAULT = ' '
I_SAVE = ' ' "'A'
TABLES
T_OUTTAB = itab1
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
WRITE: /
'Returncode', sy-subrc, 'from FUNCTION REUSE_ALV_GRID_DISPLAY'.
ENDIF.
Please reward the helpful entries. -
How to call a view from Interface view
Folks,
How to call a view from interface view (onPlugDefault method) . I was trying to set context of controller but it is not working . What is the work around.
ManishHi Manish,
An interface view is created for each window that you have, which in-turn has views embedded, one of which is default. If you want to pass data which you have in your interface view, do the following
- Add your component controller in your interface view properties
- In the onPlugDefault method(I assume this is where you have the data available through URL parameters),set the component controller context variables like
wdThis.wdGetComContr.wdGetContext().currentContextElement().setName("John");
-Access these context variables in your view as well by adding the component controller as the required controller
Your default view will appear automatically when you call the application.
Regards,
LM -
How to Call Image Viewer from Form application
Hi,
how to call Image viewer using host command on oracle form 6i.
i trying using host command on local/client application .. and it is working ...
but when i try on server application (EBS - UNIX) it does not working ...
thanks ..
regards,
safarAre you using Forms 6i in client/server mode or web deployed? I'm not sure what you mean by 'try on server application"
Remember that when using a web deployed architecture, a host command will execute the command on the Forms application server, NOT on the client.
To execute host commands on the client you would have to use WebUtil, but that's not available for Forms 6i. Perhaps there are PJC's out there that can do it for you, but I don't want to get in all those details without me knowing if it is relevant for you. -
How to call a exe or bat file from java program
hi,
i actually want to know that how to call a exe or bat file from program so that i can run them parallely.Try this :
String strCmd = "myFile.bat";
try
Runtime rTime = Runtime.getRuntime();
Process process = rTime.exec(strCmd);
InputStream p_in = process.getInputStream();
OutputStream p_out = process.getOutputStream();
InputStream p_err = process.getErrorStream();
p_in.close();
p_out.close();
p_err.close();
catch(Exception e) {
throw new Exception("Unable to start, "+strCmd);
} -
How to call Operating System commands / external programs from within APEX
Hi,
Can someone please suggest how to call Operating Systems commands / external programs from within APEX?
E.g. say I need to run a SQL script on a particular database. SQL script, database name, userid & password everything is available in a table in Oracle. I want to build a utility in APEX where by when I click a button APEX should run the following
c:\oracle\bin\sqlplusw.exe userud/password@database @script_name.sql
Any pointers will be greatly appreciated.
Thanks & Regards,Hi Guys,
I have reviewed the option of using scheduler and javascript and they do satisfy my requirements PARTIALLY. Any calls to operating system commands through these features will be made on the server where APEX is installed.
However, here what I am looking at is to call operating systems programs on client machine. For example in my APEX application I have constructed the following strings of commands that needs to be run to execute a change request.
sqlplusw.exe user/password@database @script1.sql
sqlplusw.exe user/password@database @script2.sql
sqlplusw.exe user/password@database @script3.sql
sqlplusw.exe user/password@database @script4.sql
What I want is to have a button/link on the APEX screen along with these lines so that when I click that link/button this entire line of command gets executed in the same way it would get executed if I copy and paste this command in the command window of windows.
Believe me, if I am able to achieve what I intend to do, it is going to save a lot of our DBAs time and effort.
Any help will be greatly appreciated.
Thanks & Regards, -
Calling a css user created method from jspx page in ADF faces
Hi all,
Can anyone help me out to solve an issue calling a css user created method from a jspx page.
Note: The css method is not the default css method. It needs to be called using 'styleClass' attribute in any tag.
Thanks
NehaHi,
I am not an expert in CSS so I don't know what a css method is. However, CSS can be applied to components via EL accessing a managed bean that returns the sytle text
Frank -
How do I save albums, events in tact from iPhoto to external drive to comply with iClouds limits? (iMac Lion, need to remove 280gb of photos>
Not sure if I understand correctly?
Do you want to move 280 GB of photos from iPhoto on your Mac to an external hard drive?
If that is the case, iCloud has nothing to do with it. You can move your iPhoto library to an external drive to free up space on your internal drive.
http://docs.info.apple.com/article.html?path=iPhoto/8.0/en/6331.html
If that is not what you're trying to do, please rephrase your question. Thanks. -
How to call a sql server stored procedure from oracle
Hi all,
Please anybody tell me how to call a sql server stored procedure from oracle.
I've made an hsodbc connection and i can do insert, update, fetch data in sql server from oracle. But calling SP gives error. when I tried an SP at oracle that has line like
"dbo"."CreateReceipt"@hsa
where CreateReceipt is the SP of sql server and hsa is the DSN, it gives the error that "dbo"."CreateReceipt" should be declared.
my database version is 10g
Please help me how can i call it... I need to pass some parameters too to the SP
thanking youhi,
thank you for the response.
when i call the sp using DBMS_HS_PASSTHROUGH, without parameters it works successfully, but with parameters it gives the following error
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][Microsoft][ODBC SQL Server Driver]Invalid parameter number[Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index (SQL State: S1093; SQL Code: 0)
my code is,
declare
c INTEGER;
nr INTEGER;
begin
c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@hsa;
DBMS_HS_PASSTHROUGH.PARSE@hsa(c, 'Create_Receipt(?,?)');
DBMS_HS_PASSTHROUGH.BIND_VARIABLE@hsa(c,1,'abc');
DBMS_HS_PASSTHROUGH.BIND_VARIABLE@hsa(c,2,'xyz');
nr:=DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@hsa(c);
DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@hsa(c);
end;
Create_Receipt is the sp which requires two parameters.
please give me a solution
thanking you
sreejith -
How to call & pass values to custom page from seeded page table region
Hi All,
can anyone tell me how to call & pass values to custom page from seeded page table region(Attribute is not available in seeded page VO)
it is urgent. plssss
Regards,
purnaHi,
Yes, we do this by extending controller, but you can also try this without extending controller.
1. Create Submit Button on TableRN using personalization.
2. Set "Destination URI" property to like below
OA.jsp?page=/<yourname>/oracle/apps/ak/employee/webui/EmpDetailsPG&employeeNumber={@EmployeeId}&employeeName={@EmployeeName}&retainAM=Y&addBreadCrumb=Y
Give your custom page path instead of EmpDetailsPG.
EmployeeId and EmployeeName are VO attributes(Table Region)
If you dont have desired attribute in VO, then write logic in your custom page controller to get required value using parameters passed from URL path.
In this case, only personalization will do our job. Hope it helps.
Thanks,
Venkat Y. -
How to call a view without event handler onaction method.
Hi Experts,
I have develop a WD application. It has three views let view1, view2 and view3.
In view1 one button is there (onaction) which navigates to view2 through outbound plug wd_This->Fire_Out_Screen1_Plg( ). where Out_Screen1 is outbound plug of view1.
Now view2 appears , I want that after 10 seconds view2 automatically call view3, without action on view2.
I have written like wd_This->Fire_OUT_SCREEN2_Plg( ). where OUT_SCREEN2 is outbound plug of view2, which navigates to inbound plug of view3.
But its not working. Please suggest how to and where to write code to call a view without action .
for ur ref.Hi Bhagat,
Yes, you can attach media objects into a view
Using IFRAME ui element and html mime object.
Please refer the below link
To insert video in webdynpro - Web Dynpro ABAP - SCN Wiki
Using Flash Islands
Here, you need to have your audio/video file as flash object
Please refer the below tutorial on flash islands( a generic example )
Adobe Flash Islands for Webdynpro ABAP
Hope this helps you.
Regards,
Rama
Maybe you are looking for
-
Windows 8.1 Freezing and Refresh Failed - winload.efi error 0xc0000001
Hey, everybody. I'm new to these forums so I'm sorry if I do anything wrong, and sorry for the long post. I own a three-month-old Toshiba Satellite S50D-A that came with Windows 8 installed and ran perfectly. I was eventually asked to upgrade to Wind
-
FSRM report limits using PowerShell
I am following this article: http://blogs.technet.com/b/filecab/archive/2014/05/20/set-fsrm-storage-report-limits-using-powershell.aspx I did have this working just fine, but after installing Windows Updates today on a 2012 R2 box this functionality
-
Best way to set up In Store Wifi?
I own a Coffee Shop and want to set up a public wifi network, but I want people to enter their email before they can use it like the big stores? As an example when you walk into Starbucks, you enter your email to access their network. How do I set up
-
I want an if statement to do the following If (x is not neagaitve) Do this. eg. If (x!= -n) //where n can be one of an array of numbers Do this. Can anyone help with the "if statement". Cheers, Enda.
-
Adobe cs3 @ win xp 64 bit and 16 gig of ram
im editing images with huge file size in adobe cs3 and i want to make it fast. can this machine help cs3 on it's performance ??? OS - xp sp3 64 bit motherboard - gigabyte ep45-ud3p CPU - intel core2quad Q8200 @ 2.33GHz(4 CPUs),~2.3GHz GeForce 9500 GT