Search Page based on select Query...
I want to create a simple search page base on a select query.
The select query will not be based on Table.Its based on functions.
I have created a view object like this
select xx_test_accruals(:p_date) ACCRUAL,:p_date DT from dual
I have created a Search page
In Main Page layout region i have added a query region.In that Query region i have created a result based search Table.
When i run the page is opening with field
Dt
When i enter date and click go i am getting error like this..
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select xx_test_accruals(:p_date) ACCRUAL,:p_date DT from dual) QRSLT WHERE (( UPPER(DT) like :1 AND (DT like :2 OR DT like :3 OR DT like :4 OR DT like :5)))
Please help
Edited by: [email protected] on Oct 4, 2009 2:04 PM
Hi,
i tried it on my machine....there's a little change on the approach.
See we have a View Object : XxAccrualsSummaryVO
the query is
select xx_test_accruals(to_date(:1,'YYYY-MM-DD')) ACCRUAL,to_date(:2,'YYYY-MM-DD') DT from dual
Create a Property View Object : say DateTestPVO and in that create a Transient Attribute of DATE type say InputDate. How to create property View Object(read in dev guide).
Bind the date text input to DateTestPVO and InputDate Attribute.
Now as the page loads in process request initialise the PVO not XxAccrualsSummaryVO.
public void initialisePVO()
OAViewObject vo = (OAViewObject)getDatePVO1();
if (!vo.isPreparedForExecution())
vo.setMaxFetchSize(0);
Row row = vo.createRow();
vo.insertRow(row);
row.setNewRowState(Row.STATUS_INITIALIZED);
And when the Go button is pressed then grab the date being entered and set the where clause of XxAccrualsSummaryVO.
if(pageContext.getParameter("Go")!=null)
//Get the value entered by user in date field.
OAMessageDateFieldBean dateField = (OAMessageDateFieldBean)webBean.findIndexedChildRecursive("text");
String datetest = (String)dateField.getValue(pageContext).toString();
//Now set the where clause parameters of VO.
OAViewObject vodate = (OAViewObject)am.findViewObject("invoicetestVO1");
vodate.setWhereClauseParams(null);
vodate.setWhereClauseParam(0,datetest);
vodate.setWhereClauseParam(1,datetest);
vodate.executeQuery();
It works perfectly...I have tested it.
Thanks,
Gaurav
Similar Messages
-
IRecruitment - custom page based on selected row in advanced table
HI,
We are implementing an addition to iRec. From the vacancy search page I have added an extra image column called worklog to the advanced table. Within the attributes I have set the view instance and and view attribute to
View Attribute VacancyId
View Instance IrcVacancyVO
However this value does not get passed across. I have even called the image ID VacancyId in the hope that this value pair would be posted to the custom app I have written.
I know this is a pretty low tech question on here, but does anyone know how I can pass the id of the selected row acroos to my custom page?
TIA,
SimonHi Simon,
In OATables we can not get the handle of current row.
The alternate solution is to call an AM method, execute the method and get the value from the VO row. Return it back to CO and then you can call your new page from the Search page in iREC.
it should work. Let me know if you are facing any problem.
Thanks
Anoop -
Showing and hiding dropdowns on product page, based on selected values
Hello.
I would like my product page to show different subsequent dropdowns based on individual dropdown values.
I've managed to achieve this via JavaScript, but I do not like how it works.
As far as I can tell, there is no proper identifier for each individual dropdown to determine which one it is, so all I can do at the moment is to rely on their order in the DOM, which is bad and makes it difficult for me to create a solution that would work for all products.
For instance, if the following is a single attribute:
<div class="catProductAttributeGroup" style="display: none;"><div class="catProdAttributeTitle">Metallic Foiling</div><div class="catProdAttributeItem"><select><option value="">-- Please select --</option><option value="6051720">Not required </option><option value="6051721">Foil ONE side + £45</option><option value="6051722">Foiling BOTH sides + £75</option></select></div></div>
I would like the outer-most div to have some sort of html attribute that holds the product attribute id. Something like, data-attribute-id="XXXXXXX". Is that possible?
Here's what I have up to this point:
I use {tag_attributes_json}, {tag_product_json} and {tag_currency} to get these values into javascript on page load, so I can use them later.
Then, I hook to change events of the drodpowns I have and then toggle their visibility based on which ones are selected. I rely on the jequery ':eq(n)' selector to achieve this, which I do not like. Is there an option for the {tag_attributes} helper which would make it add some extra information (such as attribute ID on the dropdown) on the generated HTML?
All of this works initially, but If I then 'Add to cart', the product element get's ajax-reloaded and the events are suddenly unhooked, so it doesn't work anymore. For that one, there are two options:
1. I could hook to an event that triggers once the product has been added to cart and the page is ready again. Is there such an event?
2. I could implement my own add to cart using bcInternals.shop.addToCart. I tried doing this, but I have two problems with it.
a. addToCart seems to add my selection twice, for some reason. Any ideas what I might be doing wrong?
b. the cart info in the top right corner doesn't refresh. it seems it tries to refresh, but there's some sort of access error in the script. This part is not yet fully added to the page, but there's a function that would do the adding to cart at the bottom of the bigger script block. Am I using the built in addToCart function incorrectly?
This is the page I have the partially implemented functionality added on:
Matt Laminated Business Cards
The scripts are currently embedded inside the HTML. Once I have it properly implemented, I'd like to extract it into a separate file. Search for "$productAttributesElement" to find the block with the functionality and for "productInfo" to find the part where I store the product data with the _json tags.Hi,
No worries, Didnt know if you solved or the answer wasnt helpfull
You need to trigger you script within the product details template layout, or you could add a listener to the product container and trigger the script if any changes are detected.
Regards -
This occurs on any website with active menu drop-downs. I am able to select the 1st drop-down, but must then load the page and do the next drop-down. I used to be able to make every selection at once and then reload the page to reflect all of those options.
I have taken it back to the Apple store genius bar, but they say they don't see anything wrong. Well unless you use it all day and experience the problems when they happen, you wont see anything wrong. But there are lots wrong with it. But this would be the same store as I purchased the phone. And they backed up my old Iphone 4, but were not able to get anything to load back onto my new phone. So, I lost pretty much everything. But over time, some of my contacts have started showing up, although i am still missing over 800 of them.
-
Search Page by date field not showing up results
Hi,
I am using Jdev 11g and new to adf.
My applciation needs a search page based on a date field.
I created a viewcriteria for the object which expects a date field from the user.( the bind variable is of type Date)
After this i dragged the viewcriteria as af:query (panel with table) on the jspx page.
Now when i run the application, that is when i enter the date (calendar autogenerated by query component),
it does not show up any results.
My date field in the database has a timestamp attached to it, somewhere i read that the timestamp may be causing the problem.
But i have not found any solution for this one.
This looks very basic to me, i am sure i am missing soemthing important.
Besides i even tried the approach of programmaticlly populating the Viewobject(by not using the any query component),
i can see the Viewobject being populated in the logs( the row count) but on the display page, no rows are shown.
I am sure i am doing something wrong for this one.
AppModuleImpl am = this.getAm();
ViewObject submittalVO = am.findViewObject("AcrSubmittallogView1");
System.out.println("after getting VO");
String subDate = this.getSubDate().getValue().toString();
String query = " to_char(SubmitDtTm,'mm/dd/yyyy') = '"+subDate+"'";
submittalVO.setWhereClause(query);
System.out.println("QUERY>>>> "+submittalVO.getQuery());
submittalVO.executeQuery();
System.out.println("after executing query "+submittalVO.getRowCount());
this.setRenderLogTable(true);But i actually want to use the built in query component instead of programmatically doing it.
Can someone please guide me further.
Any help will be grt.
Thanks in advance
ash
Edited by: user1175461 on Jul 15, 2010 1:18 PMStill not working for me either, here's exactly what I'm doing.
My query is as follows:
SELECT
RO.repair_line_id,
RO.repair_number,
SR.customer_po_number, segment1,
trunc(RO.creation_date) as creation_date,
I've created a Bind Variable for the creation_date as follows:
<Variable
Name="createDate"
Kind="viewcriteria"
Type="oracle.jbo.domain.Date"/>
Which is linked to a view criteria:
<ViewCriteria
Name="RepairSearchVVOCriteria"
ViewObjectName="com.services.cs.vvo.RepairSearchVVO"
Conjunction="AND">
<Properties>
<CustomProperties>
<Property
Name="displayOperators"
Value="InAdvancedMode"/>
<Property
Name="autoExecute"
Value="false"/>
<Property
Name="allowConjunctionOverride"
Value="true"/>
<Property
Name="showInList"
Value="true"/>
<Property
Name="mode"
Value="Basic"/>
</CustomProperties>
</Properties>
<ViewCriteriaRow
Name="vcrow1"
UpperColumns="1">
<ViewCriteriaItem
Name="CreationDate"
ViewAttribute="CreationDate"
Operator="="
Conjunction="AND"
Value=":createDate"
IsBindVarValue="true"
Required="Optional"/>
</ViewCriteriaRow>
</ViewCriteria>
I then dragged the criteria into the page. When running it I get the following:
AND SR.customer_id =:psCustomerId) QRSLT WHERE ( ( (CREATION_DATE = :createDate ) ) )
<ViewObjectImpl><bindParametersForCollection> [3510] Bind params for ViewObject: [com.xxx.services.cs.vvo.RepairSearchVVO]RepairSearchAM.RepairSearchVVO1
<OracleSQLBuilderImpl><bindParamValue> [3511] Binding param "psCustomerId": 34758
<OracleSQLBuilderImpl><bindParamValue> [3512] Binding param "createDate": 2010-02-18
Which never brings back any data. My date's look as follows in the database:
'18-FEB-10'
I never get any results for the date. I've also tried using the to_char to format the date as the same format, but that always gives a variety of errors. This is driving me batty =0 Any ideas on why it never pulls back data?
Thanks, Graeme. -
Search Page question - view criteria
Guys,
I am in the process of creating a search page. I need to change the search criteria on the page load. is it possible? (is this good practice to change view criteria dynamically of the search page or is it s good practice to create different search pages for each view criteria?)
Little more detail:
In entity edit page user selects the process---> based on the process i need to apply search criteria (before search page loads) --> user selects the entity and i need to show confirm message before calling stored procedure.
Thank you guys in advance...
-Rajpolo wrote:
I am in the process of creating a search page. I need to change the search criteria on the page load. is it possible? (is this good practice to change view criteria dynamically of the search page or is it s good practice to create different search pages for each view criteria?)If you want to apply criteria values, this is OK. How do you navigate to the search page? Usually you have an initialization method that runs before the page is displayed. In the initialization method you apply the criteria values and you execute the View object query. -
How to Implement the Search page for Workflow Notifications?
Hi All,
I want to implement the new Search page for Workflow Notifications. Search page containing Company, Paygroup, Source, Initiator, Supplier Name, From date & To date fields. These fields(Poplist & Calendar) are getting the values from different tables and these fields are not in WF_NOTIFICATIONS table only Initiator & dates are there. After selecting the values in all fields or one field based upon these values I want to display the all Workflow Notifications ( Those are satisfy the search criteria only not all ) in Advance Worklist Table RN in the Notifications page. Is it possible to create the Search page based upon the above scenario if Yes Let me know how to implement this search page for Workflow. Page was designed but how to get the sortlisted Notifications and how to pass these values to next page?
Thanks in advance.
Edited by: user635152 on Nov 13, 2008 10:53 AMHi Guru,
I crete the Search page having 5 poplists and select the values from dropdown list and click GO button it serch the records and displays that records in ResultsTable in same page.
My case, Search page is running fine if I select the values and click GO button page is refreshed without errors but I am unable to displays the records in ResultsTable.
What I am missing?
My Select Stmt:
SELECT * FROM
(select wn.nid notification_id
,ou.name company
,I.PAY_GROUP_LOOKUP_CODE paygroup
,'AP' source
,pf.full_name initiator
,pv.vendor_name supplier_name
,I.GL_DATE FROM_TO_DATE
from ap_invoices_all i
, po_vendors pv
, hr_operating_units ou
, per_all_people_f pf
, FND_USER FU
, (SELECT trim(substr(substr(substr(WN.subject,(instr(WN.subject,'Invoice ') + 8),100),1,100),
1,instr(substr(substr(WN.subject,(instr(WN.subject,'Invoice ') + 8),100),1,100),' for'))) inv_no
,notification_id nid
FROM WF_NOTIFICATIONS WN
WHERE WN.MESSAGE_TYPE = 'APINV'
AND WN.STATUS NOT IN ('CANCELED','CLOSED')) wn
where i.vendor_id = pv.vendor_id
and i.invoice_num = wn.inv_no
and i.WFAPPROVAL_STATUS = 'REQUIRED'
and pv.vendor_name = nvl(:vendor_name,pv.vendor_name)
and i.org_id = OU.organization_id
AND OU.name like nvl(:company_name,name)
and i.pay_group_lookup_code = nvl(:pay_group,i.pay_group_lookup_code)
and exists (select ad.invoice_id
from ap_invoice_distributions_all ad
where ad.invoice_id = i.invoice_id
and ad.accounting_date between nvl(:from_date,ad.accounting_date)
and nvl(:to_date,ad.accounting_date))
and 'AP' = nvl(:source,'AP')
and i.created_by = fu.user_id
AND fu.EMPLOYEE_ID = pf.person_id
AND pf.full_name like nvl(:initiator, pf.full_name)
UNION ALL
select po_num.nid notification_id
,ou.name company
,ps.PAY_GROUP_LOOKUP_CODE paygroup
,'PO' source
,pf.full_name initiator
,pv.vendor_name supplier_name
,P.CREATION_DATE FROM_TO_DATE
from po_headers_all p
,po_vendors pv
,po_vendor_sites_all ps
,hr_operating_units ou
,per_all_people_f pf
,(select trim(substr(wn.subject,24,instr(wn.subject,' for')-24)) po_no, notification_id nid
FROM WF_NOTIFICATIONS WN
WHERE WN.MESSAGE_TYPE = 'POAPPRV'
AND WN.STATUS NOT IN ('CANCELED','CLOSED')
and wn.subject like 'Standard Purchase Order%') po_num
where p.SEGMENT1 = po_num.po_no
and p.vendor_id = pv.vendor_id
and p.org_id in(select organization_id
from hr_operating_units
where name like nvl(:company_name,name))
and pv.vendor_name = nvl(:vendor_name,pv.vendor_name)
and p.AUTHORIZATION_STATUS = 'IN PROCESS'
and p.CANCEL_FLAG = 'N'
and 'PO' = nvl(:source,'PO')
and p.agent_id = pf.person_id
and pf.full_name like nvl(:initiator, pf.full_name)
and pv.vendor_id = ps.vendor_id
and ps.org_id = ou.organization_id
and ou.name like nvl(:company_name,name)
and ps.PAY_GROUP_LOOKUP_CODE = nvl(:pay_group,ps.PAY_GROUP_LOOKUP_CODE)
and trunc(p.creation_date) between nvl(:from_date,trunc(p.creation_date)) and nvl(:to_date,trunc(p.creation_date))
In CO PFR Code:
if (pageContext.getParameter("Go") != null)
OAQueryUtils.checkSelectiveSearchCriteria(pageContext, webBean);
String COMPANY = pageContext.getParameter("COMPANY");
String PAYGROUP = pageContext.getParameter("PAYGROUP");
String SOURCE = pageContext.getParameter("SOURCE");
String INITIATOR = pageContext.getParameter("INITIATOR");
String SUPPLIER_NAME = pageContext.getParameter("SUPPLIER_NAME");
Boolean executeQuery = BooleanUtils.getBoolean(false);
Serializable[] parameters = { COMPANY, PAYGROUP, SOURCE, INITIATOR, SUPPLIER_NAME, executeQuery};
Class[] paramTypes = { String.class, String.class, String.class, String.class, String.class, Boolean.class };
am.invokeMethod("initSearch", parameters, paramTypes);
OAAdvancedTableBean table = (OAAdvancedTableBean)webBean.findChildRecursive("ResultsTable");
table.queryData(pageContext, false);
AM invoke Method():
public void initSearch(String company,
String paygroup,
String source,
String initiator,
String supplier_name,
Boolean executeQuery)
WorklistFindVOImpl vo = getWorklistFindVO1();
if (vo == null)
MessageToken[] tokens = { new MessageToken("OBJECT_NAME", "WorklistFindVO1") };
throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", tokens);
vo.initQuery(company, paygroup, source, initiator, supplier_name, executeQuery);
VO Code:
public void initQuery(String company,
String paygroup,
String source,
String initiator,
String supplier_name,
Boolean executeQuery)
StringBuffer whereClause = new StringBuffer(500);
Vector parameters = new Vector(5);
int clauseCount = 0;
int bindCount = 0;
setWhereClauseParams(null); // Always reset
if ((company != null))
String companyname = null;
try
companyname = new String(company);
catch(Exception e) {}
whereClause.append("COMPANY= :COMPANY");
whereClause.append(++bindCount);
parameters.addElement(company);
clauseCount++;
if ((paygroup != null) && (!("".equals(paygroup))))
if (clauseCount > 0)
whereClause.append(" AND ");
whereClause.append("PAYGROUP = :PAYGROUP");
whereClause.append(++bindCount);
parameters.addElement(paygroup);
clauseCount++;
if ((source != null) && (!("".equals(source))))
if (clauseCount > 0)
whereClause.append(" AND ");
whereClause.append("SOURCE = :SOURCE");
whereClause.append(++bindCount);
parameters.addElement(source);
clauseCount++;
if ((initiator != null) && (!("".equals(initiator))))
if (clauseCount > 0)
whereClause.append(" AND ");
whereClause.append("INITIATOR = :INITIATOR");
whereClause.append(++bindCount);
parameters.addElement(initiator);
clauseCount++;
if ((supplier_name != null) && (!("".equals(supplier_name))))
if (clauseCount > 0)
whereClause.append(" AND ");
whereClause.append("SUPPLIER_NAME = :SUPPLIER_NAME");
whereClause.append(++bindCount);
parameters.addElement(supplier_name);
clauseCount++;
setWhereClause(whereClause.toString());
if (bindCount > 0)
Object[] params = new Object[bindCount];
parameters.copyInto(params);
setWhereClauseParams(params);
if ((executeQuery != null) && (executeQuery.booleanValue()))
executeQuery();
} // end initQuery()
Please let me know what I did mistake in my code?
I am unable to find it what I missing and there is no errors but no records displayed in Results Table.
Please it's urgent.
Thanks
Nag.
Edited by: user635152 on Nov 19, 2008 4:43 PM -
PLSQL Funciton in SELECT query for a region in APEX
Hello, I am developing a SQL report based on SELECT query that uses a plsql function.
However the PLSQL Function returns a numeric value and , in addition to that, it also has one out parameter.
How do I display this out paramete's value on APEX report?
Thanks,
RFrom a performance perspective, calling PL/SQL functions from SQL queries is expensive because you context switch between SQL and PL/SQL. That's ok for say 20-30 rows, but as you return more rows it gets more and more expensive. If possible write it all in SQL.
Tyler Muth
http://tylermuth.wordpress.com
"Applied Oracle Security: Developing Secure Database and Middleware Environments": http://sn.im/aos.book -
Jdeveloper OA Ext Simple Search Page Tutorial required
I need to create a very simple search page based on a database table using JDeveloper 9.03 OA Extension. Is there a step by step tutorial to do this? I find the Developer guide is too vast to navigate and has too much information for what I need to do.
Thanks,
RylanI need to create a very simple search page based on a database table using JDeveloper 9.03 OA Extension. Is there a step by step tutorial to do this? I find the Developer guide is too vast to navigate and has too much information for what I need to do.
Thanks,
Rylan -
SELECT QUERY BASED ON SECONDARY INDEX
Hi all,
CAN ANYONE TELL ME HOW TO WRITE SELECT QUERY BASED ON SECONDARY INDEX.
IN WHAT WAY DOES IT IMPROVE PERFORMANCE.
i KNOW WHEN CREATING SECONDARY INDEX I NEED TO GIVE AN INDEX NO -iT SHOULD BE ANY NUMBER RIGHT?
I HAVE TO LIST ALL PRIMARY KEYS FIRST AND THEN THE FIELD FOR WHICH I AM CREATING SECONDARY INDEX RIGHT?
LETS SAY I HAVE 2 PRIMARY KEYS AND I WANT TO CREATE SEONDARY INDEX FOR 2 FIELDS THEN
I NEED TO CREATE A SEPERTE SECONDARY INDEX FOR EACH ONE OF THOSE FIELDS OR ONE SHOULD BE ENOUGH
pLS LET ME KNOW IF IAM WRONGHI,
If you cannot use the primary index to determine the result set because, for example, none of the primary index fields occur in the WHERE or HAVINGclauses, the system searches through the entire table (full table scan). For this case, you can create secondary indexes, which can restrict the number of table entries searched to form the result set.
You create secondary indexes using the ABAP Dictionary. There you can create its columns and define it as UNIQUE. However, you should not create secondary indexes to cover all possible combinations of fields.
Only create one if you select data by fields that are not contained in another index, and the performance is very poor. Furthermore, you should only create secondary indexes for database tables from which you mainly read, since indexes have to be updated each time the database table is changed. <b>As a rule, secondary indexes should not contain more than four fields</b>, <b>and you should not have more than five indexes for a single database table</b>.
<b>What to Keep in Mind for Secondary Indexes:</b>
http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eb2d446011d189700000e8322d00/content.htm
http://www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
Regards
Sudheer -
Select List (based on LOV) query problem
Hello experts! I have a small problem here, which I can't seem to overcome.
I have a page item (select list based on LOV), which is based on a query. The query returns all potential employees of a department that are responsible for a certain duty. So far so good!
The problem is that there are two departments, which should not only see there own employees but also the name of the employee that has carried out a certain task. However, due to my query, the name of that person is not displayed - only the pk is returned.
Do you have a recommendation how I display all employees of a specific department and have additional values translated as well?
My query is as follows: select str_bearbeiter, cnt_bearbeiter from vt_tbl_bearbeiter where cnt_bearbeiter in (SELECT
CNT_REGIERUNGSBEZIRK FROM TBL_REGIERUNGSBEZIRK) union select str_bearbeiter, cnt_bearbeiter from vt_tbl_bearbeiter where int_behoerde in (SELECT
CNT_REGIERUNGSBEZIRK FROM TBL_REGIERUNGSBEZIRK where STR_REGIERUNGSBEZIRK = lower (:app_user)) whereas :app_user holds the information of the department.
Any hint is appreciated!
Many thanks,
SebOkay, I just had the right idea and it's working well! Sorry for posting!
I return the name of the employee that has edited a dataset and simply add all others of the logged on department! Really easy! Should have thought of that before posting! ;-(
The correct code is select str_bearbeiter, cnt_bearbeiter from vt_tbl_bearbeiter a, vt_tbl_punktdaten b where a.cnt_bearbeiter = b.int_bearbeiter and
inv_pt_id_sub = :P4_PTIDS
union select str_bearbeiter, cnt_bearbeiter from vt_tbl_bearbeiter where int_behoerde in (SELECT
CNT_REGIERUNGSBEZIRK FROM TBL_REGIERUNGSBEZIRK where STR_REGIERUNGSBEZIRK = lower (:app_user))Bye,
Seb -
Custom Search Portlet: How to specify a page in the auto query?
I want to specify a page in an auto query (Automatically display search results).
I'm able to specify a pagegroup (Tab What to Search), but unable to select a specific page and to include/exclude subpages.
This option is available on the SearchForm Tab. We are running 9.0.4.A similar question was asked in this discussion:
Custom Search Portlet
A Portal Search Team member replied that this feature might be included in 9.0.4.
We are testing 9.0.4 and it's not available. When is feature this scheduled? -
How can i update rows in a table based on a match from a select query
Hello
How can i update rows in a table based on a match from a select query fron two other tables with a update using sqlplus ?
Thanks Glenn
table1
attribute1 varchar2 (10)
attribute2 varchar2 (10)
processed varchar2 (10)
table2
attribute1 varchar2 (10)
table3
attribute2 varchar2 (10)
An example:
set table1.processed = "Y"
where (table1.attribute1 = table2.attribute1)
and (table1.attribute2 = table3.attribute2)Hi,
Etbin wrote:
Hi, Frank
taking nulls into account, what if some attributes are null ;) then the query should look like
NOT TESTED !
update table1 t1
set processed = 'Y'
where exists(select null
from table2
where lnnvl(attribute1 != t1.attribute1)
and exists(select null
from table3
where lnnvl(attribute2 != t1.attribute2)
and processed != 'Y'Regards
EtbinYes, you could do that. OP specifically requested something else:
wgdoig wrote:
set table1.processed = "Y"
where (table1.attribute1 = table2.attribute1)
and (table1.attribute2 = table3.attribute2)This WHERE clause won't be TRUE if any of the 4 attribute columns are NULL. It's debatable about what should be done when those columns are NULL.
But there is no argument about what needs to be done when processed is NULL.
OP didn't specifically say that the UPDATEshould or shouldn't be done on rows where processed was already 'Y'. You (quite rightly) introduced a condition that would prevent redo from being generated and triggers from firing unnecessarily; I'm just saying that we have to be careful that the same condition doesn't keep the row from being UPDATEd when it is necessary. -
How to control selected row in result table on a search page?
Using JDeveloper 10.1.3.2.0
I have attempted to create an ADF page that contains a search and result table in the same page.
I have questions related to the result table. Let's say the result table shows 10 rows per page.
If I page forward there is no default selected row "clicked" on the page. Only if you return to
the very first 10 rows do you see a default selection in row number one of the results.
How would I go about making the first row of each page the default selection?You'll need to code this into the RangeChangeEvent event of the table.
http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/apidocs/oracle/adf/view/faces/component/core/data/CoreTable.html
That said - I'm not sure this will be very helpful for the end user - after all in any case they'll need to first select a row before doing an operation on it. -
How to add Column field in the custom Query Link search page as a header
Hi,
I have created a Query page link in web layout editor. Now, I want to customise the view of the result. I see an option to change the "Text1" and "text2", but how do I add other fields as a colum in the search result ?
The only column I see by default Id, Title, release date and author. I want to see some of the custom metadata in the search result. I don't wan't to apply user specific custom search page.
Overall, I want a common search view across all the user such that each user doesn't have to create a custom search view.
Please help.
Thankshi
By adding context node, you will not be able to fetch value. To fetch value in BTSubject, you need to have following nodes in your context node.
Node Relation Higher level node
BTAdminH
BTBOSSet BTHeaderBOSSet BTAdminH
BTSubjectSet BTSubjectSet_A BTBOSSet
BTSubject BTSubjectAll BTSubjectSet_A
Right now you dont have BTBOSSet and BTSubjectSet in your view. That is why component is unable to pull data in BTSubject.
My suggestion would be to create cuco with above nodes
Bind BTAdminH with BTAdminH of Component controller
and bind BTSubject of details view with BTSubject of your Cuco.
If you want code code gp catalog as it comes in complaint then there is seperate procedure for that.
Best regards
Pankaj Kumar
Maybe you are looking for
-
Nodes statement in payroll in SAP ABAP hr Report
hi, i am working in sap abap hr report for payroll.i am using nodes statement in that report.it is showing error that ""PERNR" is not a node of the logical database __S".how can i solve this error.in this report. NODES pernr . INFOTYPES:
-
I did the update to 3.6.11 - After it started Firefox it would go to the requested site in the addressbar, but the page would be blank. I went to check for updates and it told me there was a problem in updating. It gave me this error message: Update
-
Im using the current IOS6 for my iPhone 4 and all of a sudden it's asking me about activating my phone and the activation server is busy. Please help guys.
-
WAR Doesn't explode in Weblogic 8
Hi, I am using Weblogic 8 and I have a WAR file to deploy. But I have another jar which needs to be manually copied into the WEB-INF/lib directory after doing some configuration changes for my application. This is my first time in Weblogic 8. And i f
-
Hyperion Financial Reports:Getting member selection from prompt
Hello everybody, I've a doubt on getting the member selection in GRID 2 from the prompt value set in GRID 1. Can anyone help me out??? Regards, Revathi