How to find the last record of the extracted records
Dear members,I have an OFA Page in which I view record master detail. For each master record can one or more detail records.
In the page I got the button NEXT. If the user clicks the next button, I'm populating the next record of the master and its corresponding detail records.
To achieve this, I wrote the code below in AM:_
Public Sub findNextRec()
*{*
String headerID = null;
Rank rank is getMaster_VO1 () .next ();.
if(Row!=null)
*{*
headerID = row.getAttribute ("HeaderId") m:System.NET.SocketAddress.ToString ();
getDetail_VO1 (.setMaxFetchSize(-1));
getDetail_VO1 () .setWhereClause (null);
getDetail_VO1 () .addWhereClause ("header_id in (: 1)" ");
getDetail_VO1 () .setWhereClauseParams (null);
getDetail_VO1 (.setWhereClauseParam(0,headerID));
getDetail_VO1 () .executeQuery ();
*}*
*}*
My CO code in processFormRequest method is as follows:_
If (PageContext.GetParameter ("Next")! = null)
*{*
am.invokeMethod ("findNextRec");
*}*
Here my requirement is that if it's a last drive, I want to show the user a message saying it's last recording. To achieve this please let me know what the code should be written.
Thanks in advance.
Best regards
Arun D. Reddy
Arun,
If my interpretation is correct, then you can achieve the same thing by making some minor changes to your existing code.
public void findNextRec()
{
String headerID=null;
Row row = getMaster_VO1().next();
if(row!=null) //your code will return null when if there is no record
{
headerID=row.getAttribute("HeaderId").toString();
getDetail_VO1().setMaxFetchSize(-1);
getDetail_VO1().setWhereClause(null);
getDetail_VO1().addWhereClause("header_id in (:1)");
getDetail_VO1().setWhereClauseParams(null);
getDetail_VO1().setWhereClauseParam(0,headerID);
getDetail_VO1().executeQuery();
}
else{
//write down the message that there exist no more rows (custom message)
}
}
Kind regards
GYAN
Tags: Oracle Applications
Similar Questions
-
How to find inserted last record in the table.
Version: Oracle 10g
I have a table called 'Manufacturing' and 3 columns as mfno, itemname, quantity.
How to find inserted last record in the table 'manufacturing '.
As I got to know that the Rowid is not a result perfect result. Please provide your inputs.user13416294 wrote:
Version: Oracle 10gThis is not a version. It's a product name. A version is 10.1.0.2 or 10.2.0.4, etc.
I have a table called 'Manufacturing' and 3 columns as mfno, itemname, quantity.
How to find inserted last record in the table 'manufacturing '.Not possible as your data model do not answer for him. As simple as that.
If there is a need to determine an order or associate some time to an entity, then that should be part of the data model - and a relationship, or one or several attributes are necessary to represent this information. Your data model in this case is therefore unable to meet your requirements.
If the requirements are valid, set the data model. In other words - your question has nothing to do with Oracle and nothing to do with the other pseudo columns in Oracle, the rowscn or the rowid. It is a question of pure data modeling. Nothing more.
-
How to find the last update date, time and user of the file field peoplecode
How to find the last updated date time fields of peoplecode records?
Thank you.We can check the update date-time using the following query
SELECT LASTUPDDTTM IN THE PSPCMPROG WHERE OBJECTVALUE1 LIKE "RECNAME" AND OBJECTVALUE2 AS "FIELDNAME".
-
How to find the value dated the same day in the last year
I want to know how to find the value dated the same day in the last year.
I use now, there is the function with the year and the result is
Year Rev There are Rev 2011 3000 2012 4000 3000 2013 2000 4000 2014 5000 2000 It works but it's not that I want. I'm trying to add the column date (Ex.20140101) in my report but it'snot work.
I want to show:
Date Rev There are Rev 20110112 200 20120112 100 200 20130112 300 100 20140112 500 300 If use (< degree >, < time_dim >. < date >, 365), it works but does not correct 100%
Please help me...
Thank you very much
Check this link cool - bi.com
-
What is the last level of patch bundle for x 3-2 exadata machine? How to find the doc?
We have a x 3-2 exadata machine. I have a question: what is the last level of patch bundle for x 3-2 exadata machine? How to find the doc?
Thanks in advance.
Check note id 888828.1
It has all the information you need.
-
How to find the last date of execution of the objects in database
Hi all
We're going for an upgrade of the database 11g and for the same thing, we want to know the last date of the following-
Packages, Tables, views
Conc. programs / value Sets / look up / profile options
Is there a way we can find the same thing.
The answers would be really useful.
Kind regards
ShrutiSo can you provide clues on how to find the last opportunity registration
I don't think you can find such a script with having activated audit.
Thank you
Hussein -
How to find the last pasted paragraphs FMP?
I'm sticking FMP several objects at once in a file (a file of changes to the sections containing the changebars) in the main text flow. I want a separator line to go at the end of each pasted section, so I try to insert one after the paste operation. But instead of a line between each section, all lines are added at the end of the file, after all the sections. So if there are 3 glued sections at the end of the file are three lines. My code is below, do you know how I could fix this?
Thank you, Mark
function copyPasteChanges (doc, chgRange) {}
Select the section with changebar and copy it.
doc. TextSelection = chgRange;
doc. Copy();
Prepare for the changes doc and paste there the modified section.
var firstChgPgf = changesDoc.MainFlowInDoc.FirstTextFrameInFlow.LastPgf;
var changesTloc = new TextLoc (firstChgPgf, Constants.FV_OBJ_END_OFFSET);
var changesTRange = new TextRange (changesTloc, changesTloc);
changesDoc.TextSelection = changesTRange;
changesDoc.Paste ();
To go at the end of the file again (I think)
var lastPgf = changesDoc.MainFlowInDoc.FirstTextFrameInFlow.LastPgf;
var dividerPgf = changesDoc.NewSeriesPgf (lastPgf);
var TLoc = new TextLoc (dividerPgf, 0);
changesDoc.AddText (TLoc, '_');
}
Hi Mark,
The problem is that the dough does not occur when you think. The dividing line is added at the end of the file, but are not your actions of dough. Actually, I think that maybe a little random where pasta is produced, because this line:
var changesTloc = new TextLoc (firstChgPgf, Constants.FV_OBJ_END_OFFSET);
.. .is does not create a valid text location. You can check this by abandoning the service after:
changesDoc.TextSelection = changesTRange;
.. and look at where's the insertion point. It will probably be everywhere where you left it last, because the call is not valid. I can't tell you exactly why, except that it has something to do with the fact that you are using the last paragraph in the stream. There is something weird to try to define a range of full-paragraph text with the last paragraph. I'm sure it's related to how the last TFP in a stream does not show a mark of FMP, but beyond that, I don't know how to do what you're trying to do with the last paragraph.
Having no knowledge of how do it right, any time I need to do this, I create a paragraph "dummy" at the end of the flow to fill that space strange 'last FMP", then do the work around it. In the end, I just want to remove fake TFP. I don't know if it's a good idea or not, but it's the only way I ever get it to work and it sorts the mirror how you could do this manually in the GUI.
With this, I modified your script as follows, and it seems to work better. Note that I also modified the logic of how to find the last paragraph of the flow by writing a separate function. Your call to the 'FirstTextFrameInFlow' is OK, unless your doc begins to span several pages and/or begins with several empty pages. The function I wrote ensures that you really the last TFP in the stream.
I hope this helps.
Russ
function copyPasteChanges (doc, chgRange) {}
Select the section with changebar and copy it.
doc. TextSelection = chgRange;
doc. Copy();
Prepare for the changes doc and paste there the modified section.
var lastPgf = getLastPgf (changesDoc);
var dummyPgf = changesDoc.NewSeriesPgf (lastPgf);
var changesTloc = new TextLoc (dummyPgf, 0);
var changesTRange = new TextRange (changesTloc, changesTloc);
changesDoc.TextSelection = changesTRange;
changesDoc.Paste ();
To go at the end of the file again (I think)
Don't forget that last TFP is now fake TFP
lastPgf = getLastPgf (changesDoc);
var dividerPgf = changesDoc.NewSeriesPgf (lastPgf.PrevPgfInFlow);
var TLoc = new TextLoc (dividerPgf, 0);
changesDoc.AddText (TLoc, '_');
dummyPgf.Delete ();
}
function getLastPgf (doc)
{
textFrame var is doc. MainFlowInDoc.LastTextFrameInFlow;
var lastPgf = textFrame.LastPgf;
While (! lastPgf.ObjectValid () & textFrame.ObjectValid ())
{
textFrame = textFrame.PrevTextFrameInFlow;
lastPgf = textFrame.LastPgf;
}
Return lastPgf;
}
-
Mr President, how to find the last DML operations
Hello
Please tell me how to find the last DML operations at least a minimum of 30 queries.
Thanks in advance,Select sql_id, sql_text, last_load_Time from V$ SQLAREA
or
Select * from v$ sqltext
Must be one of them. But don't know what exactly you are looking at.
I usually use v$ sqlarea to see recent queries.
Maybe you can limit the rows using rownum, order of last_load_time.
I understand, if the same query is used again then only recent transaction is stored.
-
How to find the most recent record?
How to find the most recent record?
Hello
It is part of our Bill the elements table, retrieved by the following query:
SELECT movimento, dt_movimento, cd_material,
cd_tp_operacao, nf, series,
sole, pr_unitario
Of itemfat
WHERE cd_material IN ('722136', '759177', ' 810725', 818848')
AND cd_tp_operacao ("' 1102 c ' ', ' 2102 C")
ORDER BY cd_material,
dt_movimento
MOVIMENTO DT_MOVIMENTO CD_MATERIAL CD_TP_OPERACAO NF SERIES AS PR_UNITARIO
2008-03-11 2137625, 722136 2102 1084738 3 120 2 915
2588890 08/05/2008 722136-2102 1090987 3 120 2,5615
755522 09/10/2007 759177-2102 101449 1 200 0.6
701055 03/10/2007 810725-2102 1013865 1 36 10.9
1588804 20/12/2007 810725 2102 1014182 1 96 10.9
1305653 03/12/2007 818848-2102 108555 1 240 6.5
3102134 07/18/2008 818848 2102 109784 1 360 6.5
Seems that I whant to retrieve only the most recent records for each item, as:
MOVIMENTO DT_MOVIMENTO CD_MATERIAL CD_TP_OPERACAO NF SERIES AS PR_UNITARIO
2588890 08/05/2008 722136-2102 1090987 3 120 2,5615
755522 09/10/2007 759177-2102 101449 1 200 0.6
1588804 20/12/2007 810725 2102 1014182 1 96 10.9
3102134 07/18/2008 818848 2102 109784 1 360 6.5
Can someone help me with a sentece SQL to do?
Thanks in advance.You can certainly do it:
SELECT movimento, dt_movimento, cd_material, cd_tp_operacao, nf, serie, quantidade, pr_unitario FROM itemfat i WHERE cd_material IN ('722136', '759177', '810725', '818848') AND cd_tp_operacao IN ('1102C', '2102C') AND dt_movimento = (SELECT MAX (dt_movimento) FROM itemfat d WHERE d.cd_material = i.cd_material AND d.cd_material IN ('722136', '759177', '810725', '818848') AND d.cd_tp_operacao IN ('1102C', '2102C')) ORDER BY cd_material, dt_movimento
: p
-
How to find the path of a file
Hello
I have Windows 7 Starter.
The search utility can be used to search for files by using the ' * ' wildcard, but unfortunately it does not show the path for no results.
I would like to know how to find the path of a file of my choice.
For example, I record a radio on the internet, which is then saved as "MP3". Now, I want to edit such a file, but I need to know where the file is actually stored. Simply access within a 'library' does not show me where the file is actually located.
How to discover all paths where a particular file format?
I hope to receive a response to this request.
Kind regards
Rayt333
An option for the search utility see the paths for all of its results, would be useful.
Hi Ray
Overall view for the search folder for Detailsof Windows Explorer , by using the View Menu on the right side of the toolbar.
Click on the last name column heading and select the folder item.
If you do not see the folder item, click other, scroll and select the folder item. This will add the folder column.
Use the left mouse button to drag the folder column to the left, next to the column name .
Now, when you perform a search, the folder column will show the path of each file found.
Concerning
-
How to find the yahoo flickr Photo password used to download photos from the Photo app?
I have 151 000 pictures on Flickr that were loaded from Iphoto, then more recently the Apple Photo app on my imac.
I can't open a session using a browser because the browser (Chrome) has lost the password of his records.
How to find the password that the Photo is using app?
You can not extract the code to access from iPhoto or Photo. I could go to the Web of Flickr site and see what password recovery options they offer for your account.
-
How to find the owner of the Windows Server 2003 product key?
I found the Windows 2003 product key on my server, I don't know since I'm new to the company the product key is authentic and I have no record. How to find the owner of the product key?
You find the original product cost and then you are the owner (the company is).
If not - you have not. There is no need to register, activate. When it is activated...
-
How to find the size of the virtual server?
Hello
We intend to pass our applications 4 virtual servers has 2 physical servers. In this process, we need to identify the size of the current virtual servers to use as a starting point to configure or add the size in physical server. can anyone provide information on whats stats to be noticed and how to find the size of the current virtual servers?
Thank you
Hi Sekhar, there.
in general, it is a fairly complex task if you want to size the new platform correctly, i.e. not to oversize it and have very low use below, i.e. spend too much on equipment.
In fact, it's the first thing to consider the level of use of the new platform. Most likely your organization (HW and infrastructure) has targets to a minimum. optimal and maximum usage levels.
In the case where you do not have this as a starting point, and then you continue with load average and the current peak (CPU, RAM, NW). To these basic lines, you can use the statistics of WLS Admin Console, where the use of CPU and memory statistics are presented since the server was last started. For more detailed statistics, you can use WLDF to capture measures key at regular intervals, and then base your analysis of these data.
Finally and above all, the size of FS, but I've seen some comments above related to the size of the FS.
HTH,
A.
-
How to find the host ESX 4.1 SCSI tape drive card information...
Dear team,
last night we have installed card scsi tape drive on one of the host to ESX 4.1, just want to know how to find the details of scsi card in ESX 4.1 host, is possible to find via cli or hardware status tab?
need help on the same.
concerning
Mr. VMware
Hello
You should find the information you are looking for by entering the following command.
less/proc/scsi/aic79xx/6
Kind regards
Ralf
-
How to find the OS ppid in v$ session and V$ process
Hello
Oracle 11gDB
I have this suspiscious process in my session of $ v which is always running and connected to a 'HR' scheme, even if the 'HR' application is also stopped and other HR related batch process.
And he also told me that it came from the UNIX sun-server1. My problem is that I can not locate the PPID OS for this process when I login to the operating system to the Sun-server1.
I tried to kill this session, but he maintains the connection. Even if I bounce the database, it come back.
How to find the source of this process to the Sun-server1?
I tried this script:
SELECT p.program, p.spid FROM v$session s, v$process p WHERE s.paddr = p.addr AND s.sid IN (39)
But if I have a ps - ef | grep 6404 there is no existing process OS. No matter what other script that can identify the process id of the operating system?Program Spid ============ ==== ORACLE.EXE (SHAD) 6404
Thank you very muchKinsaKaUy? wrote:
Thanks Sb, what is your new name :)Who do you think is the culprit?
root@sun-server1 # ps -ef|grep "May 16" v231sys 7065 7051 0 May 16 pts/1 11:16 /usr/jdk/jdk1.5.0_13/bin/sparcv9/java -server -Xms1024m -Xmx1024m -XX:MaxPermSi v231sys 7051 1 0 May 16 pts/1 0:00 /bin/sh startWebLogic.sh V231_ABDC root 13117 11928 0 12:56:30 pts/3 0:00 grep May 16 v231sys 7229 7065 0 May 16 pts/1 1:17 /opt/SPLcobAS51/bin/cobjrun64 -Dcom.microfocus.cobol.cobjvm=sun_150_64 -DSPLCJV v231sys 6257 8518 0 May 16 pts/1 0:00 bash v231sys 7211 7065 0 May 16 pts/1 1:17 /opt/SPLcobAS51/bin/cobjrun64 -Dcom.microfocus.cobol.cobjvm=sun_150_64 -DSPLCJV
When the process lasts more than 24 hours, you can get is no longer hours or minutes.
You can use the utility "netstat" to connect the source & destination?If this isn't the case, random randomly start put to death via kill - 9
until you success! -
Hello Oracle experts
I am trying to find number of separators to a text string. But I could find only for the first record. Can you if it doesn't matter who you please let me know how to find the record2.
I use
Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
Thank you
with t as
(select 3999 ^ 0077774 ^ Institution ^ Mountwest ^ 1 ^ Lilly ^ Maria ^ [email protected] ^ 555-555-5555 ^ 2 ^ Lilly ^ Maria ^ [email protected] ^ 999-999-9999 ^ 3 ^ Lilly ^ Maria ^ [email protected] ^ 777-888-1234 ^ 1 yyyy xxxxxx Drxxx ^ ^ xxxxxxx ^ AA ^ 99999 ^ MRO ^ U.S. ^ ^ ^ I do not know ^ 2 years ^ Public ^ applicable ^ Urban ^ 1, 000-4, 999 ^ N ^ Conference ^ N ^ 14/04/2009 10:52:51 ^ 24/08/2010 09:26:46 ^ Active ^ ^ I ^ ^' string1 from all the double union)
Select ' ^ ^ ^' double string1
)
Length (STRING1) - length (replace(STRING1,'^','')) SELECT delim_number from TTry:
SELECT length(STRING1)-NVL(length(replace(STRING1,'^','')),0) delim_number from T
Maybe you are looking for
-
change how I get pictures on incoming emails Most, but not all emails that I receive that contains images come as 'slide show', and where the image should be, there is a blank box with a red x. Is it possible in Windows Live Mail to change the setti
-
Is it possible to get the PIN of the device?
Hello world Is it possible to get a PIN device programmatically in C++ of Cascades? I search on this forum and find that this thread is talk about it, but his response cannot help me. My code is here. TestGetPin::TestGetPin(bb::cascades::Application
-
Hey there How to avoid Microsoft OS & Office licenses to lose? I want to upgrade the hard drives on my PC 2, * PC1 has Windows 7 Professional and Office 2010 * PC2 has Windows 7 Home Premium and Office 2007 When I uninstall & reinstall MS-Windows & M
-
How to fix Windows 7 64 bit freezes on the sleep/hibernate?
My computer freezes constantly just before the sleep/hibernate or just after waking you. I had this experience with SP1 and without. Before you remove SP1, the HD will start to charge about 17 minutes to leave inactive. Almost exact to the minute, it
-
Blue screen kernal Windows 8 data paging error? Help!
I've had my laptop for 3 months now... And I get this blue screen that cutting down of my computer saying kernal_data_inpage_error. I have a Sony Vaio Windows 8. Sometimes after closing, it takes forever to login on windows, or when I go to the offic