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 Regards
Closed. No answers.
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. -
How to call up an executable file (eg. MSPaint) from within my java program
How to call up an executable file (eg. MSPaint) from within my java program
Ummm... why would you want to get MSPaint anyway? Even in the absense of real software, Java's own graphics tools are way more sophisticated - with a little time and effort, you could write a simple paint package that beat MSPaint hands down.
-
How do I convert mail merge documents to individual pdf docs and save each with a field in the merge?
Is this an actual field, or just some piece of static text somewhere? Either way, you can't do it using the Split Document command. You'll need to use a custom-made script to read the value of this "field" and use it when extracting pages from the file.
-
How do I set Pages to automatically open all Word (.doc) documents?
Being a relatively new Mac User, I haven't yet figured out how to associate programs with particular file types.
How do I set Pages to automatically open all Word (.doc) documents?
Thanks.Hello Argelius
If you select a word file in the Finder and do File>Get Info you will see a section in there where you can specify which application should be used to open files of that type. -
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?
AnatoliiAfter 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 -
How to find the action profile when I know a BADI?
Hi,
I have a BADI ZS_ORDER_SAVE, but I don't know which action profile uses this BADI? How can I find it?
Thanks a lot!Hi Long,
take a look at the definition name of your badi implementation. If ORDER_SAVE, then the BADI is called during the save process of an one order object. If EXEC_METHODCALL_PPF, then it is used by an action; check table PPFTFLTVAT to determine the action.
Regards
Wolfgang -
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. -
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 create an Action Profile for a Survey
Hi
Can you please help me with the steps to create an Action Profile for a Survey. Eg. If the user creates a like Lead / Service, Action profile assigned to the Transaction type has to trigger the Survey.
ThxHi Kalees,
Survey is nothing but a Questioner that is Represent the Feedback for a Particular Transaction.
Controlling Survey by a Action Profile is possible to some Extent indirectly.
One way of Controlling the Survey Execution based on System Status
Go To:Customer Relationship Management>Transactions>Settings for Activities>Questionnaires>Define Determination Criteria for Questionnaires Define a Criteria Set for a Particular Status,Here what ever Status Assigned are Responsible for the Survey Form to Appear in that Transaction Type at that Particular Status.
In Define Determination for Questionnaires: Business Activity:assign the Criteria Set that you have Created to your Survey Form
Go To:Customer Relationship Management>Transactions>Basic Settings>Status Management>Change Status Profile for User Status The Status Profile that you are using Ensure that the System Statuses are Assigned to a User Status on which you want the Survey Determination to Happen.
Direct Action Trigger for Survy Form is not Possible
This is one way to Control the Transaction Type Status and in mean you shall indirectly get Control over the Survey Form
Hope it Answers your Queries..
Thanks and Regards,
RK. -
How do I change my settings for opening a PDF file?
Currently I can't just OPEN a PDF file I must save it and then I can access it. It once got saved accidentally to automatically save instead of opening straight. In some cases though it cannot be viewed this way. How do change it to open straight?
To change from using the built-in PDF viewer to your PDF reader plugin:
From the Firefox menu choose Tools>Options
Select the Applications panel.
Find Portable Document Format (PDF) in the list and click on it to select it.
Click on the drop-down arrow in the Action column for the above entry and select Use PDF reader name (in Firefox). -
How to find out the DPI of an existing PDF doc?
When I print a doc/web page with a pdf printer driver then I can adjust the DPI for the print.
Ok. But how does this work the other way?
When I have a pdf doc and want to find out the DPI with which it is printed ?
How can I find out this value?
MatthiasPDFs do not have a dpi. Only individual raster graphics in a pdf have a
resolution. In a single pdf there can be several different raster and
vector graphic objects.
The Acrobat application doesn't control the dpi that a printer uses to
rasterize a printed pdf file. That is done by the printer driver---most
often an OS function. The dpi uses to print a pdf has nothing to do with
the pdf specification.
Mike -
TimeoutException - when calling web services method that opens a PDF
I am updating a legacy program which uses Adobe Acrobat 7.0 Professional. The idea is that the client will call web service methods, which handle opening a PDF, reading from or writing to the PDF, saving if necessary, and closing. It then returns the data (if reading) to the client.
The only issue with this that I'm having is that the client will pause for about 60 seconds, and throw a TimeoutException.
I know that the method on the web services end is working, because I wrote a quick driver which calls the very same method, but it executes normally, and works perfectly.
My question is basically, is there anything that would cause the client to hang/freeze when calling the web services method to do this task? Everything is running on my workstation, and I've debugged to see that the filename being passed is the same in both tests.
Thanks!Thank you, I somehow missed seeing that subforum. I reposted it in that forum instead. This thread can be deleted/closed. Thanks!
Maybe you are looking for
-
Report Painter, GL Set does not have description
Hi Expert, I want to create Columnar Financial Statement (Profit and Loss Account, and Balance Sheet). My problem is that my GL under the lead column does not have any GL description shown. I tried some of the settings for lead column under formattin
-
Error in Form16 taken through ESS.
Experts, While accessing Form16 through ESS, system shows an error. The error key is as follows: Screen output without connection to user. , error key: RFC_ERROR_SYSTEM_FAILURE I check the Java connections and its working
-
Open Directory is not providing a secure connection
I've been setting up Yosemite Server, but I haven't been able to get a second Mac to join onto the Open Directory service. When clicking Join… in Accounts Preferences on the client machine, and entering the address, it asks me whether I want to trust
-
Preloader browser/server problem
Hello. I recently completed a Flash project for a client of mine. On all the swf movies, I have put a preloader script that downloads the whole movie before it plays. Off of my IP (1and1 internet) all the movies load flawlessly in all the browsers I
-
Hi guru, how can deactivate code MCEX03 ? This code increase 1.5 GB /day the table ARFCSDATA. How can i resolve this problem? My release SAP R3 Enterprise 4.7 ext 1.10 with SP BASIS SAPKB62040. Pleae help me Thank you MC