How to call navigation action?
Hello
I'm using JDeveloper 11g 10.1.1.3
I need to call navigation action on double click on the row of table.
I know how to use clientListener and serverListener, but I can't call navigation action (it is described in adfc-config.xml) from serverListener's method.
How could I do that?
Anatolii
After some time spended with all this staff, now I have a problem.
I have a page builded on a pageTemplate.
Inside this page I have one region with the bounded task flow "users" with table of users.
I created a button "btEditUser" and set action "toEditUser".
When I click on this button, I go to the nested task flow "editUser" (the page of editing user).
Next, I want to do that action after dblClick of the mouse button on the row of the table.
So, I created a clientListener and serverListener.
After processing some code (looking for selected row) the serverListener method processes next code:
ActionEvent actionEvent = new ActionEvent(btEditUser);
actionEvent.queue();(The button "btEditUser" is binded to the "btEditUser" attribute of my backing bean.)
This code is really processes (I traced that in the debagger), but nothing happens - after all I'm still on the first page.
I compared the logs of both variants of this action and found, that in the case with serverListener after processing this code i have next message:
<PartialPageContextImpl><<init>> PPR is about to render without any targetsWhat could it be?
Anatolii
Similar Messages
-
How to call a action on page load in jsf
Hi all,
i am having a JSF page where i want to display the records from the datatable. I have a method in bean which call database and gets the list of records. If i call this method from a link (action on this link) present on this page i can display the records on this page.
But i want to display these records at the time of page load only. How we can do this? How to call a action at the time of page load?
Thanks in adv.If i am calling the database class and get the list in constructor only i am able to display list in the datatable on page load. This works fine. But the requirment is that if there are no records in the list display a error page with message-No records found! . But how i can navigate from the constructor to error page?
Like-
class MyBeam{
MyBean{
private List requestVOList = null;
MyDao dao = new MyDao() //for fetching list from DB
List records = dao.getList() //get list from dao class
if(records==null)
//Navigate to error page. How to do this navigation here?
else
requestVOList = records;
//setter/getters for requestVOList
} -
How to call a action in javascript
hi..
am a learner..
can anyone guide me how to call a action in Illustrator CS2 using javascript
thanks in advance,
JasyYep!
Maybe they prefer Apple. Maybe most of their buyers comes from that side. Maybe they dont know how to script.
Java would have been to hard for most of us. Javascript is everywhere on the web ... pages.
After so many years, they did not put the effort and money . This scripting idea is still for ' amateur' and to compensate for I dont know what. -
Z-Button - How to call a Action Profile to Open a PDF-Doc. within an Event?
Hi Experts,
we have created a Z-Button that afterwards creates an event. In the coding for the event an Action Profile should be called and a PDF-Document should be opened. We have copied the coding from the standard button 'Print Preview' which is calling the standard event: EH_ONPRINT_PREVIEW.
We have also defined a Z Action Profile which is a copie of SERVICE_CONFIRMATION. Our problem is we don't know how why our Z-Action Prodile is not called? What is the class lr_actioncontext (TYPE REF TO cl_crm_bol_entity)?
DATA: lr_cn TYPE REF TO cl_bsp_wd_context_node,
lr_adminh TYPE REF TO cl_crm_bol_entity,
lr_actioncontext TYPE REF TO cl_crm_bol_entity,
lv_adminh_guid TYPE string,
lv_url TYPE string,
lc_head_context TYPE REF TO cl_doc_context_crm_order,
lt_item_context TYPE ppftctxpos,
iv_header_guid TYPE crmt_object_guid,
lif_decision_pop TYPE REF TO if_bsp_wd_popup,
lv_string TYPE string.
CHECK gv_print_preview_enabled = abap_true.
lr_cn = me->get_context_node( gc_cn_btadminh ).
CHECK lr_cn IS BOUND.
lr_adminh ?= lr_cn->collection_wrapper->get_current( ).
CHECK lr_adminh IS BOUND.
lv_adminh_guid = lr_adminh->get_property_as_string( iv_attr_name = 'GUID' ).
lr_actioncontext = lr_adminh->get_related_entity( iv_relation_name = 'BTHeaderAction' ). "#EC NOTEXT
CLEAR gt_print_actions.
CLEAR gr_action_popup.
iv_header_guid = lv_adminh_guid.
CALL METHOD cl_crm_uiu_actions_tools=>get_action_definition
RECEIVING
rv_action_def = lv_string.
CALL METHOD cl_crm_uiu_actions_tools=>show_print_actions_popup
EXPORTING
ir_action_context = lr_actioncontext
ir_parent_node = lr_adminh
ir_view_controller = me
ir_component_controller = comp_controller
iv_event_name = gc_ev_print_preview_closed
iv_for_preview = abap_true
iv_appl_guid = lv_adminh_guid
IMPORTING
et_actions = gt_print_actions
ev_url = lv_url
CHANGING
cr_decision_popup = gr_action_popup.
IF lv_url IS NOT INITIAL.
call_print_preview_popup( lv_url ).
ENDIF.
Best RegardsClosed. No answers.
-
hi experts,
i have an subroutine for dynamice action for creating IT2006 with me.
but i dont no where to call that subroutine can anyone plz tell me how to do this.
where should i write perform statement.
for eg. i want to call that action while creating /changing the record in IT0001.
plz do ASAP.
thanks in advance.
vinod.HI,
Go to IMG>Personnel Management>Personnel Administration>Customizing Procedures>Dynamic Actions
Or Use table T588Z.
Have a look at these links
http://wiki.ittoolbox.com/index.php/Dynamic_Action
http://www.hrexpertonline.com/downloads/Rehan%20Zaidi%20Online%20Portion.doc
Reward points if Helpful.
Regards,
Manoj. -
How to call an action when the user selects a radiobutton
Hai
PLease help me in providing the information.
In my Project i have two radio buttons as
New
Asssessment
when the user selects new button, i want to automatically call an action in the controller(.jpf file)
Simalarly when he selects the other radio button i need to call a separate action in the controller.
Remember i dont have the submit button.
I want to dynamically call an action when the user selects the radio button.
i dont have any field inthe radio button which actually takes action as an attribute .
please provide me the necessaryHi,
You can use JavaScript to call the action in interest upon the Radio Button Element Being Selected.Should be simple, and if your controller is part of the portlet dont forget to use the jpfScopeId to asscoiate the controller instance with the one in the portlet.
Let me know if you have any further questions. -
How to call struts action manually in onchange property???
Hello!
action defined in struts-config.xml:
<action path="/editLafLm" className="oracle.adf.controller.struts.actions.DataActionMapping" type="oracle.adf.controller.struts.actions.DataForwardAction" name="DataForm" parameter="/editLafLm.jsp">
<set-property property="modelReference" value="editLafLmUIModel"/>
<forward name="Submit" path="/viewLaf.do"/>
</action>
In my JSP the following form:
<html:form action="/editLafLm.do" target="laf" onsubmit="self.close();">
<input type="hidden" name="<c:out value='${bindings.statetokenid}'/>" value="<c:out value='${bindings.statetoken}'/>"/>
<html:select property="StaId1">
<html:optionsCollection label="prompt" value="index" property="StaId1.displayData"/>
</html:select>
<c:out value="${bindings.editingMode}"/>
<input name="event_Submit" type="submit" value=" OK "/>
</html:form>
When i click choose an entry from the Select list and then click the Submit Button all works well (the action forward goes to viewLaf.do)
But i want to use the "onchange" property on the select list:
<html:select property="StaId1" onchange="submit();">
This is not the same as pressing the Submit button because here the action editLafLm.do is done in a new window (and then i have to click the submit button)...
So can i call the action or the action forward manually in the onchange-property so that there is the same behavour as clicking on the submit button???
Thanks
MarkusMarkus,
You can use the click method on the submit button called "event_Submit". The trick is to access it in the elements array of the form.
So instead of:
<html:select property="StaId1" onchange="submit();">you will have
<html:select property="StaId1" onchange="elements[n].click();">where n is the correct index of the 'event_Submit' element in the array of form elements.
If you need to access the form by name you can always count the form name to be DataForm. So from the document it will be:
document.forms.DataForm.elements[8].click()Charles. -
How to call another action from Struts dispatch action?
Hi all,
there is a method in dispatch action that needs data from another chained action. How should other action determine which method in dispatch action will receive response and how should these data be returned from called action? Called action does not have associated form bean
thanks,Not sure, why are there then "chained actions" is struts practice? Struts allows action without form bean to be configured and the action is a class?
-
How to call action from my plug-in.
Hi,
I am developing a plug-in. But I didn't know how to call a action from my plug-in. Anybody can help me?
Thank's you
youth.See the listener example in the automation plug-in samples. Build and install this plug-in. Do something in Photoshop and look for the Listener.log file on c:\ or your desktop on the macintosh.
You must me an automation plug-in to "play" actions. -
Hi,
Hi have created DDK (DropDownByKey) with data from adaptative RFC (in wdDoInit).
When the data from RFC have more than one registry, I have created action (onSelect) to execute other RFC that populate data in other view.
When the data from RFC is only one registry, this data is selected (by default) in DDK, but the action "onSelect" is not called.
How to call onSelect action of DDK with one registry (selected) in wdDoInit??
Best regards,Alvaro,
DDK is getting populated with the data from r3, so before it reaches to DDK , we have some mean to know how many registies it has,
1)Take size of the output node(in which there is data),
2)Put one if condition which will check the size,
3)so, if size is 1, then add a blank entry explicitly, otherwise, goto else part and add the entries in normal way.
So even if you have 1 entry in DDK, it wont get selected by default.
hope it helps
regards -
How to call a struts action from a JSF page
I am working on a small POC that has to do with struts-faces. I need to know how to call a struts ".do" action from a JSF page..
Sameer Jafferis it not possible to call a action from the faces submit button and/or the navigation?
This a simple POC using struts-faces exmaples.
Here is my struts-config and faces-config file.
<struts-config>
<data-sources/>
<form-beans>
<form-bean name="GetNameForm" type="demo.GetNameForm"/>
</form-beans>
<global-exceptions/>
<global-forwards>
<forward name="getName" path="/pages/inputname.jsp"/>
</global-forwards>
<action-mappings>
<action name="GetNameForm" path="/greeting" scope="request" type="demo.GreetingAction">
<forward name="sayhello" path="/pages/greeting.jsp"/>
</action>
</action-mappings>
<controller>
<set-property property="inputForward" value="true"/>
<set-property property="processorClass"
value="org.apache.struts.faces.application.FacesRequestProcessor"/>
</controller>
</struts-config>faces-config
<faces-config>
<managed-bean>
<managed-bean-name>calculate</managed-bean-name>
<managed-bean-class>com.jsftest.Calculate</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>GetNameForm</managed-bean-name>
<managed-bean-class>demo.GetNameForm</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/calculate.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/success.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>failure</from-outcome>
<to-view-id>/failure.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/inputNameJSF.jsp</from-view-id>
<navigation-case>
<to-view-id>/pages/greeting.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>in my inputNameJSF.jsp (faces page)
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="s" uri="http://struts.apache.org/tags-faces" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Say Hello!!</title>
</head>
<body>
Input Name
<f:view>
<h:form >
<h:inputText value="#{GetNameForm.name}" id = "name" />
<br>
<h:commandButton id="submit" action="/greeting.do" value=" Say Hello! " />
</h:form>
</f:view>
</body>
</html>I want to be able to call the struts action invoking the Action method in the that returns the name
package demo;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class GreetingAction extends org.apache.struts.action.Action {
// Global Forwards
public static final String GLOBAL_FORWARD_getName = "getName";
// Local Forwards
private static final String FORWARD_sayhello = "sayhello";
public GreetingAction() {
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
String name = ((demo.GetNameForm)form).getName();
String greeting = "Hello, "+name+"!";
request.setAttribute("greeting", greeting);
return mapping.findForward(FORWARD_sayhello);
}Edited by: sijaffer on Aug 11, 2009 12:03 PM -
How to call Function through Soap Action
Hi all,
I have a Receiver communication channel in PI that sends data to from the interface to Oracle Webservice.
At that moment a function should be called with two constant parameters and the third one is the xml with all the data.
updateExchangeRates("CJV", "connector", ratesXML)
xml schema:
Anyone knows if it is possible to call that function in PI soap action and how should I do it?
I've tested soap action with
updateExchangeRates("CJV", "connector", list_wrapper)
and got the error:
invalid content type for SOAP: TEXT/HTML; HTTP 401 Unauthorized
Thnaks in advance,
RegardsHi,
Please refer the below blogs for dynammic soap action
How to set soap action in soap adapter during configuration when there are multiple operations in a web service?
Dynamically providing URL and action values to receiver SOAP communication channe
regards,
Harish -
How to Call smart form in Action
Hi All,
Could some one tell me how to call the smart form in action.
Eg. PB40 - Offer Contract Action.
Appreciate your respnse.
Regards
RajHi ,
attached you find some abap code to call a smartform with some comments in it. Hope that helps:
DATA: l_fn_name TYPE rs38l_fnam
, l_devtype TYPE rspoptype
, ls_output_options TYPE ssfcompop
, ls_control_parameters TYPE ssfctrlop
, ls_job_output_info TYPE ssfcrescl
, l_pdf_fsize TYPE i "#EC NEEDED
, lt_otf_tab TYPE tsfotf
, lt_pdf_lines TYPE TABLE OF tline
To do
The mapping from the UI structure to the Smortform structure has to be
implemented here or in a pirvate method.....
Call function module u201CSSF_FUNCTION_MODULE_NAMEu201D to get the name of the smartform.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = zh38tm_cl_zz_2gen_bl_constants=>c_smartforms_hipo
IMPORTING
fm_name = l_fn_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc = 0.
Call function module u201CSSF_GET_DEVICE_TYPEu201D to get the print parameter
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
i_language = sy-langu
IMPORTING
e_devtype = l_devtype
EXCEPTIONS
no_language = 1
language_not_installed = 2
no_devtype_found = 3
system_error = 4
OTHERS = 5.
IF sy-subrc = 0.
Fill label structure to smartform
ls_labels = zh38pm_cl_zz_bl_perf_plan=>set_sf_label( ).
Set output parameters u201CLANGUAGEu201D, u201CNO_DIALOGu201D and u201CGETOTFu201D
ls_output_options-tdprinter = l_devtype.
ls_control_parameters-no_dialog = abap_true.
ls_control_parameters-getotf = abap_true.
ls_control_parameters-langu = sy-langu.
Call smartform with the structures u201CIMP_S_PERF_PLANu201D, u201CCHG_S_PRINT_PLAN
CALL FUNCTION l_fn_name
EXPORTING
control_parameters = ls_control_parameters
output_options = ls_output_options
s_doc_processing = gs_doc-s_doc_processing
s_header_display = gs_doc-s_header_display
s_header_texts = gs_doc-s_header_texts
s_header_status = gs_doc-s_header_status
t_header_appraiser = gs_doc-t_header_appraiser
t_header_appraisee = gs_doc-t_header_appraisee
t_header_part_appraiser = gs_doc-t_header_part_appraisers
t_header_other = gs_doc-t_header_others
s_header_dates = gs_doc-s_header_dates
t_header_add_data = gs_doc-t_header_add_data
t_body_columns = gs_doc-t_body_columns
t_body_element_descr = gs_doc-t_body_element_descr
t_body_elements = gs_doc-t_body_elements
t_body_cells = gs_doc-t_body_cells
t_body_cell_notes = gs_doc-t_body_cell_notes
t_body_cell_val_values = gs_doc-t_body_cell_val_values
t_body_cell_val_ranges = gs_doc-t_body_cell_val_ranges
t_body_cell_val_c_like = gs_doc-t_body_cell_val_c_like
t_body_cell_val_descr = gs_doc-t_body_cell_val_descr
IMPORTING
job_output_info = ls_job_output_info
EXCEPTIONS
formattinl_error = 1
internal_error = 2
send_error = 3
user_canceled = 4.
IF sy-subrc = 0.
APPEND LINES OF ls_job_output_info-otfdata TO lt_otf_tab.
exp_t_otf = lt_otf_tab.
Call function module u201CCONVERT_OTFu201D to convert the smartform data
to exporting parameter u201CEXP_PDF_XSTRING
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = l_pdf_fsize
bin_file = exp_pdf_xstring
TABLES
otf = lt_otf_tab
lines = lt_pdf_lines
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
IF sy-subrc ne 0.
CLEAR exp_pdf_xstring.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
First you have to determine the smartforms function modules name the wxecute it. -
How to call particular method in action class from Portlets StrutsContent
I am developing a web application which uses weblogic portlets and struts. This is what I have for now in the .portlet file.
+<netuix:strutsContent action="getStudentList" module = "people/students"+
refreshAction = "getStudentList" reqestAttrpersistence="none"/>
I want it to change something like this:
+<netuix:strutsContent action="getStudentList.do?method=allGrads" module = "people/students"+
refreshAction = "getStudentLis.do?method=allGrads" reqestAttrpersistence="none"/>
But this is not working. So how can I achieve something like that?
Thanks
Edited by: user13634949 on Jun 23, 2011 1:22 PM
Edited by: user13634949 on Jun 23, 2011 1:22 PMNo, i dont know how to call other than main methods from other classes
And one more doubt i have i.e. Like in C can we see the execution of the program like how the code is being compiled step by step and how the value of the variable changes from step to step like(Add Watch)......... -
How to call multiple strus actions froma single jsp
how to call multiple strus actions froma single jsp, and that actions should be automatically called pls help me
Thanks in advancehow to call multiple strus actions froma single jsp, and that actions should be automatically called pls help me
Thanks in advance
Maybe you are looking for
-
I have the iPhone 4S and my daughter has the iPad 2. We share my Apple ID. Is there any way to stop her text messages from appearing on my phone, and vice versa? She doesn't need to be reading my texts!
-
Does the IOS 8 is slow in the iPod touch 5g ?
I think the IOS 8 is slow in the iPod touch 5g
-
I checked out the Mozilla Personas, saw one I liked, and added on. When I start Firefox, the Mozilla start-up page shows as usual with Google on it. The Persona I chose barely shows, and only in the Toolbars area at the top of the screen. Can I modif
-
Required Installed What are differences between required to installed?
-
Time Machine: Cannot access old backups after migrating to a new mac
Hello, I have bought a new Mac (With Snow Leopard installed on it). I have used it for about half an hour to have fun with it. Then, I have decided to use Time Machine & Migration Assistant to restore all my files from my old Mac (Leopard). The resto