Button condition on page item and Validation error Conflict
Hi,
I have a select list page item and a button on page whose condition is based on the select list page item value(eg, If (:P2_item1='val1'){return true;}) with condition type=PL/SQL function returning boolean. This buttons submits the page.
It' coming fine in normal case. However, if I select some value val2 from the list and then click the button, and if there are any validation errors (like mandatory check or email check fail etc), then the button disappears because it evaluates the button condition based on the changed value(val2), but the page has not yet been submitted because of validation errors.
I think this can be solved if I create the button condition based upon database column value instead of page item as db col value won't change until the page is submitted.
This look like very basic use-case and I would like to know if there is any better solution to this problem.
Note: I am using Apex 4.2.1
I don't want to show/hide the button on the change of the page item lov value, so i am not using Dynamic action.
What i was is to make button visible based on a condition(which is based on page item), for which we have condition attribute of a button available.
This is a very common thing where a user chooses the button condition as Value of item/column in expression 1 is null/expr2. But what if the user changes the page item value but it doesn't get submit due to validation error. In that case, the button condition fails.
So, i guess i have to use column name in expression 1, can u tell how to do that?
Expression 1 = IF (:P2_STATUS='val1') then return true;
How to change the above to use db column 'status' instead? Any direct way(like #Status#) or I have to query db to get it using select.
Any alternative approach?
Similar Messages
-
File Browse Item and validation
Hello
I have a page with multiple items and validations.
One of the items is "File Browse..."
When I select a file on my computer and submit the page, a new record is created in "APEX_APPLICATION_FILES".
In the page I have a process that saves the blob from "APEX_APPLICATION_FILES" into one of my DB table and then I delete that record.
That is correct.
But, if one of my validations is triggered, the record is still created in "APEX_APPLICATION_FILES" and since the validation blocks the execution of my process, the record is not deleted.
Normally, it should be deleted to prevent the table from taking too much space.
Is there any DB Job that "cleans" the table?
Thank you
MaxHi
I just tough I could do the following validation as the very last one.
Validation type:
"Function returning error text"
Validation Expression:
begin
delete from APEX_APPLICATION_FILES
where name = :P1_MY_BROWSE_ITEM;
return null;
end;Condition :
"Inline validation errors displayed"
Is there a "cleaner" or better solution I should use ?
Thanks
Max -
Conditionally set page item based on value of another item
Hello,
I have a form that is used to create/apply changes to records. There is an application item (APP_ITEM_PROFILE)
that is set on login which contains a value for the user's Profile ID. This Profile ID is used through out the
application for authorizations (conditionally present tabs, etc).
I've set a page item on the form equal to APP_ITEM_PROFILE so that the record is stamped
with that user's profile ID when they create a record. Users with different Profile IDs may later make changes to
the record but I want to keep the original Profile_ID on the record.
I am trying to populate the Profile ID conditionally in the form based on the existence of a
record ID. If there is no ID (a new record is being entered), then I want the
Profile ID to be that of the current user (APP_ITEM_PROFILE). If there is an ID (modification is
being made to an existing record), then I want the keep the Profile ID that was originally saved
with the record in MyTable.
I have this as the source for :P11_PROFILE_ID. The type is PL/SQL Expression or Function, Always, replacing... but it
is not working (page not found when page is run):
begin
if :P11_ID is not null
then
select PROFILE_ID
into :P11_PROFILE_ID
from MyTable
where ID = :P11_ID;
elsif :P11_ID is null
then select nv(':APP_ITEM_PROFILE') into :P11_PROFILE_ID from dual;
end if;
end;
Item Descriptions:
ID is the record ID.
:P11_ID is the page item of the record ID (Display as Text, saves state).
PROFILE_ID is the user's Profile ID.
:P11_PROFILE_ID is the page item of the user's Profile ID.
:APP_ITEM_PROFILE is the user's Profile ID that is set on login.
Any help is greatly appreciated.
Thanks,
Matt
Update:
I found one of Scott's answers:
Using IF Else to determine the value of a Item
and modified the above code to:
declare l_ret number;
begin
if :P11_ID is not null
then
select PROFILE_ID
into l_ret
from MyTable
where ID = :P11_ID;
else select :APP_ITEM_PROFILE' into l_ret from dual;
end if;
return l_ret;
end;
It seems to be setting the Profile ID correctly when the ID is not null, but not when a new record is being created. In the latter case, there is no value.
Edited by: mterlesky on May 11, 2009 11:02 PM
Edited by: mterlesky on May 11, 2009 11:52 PM
Edited by: mterlesky on May 11, 2009 11:53 PMThanks. That is putting the value into the page item and session state but that value is not being saved when the record is created. I'm not sure why - here is part of the debug (the "Billing" table is the "MyTable" table in the previous posting). Any thoughts?
On form, before submit:
0.06: Saving g_arg_names=P11_PROFILE_ID and g_arg_values=112
0.06: ...Session State: Saved Item "P11_PROFILE_ID" New Value="112"
After Submit
0.06: ...Session State: Save "P11_PROFILE_ID" - saving same value: "112"
(validations not shown)
0.10: Processing point: AFTER_SUBMIT
0.10: ...Process "Get PK": PLSQL (AFTER_SUBMIT) declare function get_pk return varchar2 is begin for c1 in (select BILLING_SEQ.nextval next_val from dual) loop return c1.next_val; end loop; end; begin :P11_ID := get_pk; end;
0.10: ...Session State: Save Item "P11_ID" newValue="452" "escape_on_input="Y"
0.10: ...Do not run process "Get PK for CREATEAGAIN", process point=AFTER_SUBMIT, condition type=, when button pressed=CREATEAGAIN
0.10: ...Process "Process Row of BILLING": DML_PROCESS_ROW (AFTER_SUBMIT) #OWNER#:BILLING:P11_ID:ID|IUD
0.10: ...Process "Update TOTAL_HOURS": PLSQL (AFTER_SUBMIT) begin Update billing set TOTAL_HOURS = ((NVL(CD_90801_UNITS,0)*1.5)+ (NVL(CD_90804_UNITS_B,0)*.5)+ NVL(CD_90806_UNITS,0)+ (NVL(CD_90808_UNITS_B,0)*1.5)+ NVL(CD_90812_UNITS,0)+ (NVL(CD_90814_UNITS_B,0)*1.5)+ NVL(CD_90846_UNITS,0)+ NVL(CD_90847_UNITS,0)+ NV
0.11: ...Process "Update TOTAL_UNITS": PLSQL (AFTER_SUBMIT) begin Update billing set TOTAL_UNITS = (NVL(CD_90801_UNITS,0)+ NVL(CD_90804_UNITS_B,0)+ NVL(CD_90806_UNITS,0)+ NVL(CD_90808_UNITS_B,0)+ NVL(CD_90812_UNITS,0)+ NVL(CD_90814_UNITS_B,0)+ NVL(CD_90846_UNITS,0)+ NVL(CD_90847_UNITS,0)+ NVL(CD_90853_UNITS,0)+ NV
0.11: ...Process "G_TRANS_COUNT_ADD": PLSQL (AFTER_SUBMIT) begin :G_TRANS_COUNT := :G_TRANS_COUNT +1; end;
0.11: ...Session State: Saved Item "G_TRANS_COUNT" New Value="1"
0.11: ...Process "Email_Notification": PLSQL (AFTER_SUBMIT) declare l_body_html varchar2(4000); begin l_body_html := '<p>Billing ID '||:P11_ID||' was entered by '||:P11_PROV_NAME||'.'|| ' More transactions may have been entered by the provider after this one.'||'</p> <p><a
Edited by: mterlesky on May 12, 2009 9:21 AM -
I was added one button in OA pages throw personalize. Error coming that pag
Hi ALL.
I was added one button in OA pages throw personalize. Error is coming that page now.please help me ....
oracle.apps.fnd.framework.OAException: java.lang.ClassCastException: oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:597)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:389)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:389)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1133)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2318)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1717)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
at oa_html._OA._jspService(_OA.java:88)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
at oa_html._RF._jspService(_RF.java:102)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:595)
## Detail 0 ##
java.lang.ClassCastException: oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean
at oracle.apps.pv.oa.referral.webui.ReferralOverviewContextMainCO.processRequest(ReferralOverviewContextMainCO.java:486)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:581)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:389)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:389)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1133)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2318)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1717)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
at oa_html._OA._jspService(_OA.java:88)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
at oa_html._RF._jspService(_RF.java:102)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:595)
java.lang.ClassCastException: oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean
at oracle.apps.pv.oa.referral.webui.ReferralOverviewContextMainCO.processRequest(ReferralOverviewContextMainCO.java:486)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:581)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:389)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:389)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1133)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2318)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1717)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
at oa_html._OA._jspService(_OA.java:88)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
at oa_html._RF._jspService(_RF.java:102)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:595)
Thanks
Rajavel RIf you have not changed any code it is impossible that a classcast exception can be thrown since we evaluate for duplicate ids. Chances are there if you had given an id of a bean which is added programmatically in the controller then you might end up with this error. Delete the personalization and create the button with a unique name.
-
Difference between a page item and a parameter
Any one please tell me ,
What exactly the difference between page items and parameters in
discoverer?
In my view both display data based on certain criteria.
Technically, how they differ each other?
Thanks in advance,
SapnaThe rows retrieved from the database are filtered, if you define
a parameter. You can see the parameter conditions getting added
to the SQL, when you view the sql with sql inspector.
On the other hand, with the page item, the filtering does not
take place at the database level but at the discoverer level. -
How can I have the pricing conditions at the item and header level of the d
How can I have the pricing conditions at the item and header level of the delivery? There exist "condition" tabs both the header and the item level of the delivery but the contents of the tabs are empty. I'll be happy if you can help me. Thanks in advance....
Hi
If you want to have the pricing procedure at delivery level then you need to assign a pricing procedure at delivery level also
Just go through the path to maintain the pricing procedure at delivery level.
IMG -> Logistics execution -> Shipping -> Basic Shipping Functions -> Pricing -> Pricing Procedure. for Delivery.
But can you be more clear if the above one is not your query ?
Regards
Srinath -
The button "reload current page" is and stays in grey..
sometimes, the button "reload current page" is and stays in grey when I am on internet...
I have to restart Firefox and it works again...
any ideas??You can also check http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
-
Use button to assign page items a value
Hi All,
I have a simple question (hopefully).
I need to assign two page items some value when a button is pressed. I cannot see what I'm doing wrong !
I have created the button and set Button Request Source Type to PL/SQL Expression or Function. I have then added some code ;
:p0_year := 2011;
:p0_week := 37;
This does not work, am I going about this the wrong way as I guess this should be pretty straight forward ?
Thanks
BillyHi there billy,
maybe you could use the Page Processing:
Click the Processes plus sign,
click PL/SQL,
then name it,
then in Point drop down choose On Submit After Computations and Validations,
in Enter Pl Sql page process text area: :p0_year := 2011;
+:p0_week := 37;+
click next,
then next,
then in 'when button pressed' drop down, choose the button you want to trigger the process above.
then, click create process...
You may also follow the advise from Zulqarnain by using dynamic action or javascript..
Hope this will help..
Best regards,
shynn,, -
Arangement of Page Items and Regions
I created an APEX page (version 4.0.1.00.03) named Request Edit with many page items for data entry of user requests. The form has a region named Request Edit that holds the data entry page items. Within the region is a region for buttons. There were two addition regions on the page below the buttons named Jobs a report region and Audit a Show/Hide region. The users do not like to scroll the page during data entry so I decided to place many page items into three new Hide/Show regions name Requestor, Recipient, and Service. I defined the regions and then moved the page items to one of the three regions Requestor, Recipient, and Service. When the page is displayed the three new regions displayed after the audit region. I wanted the new regions to display after the Request Number and before the Comments page items. I decide to change the Parent Region in the User Interface properties of the page to Request Edit for the new regions. That moved the three regions above the Audit region but after the Comments page item.
What properties of the three new regions Requestor, Recipient, and Service will position the new regions after the Request Number and before the Comments Page items? Is it necessary to define the Parent Region in the User Interface properties of the page to Request Edit for all of the regions?
To describe visually what I am trying to do imagine the following simplified page:
<Create> <Save>
Request ID: [________]
Requestor Name: [_________]
Recipient Name:[ __________]
Service Type: [____________]
Comments: [____________________]
<Create> <Save>
Jobs Report Region
+Audit Region
I defined three regions and moved the page items to them
<Create> <Save>
Request ID: [________]
Comments: [____________________]
<Create> <Save>
+Requestor
+Recipient
+Service
Jobs Report Region
+Audit Region
After I defined the Parent Region in the User Interface properties of the page to Request Edit it looks something like this:
<Create> <Save>
Request ID: [________]
Comments: [____________________]
+Requestor
+Recipient
+Service
<Create> <Save>
Jobs Report Region
+Audit Region
But I want the new regions to display between the Request ID and Comments page items.
Thank you.here is how i got someting like that to work with a raoid group.
page HTML header:
<script>
function Show_On_Radio_Value_2(pThis, pThat, pValue, pLabel){
var rv = html_RadioValue(pThis);
var elm = document.getElementById(pThat);
var lbl = document.getElementById(pLabel);
if (rv == pValue) {
html_ShowElement(pThat);
html_ShowElement(pLabel);
} else {
html_HideElement(pThat);
html_HideElement(pLabel); }
}</script>
REGION Footer:
<script>
Show_On_Radio_Value_2('<code>P3_ENT_APPROVAL</code>
','<code>P3_REJECTION_DESC</code>
',"Y",'L_<code>P3_REJECTION_DESC</code>
</script>
I think thats it but it should get you in ther right direction.
jp
Edited by: SHONET on Nov 12, 2008 9:26 AM -
Calendar Component and validation errors
Hi,
For the first time I am trying to use the Calendar component to insert a date field in my SQL Server db.
The problem: I can insert a date column only if its of type java.sql.Timestamp.
As Timestamp extends the date object..
I tried to bind the selectedDate field as <Timestamp> Object[refractored in my class file] and when i tried to update by DB it throwing a Validation error.
If I bind it as a Date Object directly I am getting an EvaluvationException
as date objects cannot be inserted directly
Am i missing something here or is there a proper way of implementing it.Its a fairly direct question about object conversion problem in creator
Basically the selectedDate parameter of the JSC Calendar component
needs to be pointed to a Date Object
If we need to insert that date information to a SQL Server column the equivalent data type should be java.sql.Timestamp which extends Date.
So if we point the selectedDate parameter as a Timestamp object the creator throws an illegal argument exception.
Can some one clarify how to resolve this issue? -
It's a toplink to a page item on the same page internal (hyperlink) that is not working.
E.g. toplink e.g. #ssc01 to the internal pagelink
<a name="#ssc01"><b>Algemene Informatie</b></a>Don't add the hash (#) to the name attribute. The hash is used in the URL as separator and should not be in the name.
<pre><nowiki><a name="ssc01">Algemene Informatie</a> </nowiki></pre> -
Duplicate condition type at item and header level
hi all,
please help me to implement this
issue:
PO condition type for header and item should be checked for duplication.
atanuHi
I am not sure whether we can do this with IMG.
Need to use User exit MM06E005 (do not be confused with the description of this enhancement..you can use it)
Best regards
Ramki -
SelectOneListBox and validation error
Hi,
I have a validation error using a selectOneListbox. I read a lot of topics in this forum, but I still can't solve my pb.
This is my JSP:
<ice:selectOneListbox size="1" styleClass="totalWidth" value="#{controller.selectedCmsName}" >
<f:selectItems value="#{controller.cmsListItem}"/>
</ice:selectOneListbox>This is the getter/setter for cmsListItem:
private List cmsListItem;
public List getCmsListItem()
cmsListItem = new ArrayList();
try {
cmsList = /* a method which returns an array */
for (int i = 0; i < cmsList.length; i++) {
cmsListItem.add(new SelectItem(cmsList.getName(), cmsList[i].getName() + " (" + cmsList[i].getUsername() + ")"));
} catch (Exception e) {
return cmsListItem;
public void setCmsListItem(List cmsListItem)
this.cmsListItem = cmsListItem;
Same thing for selectedCmsName:
private String selectedCmsName;
public String getSelectedCmsName()
return selectedCmsName;
public void setSelectedCmsName(String selectedCmsName)
this.selectedCmsName = selectedCmsName;
}There is a <h:messages/> tag in my jsp which give the message:
Validation ErrorI don't see anything wrong in my code.... An idea?
Thanks,
philDoes it work with a real basic example?
test.jsp<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<f:view>
<html>
<head>
<title>test</title>
</head>
<body>
<h:form>
<h:selectOneListbox value="#{myBean.selectedItem}">
<f:selectItems value="#{myBean.selectItems}" />
</h:selectOneListbox>
<h:commandButton value="submit" action="#{myBean.action}" />
<h:outputText value="#{myBean.selectedItem}" />
<h:messages />
</h:form>
</body>
</html>
</f:view>MyBeanpackage mypackage;
import java.util.ArrayList;
import java.util.List;
import javax.faces.model.SelectItem;
public class MyBean {
private String selectedItem;
private List<SelectItem> selectItems;
selectItems = new ArrayList<SelectItem>();
selectItems.add(new SelectItem("value1", "label1"));
selectItems.add(new SelectItem("value2", "label2"));
selectItems.add(new SelectItem("value3", "label3"));
public void action() {
System.out.println(selectedItem);
public String getSelectedItem() {
return selectedItem;
public List<SelectItem> getSelectItems() {
return selectItems;
public void setSelectedItem(String selectedItem) {
this.selectedItem = selectedItem;
}Just copypaste it, add MyBean/myBean to the faces-config and execute it. -
There are two iMacs connected through same router in my house but one refuses to login to facebook and other logged in sites. Local techies are bemused, I have just reinstalled OSX and still have the problem. Login page recycles, I get no further and no errors reported. Safari, Opera and Firefox. Deleted cookies and chain but still no action.
If you have not already done so, read the router's user manual troubleshooting section and/or contact its customer service department/forums.
If still having problems, post back w/details of all you have tried to resolve the problems along w/the troubleshooting solutions that the "local techies" had you try.
-
File Upload: What to do when page has a validation error.
Hi,
Here's the situation. I have a page with 2 fields: Description and File (this is a file browse item). Both are required. I want to place the file into a custom table called car_pictures.
The user selects a file, but forgets to enter the description. The validation catches this and returns the user back to the form page.
The problem is that the user's file has been uploaded to the system in APEX_APPLICATION_FILES. As you can imagine this can clutter up the DB with unused files.
I was thinking about how to solve the issue and here's what I think. Please let me know if there's a better way to approach this issue:
- Create a table called: temp_file_storage... it'll have the same properties as the APEX_APPLICATION_FILES view.
- Have a page process (on submit, before validations) that moves (i.e. copy then delete) the file from APEX_APPLICATION_FILES to temp_file_storage
- Have a page_process (on submit, after validation) which will move the file from temp_file_storage to car_pictures.
- Create a system or DB process which will "empty" the temp_file_storage table
Though there's extra steps here and a process which you may need to run daily, it will prevent old data cluttering up the apex_application_files table.
Thoughts/comments?
MartinHi Merrileeruth,
I recommend performing a hard reset of your camera. Here's how:
Remove the battery pack from the camera and close the battery compartment. Now Press and hold down the power button for 5 seconds. Replace the battery pack and turn the camera on.
If your camera works normally, you're ready to start shooting. If the issue persists, unfortunately, your camera will require service to resolve this issue. For service options, please click here.
Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.
Maybe you are looking for
-
Ipod is disconnecting as soon as it connects
OKay, so I may have rollay screwed up my ipod. I got a new ipod nano for Christmas and a Windows laptop. I had originally connected the ipod to my mac home computer and uploaded all the songs I wanted on to my ipod. I then plugged in my ipod to my la
-
Error in XSQL Sample code ?!
Hi, I recently tried the XSQL sample code with the latest (1.0.0.0 ?) version of the XSQL sevlet. But there seems to be an error in the example: In the hotels.xsql file (inside XSQLSample.jar, inside XMLUtilitySamples.zip) the query tags are specifie
-
Using OR with WHEN in .ctl file
Hello, Can I use OR with WHEN clause in .ctl file? I am trying to load txt file into oracle table. I used positions. INTO TABLE ABC WHEN ((814:834)!=BLANKS) OR ((934:938)!=BLANKS) DE_CASE POSITION(1:7) NULLIF DE_CASE=BLANKS, DE_WHERECODE POSITION(814
-
REmoving Flash Web templates in LR4.4
Hi, As Flash is on the way out (and can't be viewed on iPads anyway) I wanted to remove the Flash templates from my LR web modiule but I can't find a way to do it. Newither can I find the files onthe HDD. How do I remove the Flash templates fromthe
-
Adding dynamic preloader and percentage to flash content
I am trying to add a dynamic preloader and I am also trying to show users the loading percentage of flash content. I searched Google and mostly creating preloader with Adobe Flash came up. What I am trying to do is adding this programatically. For ex