Issue with amodal secondary method in workflow
Hi,
I'm using an amodal secondary method of a business object in my workflow activity step. But it is not triggering that method of the business object at runtime.
Could someone tell me what might be the problem
Regards,
Vijay
Any idea guys?
Similar Messages
-
Problems with secondary methods in workflow
Hi experts.
I am starting my WF through the SAP_WAPI_START_WORKFLOW in SE37.
My WF consistst of a decision step with a secondary method, amodal method, which calls a custom method (call_url).
The method call_url has been tested in SE80 and in WF with synchronous dialog chain(BMWP) where it works fine.
Since UWL doesn`t support Synchronous dialog chain, I need to make a workaround.
Problem:
When I start the WF and enter MSS to open the workitem, I can see the attachment (call_url method). However, when I try to click on the link for the attachment (which is going to execute my custom method) I only get an errormessage.
The errormessage says:
"An error has occured during calling attachment. Try again and inform the system administrator about this problem".
I have been checkin SU53, it is not an authorization issue.
I have been reading Gatlings blog about secondary methods and searching the web about the issue with no luck.
Any ideas how to solve it?
<<text removed>>
Thanks in advance.
Best regards,
Tor
Edited by: Matt on Feb 10, 2009 5:06 PM - please do not offer rewards. Please do read the Terms of Engagement of these forumsOk, now i'm a little bit closer to the solution.
I've run thru the programm in debugging mode...
the reason is: function module SWO_INVOKE give me the return message OL850: You do not have authorization to execute method EDIT
But when the user calls the transaction ME52n everything is ok.
So what is the missing authorization object?
Thank you very much in advance
Andrey -
How to use secondary method in workflow?
Hi friends,
can anyone plz let me know how to use secondary methods in workflow? it would be helpful if u explain with an example..
thanks and regards,
Arun.SHi Arun Kumar,
The Sec Method can be used in the user decision step. The secondary methods are executed along with the user decision step. You have 3 options. Either execute a secondary method before executing the user decision step or after execution of user decision step or while executing the user decision.
For this define the methods either in Methods before execution of workitem execution to execute it before user decision step or Methods after execution of workitem so as to execute it after the execution of user decision.
In order to execute a method along with user decision step execution use secondary methods (amodal call.)
Let me know if you have any queries.
Regards,
Raj -
Issue with Inactive Approver Role in Workflow definition
Hi Experts,
we are having issue with Inactive Approver Role in workflow definitions.
we have created workflow for Master agreements and Projects. Phases and workflow are working fine.
But the issue is when a programmatically added approver has completed the approval activity, collaborator role is not changing from approver role to Inactive Approver Role mentioned in workflow definition. For example, you might select Reviewer in Inactive Approver Role, Then Selected collaborator role to be given to programmatically added approvers when the approval activity is completed.
This is functionality not happening when project or contract document approved and workflow completed in project and MA. we have followed all the standard functionality when we have created workflow. Please see screen shot for the same.
Can anyone please tell me is there any functionality we missed it or do we need to write any script in xpdl or do we need to check anything with collaborator role or with security profiles.
we have checked with other roles also same issue coming.
This Reviewer is in active state and have Readonly profile. We don't have Pre script in this workflow because we are using standard approval.
Thanks in advance!
LavaThanks gary for your helpful answer.
As per your answer We have added the approver role in the prescript so that it gets added programmatically , still no luck.
here is the script we wrote in prescript.
import com.sap.eso.api.common.*;
import com.sap.eso.api.projects.*;
import com.sap.odp.api.workflow.*;
import com.sap.odp.api.usermgmt.masterdata.*;
import com.sap.eso.api.doc.collaboration.*;
import com.sap.eso.api.doccommon.masterdata.*;
import com.sap.eso.api.ibean.*;
import com.sap.odp.api.ibean.*;
import com.sap.eso.api.contracts.*;
import com.sap.odp.api.doc.collaboration.*;
collaboratorsCollection = doc.getCollectionMetadata("COLLABORATORS").get(doc);
if (collaboratorsCollection.size() > 0)
for (int i = collaboratorsCollection.size() - 1; i >= 0; --i)
collaboratorsCollection_member = collaboratorsCollection.get(i);
if (hasValue(collaboratorsCollection_member))
collaboratorRole = collaboratorsCollection_member.getCollaboratorRole().getDisplayName();
// Get approver of Role "Approver".
if(collaboratorRole.equals("Approver"))
principal = collaboratorsCollection_member.getPrincipal();
if (hasValue(principal))
addApprover(principal);
Do you have any other suggestions? or if you have any related code snippet please share with us. -
Issue with muliti level custom Leave Workflow
Hi,
our Leave Workflow is multi level Approvals based on Absence codes.
Say for Example : Case 1: For casual leave 2 Level Approval,
Case 2: For Sick Leave 1 Level Approval,
Case 3: For Maternity leave 3 Level Approval.
The Workflow is working fine for Case 1 and Case 2. Workflow is Getting Completed. No issues at all here.
The Issue is with Maternity Leave there are 3 level of approvals Manager 1, Manager 2, Manager 3.
First 2 Managers are able to approve it from portal and for third level approval the work item is going to Manager 3's UWL.
But when we click on work item it is showing the message like your Work list is Empty.
Even we have forwarded the work item to Manager 2 and Manager 1 using SWIA. From their UWL also we are getting this same message
your Work list is Empty.
Observations:
Request status is in SENT status.
Visualization parameters are fine.
Agent is Ready.
In R3 Level we are not able to see the worklist details in Approval mode in PTARQ tcode for Manager 3,
For Manager 1 & Manager 2 it is fine there we had approved in PTARQ.
Here are the Screen shots.
What Could be the issues? Are we missing something?
Ideas and Suggestions are welcome
Regards,
ArunHi Arun
Can you please give a screen shot of the technical workflow log with the step history selected for this step? (ensure that you have tried executing it once from UWL and rcd the same message), then get to the backend WF log).
Also, is the same Workflow task sent to all three levels in a loop or is it a different task at level 3?
Is there any deadline monitoring assigned to the task (for third level)?
Regards,
Modak -
OIM 11g R1. Issue with parallel participant type approval workflow.
Hi All,
I have a request level approval with the human task assignment participant type set to parallel. There will be two participants in the workflow with approve and reject having outcome value as 50 each. When i submit a request, i can see the both the request is properly allocated to both the users. But when i log in with the individual users and search the approval tasks in the self service page, i cant see it properly assigned.
In the approval tasks table, i cant see the values for the following columns request ID, request type, beneficiary, request target. Whereas i can see the value for the requester as "Anonymour user" and it is assigned to a proper user. When i try to approve, i get the following error in the console.
========================================================================================================================
<25 Nov, 2012 1:49:09 PM IST> <Warning> <oracle.adfinternal.view.faces.renderkit
.rich.NavigationPaneRenderer> <BEA-000000> <ILLEGAL_COMPONENT_HIERARCHY : A chil
d component that is not a commandNavigationItem (or a separator when hint=choice
) was found.>
<25 Nov, 2012 2:22:57 PM IST> <Error> <oracle.iam.request.impl> <IAM-2050076> <N
o request found with the request ID .>
<25 Nov, 2012 2:22:57 PM IST> <Error> <oracle.iam.tasklist.agentry.task> <IAM-20
60009> <Error occurred while approving task from BPEL>
<25 Nov, 2012 2:22:57 PM IST> <Error> <oracle.iam.tasklist.agentry.task> <IAM-20
60013> <Exception thrown:
oracle.iam.request.exception.RequestServiceException: IAM-2050076:No request fou
nd with the request ID .
at oracle.iam.request.repository.RequestRepository.getRequestClone(Reque
stRepository.java:891)
at oracle.iam.request.impl.RequestEngine.getBasicRequestDetails(RequestE
ngine.java:3877)
at oracle.iam.request.impl.RequestServiceImpl.getBasicRequestData(Reques
tServiceImpl.java:94)
at oracle.iam.request.api.RequestServiceEJB.getBasicRequestDatax(Unknown
Source)
at sun.reflect.GeneratedMethodAccessor1000.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJo
inpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho
dInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho
dInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu
ctionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu
ctionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho
dInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisit
orImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.c
allback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentIntercepto
r.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho
dInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocat
ionInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho
dInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu
ctionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu
ctionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho
dInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopPr
oxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy337.getBasicRequestDatax(Unknown Source)
at oracle.iam.request.api.RequestService_dnwrzl_RequestServiceRemoteImpl
.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(Ses
sionRemoteMethodInvoker.java:40)
at oracle.iam.request.api.RequestService_dnwrzl_RequestServiceRemoteImpl
.getBasicRequestDatax(Unknown Source)
at sun.reflect.GeneratedMethodAccessor999.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(Remote
BusinessIntfProxy.java:85)
at $Proxy170.getBasicRequestDatax(Unknown Source)
at sun.reflect.GeneratedMethodAccessor998.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:307)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:198)
at $Proxy336.getBasicRequestDatax(Unknown Source)
at oracle.iam.request.api.RequestServiceDelegate.getBasicRequestData(Unk
nown Source)
at oracle.iam.tasklist.agentry.task.ApproveActor.perform(ApproveActor.ja
va:106)
at oracle.iam.consoles.faces.mvc.canonic.Model.perform(Model.java:565)
at oracle.iam.consoles.faces.mvc.self.Model.perform(Model.java:178)
at oracle.iam.consoles.faces.mvc.canonic.Model.prepare(Model.java:460)
at oracle.iam.consoles.faces.mvc.self.Model.prepare(Model.java:173)
at oracle.iam.consoles.faces.mvc.canonic.Controller.doPrepare(Controller
.java:225)
at oracle.iam.consoles.faces.mvc.canonic.Controller.doSelectOperationNav
igation(Controller.java:88)
at oracle.iam.consoles.faces.render.canonic.UIEntrypod$CommandToolbarBut
tonActionListener.processAction(UIEntrypod.java:677)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXC
omponentBase.java:675)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand
.java:179)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.r
un(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._pr
ocessPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.bro
adcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclu
de.java:102)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.r
un(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._pr
ocessPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.bro
adcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclu
de.java:96)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents
(LifecycleImpl.java:902)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(L
ifecycleImpl.java:313)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(Lifecyc
leImpl.java:186)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
tyHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.j
ava:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter
(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterL
istChain.doFilter(TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter
.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterL
istChain.doFilter(TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilt
erImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilte
r(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFi
lter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at oracle.iam.platform.auth.web.PwdMgmtNavigationFilter.doFilter(PwdMgmt
NavigationFilter.java:121)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at oracle.iam.platform.auth.web.OIMAuthContextFilter.doFilter(OIMAuthCon
textFilter.java:107)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:1
75)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:31
3)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUt
il.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.jav
a:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:1
61)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:13
6)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsF
ilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
ervletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
ontext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
ava:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
>
========================================================================================================================
Please share any thoughts on this.
Thanks,
SriniHi Kevin,
Thanks a lot for the response. But, when i deployed the composite SAR in to the server from Jdeveloper, i checked the option to "Overwrite any existing composite with same revision ID". SO, i used the same revision ID (Say 1.0), will this also need to be disabled?
Thanks,
Srini -
Issue with std GET method GET_PROPERTY_AS_VALUE
Hi,
We have created a Z field using AET in WebUI which is already moved to Production system. This field has a Get and Set method customized to populate its value.
Now we have included similar field with a similar logic. The issue is that now the earlier field is not able to read certain attribute values using the standard method IF_BOL_BO_PROPERTY_ACCESS~GET_PROPERTY_AS_VALUE
Line......LV_PROPERTY_REF = GET_PROPERTY( IV_ATTR_NAME )
We have not made any changes in the code, then why the system is unable to read the attribute value in our Test client.
Any hints?
Regards,
PPHi Pepe,
Cant answer your question without debugging but below are few things you can try out:
1. In case you are writing custom code, try to use other method like get_property_as_string or get_property and see if they return a value.
2. Check your design layer if both the fields are present there.
I don't see any other reason. If no luck with above two then please raise an OSS.
Regards,
Bhushan -
Hello there,
I am facing an issue while creating a LSMW using IDOC method. I am creating it for PROFIT CENTER upload. My file is having the data as, there can be multiple company codes for one profit center, so my file will have more than one record for single profit center. I have to create only one IDOC per profit center, so I have to create multiple segments in that IDOC for different company codes.
I am not sure how to create multiple segments using LSMW. It will be very helpful, if anyone can tell me how to do it.
Thanks,
Ganesh KhumseHello Ganesh,
I assume that you are using the IDoc Type PRCMAS02 for the creation of Profit Centers along with Company Code assignment.
In order to be able to extend the Profit Center for Multiple Company Codes, please segregate the source structures into Profit center general data and company code data...along with respective source fields.
In the structure relations, assign the Profit Center General data to the Idoc segments E1KEPCM & E1KEPCT. Then assign the Company Code data to the segment E1KEPCB.
The input file layout expected will be something similar to the below layout...
PCHEAD1
- CCODE1
- CCODE2
PCHEAD2
- CCODE1
- CCODE2
Hope this info resolves your problem.
Pls reward if this answers your query.
With Regards
Vijay Gajavalli -
Issue with WEBSERVICE- PROCESSDIALOG method
Hi Guys,
I am calling WEBSERVICE->PROCESSDIALOG method in a task.
This is listing a task in UWL in EP. When I open and process this task getting the following error.
Page not found or Available.
How to find out which view is called when I select the task in UWL.
I think it will probably an WebDynpro iView.
Cheers
SenthilHi,
Its basically Page Not Found error in UWL.
There are other process in the same workflow are working fine in UWL.
I check the services in SICF, they are active.
Is there anything I am missing in the task definition.
Is it WebFlow Service Executed should be active at the task outcome tab.
Cheers
Senthil -
Issue with new secondary index
hi i have created new secondary index in VEPO table.( mandt, werks,lgort, sonum).index is activated. but when i am doing activate and adjacent in database in SE14.it is giving warings and error.
warning 1:
Enhancement category 3 possible , but include or subty. not yet classified.
index VEPO-ZS1 must be created in the database
test activation of Table VEPO successful.
Activation and DDL statments for Table VEPO required.
warning and error:
Enhancement category 4 possible , but include or subty. not yet classified.
create UNIQUE INDEX "VEPO~ZS1' ON "VEPO" ("MANDT", "WERKS", "LGORT","SONUM")
PCTFREE 10
INITRANS 002
TABLESPACE PSAPBTABI
STORAGE ( INITIAL 0000447920 K
NEXT 0000447920 K
MINIEXTENTS 0000000001
MAXEXTENTS UNLIMITED
PCTINCREASE 0000
FREELISTS 001)
ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
DDL time(___1): ...378,823 milliseconds
The SQL statement was not executed
Statements for Table VEPO could not be executed
Request for VEPO could not be executed
When i m executing below select staments its taking more time.
For below Select Statments i m using :
if not t_vbap[] is initial.
select venum
vbeln
unvel
vemng
matnr
lgort
sonum
werks
from vepo
into table t_vepo
for all entries in t_vbap
where matnr in s_matnr
and werks = p_werks
and lgort in s_lgort
and sonum = t_vbap-sonum.
else.
select venum
vbeln
unvel
vemng
matnr
lgort
sonum
werks
from vepo
into table t_vepo
where matnr in s_matnr
and werks = p_werks
and lgort in s_lgort.
endif.Oracle give you the answer
ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
so you cannot create a unique index with those keys, add another key (or even the whole primary keys) or remove the unique constraint. (of course in some of your environment, e.g. DEV there could be no duplicate entries for those keys, but in at least one of your environment the problem arose)
Adding an unique constraint on a SAP standard table is not a good idea, if you were successful in a young (go live) system, you could get in trouble if standard reports dump cause of this unexpected constraint. (and they will according to [Murphy's_law|http://en.wikipedia.org/wiki/Murphy%27s_law])
Regards,
Raymond -
Issue with JSF action method and Popup
All,
I have command Button, which has an action method. And my onclick function opens new popup. Once I close the popup, it has to return some values to the parent page and then my action method has to be executed.
Issue is if I close the popup, nothing is happening in parent page.
In my JavaScript if I return true, popup is opening and my action method is executing. But my expected behavior is after closing popup then only my action has to be executed.
Thanks,
DhanaHi all,
I came back to this today (after almost 2 years)... the current version of facestrace doesn't require a taglib at all: http://code.google.com/p/primefaces/downloads/list
Just drop it in WEB-INF/lib, add *.jsf to the url mappings for the faces servlet. Then whenever you add trace=true to your URL, you get a nice dump of information there.
Best,
John -
Issue with calling a method activity before page render
Hi All,
I am using Jdeveloper 11.1.1.7.
I am trying to achieve the approach defined in "1.b. Calling a Method in Backing Bean:" elaborated in the blog - https://blogs.oracle.com/adf/entry/an_epic_question_how_to
As illustrated, I defined a default method activity (binding to a method in managed bean) and a view activity activity in a bounded task flow.
When I launch the application (running the view activity), following error is encountered -
oracle.adf.controller.metadata.ParsingException: ADFC-02020: Cannot find default activity 'check' in task flow definition '/WEB-INF/task-flow-definition.xml#task-flow-definition'.
at oracle.adfinternal.controller.metadata.model.xml.XmlUtil.createAndLogParsingException(XmlUtil.java:474)
at oracle.adfinternal.controller.metadata.model.xml.MetadataResourceXmlImpl.parseTaskFlowDefinition(MetadataResourceXmlImpl.java:507)
at oracle.adfinternal.controller.metadata.model.xml.MetadataResourceXmlImpl.parse(MetadataResourceXmlImpl.java:361)
at oracle.adfinternal.controller.metadata.provider.mds.MdsMetadataResourceProvider.parseResource(MdsMetadataResourceProvider.java:748)
at oracle.adfinternal.controller.metadata.provider.mds.MdsMetadataResourceProvider.getMDSCachedResourceOrParse(MdsMetadataResourceProvider.java:732)
Please advise.
Best Regards,
Ankit GuptaHi Cvele, Timo,
Many thanks for the suggestions.
To avoid confusions, I have created a new application altogether. It seems that the method call is not being called when I run the page.
For your reference I have attached the task flow definition and method code below -
Task Flow Definition
<?xml version="1.0" encoding="windows-1252" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
<task-flow-definition id="task-flow-definition">
<default-activity id="__1">methodCall1</default-activity>
<managed-bean id="__11">
<managed-bean-name id="__13">TestBean</managed-bean-name>
<managed-bean-class id="__10">TestBean</managed-bean-class>
<managed-bean-scope id="__12">request</managed-bean-scope>
</managed-bean>
<view id="view1">
<page>/view1.jspx</page>
</view>
<view id="exception">
<page>/exception.jspx</page>
</view>
<method-call id="methodCall1">
<method>#{requestScope.TestBean.checkURL}</method>
<return-value id="__15">#{TestBean.checkURL}</return-value>
<outcome id="__14">
<to-string/>
</outcome>
</method-call>
<control-flow-rule id="__2">
<from-activity-id id="__3">methodCall1</from-activity-id>
<control-flow-case id="__5">
<from-outcome id="__6">go</from-outcome>
<to-activity-id id="__4">view1</to-activity-id>
</control-flow-case>
<control-flow-case id="__8">
<from-outcome id="__9">error</from-outcome>
<to-activity-id id="__7">exception</to-activity-id>
</control-flow-case>
</control-flow-rule>
</task-flow-definition>
</adfc-config>
Method Code
public String checkURL() {
// Add event code here...
System.out.println("method activity called");
return "error";
Best Regards,
Ankit Gupta -
Popupwindow issue with OAF avilable methods
Hi
the below code is working fine
but my requirment is
1.from the pop-upwindow if i Click yes button in popup window it shd got to a standard OAF page location(eg.a.jsp) in the basepage itself and the popup window shd be closed
2.the a.jsp(OAF page) shd load with a popupwindow as of below code
any one plzz tell me
3. OAButtonBean bt1=(OAButtonBean)webBean.findChildRecursive("Yes");
bt1.setDestination("OA.jsp?page=/oracle/apps/csd/ro/mgmt/webui/HvrRepairMainPG");
does this work in PR the above code is from popupwindow
System.out.println("Before...popupwindow");
OALinkBean link = (OALinkBean)webBean.findChildRecursive("RoNumTblData");
System.out.println("In Popupwindow");
String page1 ="/oracle/apps/csd/ro/search/webui/Popupwindow&retainAM=Y";
System.out.println("Still in Popupwindow");
String destURL = APPS_HTML_DIRECTORY + OAWebBeanConstants.APPLICATION_JSP + "?"+ OAWebBeanConstants.JRAD_PAGE_URL_CONSTANT+ "=" + page1;
OABoundValueEmbedURL jsBound = new OABoundValueEmbedURL(link,"openWindow(self, '", destURL, "' , 'longTipWin', {width:"+200+", height:"+200+"}, true); return false;");
link.setAttributeValue(oracle.cabo.ui.UIConstants.ON_CLICK_ATTR, jsBound);
System.out.println("After Popupwindow");Hi,
Are you running the page from Jdev or in the server,
If you are running the page from Jdev, use
System.out.println("Your message here");
If you are running from server,
you can use
IN CO: pageContext.writeDiagnostics(moduleName,diagMessage,OAWebBeanConstants.STATEMENT);
IN AM: this.getOADBTransaction().writeDiagnostics("XXINV_AM",errorTxt.toString() ,OAWebBeanConstants.STATEMENT);
And the enable diagnostics and use view log on screen option at your level (here STATEMENT)
Number primaryKey = row.getSupplierId();
//Print the values primaryKey and poToDelete
if (primaryKey.compareTo(poToDelete) == 0)
//Add a diag message here
row.remove();
getTransaction().commit();
break; // only one possible selected row in this case
If you run from JDEV it is easy to debug.
Thanks.
With Regards,
Kali.
OSSI. -
Issues with scrollintoview javascript method in ie10.
Hi,
scollintoview(false) javascript method causing the entire web page to shift to the left side of the window in ie10. Where as it is working perfectly fine in ie9.
Thanks in Advance.
Regards,
GopiChandfunction scrollView() {
var d, y;
d = document.createElement("div");
d.style.position = ("fixed");
d.style.height = ("100%");
d.style.margin = ("0");
d = document.body.appendChild( d );
y = Math.floor( d.getBoundingClientRect().height );
if (!y) {y=d.clientHeight}; // for IE8
document.body.removeChild( d );
d = inPut;
y = ( d.offsetTop + d.offsetHeight - y );
while (d = d.offsetParent) { y += d.offsetTop };
if (y>0) { window.scrollTo(0,Math.ceil(y+1)) }; // add an extra pixel for IE, which randomly is short by 1
scrollView();
Here's a snippet from some working code that positions an element (button) named inPut to the bottom of the viewport. The bottom of the inPut (button) aligns directly on the bottom of the window.
The majority of the code just finds the viewport size, by temporarily creating a fixed div. (then removes it). Next, the document offset to the button bottom is calculated,
minus viewport height. That's the y coordinate which we ultimately place in the viewport upper left corner. The only tricky thing is in the while loop, where the pixel offset from the button's top to its parent container is added,
iteratively, for each containing box.
In this example, only vertical scrolling happens. The element stays at its natural horizontal position. In the case where you want to retain the present horizontal tree offset of your element, just capture the present x offset and replace "0"
in the scrollTo. Pretty easy mod.
Here are some links that explain the properties and methods used.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.offsetTop
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.offsetHeight
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.offsetParent
https://developer.mozilla.org/en-US/docs/Web/API/Window.scrollTo
https://developer.mozilla.org/en-US/docs/Web/API/Element.getBoundingClientRect
https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIDOMClientRect
http://dev.w3.org/fxtf/geometry/#DOMRect
So, it's not pretty, but it's not so awful either. Too bad, but the scrollIntoView() method is generally speaking useless due to its left-justification in the name of simplicity. -
Secondary method is not working
Hello,
I have a problem with my secondary method. I created a method Z_Call_ME23N for my purchase order release workflow and added it as a secondary method to my user decision step.
In testing in swo1 is no problem. Also the authorization test in SU53 are ok.
But when I try to open my workitem a message box comes up: 'Error when starting submethod'.
How can I check it what I have done wrong?
Thanks for your help,
ChristophHi Martin,
thanks for your answer.
I have BUS2012 in my WF container, and it is delegated to ZBUS2012 (so I was wrong to say it is ZBUS2012).
I also have the BO in the decision step (wondered if I was wrong - I made a copy of the standard decision task to add my own container element in the copy - this is the task I am now using).
So actually my bindings for this step is:
BUS2012 (delegated to ZBUS2012) --> BUS2012
is that right?
Unfortunatly it is still not working.
I also tried to clear the buffer (as it says so in others posts), checked the authorizations,etc.
Thanks a lot for you ideas, it is still my first workflow and I don´t know where else I could take a look to get some help.
Christoph
Edited by: Christoph on Jan 30, 2008 3:23 AM
Maybe you are looking for
-
I dropped my iPhone 4S in my friends pool. It was fully submerged for about 30 seconds. We took it out, dried it and put it in rice. After 24 hours I checked the phone. It turns on and runs smoothly. It connects to the computer and syncs perfectly. B
-
After 4.3, iTunes no longer opens when I plug my iPhone in to sync
I downloaded the most recent update. Now, when I plug in my iPhone to sync/charge, only iPhoto opens and iTunes will not. I have the box checked in iTunes to open iTunes when the phone is connected but it doesn't and I have to open it manually. Bug
-
Smartform output to be sent as pdf when billing document is saved(VF01)
Hello all, I`m facing a problem in transaction VF01.The requirement is,when user will save the newly created billing document in VF01 transaction ,the corresponding smartform (attached to respective output type ) should be converted and sent as pdf t
-
Spatial Query - sdo_aggr_union
Hi I am a newbie to oracle spatial (Database 11g) and am having an issue with sdo_aggr_union i have the following cursor CURSOR get_buffer_union IS SELECT sdo_aggr_union(sdoaggrtype(coverage,0.5)) coverage FROM (SELECT sdo_aggr_union(sdoaggrtype(cove
-
what is the ageing of vendor group. why we have need this report can u give any example for understanding purpose?