HOW I CAN CHANGE RECORD NEVIGATION PROGRAMMATICALY?
i have a detail block it's property is set change record but i want it's go in next record when i press specified key.
Which key?
Maybe there's a trigger which you can put "next_record" in.
By the way, lose the capitals.
Similar Messages
-
How I can Change records color in multi record block
Hi,
I am using Form 6i, No. of records displayed 15 in a block EMP, now at run time I want to see that employees who belong to dept No. 10 , their records color is RED.
And employees who belong to dept No. 20 , their records color is BLUE
And employees who belong to dept No. 30 , their records color is GREEN
Pleased send me the solution on urgently basis. If possible send FMB file of this problem solution to me. E_Mail: [email protected]
Best regards,
ShahzadHi,
this shouldn't be a problem with use of VISUAL_ATTRIBUTES, post_query trigger and SET_ITEM_INSTANCE_PROPERTY built_in:
steps:
1) create VISUAL_ATTRIBUTES
2) in post_query of block use Set_Item_Instance_Property built in
SET_ITEM_INSTANCE_PROPERTY(item_id ITEM,
record_number NUMBER,
property NUMBER,
value VARCHAR2);
example from Forms documentation for use of set_item_instance_property is
Set_Item_Instance_Property( cur_itm,
CURRENT_RECORD,
VISUAL_ATTRIBUTE,
'My_Favorite_Named_Attribute'); -
How we can restrict record in CTL file on the basis of other table ?
Hello all,
How we can restrict record in CTL file on the basis of other table ?
Eg.
I have following control file to load the records in the table through the sql loader.
LOAD DATA
INTO TABLE THIST APPEND
FIELDS TERMINATED BY "|" TRAILING NULLCOLS
LNUM POSITION(1) Char "substr(:LOAN_NUM, 4, 13)",
TSRNUM Char "rtrim:TRAN_SR_NUM)" ,
TPROCDT Char "to_char(to_date rtrim:TRAN_PROC_DT), 'MMDDYYYY'), 'YYYYMMDD')"
I have another table c all TFILE in which I have LNUM. I want to import only those records from input text file using the control file and sql loader in which LNUM is exist in the TFILE.
So how i can restrict it in the Control File.
Thanks
Kamlesh Gujarathi
[email protected]Hello Satyaki De.
Thank you very much for your suggestion but my Private information is totally apart from this question & I already I have changed each and every information from the question.
Thanks
Kamlesh Gujarathi
[email protected] -
How I can change this query, I got it from someone on the list, and it works just fine, Thank you! but I can not hardcode the data, the data is actually in a repiting table
SARAPPD_PIDM, SARAPPD_TERM_CODE_ENTRY, SARAPPD_APPL_NO 1 SARAPPD_SEQ_NO
We can have a person with one record another one with two or three, we just don't know, each record have a sequence number SARAPPD_SEQ_NO
this SARAPPD_PIDM = 2232040 with will a paramater pass to the function (SARAPPD_PIDM = p_pidm)
excuse my ignorance, but I just don't have experience with this kind of queries..
with t as ( -- sample data
select 2232040 SARAPPD_PIDM, 200990 SARAPPD_TERM_CODE_ENTRY, 1 SARAPPD_APPL_NO, 1 SARAPPD_SEQ_NO, to_date('12/03/2008','mm/dd/yyyy') sARAPPD_APDC_DATE, 'S*' SARAPPD_APDC_CODE from dual union all
select 2232040 ,200990 ,1 ,2 ,to_date('12/08/2008','mm/dd/yyyy'), 'D1' from dual union all
select 2232040 ,200990 ,1 ,3 ,to_date('03/18/2009','mm/dd/yyyy'), 'S*' from dual union all
select 2232040 ,200990 ,1 ,4 ,to_date('03/29/2009','mm/dd/yyyy') ,'WL' from dual union all
select 2232040 ,200990 ,1 ,4 ,to_date('03/27/2009','mm/dd/yyyy') ,'WL' from dual
) -- end sample data
SELECT * FROM (
SELECT
A.SARAPPD_PIDM,
A.SARAPPD_APDC_CODE,
A.sarappd_apdc_date,
ROW_NUMBER() OVER (PARTITION BY SARAPPD_PIDM, SARAPPD_TERM_CODE_ENTRY ORDER BY SARAPPD_APDC_DATE
DESC) row_num
,lead (SARAPPD_APDC_DATE,1) over (ORDER BY SARAPPD_APDC_DATE) AS next_date
FROM t A
where
SARAPPD_PIDM = 2232040
AND sarappd_apdc_code IN ('SA', 'FA', 'S-', 'F-', 'RF', 'F*','AD', 'W-', 'R2', 'S*', 'HF', 'WL','HD', 'R1', 'HS', 'D2', 'W+')
where next_date >= to_date('3/27/2009','mm/dd/yyyy');Edited by: user648177 on May 1, 2009 8:52 AMThank you
I am getting this result
SARAPPD_PIDM SARAPPD_APDC_CODE SARAPPD_APDC_DATE SARADAP_ADMT_CODE ROW_NUM NEXT_DATE
2232040 S* 12/03/2008 16:30:45 D1 3 03/18/2009 08:58:06
2232040 S* 03/18/2009 08:58:06 D1 2 03/21/2009 13:53:23I only want to retrieve the one with the max date ( 03/18/2009 08:58:06)
I try to add the
and SARAPPD_SEQ_NO = (select max(b.SARAPPD_SEQ_NO)
from SARAPPD b
where SARAPPD_pidm = b.SARAPPD_pidm)
{code}
{code}
but it did not work
{code}
SELECT *
FROM (SELECT A.SARAPPD_PIDM,
A.SARAPPD_APDC_CODE,
A.sarappd_apdc_date,
saradap_admt_code,
ROW_NUMBER() OVER(PARTITION BY SARAPPD_PIDM, SARAPPD_TERM_CODE_ENTRY ORDER BY SARAPPD_APDC_DATE DESC) row_num,
lead(SARAPPD_APDC_DATE, 1) over(ORDER BY SARAPPD_APDC_DATE) AS next_date
FROM saturn.sarappd A, SARADAP
where SARAPPD_PIDM = 2232040
and SARADAP_PIDM = SARAPPD_PIDM
AND saradap_term_code_entry = SARAPPD_TERM_CODE_ENTRY
AND SARADAP_APPL_NO = A.SARAPPD_APPL_NO
-- and SARAPPD_SEQ_NO = (select max(b.SARAPPD_SEQ_NO)
-- from SARAPPD b
-- where SARAPPD_pidm = b.SARAPPD_pidm)
AND sarappd_apdc_code IN
('SA', 'FA', 'S-', 'F-', 'RF', 'F*', 'AD', 'W-', 'R2', 'S*', 'HF', 'WL', 'HD', 'R1', 'HS', 'D2', 'W+'))
Where next_date <= saturn_midd.utlq.f_get_adm_freeze_date(saradap_admt_code)
{code}
i now that if I add and row_num=2 it will work, but this is just an example I don't know the row_num of all the records
Edited by: user648177 on May 4, 2009 5:57 AM -
I can't install software Update for iOS 7.1.1. for iPad because I was forgot my password. How I can change my password?
These are user to user forums. Apple does not participate here and does not respond to posts. For the record, since the iPad 2 supports iOS 8 any attempt to update the iPad 2 will result in an update to 8.1. Apple only supports updating to the latest version of the operating system that the device supports.
-
I downloaded an upgrade to my adobe reader today, and ever since my search engine has switched to yahoo and wont change back to google. I have a macbook pro, help please? Does anyone know how I can change this back? I have tried through my settings but it doesnt work
Hi Timia,
If you are using Safari as a web browser :-
Open Safari, go to Safari menu > Preferences > General, and put Google as the homepage. Then, choose Google as your default search engine.
If you are using Google Chrome as the web browser :-
Open Google Chrome.
In the top right corner of the page, click the Chrome menu Chrome menu > Settings.
In the "Search" section, select Google from the drop-down menu.
Let me know if you still experience any issue.
Regards,
Aadesh -
can someone plz confirm me that how i can change or update the security questions related to my apple id? as i have been never put them since i create my apple id but now due to some security reasons its asking me again and again the answers. i am unable to go through the process. thanks.
Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities
-
How I can change this query, so I can display the name and scores in one r
How I can change this query, so I can add the ID from the table SPRIDEN
as of now is giving me what I want:
1,543 A05 24 A01 24 BAC 24 BAE 24 A02 20 BAM 20in one line but I would like to add the id and name that are stored in the table SPRIDEN
SELECT sortest_pidm,
max(decode(rn,1,sortest_tesc_code)) tesc_code1,
max(decode(rn,1,score)) score1,
max(decode(rn,2,sortest_tesc_code)) tesc_code2,
max(decode(rn,2,score)) score2,
max(decode(rn,3,sortest_tesc_code)) tesc_code3,
max(decode(rn,3,score)) score3,
max(decode(rn,4,sortest_tesc_code)) tesc_code4,
max(decode(rn,4,score)) score4,
max(decode(rn,5,sortest_tesc_code)) tesc_code5,
max(decode(rn,5,score)) score5,
max(decode(rn,6,sortest_tesc_code)) tesc_code6,
max(decode(rn,6,score)) score6
FROM (select sortest_pidm,
sortest_tesc_code,
score,
row_number() over (partition by sortest_pidm order by score desc) rn
FROM (select sortest_pidm,
sortest_tesc_code,
max(sortest_test_score) score
from sortest,SPRIDEN
where
SPRIDEN_pidm =SORTEST_PIDM
AND sortest_tesc_code in ('A01','BAE','A02','BAM','A05','BAC')
and sortest_pidm is not null
GROUP BY sortest_pidm, sortest_tesc_code))
GROUP BY sortest_pidm;
Hi,
That depends on whether spriden_pidm is unique, and on what you want for results.
Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements, relevamnt columns only) for all tables, and the results you want from that data.
If you can illustrate your problem using commonly available tables (such as those in the scott or hr schemas) then you don't have to post any sample data; just post the results you want.
Either way, explain how you get those results from that data.
Always say which version of Oracle you're using.
It looks like you're doing something similiar to the following.
Using the emp and dept tables in the scott schema, produce one row of output per department showing the highest salary in each job, for a given set of jobs:
DEPTNO DNAME LOC JOB_1 SAL_1 JOB_2 SAL_2 JOB_3 SAL_3
20 RESEARCH DALLAS ANALYST 3000 MANAGER 2975 CLERK 1100
10 ACCOUNTING NEW YORK MANAGER 2450 CLERK 1300
30 SALES CHICAGO MANAGER 2850 CLERK 950On each row, the jobs are listed in order by the highest salary.
This seems to be analagous to what you're doing. The roles played by sortest_pidm, sortest_tesc_code and sortest_test_score in your sortest table are played by deptno, job and sal in the emp table. The roles played by spriden_pidm, id and name in your spriden table are played by deptno, dname and loc in the dept table.
It sounds like you already have something like the query below, that produces the correct output, except that it does not include the dname and loc columns from the dept table.
SELECT deptno
, MAX (DECODE (rn, 1, job)) AS job_1
, MAX (DECODE (rn, 1, max_sal)) AS sal_1
, MAX (DECODE (rn, 2, job)) AS job_2
, MAX (DECODE (rn, 2, max_sal)) AS sal_2
, MAX (DECODE (rn, 3, job)) AS job_3
, MAX (DECODE (rn, 3, max_sal)) AS sal_3
FROM (
SELECT deptno
, job
, max_sal
, ROW_NUMBER () OVER ( PARTITION BY deptno
ORDER BY max_sal DESC
) AS rn
FROM (
SELECT e.deptno
, e.job
, MAX (e.sal) AS max_sal
FROM scott.emp e
, scott.dept d
WHERE e.deptno = d.deptno
AND e.job IN ('ANALYST', 'CLERK', 'MANAGER')
GROUP BY e.deptno
, e.job
GROUP BY deptno
;Since dept.deptno is unique, there will only be one dname and one loc for each deptno, so we can change the query by replacing "deptno" with "deptno, dname, loc" throughout the query (except in the join condition, of course):
SELECT deptno, dname, loc -- Changed
, MAX (DECODE (rn, 1, job)) AS job_1
, MAX (DECODE (rn, 1, max_sal)) AS sal_1
, MAX (DECODE (rn, 2, job)) AS job_2
, MAX (DECODE (rn, 2, max_sal)) AS sal_2
, MAX (DECODE (rn, 3, job)) AS job_3
, MAX (DECODE (rn, 3, max_sal)) AS sal_3
FROM (
SELECT deptno, dname, loc -- Changed
, job
, max_sal
, ROW_NUMBER () OVER ( PARTITION BY deptno -- , dname, loc -- Changed
ORDER BY max_sal DESC
) AS rn
FROM (
SELECT e.deptno, d.dname, d.loc -- Changed
, e.job
, MAX (e.sal) AS max_sal
FROM scott.emp e
, scott.dept d
WHERE e.deptno = d.deptno
AND e.job IN ('ANALYST', 'CLERK', 'MANAGER')
GROUP BY e.deptno, d.dname, d.loc -- Changed
, e.job
GROUP BY deptno, dname, loc -- Changed
;Actually, you can keep using just deptno in the analytic PARTITION BY clause. It might be a little more efficient to just use deptno, like I did above, but it won't change the results if you use all 3, if there is only 1 danme and 1 loc per deptno.
By the way, you don't need so many sub-queries. You're using the inner sub-query to compute the MAX, and the outer sub-query to compute rn. Analytic functions are computed after aggregate fucntions, so you can do both in the same sub-query like this:
SELECT deptno, dname, loc
, MAX (DECODE (rn, 1, job)) AS job_1
, MAX (DECODE (rn, 1, max_sal)) AS sal_1
, MAX (DECODE (rn, 2, job)) AS job_2
, MAX (DECODE (rn, 2, max_sal)) AS sal_2
, MAX (DECODE (rn, 3, job)) AS job_3
, MAX (DECODE (rn, 3, max_sal)) AS sal_3
FROM (
SELECT e.deptno, d.dname, d.loc
, e.job
, MAX (e.sal) AS max_sal
, ROW_NUMBER () OVER ( PARTITION BY e.deptno
ORDER BY MAX (sal) DESC
) AS rn
FROM scott.emp e
, scott.dept d
WHERE e.deptno = d.deptno
AND e.job IN ('ANALYST', 'CLERK', 'MANAGER')
GROUP BY e.deptno, d.dname, d.loc
, e.job
GROUP BY deptno, dname, loc
;This will work in Oracle 8.1 and up. In Oracle 11, however, it's better to use the SELECT ... PIVOT feature. -
How I can change my staff from one IPad To a New one
Please I need To know how I can change my staff To a New IPad , I have 3 generation i pad and I just bought an IPad air
Back them up to iCloud or a computer running the lastest version of iTunes. Give them unique names, and restore the proper back-up to each new device.
-
How I can change ma pay method in iTunes if I don't want to use my credit card?
How I can change my pay method y iTunes if I don't want to use my credit card?
The iTunes Store sometimes requires it even if the card wouldn't be charged; if it actually gets charged and you're not trying to gift the songs, ask the iTunes Store staff for assistance.
(113277) -
How i can change system ECC to ERP in Solman
Dear SAP Colleague,
I have configured the service desk in Solman. We have ECC 6 system in the landscape.
but i have add these system as SAP ECC system in Solman, and now when i am trying to upgrade these system for EHP4 its showing me the erro that system has to be defined as ERP system
Please do let me know how can change these systems from ECC to ERP (node) in Solman. As I can checked in the system i am ble to delete and add these system again because these are used in some projects as well as in logical component.
Is there any ways to change the system from ECC to ERP ?? and what will be the impact when i change it.
Regards,
BhaveshHi,
If you are upgrading your ECC system to EHP4. Then in order to download packages from MOPZ you have to register your system as ERP 6.0 in SMSY transaction in solution manager.
Check this link https://websmp204.sap-ag.de/~sapidb/011000358700000293582009E.PDF and go to page 20. There you will find step how you can change it and It will not have any impact.
Thanks
Sunny -
I recently switched over from Apple to Sony and I would like to know how I can change my settings so that all my iCloud emails are forwarded to my Gmail account?
Log in on iCloud.com and go to Mail. In Mail, at the bottom left you should see a gear icon. Click on it, go to Settings (or Preferences, I'm doing this from memory), and in there you'll find an option to forward your iCloud email to another service.
-
How We Can Change Page Size During Report Run Time
Hello !
How We Can Change Page Size During Report Run Time .
How can we stop to change the column name when we amend a sql in report data model.
Thanks !
nullhello sohail
1. question - i'm afraid this cannot be done ... bit in report 6 and newer you have posibility to divide your report in 3 parts (former header, body, trailor) and each part can have diferent page siz, orientation , ...
2. question - best is give each column in your statements in one report diferent alias. when you have to chnge something, alias will remain same ...
try this: select 1 as fist_column, 1 as second_column from dual
hope this helsp -
How i can change the arabic date and time mode to english date and time mode
how i can change the arabic date and time mode to english number mode
Settings app > General > International > Region format.
-
How I can change the ID user & Pass
on your iphone settings - app store - apple id - logout
on the web look at the link
http://support.apple.com/kb/he37
Maybe you are looking for
-
Indesign CS4 button flashes after exported to PDF and viewed in Acrobat Reader/Professional X
Hey everyone, Greetings! I've encountered this odd problem when preparing my portfolio. I've created some 40 buttons in InDesign CS4 (all according to the official tutorial) to Show/Hide Fields (specificly images), and navigate through the pages. The
-
Can't import photos into iPhoto
I have a Sony DSC W5 digital camera. For five years I have been able to import photos from the Sony camera into iPhoto. In the last two days I can no longer import photos into iPhoto. I get an "unrecognizable file" prompt. I can drag the photo files
-
Finding EOF using TEXT_IO package
Hi everybody, I use TEXT_IO package and read all lines of a text file.... How can the logic of the routine i write come out of the loop when the file ends..(EOF=TRUE). Thanks , Simon
-
Each night I delete everything in my inbox. But I still have the email icon indicating that I have 9 emails. How do I get the icon to accurately indicate the correct number (or none at all) of emails?
-
Bonjour je n'arrive pas à ouvrir mozila firefox . il ne veut pas s'executer
Bonjour , J'ai installé correctement Mozila firefox sur mon ordinateur . ( Windows 7 ) . Mais quand je clique dessus pour executer le programme il ne s'ouvre pas . que faire ? Cordialement