Setting column values based on LOV selection
Hi All,
I am using JDeveloper 11.1.2.2.0. I have a table eg: Department table, in Dept Id, I have defined LOV for that field. My requirement is, based on the LOV selection, I want to set the other column values. I am using InputTextwithLOV in list type. How to achieve this?
I tried mentioning that in the List return values. But it is not setting the values.
Regards,
Infy
Hi,
if you use a model driven LOV then when configuring the LOV you can map additional attributes. When you build a model driven LOV you at least once tell it which LOV attribute should be used to update the DeptId field. You can do the same for additional attributes
Frank
Similar Messages
-
How to display value based on LOV selection
Hi,
I have an editable table. On create operation one of the field is LOV, based on LOV selection the next field should be auto populated, please help me how to achive this.
Thanks,Thanks for your reply........
I did all these to get value based on LOV selection, but my problem is when i am trying to create a new record then everthing is working fine but normal search i am not getting the value of that attribute.
below is my code
Page:
<af:column sortProperty="ProcessType" filterable="true"
sortable="true"
headerText="#{bindings.CmWeeklyProcesses.hints.ProcessType.label}"
id="c36" width="340px;">
<af:inputComboboxListOfValues id="processTypeId"
popupTitle="Search and Select: #{bindings.CmWeeklyProcesses.hints.ProcessType.label}"
value="#{row.bindings.ProcessType.inputValue}"
model="#{row.bindings.ProcessType.listOfValuesModel}"
required="#{bindings.CmWeeklyProcesses.hints.ProcessType.mandatory}"
columns="#{bindings.CmWeeklyProcesses.hints.ProcessType.displayWidth}"
shortDesc="#{bindings.CmWeeklyProcesses.hints.ProcessType.tooltip}" inlineStyle="width:800px;"
valueChangeListener="#{backingBeanScope.backing_app_CalcSchedules.weeklyDescription}"
autoSubmit="true" >
<!-- <f:validator binding="#{row.bindings.ProcessType.validator}"/>-->
</af:inputComboboxListOfValues>
</af:column>
<!--value="#{row.bindings.Description.inputValue}" backingBeanScope.backing_app_CalcSchedules.description-->//If i use this value in the below property line then i am not getting value while creating time but if i done blind search then i am not getting any value in this field.
<af:column sortProperty="Description" filterable="true"
sortable="true"
headerText="#{bindings.CmWeeklyProcesses.hints.Description.label}"
id="c35" width="390px;">
<af:inputComboboxListOfValues id="descriptionId"
popupTitle="Search and Select: #{bindings.CmWeeklyProcesses.hints.Description.label}"
value="#{row.bindings.Description.inputValue}"
model="#{row.bindings.Description.listOfValuesModel}"
required="#{bindings.CmWeeklyProcesses.hints.Description.mandatory}"
columns="#{bindings.CmWeeklyProcesses.hints.Description.displayWidth}"
shortDesc="#{bindings.CmWeeklyProcesses.hints.Description.tooltip}" inlineStyle="width:1000px;"
readOnly="true" partialTriggers="processTypeId">
<f:validator binding="#{row.bindings.Description.validator}"/>
</af:inputComboboxListOfValues>
</af:column> -
Trying to set attribute value based on user selection of another attribute
I am trying to set an attribute value based on the user's selection of another attribute using JSP EditCurrentRecord. When the user chooses the AreaId from the combo box I want to look up the value of the RgnID, preferrably without the user seeing this field at all. Below is my code which does not work. When I run it I get Error Message: null. Any suggestions are appreciated!!
<jsp:useBean id="RowEditor" class="oracle.jbo.html.databeans.EditCurrentRecord" scope="request">
<%
RowEditor.initialize(pageContext, "MyProject2_package1_SRSecurityModule.UsrAreaWhView");
RowEditor.setTargetUrl("UsrAreaWhView_SubmitInsertForm.jsp");
RowEditor.createNewRow();
RowEditor.setDisplayAttributes("OracleId, RgnId, RegionKey, AreaId");
RowEditor.useEditField("OracleId");
RowEditor.getFieldRenderer("OracleId").setPromptText("Oracle ID");
RowEditor.useEditField("AreaId");
RowEditor.useComboBox("AreaId","AreaWhView","Area","AreaKey");
RowEditor.getFieldRenderer("AreaId").setPromptText("Area");
RowEditor.useEditField("RgnId");
RowEditor.getFieldRenderer("RgnId").setPromptText("Region");
RowEditor.getRowSet().getViewObject().getCurrentRow().setAttribute("RgnId",RowEditor.getRowSet().getViewObject().getCurrentRow().getAttribute("RegionKey"));
RowEditor.setReleaseApplicationResources(true);
RowEditor.render();
%>
</jsp:useBean>ok, sorry everyone for making it confusing; this is what I am
trying to acheieve;
I would like the user to populate my database with thier
username AND userID. I have a dropdown box with thier username
dynamicly populated already, what I am trying to achieve, is a way
of when the user selects thier username either another dropdown or
a hidden field is automatically populated with the appropiate
userID (to match thier username). Now I could just have two
dropdowns and they select both, but i'd rather avoid the
possibility of mismatches, and that is why I would like it to be
automatic and based on thier username selection...
Does that make sense....? -
NPE error when navigating to next page based on lov selection
hi there am having problem whn navigating to next page based on lov selection,when i select value and click the button to navigate am geting NPE ERROR
{code}
<DCUtil> <findSpelObject> [598] DCUtil, returning:oracle.jbo.uicli.binding.JUFormBinding, for uam_view_pageDefs_SelectOrgPageDef_WEB_INF_Updatetaskflow_definition_xml_Updatetaskflow_definition
<DCIteratorBinding> <releaseDataInternal> [599] Releasing iterator binding:variables
<DCIteratorBinding> <releaseDataInternal> [600] Releasing iterator binding:UpdUamOrganisationLovIterator
<DCIteratorBinding> <releaseDataInternal> [601] Releasing iterator binding:UpdUamOrganisation1Iterator
<DCIteratorBinding> <releaseDataInternal> [602] Releasing iterator binding:UamUserdetailsViewVo1Iterator
<XmlErrorHandler> <handleError> ADF_FACES-60096:Server Exception during PPR, #1
javax.servlet.ServletException: java.lang.NullPointerException
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
... 38 more
Caused by: java.lang.NullPointerException
at showSelectedOrg(OrgDetails.java:2455)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
... 45 more
THIS IS THE LINE AM GETING THE ERROR
method.getParamsMap().put("rowKey", newVal);
<af:selectOneChoice value="#{bindings.Orgid1.inputValue}"
required="true"
id="soc1" autoSubmit="true" valuePassThru="true"
contentStyle="width:145px">
<f:selectItems value="#{bindings.Organisationid.items}" id="si1"/>
</af:selectOneChoice>
<af:commandButton text="UpdateOrganisation"
id="cb1"
action="#{pageFlowScope.addMember.showSelectedOrg}"/>
public String showSelectedOrg() {
/* if(getorgids() == null ||getorgids().equals(null)){
JSFUtils.addFacesErrorMessage("Select Atleast One Organisation");
JSFUtils.showFacesErrorMessage("Select Atleast One Organisation");
BindingContext lBindingContext = BindingContext.getCurrent();
BindingContainer bindings = lBindingContext.getCurrentBindingsEntry();
// get the list binding for the Organisation lov
JUCtrlListBinding list = (JUCtrlListBinding)bindings.get("Organisationid");
// get the selected index from the list which is stored in the Orgidd1 attribute
AttributeBinding attr = (AttributeBinding)bindings.getControlBinding("Orgid1");
Integer selid = (Integer)attr.getInputValue();
// load the listdata
Object row = list.getDisplayData();
// get the selected row from the list
Row lFromList = (Row)list.getValueFromList(selid);
// from the row we get the PK the orgnasationId
Object lAttribute = lFromList.getAttribute("Organisationid");
Object orgname = lFromList.getAttribute("Organisationname");
Number newVal = (Number)lAttribute;
String neworg = (String)orgname;
_logger.info("Information: selected Organisation = " + newVal);
System.out.println("neworg " + newVal);
System.out.println("testorg " + neworg);
selectedState = neworg;
// get the MethodAction for setCurrentRowWithKeyValue
OperationBinding method = bindings.getOperationBinding("setCurrentRowWithKeyValue");
// set hte needed parameter as the organisation id
method.getParamsMap().put("rowKey", newVal);
method.execute();
// after execution check for errors
List errors = method.getErrors();
Exception ex = (Exception)errors.get(0);
FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, ex.getMessage(), "Select Atleast One Organisationtest");
FacesContext.getCurrentInstance().addMessage(null, msg);
// keep on page in case of an error
// navigate to the next page
return "show";
{code}
am in jdeveloper 11.1.1.6.0adf009, please read the post I posted the link to in my previous replay. The old code format tag don't work in the new forum!
Still the same error. The stack trace still points to it, you only need to read it carefulle
javax.faces.el.EvaluationException: java.lang.NullPointerException
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
Caused by: java.lang.NullPointerException
OrgDetails.showSelectedOrg(OrgDetails.java:2456)
The origin is
method.execute();
and the real reason is
MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51);
What does it tell you?
Timo -
Programatically setting column values for table
hi...
I am programatically setting column values for table.
But these values are not getting reflected on table after commit.
I mean to say,new values are not persisted after commit.
The code is as follows,It is in Application Module class
public void createRecord()
OAViewObject vo = (OAViewObject)this.getOpptyLoeVO1();
if (!vo.isPreparedForExecution())
vo.executeQuery();
Row row = vo.createRow();
row.setAttribute("Id",new Number(850));
row.setAttribute("Model","Honda");
row.setAttribute("Role","Team Lead");
row.setAttribute("Hours",new Number(35));
vo.insertRow(row);
row.setNewRowState(Row.STATUS_INITIALIZED);
getTransaction().commit();
Here "Id,Model,Role,Hours" are columns in table .Hi,
is your VO based on an Entity Object?
If not, you can't update values in the DB using only a View Object!
If yes, you should control that, in your VO, you have not selected the flag "Read Only" for the EO you want to update.
Hope this helps you.
Bye
Raffy -
hi i have a situation where i what a popup based on lov selection,for example i have lov which got list of user role when i change user role i what popup which will have inputtext where i can type the reason what the user role has change,am in jdeveloper 11.1.1.6.0
my lov is
i did this but i don't see any popup when i make selection in my lov
<af:selectOneChoice label="#{bindings.Roleaccesscode.label}"
required="#{bindings.Roleaccesscode.hints.mandatory}"
shortDesc="#{bindings.Roleaccesscode.hints.tooltip}"
id="soc5" simple="true"
contentStyle="width:140px;"
partialTriggers="soc3"
valueChangeListener="#{pageFlowScope.InternalUserBean.InternalTypeupd}"
visible="true"
value="#{pageFlowScope.InternalBean.selectType}"
autoSubmit="true">
<af:forEach var="item"
items="#{pageFlowScope.InternalBean.childRolesupd}">
<af:selectItem value="#{item}" label="#{item}" id="tu7g"/>
<af:showPopupBehavior popupId="popupMessage"
triggerType="action"/>
</af:forEach>
</af:selectOneChoice>
<af:popup id="popupMessage" contentDelivery="lazyUncached">
<af:dialog id="d109" type="ok">
<af:inputText value="#{bindings.RoleReason.inputValue}"
label="#{bindings.RoleReason.hints.label}"
required="#{bindings.RoleReason.hints.mandatory}"
columns="50"
maximumLength="#{bindings.RoleReason.hints.precision}"
shortDesc="#{bindings.RoleReason.hints.tooltip}"
id="it49" rows="15">
<f:validator binding="#{bindings.RoleReason.validator}"/>
</af:inputText>
</af:dialog>
</af:popup>ok thanks,but now am geting this error
<af:panelGroupLayout id="pgl4">
<af:popup id="popupMessage" contentDelivery="lazyUncached"
binding="#{pageFlowScope.InternalBean.radioPopupLov}">
<af:dialog id="d109">
<af:inputText value="#{bindings.RoleReason.inputValue}"
label="#{bindings.RoleReason.hints.label}"
required="#{bindings.RoleReason.hints.mandatory}"
columns="50"
maximumLength="#{bindings.RoleReason.hints.precision}"
shortDesc="#{bindings.RoleReason.hints.tooltip}"
id="it49" rows="15">
<f:validator binding="#{bindings.RoleReason.validator}"/>
</af:inputText>
</af:dialog>
</af:popup>
<af:selectOneChoice label="#{bindings.Roleaccesscode.label}"
required="#{bindings.Roleaccesscode.hints.mandatory}"
shortDesc="#{bindings.Roleaccesscode.hints.tooltip}"
id="soc5" simple="true"
contentStyle="width:140px;"
partialTriggers="soc3"
valueChangeListener="#{pageFlowScope.InternalUserBean.activationChangedListenerLov}"
visible="true"
value="#{pageFlowScope.InternalBean.selectType}"
autoSubmit="true">
<af:forEach var="item"
items="#{pageFlowScope.InternalBean.childRolesupd}">
<af:selectItem value="#{item}" label="#{item}" id="tu7g"/>
</af:forEach>
</af:selectOneChoice>
<af:outputText value="Role Changed: #{pageFlowScope.InternalBean.selectType}" id="ot31"
partialTriggers="d109"/>
</af:panelGroupLayout>
<af:popup id="popupMessage" contentDelivery="lazyUncached"
binding="#{pageFlowScope.InternalBean.radioPopupLov}">
<af:dialog id="d109">
<af:inputText value="#{bindings.RoleReason.inputValue}"
label="#{bindings.RoleReason.hints.label}"
required="#{bindings.RoleReason.hints.mandatory}"
columns="50"
maximumLength="#{bindings.RoleReason.hints.precision}"
shortDesc="#{bindings.RoleReason.hints.tooltip}"
id="it49" rows="15">
<f:validator binding="#{bindings.RoleReason.validator}"/>
</af:inputText>
</af:dialog>
</af:popup>
private ComponentReference radioPopupLov;
public void activationChangedListenerLov(ValueChangeEvent valueChangeEvent) {
// process updates to get the selected value inside the popup
FacesContext contxt = FacesContext.getCurrentInstance();
valueChangeEvent.getComponent().processUpdates(contxt);
//show the popup
RichPopup.PopupHints hint = new RichPopup.PopupHints();
getRadioPopupLov().show(hint);
public void setRadioPopupLov(RichPopup radioPopupLov) {
this.radioPopupLov = ComponentReference.newUIComponentReference(radioPopupLov);
public RichPopup getRadioPopupLov() {
if (radioPopupLov != null)
return (RichPopup)radioPopupLov.getComponent();
return null;
but am geting this error
javax.servlet.ServletException
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:32)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:44)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:75)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.lifecycle.filter.LifecycleLockFilter.doFilter(LifecycleLockFilter.java:151)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: java.lang.NullPointerException
at view.InternalBean.activationChangedListenerLov(InternalBean.java:1918)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
at org.apache.myfaces.trinidad.component.UIXEditableValue.broadcast(UIXEditableValue.java:214)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:430)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
... 48 more
in this line getRadioPopupLov().show(hint); -
Dynamic bar chart based on LOV selected
Apex 2.1 with XE : running on windows xp.
I am trying to create charts based on selected criteria such as level 1, level 2 and level 3. If the user selects level 1 chart is expected to group level 2 and level 3 parameters else if the user selects level 2 criteria on top of level 1 then it should filter to the next category and so on. To make it simple I created three different queries which would generate the required graphs.
To achieve this I decided to use PL/SQL function that would return three different chart queries based on the LOV selection. Although the function works well for each of the queries they dont work with a if else condition based on LOV selection. So what is the problem with creating such as dynamic query. Can I use the "%" values of LOV in my if else condition if not why ?
Any alternatives ?Well. The queries for the charts run independently well. I guess I might be using the if else condition in an improper fashion.
If the second LOV filter is not used.. I am matching the :LOV2 value with "%" and execute appropriate chart query based on single selection criteria and for the else case I use the other query and so on.
I wish to show the code but since I upgraded to 3.0.1 today my application page views don't render properly. The images are missing ..and whole page is missing for editing. -
How to set the value of an LOV in CO prgramatically and get the Pkey value?
Hi,
I need to set a value to a LOV, say ItemLOV in a page through CO and get the Primaykey that LOV will return. How can I achieve this?
Req:
1. Set the Item_Name, say 'DELL_1618' so that the page displays this in the LOV.
2. Fetch the PK value returned by LOV in the backend into a VO attribute say Item_ID, '100009881'.
Thanks,
Santosh.Hi Santosh,
Sorry, I replied for General LOV Scenario, but want to set it programatically right,
You need to execute your LOV query in Controller for Item 'DELL_1618' using prepared statement, get the value for both dispaly value and Id and set it to LOV and FormVlaue Item in PR of controller.
Regards,
Reetesh Sharma -
Change Column Value based on Characteristic in Rows
I am not sure it is possible.
We have product prices at different levels of customer hierarchy.
Channel > Division > Region > Market
One Region can have multiple Markets. Each market can have different Rates. But the Region will have a different Rate which many not be the average rate of all market (assigned as part of master data)
I have a column for Product Price. So when a Report is run at Market Level it should use Market Rate. If Market is Removed and Region is dragged into the report it should use Region Rate for Product Price.
Product Price is Restricted by Rate Type value to determine which Rate is used.
Is there a way to dynamically determine the define the column value based on the characteristic value in the ROWS.
ThanksHi,
For every CHAR like Market/Region there will be some key. For example Maket1 = 11 and Market2 = 22. If that key is a number then you may create replacement path variable on that and convert the same in numbers then you may create various CKF (for various rate type) and put "If" condtion and check for those replacement path CKF and use the apprpriate one.
You need to write some tricky formula at CKF levels. This is one of the way to achieve that.
I hope it will help.
Thanks,
S -
Dynamically set a value based on value selected from LOV
Apex 4.2
I'm having trouble creating a dynamic action to set a value. I've used dynamic actions to hide and show regions but for some reason cannot set a value.
I have a select list --> P101_LIST. Source Type is 'Database Column'. Source value or expression is 'person_id' The query is as follows:
Select first_name, person_id
From Persons
I have a display value --> P101_DISPLAY. Source Type is 'Static Assignment'. Source value or expression I left blank.
I would like for every time the user selects a name from P101_LIST, the P101_DISPLAY item gets updated to show the corresponding value(person_id).
Because there are other page items / information on the page, I would prefer this to not submit / update the page. Wouldn't want other page items / information getting updated.
Any help on this matter would be greatly appreciated. Thanks in advance.Hi,
Create a DA:
- event onChange P101_LIST
- Action: PL/SQL
- PL/SQL code:
:P101_DISPLAY := :P101_LIST;
Items to submit: P101_LIST
Item to return: P101_DISPLAY
And done.
Regards,
Joni -
Set Radio Group Default Value Based on a Select List Change Event
Apex 4.2
I have a radio group that is source is below. It returns 3 radio group item All,Miv,Courier
SELECT type d, code r FROM vw_lov_depot
WHERE svc_name = :P320_DEPOT
ORDER BY 1
The radio group is only populated when :P320_DEPOT gets a value, this is a select list.
I am trying to set the radio group to default to this value Miv it would use the statement
SELECT type d, code r FROM vw_lov_depot
WHERE svc_name = :P320_DEPOT
and type ='Miv'
ORDER BY 1
I have tried creating a dynamic action on Select list change to populate the default value of the radio group...no joy I also tried a computation. how can I set this default value on when list changed.
Thanks
I have got the default Radio Group Selection working by doing a computation before region on the radio group and calling its select statement and setting the value. But the problem is now I cannot change the radtio group as I do it fire the before region trigger and sets it back to the default value....any help?Hi,
Could you please create example to apex.oracle.com?
Regards,
Jari -
Change column value based on another
Hi, everyone.
my version 11.1.2.2.0.
i wanna change 1 column's value based on another column's value that be selected.
ex: select 2rd column to 'A' , then the 1rd should be 'New Start'.
i used EL like #{row.bindings.MacdType.inputValue eq 1 ? 'New Start' : row.bindings.CircuitId.inputValue}.
But it does not set the inputvalue which should binding with the DataSource.
what's the best way to do these logic?
pls help. thxHi,Abhijit;
ex: the frist column is a LOV, the user select "A" for the first column, so the value of the second column should be changed to 'New Start'.
And the value should be binding to the DC, when save, the value of the 2rd column should be saved to DB.
thx -
Use session state values to set column value during insert/update
I am building an APEX 4.2 application that uses the canned Data Loading control to upload csv data to a table. I have modified the 'Select Data Source' page of the workflow and it now contains three LOV's that the user selects values from. The selected values are stored in Session State. As I'm new to APEX, I do not know how to reference Session State objects in the context of the Data Loading workflow so that the appropriate columns are set with the correct values. My assumption is that the columns that are apart of the insert statement reside in a collection somewhere. I just don't know how to loop through the collection, determine the correct column, and then set that column's value equal to the corresponding LOV value in Session State.
Scott,
This is in version 2.2.1 and there are no caching features available.
The application does require login.
I'm playing around with the APP_UNIQUE_PAGE_ID right now but I am finding that even in the builder if I edit the attributes of a report column and then try to edit another column it will bring up the last column I edited. Even if I use the record navigation buttons next to the Apply Changes button it will keep bringing me the same page over and over unless I constantly refresh the pages.
Greg -
Set default value based on current day value and setItems in Design studio
Hello
I have 2 filters on my dashboard - year and month. The default display of the dashboard should populate current year data. Is it possible to create formula to populate dynamic default value based on the current date using setSelectedValue() ?
Also, for the calendar month, the items are set as below
DD_MONTH.setItems(DS_1.getMemberList("0CALMONTH",
MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 12, "ALL");
This displays month values as 01/2014, 02/2014 ... How can I change these value to display as January if mm = 01 and February if mm = 02 etc..
Thanks
SirishaHi Victor,
I have tried using below statment to populate current year as the default selection value for the dropdown. Used it on Startup, but for some reason it loads all the data when the dashboard is opened the first time. Any ideas?
DS_1.setFilter("0CALYEAR",[Convert.subString(APPLICATION.getInfo().dateNowInternalFormat, 4,6)]);
Thanks
Sirisha -
Get a Column value based on other column value in a single query
Hi All,
I have a problem here -
In Table XYZ I have columns by name A, B, C and COL_I. COL_I has a value A or B or C. Based on the value in COL_I, I need to get the value from the corresponding column in the table.
For Ex: If the COL_I has the value as 'A' then I need to fetch the value from the column A. If it is 'B' then fetch from column B.
This has to be done in a single query.
Thanks,
san_mahHi You can use this query
I have taken this simple case
SQL> desc column_fetch
Name Null? Type
C_FIRST_NAME VARCHAR2(30)
C_MIDDLE_NAME VARCHAR2(30)
C_LAST_NAME VARCHAR2(30)
C_GET_NAME VARCHAR2(30)
based on C_GET_NAME find values in columns C_FIRST_NAME,C_MIDDLE_NAME,C_LAST_NAME
Values in Table
SQL> select * from column_fetch
2 ;
C_FIRST_NAME C_MIDDLE_NAME C_LAST_NAME C_GET_NAME
A B C D
A B C F
A B C F
A B C A
A B C B
A B C C
CASE Statement:
SELECT
CASE WHEN c_first_name=c_get_name THEN c_first_name
WHEN C_MIDDLE_NAME=C_GET_NAME THEN C_MIDDLE_NAME
WHEN C_LAST_NAME=C_GET_NAME THEN C_LAST_NAME
ELSE 'Nothing' END
FROM column_fetch;
Maybe you are looking for
-
I Phone 4 with I OS 4.2 shuts downs with 30% battery still remaining.
Hi, I have been an Apple fan for years, But recently my new I Phone 4 has been giving me a lot of trouble. I purchased the Phone in Oct'10, it was working great till last week. All of a sudden my phone automatically switches off with 30% battery stil
-
BAPI for displaying materian/description/Bin storage/ qty based on producti
Hii All, please gv which bapi we use to display Bin storage, Material n qty based on production order number its very urgent
-
Hi, I wanted to know how to include Role Based Access in my Struts application. Does Struts provide any mechanism to accomplish it? If yes then,how can it be done Thanks kurt
-
Hi All I have an application consisting of lots of processes. When ever I start my applicaiton, I seem to be running out of swap space. I see that there is a lot of reserved space. Means the applications are attaching shm and/or requesting mallocs. I
-
HT1727 I cant set a song as my ringer that I purchased from itunes
The song I purchased from itunes doesnt show up in my ringtones list