Trigger to execute query when value from LOV is selected
HI Guys,
I have a form in which I have 2 fields in Master and 4 fields in detail, all showing on the same canvas.
I have put an 'execute_query' in when_new_form_instance trigger so that when I open the form it is pre - populated.
The Master fields draw values from LOVs. I want to execute the master block query when the user selects a value from LOV, so in which trigger should I put it.
I have tried in 'when_validate_item' and 'when_list_changed' triggers but it is showing an error.
So, what should I do?
Regards
Ranjan
I have designed a form in which there are two items in header level and two in line level. I have defined master - child relationship between the two blocks.
I have put a execute_query for header in when_new_form_instance trigger so that when user opens the form, all fields are initially populated.
Each Field has an LOV attached to it.
Form Outline :
Header : Ledger Name
Ledger_approver
Line : Approver
Amount
Initially all details for Ledger L1 is populated.
If the user now selects Ledger L2 from LOV, then when he moves out of that item, immediately all details about L2 should get populated in the fields.
I Have tried execute_query in when_validate_item of Ledger Name but I get error that we cannot use restricted procedure in when_validate_item trigger.
I hope this explains my issue.
Regards,
Ranjan
Similar Messages
-
How to retrieve query string value from the URL in my portlet
Hi,
When user clicks on "Advance Search", i am redirecting to page in the community. At the same i am adding some more values to the query string (to the URL).
My URL will look like this.
http://ctp-mc0149/portal/server.pt?space=CommunityPage&parentname=CommunityPage&parentid=0&in_hi_userid=200&cached=true&control=SetCommunity&PageID=202&CommunityID=200&searchType=2
Now in one of my portlet in that page, i want to retrieve the query string values from the URL.
Please help me regarding this.
Thanks in advance.
Thanks,
sreekanth.Hi,
Look at the following threads,
For programmatically getting the iview properties,
Programmatically getting iView Properties
Also,
Get Properties of IView Programmatically
Permanent change of iView property programmatically
Hope these threads help u.
Regards
Srinivasan T -
How to set value from LOV only as a default reference not enforce validate check?
In jdev 11.1.2.3,
By creating List of Value(LOV) for an attribute of a VO, I can get default value for the current VO's attribute from the lookup table, but it will also enforce a validate check for that value.
If I input a value which is not in the lookup table, then errors will raised.
Now I hope I can get default value from LOV, and can also input some new value (and this new value can be insert into the lookup table by a database trigger) for the attribute/field without failure to pass the check.
Any one can help?
Thanks!Hi, Arun
Your suggestion let me get to know how to create a new record in the customeActions facet of inputComboBoxListOfValues, which I donot know before. It's great. and thank you very much.
However, my current issue is a different requirement, let me describe it clearly as:
I have a formlayout to input a field value which can be from a lookup table, or if this value is not in the lookup table then it can also be input without raising value validation check failure.and this new value can be added to the lookup table at the same time.
for example, there is a FK attribute deptno in the EMP table, in a form for editing EMP attributes, user can input deptno value which is already in the DEPT lookup table by selecting from a LOV. also can input some new value which cannot be selected from the LOV, and this new deptno value will be posted to database both in EMP and DEPT table.
The issue is, after create a LOV for deptno attribute in EMP VO, there will be a enforced value validation check, so new values cannot be input in EMP unless it is input into DEPT first.
(http://docs.oracle.com/cd/E37975_01/web.111240/e16182/lists.htm#BABBJFBB)
List of values are designed to return valid values only. As a result, validation rules defined on data source view object attributes will be suppressed.
My question is: how to disable this enforced value validation for a LOV-enabled field?
(There is other means to ensure user will input valid value for this field, for example ask him to double input.)
Thanks again!
bao -
How to get actual value from LOV list
Like Subject says: How to get actual value from LOV list. Any help will be appreciated.
Thanks.Thanks Shay, I did it with bind variable because I'm not using JSF. Is there any chance to post solution using standard JSTL or HTML expression. I have something like this: LOV displays some Companies names:
<html:select property="UserJobCompanyId"
disabled="${!bindings[\'UserJobCompanyId\'].updateable}"
onchange="submitform();">
<html:optionsCollection label="prompt" value="index" property="UserJobCompanyId.displayData"/>
</html:select>and I want to get CompanyID of selected Company.
Thanks, again. -
Created a simple page with a few text inputs and 4 LOV. After selecting a value from the last LOV the following error is displayed:
Error:
You are trying to access a page that is no longer active.
- The referring page may have come from a previous session. Please select Home to proceed.
OA Framework 12.1.3
Oracle OA Extension 10.1.3 - build 1313
Any pointers to the cause ?
Thanks[57]:EVENT:[xx.oracle.apps.ap..webui.EngagementCO]:OAF LOG: Event : Call Process Form Data, in: xx.oracle.apps.ap..webui.EngagementCO: Entering Process Form Data
[57]:EVENT:[xx.oracle.apps.ap..webui.EngagementCO]:OAF LOG: Event : Call Process Form Data, in: xx.oracle.apps.ap..webui.EngagementCO: Entering Process Form Data
[57]:EVENT:[fnd.framework.webui.OAFormValueHelper]:OAF LOG: Event : Get Attribute Value, in: oracle.apps.fnd.framework.webui.OAFormValueHelper: View:xxEngagementVO1 ,Attribute:VendorId , Return Value without datatype conversion :996
[58]:EVENT:[fnd.framework.webui.OAFormValueHelper]:OAF LOG: Event : Get Attribute Value, in: oracle.apps.fnd.framework.webui.OAFormValueHelper: View:xxEngagementVO1 ,Attribute:VendorSiteId , Return Value without datatype conversion :60158
[58]:EVENT:[fnd.framework.webui.OAFormValueHelper]:OAF LOG: Event : Get Attribute Value, in: oracle.apps.fnd.framework.webui.OAFormValueHelper: View:xxEngagementVO1 ,Attribute:BusinessPrincipalId , Return Value without datatype conversion :48375
[59]:EVENT:[fnd.framework.webui.OAFormValueHelper]:OAF LOG: Event : Get Attribute Value, in: oracle.apps.fnd.framework.webui.OAFormValueHelper: View:xxEngagementVO1 ,Attribute:AttorneyPersonId , Return Value without datatype conversion :37430
[59]:EVENT:[fnd.framework.webui.OAMessageLovInputHelper]:OAF LOG: Event : Get Attribute Value, in: oracle.apps.fnd.framework.webui.OAMessageLovInputHelper: View:xxEngagementVO1 ,Attribute:Vendor , Return Value without datatype conversion :CLIFFORD CHANCE
fnd.framework.webui.OAMessageLovInputHelper][60]:EVENT:[fnd.framework.webui.OAMessageLovInputHelper]:OAF LOG: Event : Get Attribute Value, in: oracle.apps.fnd.framework.webui.OAMessageLovInputHelper: View:xxEngagementVO1 ,Attribute:AttorneyName , Return Value without datatype conversion :Bloggs, Mr. Joe
[60]:UNEXPECTED:[fnd.framework.webui.OAPageContextImpl]:MACCHECK: . Parameter failing validation is :MatterCode. Parameter "MatterCode" failed Validation. Value got from request object is 2435
Incoming URL is : /OA_HTML/OA.jsp?page=/xx/oracle/apps/ap/legal/webui/EngagementPG&_ti=752953423&language_code=US&&OAFMID=94470&OAPB=_OAFMID&oapc=16&oas=xSrFYCAbgOaPGVhqpb0-hA.. .
Current URL is : /OA_HTML/OA.jsp?page=/xx/oracle/apps/ap/legal/webui/EngagementPG&_ti=752953423&language_code=US&&OAFMID=94470&OAPB=_OAFMID&oapc=16&oas=xSrFYCAbgOaPGVhqpb0-hA.. .
Referer URL is : https://paydev.company.com/OA_HTML/RF.jsp?function_id=48080&resp_id=53189&resp_appl_id=20003&security_group_id=0&lang_code=US¶ms=CtXL5LFdg5E7c.aFPRw7fTZ5STWrUsz9iXF2ByXh3F4&oas=gAqepzP-un4kBOC8NUxtIQ.. .
HTTP Request Method is : POST
[62]:ERROR:[fnd.common.Message.auto_log]:FNDFND_FORM_POST_SECURITY_FAILEDYHOMEFND_GLOBAL_PRMPT_HOME
[62]:ERROR:[fnd.framework.OAException]:You are trying to access a page that is no longer active.
- The referring page may have come from a previous session. Please select Home to proceed.
Click on browser Back button and all LOV values are empty on original screen. Try and select value from LOV and after selection:
[23]:EVENT:[xx.oracle.apps.ap.legal.webui.EngagementCO]:OAF LOG: Event : Call Process Form Data, in: xx.oracle.apps.ap.legal.webui.EngagementCO: Entering Process Form Data
[23]:EVENT:[xx.oracle.apps.ap.legal.webui.EngagementCO]:OAF LOG: Event : Call Process Form Data, in: xx.oracle.apps.ap.legal.webui.EngagementCO: Entering Process Form Data
[23]:UNEXPECTED:[fnd.framework.webui.OAPageContextImpl]:MACCHECK: . Parameter failing validation is :VendorId. Parameter "VendorId" failed Validation. Value got from request object is 996
Incoming URL is : /OA_HTML/OA.jsp?page=/xx/oracle/apps/ap/legal/webui/EngagementPG&_ti=752953423&language_code=US&&OAFMID=94470&OAPB=_OAFMID&oapc=17&oas=lC4tbZwHYHffQY6uX7agiA.. .
Current URL is : /OA_HTML/OA.jsp?page=/xx/oracle/apps/ap/legal/webui/EngagementPG&_ti=752953423&language_code=US&&OAFMID=94470&OAPB=_OAFMID&oapc=17&oas=lC4tbZwHYHffQY6uX7agiA.. .
Referer URL is : https://paydev.company.com/OA_HTML/RF.jsp?function_id=48080&resp_id=53189&resp_appl_id=20003&security_group_id=0&lang_code=US¶ms=CtXL5LFdg5E7c.aFPRw7fTZ5STWrUsz9iXF2ByXh3F4&oas=gAqepzP-un4kBOC8NUxtIQ.. .
HTTP Request Method is : POST
[25]:ERROR:[fnd.common.Message.auto_log]:FNDFND_FORM_POST_SECURITY_FAILEDYHOMEFND_GLOBAL_PRMPT_HOME
[25]:ERROR:[fnd.framework.OAException]:You are trying to access a page that is no longer active.
- The referring page may have come from a previous session. Please select Home to proceed. -
APEX - passing values from LOV's or multi-select LOV's to another APEX form
I am new APEX development and I need to take the values from LOV's and multi-select LOV's and pass them to another APEX form. I want to take those passed values and use them in the where clause of the base-table in the called form. Any assistance would be greately appreciated.
Hi,
Refer this example
http://www.talkapex.com/2009/07/apex-how-to-pass-multiselect-list.html
Example: http://apex.oracle.com/pls/otn/f?p=20195:2100
Regards,
Kartik Patel
http://patelkartik.blogspot.com/
http://apex.oracle.com/pls/apex/f?p=9904351712:1 -
Patterns to execute a SQL Statement from a Droplet (select)
Hi,
I need to perform a query on a table, Example: select * from ARF_QUERY "the database used is Oracle. I would like to know if the atg has some
standard method to perform this database connection and execute the SQL statement from a Droplet (select).
Thank.I dont think there is any generic droplet to run a select query directly against a table.
However, there are various lookup droplets available that run on the repositories.
Like /atg/targeting/RepositoryLookup droplet. you can run it for specific id or for all.
You might want to have a look at it in documentation of how exactly to use it.
Thanks -
Get all the values from a multiple select in a multipart form
Hi there!
I am using a form with enctype="multipart/form-data" in order to upload files from the form.
I have read this page: http://commons.apache.org/fileupload/using.html and everything works well for my form.
The only problem is that I can't get all the values from a "multiple select" html object. I get only one value.
Using servlets I have used this method:
public java.lang.String[] getParameterValues(java.lang.String name) But now I have enctype="multipart/form-data" in my form and I can't use this way...
Is there a way to get all the values of a multi-valued parameter?
Thanks a lot!
StefanoHi
I have got solution for this problem so, I am listing here logic
assume tag name of html
<select name="moption" multiple="multiple">
iterate it in as
String moption="";
boolean cnt=true;
while(itr.hasNext())
FileItem fi=(FileItem)itr.next();
if(fi.isFormField())
if(fi.getFieldName().equals("moption"))
if(cnt==true)
moption=fi.getString();
cnt=false;
else
moption=moption+","+fi.getString();
If wants more help then mail me your problem
at [email protected]
Thanks!
Anand Shankar
Edited by: AnandShankar on 6 Nov, 2009 12:54 PM -
How can we read the screen field values from the report selection screen wi
Hi expart,
How can we read the screen field values from the report selection screen with out having an ENTER button pressed .
Regards
Razzuse this code...
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_posnr.
**Read the Values of the SCREEN FIELDs
CALL FUNCTION 'DYNP_VALUES_READ' -
How to Populate table using values from a muti-select list
I have a muti-select list in a page, the user can select some of the values from the muti-select list. How to populate a table in a process using the selected values.
Thanks.
XPXP,
you can also have a look at the following thread.
Re: Shuttle Control In APEX 3
Patrick
My APEX Blog: http://inside-apex.blogspot.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/ -
I am trying to create mobile pages using the steps file>new>new document>page from sample>mobile starters>jquery mobile (cdn). When "page from sample" is selected, the subsequent options are not available. This seems like a silly question, but how do I acquire these options?
You can get the latest jQuery Mobile Themes directly from jQuery Mobile's web site.
https://demos.jquerymobile.com/1.1.0/docs/api/themes.html
Or roll your own with ThemeRoller
http://themeroller.jquerymobile.com/
Nancy O. -
How to fill depended collection of data when selecting a value from lov
hi
i am working on a master detail form. when i am selecting a Department name from LOV all
corresponding Employee will filled in to table. how it is possible programatically
caan u give some sample code
Regards
Rajeshhi
i am using J developer 11g (adf)and i used an lov for searching for departments
when i selecting a departments ,all emplyees from that department i want to fill
in a table.
here i can fill data in iin input text control . But i cannot fill array of data into a table
can u give some advice and sample code
regards
rajesh -
How to refresh page after selecting value from LOV item , in a tabular form
Hi ,
I have a tabular form, which contains 2 items(columns), of type "Select List - named LoV".
Now, couple of issues here.
1.
2nd item(column) in tabular form, that LoV should get populated based user's selection value in first item LoV. So how do i refer to the value, that user selected in first item's LoV? I will have to use this reference in LoV query of my 2nd item ( on this tabular form)
2.
How can we refresh the page, when user selectes value in first item ( from LoV). As this is a tabular form, here item type is Select List, we dont have an option to pick item type as Select List with Submit. So problem is that when user selects value for item 1, refresh does not happen and item 2 LoV does not get populated as per user's selection in item 1.
Please help here. Would be really appreciated.
Thanks and Regards,
Rave.Thanks Ben and Dan for your responses.
Ben, your solution helped me with refresh of page, as page got submitted.
This answers to my 2nd question. However, I still need to know first question, which basically is, how do i refer to the value, that user selected in first item LoV.
Issue is, I selected the value in first item LoV, it got submitted and page fot refreshed. But after page refresh, first item LoV loses its value that I had selected last time. It does not retain the selected value after refresh.
I have an unconditional process, that on every submit(refresh) of page, I set my items with their corresponding values. But problem is what do i mention there to refer to this item.
I looked in view source of my page, this item is referred as f03.
So i used "apex_application.g_f03", to set this item to its value, in my uncoditional submit process. But it did not work. I tried to refer this item as "f03" in this unconditional submit process. But still it did not help, the selected item loses its value after page refresh(submit).
Any help here would be really appreciated. Please suggest how do we refer to this item's selected value.
Thanks and Regards,
Ravi. -
I will start a new thread for this one.
When I do:
<!--- Get Selected Groups --->
<cfquery name="selGroups" datasource="access">
SELECT * FROM tblSelectedGroups
</cfquery>
<!--- Show Records --->
Selected Groups:<br>
<cfloop query="selGroups">
<cfoutput>#selGroups.name#, </cfoutput>
</cfloop>
<hr>
<!--- Put Selected Groups In List --->
<cfparam name="lstDepts" default="">
<cfloop query="selGroups">
<cfset lstDepts = listAppend(lstDepts,selGroups.name)>
</cfloop>
<!--- Show Records --->
Array/List:<br><cfoutput>#lstDepts#</cfoutput>
<hr>
<!--- Select 'personen' --->
<cfquery name="persons" datasource="access">
SELECT *
FROM tblPeople
WHERE dept IN (#lstDepts#)
</cfquery>
<!--- Show Records --->
Array/List of people:<br>
<cfloop query="personen">
<cfoutput>#persons.name#<br></cfoutput>
</cfloop>
I get the following result & error:
Selected Groups:
Belgie, Nederland, Zweden,
Array/List:
Belgie,Nederland,Zweden
Error Occurred While Processing Request
Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC
Socket][Microsoft][ODBC Microsoft Access Driver] Too few
parameters. Expected 3.
The error occurred in C:\Alex Data\AAA Sites\Site -
Coldfusion Test\arrayQuery.cfm: line 29
27 : SELECT *
28 : FROM tblPeople
29 : WHERE dept IN (#lstDepts#)
30 : </cfquery>
31 :
SQL SELECT * FROM tblPeople WHERE dept IN
(Belgie,Nederland,Zweden)The correct use of ListQualify works fine!!
<!--- LIST WITH CATEGORIES --->
<cfparam name="categoriesOpNaam" default="">
<cfloop query="allCatsForEntry">
<cfset categoriesOpNaam =
listAppend(categoriesOpNaam,allCatsForEntry.categoryname)>
</cfloop>
<!--- GET SUBSCRIBERS WHERE BLOG IN LIST --->
<cfquery name="qSubs"
datasource="#application.broadcasts#">
SELECT DISTINCT email FROM tblBlogSubscribers
WHERE blog in (#ListQualify(categoriesOpNaam,"'")#)
</cfquery> -
Set value in af:query with value from method
hello all
i have problem, when they want set value in af:query (inputText) with value from method, how to do that?
anyone help..?
thx
agungdmtHi,
are you facing this issue when you try to show few values on right side (selected list) of shuttle component.
what is your usecase exactly ?
Maybe you are looking for
-
When I tap the top of the screen on a text message to scroll to the top where it gives you 3 options,it does not have 'call' on the top left button, but 'email'. Any idea how to change it back?
-
Question for Deskject 3520 e-all in one re: printing fonts and one sheet preference
For a Deskjet 3520 e - all in one - printing from Ipad -How do I adjust fonts and make my printer print one side only ?
-
WHY NO NEW CLAMSHELLS???
Would love to see a new flip/clamshell come out its been a while..., perhaps with conversation view text...long battery life.. and an alert display at front. big keys of course with a 2.4 screen ...Not everyone loves a big widescreen smartphone, brin
-
Cannot Import BP BankAccounts with DTW 2007
Hello All I try to insert with DTW 2007 (on a SAP 2007 database) some BP banks account. My Structure is like in SBO 2005. I get : Invalid Code [OCRB.BankCode] I d'ont understand because the bank Code exist in the Bank Table. I Try to set the internal
-
Please help! Keep getting error message "an internal error occurred"
Hello, I'm trying to install Adobe Reader 10.1 on my macbook, but after (what looks like a successful download of Reader), when I try to open up a pdf I get the message "an internal error occurred." From here I am forced to click "OK" and then I just