Wanted to catch more than one record in selected rows
Hi all,
I am using the following function to catch the selected rows.
CALL METHOD w_grid->get_selected_rows
IMPORTING
et_index_rows = i_selected_rows.
it is catching only one row.
but i want to catch more than one record.
for example i will select more than one record from the grid and press the approve button. so that the status will change in the database.
but what is happening is if i select 2 or more records it is approving only first record. because in the i_selected_rows only first row is catching. what i have to do to catch other select rows also.
thanking u.
regards,
giri.
Hi,
CALL METHOD w_grid->get_selected_rows
IMPORTING
et_index_rows = i_selected_rows[] ."<<<< try to put these into []
please not open multiple threads
a®
Similar Messages
-
Please help with an sql to show more than one records into single row for each student
From the following data I would like to create an sql to get the information as the following layout
studentid, firstTerm, EnglishMark1,ScienceMark1,MathsMark1, Secondterm,EnglishMark2,ScienceMark2,MathsMark2,
ThirdTerm,EnglishMark3,ScienceMark3,MathsMark3 // As single rows for each student
Example
1 First, 30,40,20,Sec,30,40,20, simillarly next row for next row for another sudent. Please help to generate the sql for the same.
Please help it would be very appreciate.
With Thanks
Pol
polachancreate table yourdata (studentid int, term varchar(10), section varchar(50), Mark int)
insert into yourdata values
(1,'First','Math',20),(1,'First','English',30),(1,'First','Science',40),
(2,'First','Math',20),(2,'First','English',30),(2,'First','Science',40),
(3,'First','Math',20),(3,'First','English',30),(3,'First','Science',40),
(1,'Sec','Math',20),(1,'Sec','English',30),(1,'Sec','Science',40),
(2,'Sec','Math',20),(2,'Sec','English',30),(2,'Sec','Science',40),
(3,'Sec','Math',20),(3,'Sec','English',30),(3,'Sec','Science',40)
Select studentid
,max(case when term='First' and section='English' Then Mark End) as EnglishMark1
,max(case when term='First' and section='Science' Then Mark End) as ScienceMark1
,max(case when term='First' and section='Math' Then Mark End) as MathMark1
,max(case when term='Sec' and section='English' Then Mark End) as EnglishMark2
,max(case when term='Sec' and section='Science' Then Mark End) as ScienceMark2
,max(case when term='Sec' and section='Math' Then Mark End) as MathMark2
,max(case when term='Third' and section='English' Then Mark End) as EnglishMark3
,max(case when term='Third' and section='Science' Then Mark End) as ScienceMark3
,max(case when term='Third' and section='Math' Then Mark End) as MathMark3
From yourdata
Group by studentid
drop table yourdata -
How to show more than one record at a form-like style report?
Hi All,
I developed a form-like style report
I want it to show more than one record at once (At the same page)
I tried that by setting the value to "Maximum records per page" property for the repeating frame to 10
but when I close the property palete and open it agian the value is returned to 1 !!!
how to show more than one record at the same page?????
Thank uHi,
there's perhaps another property like "page protect". If than 2 records didn't fit at one page there's a page break. Or is there any object inside the repeating frame with page-break properties? Sorry .. it's like looking into a chrystal ball ...
Regards
Rainer -
Master_detail for more than one record at a time
Hi,
How can i display master_detail records for more than one records at a time, for example, i have two tables A and B , A has username and role and B has username and profile. here i wanted to display 10 users at a time on my 6i form with username, role and profile.
i have created a master-detail relation ship with these tables when i'm executing F8 on blcok A , it displays 10 records on BlockA but, only one at a time on block B, how can i display all corresponding records on block B at a time.
Thanks for your help.BcjThanks Roberts, that was realy informative due to some doubts i would like to confirm my requirements , i have two blocks A and B and each master record has only one detail record. but i wanted to display at least 10 master_detail relationships(records) on the form at a time, i would like to know is it possible to do without creating any table or view for example,
data in table A,
username role
AAA R1
BBB R2
CCC R3
data in table B,
username profile
AAA P1
BBB P2
CCC P3
i wanted to display it on form like below,
username role profile
AAA R1 P1
BBB R2 P2
CCC R3 P3
Also would like to know that how can i select data from dba_users, any restriction is there on forms 6i, i can select it on sqlplus.
Thanks Again, Bcj -
How to apply data into 2 tables AND to more than one record in same table?
Hello,
I am trying to apply/insert data into 2 tables AND at the same time apply data to more than one record (in the same table). How would I do this in APEX?
I have updated using one table with no problem, however, when I try updating with the two tables/ multiple record sets, I get errors.
I appreciate the help.
Thanks.
LindaYou can achieve what you want using PL/SQL. Can you post ur code?
-
How to return more than one record through OUT parameter in procedure
Hi,
I want to create a procedure which accepts one input and returns more than one record as output.
example:
Input = DeptNo
Output= Empno,ename,sal,comm,job
Scenario:
There can be more than one employee in department we pass as the IN parameter. OUT parameter has to return all the records of the corresponding employee details in that department.
Thanks in advance for your help
Regards,
K.Vijay-- I think you can try something like this using ref cursor:
-- create a package for the type ref cursor and execute
CREATE OR REPLACE PACKAGE PACK_REFCURSOR_FOR_TABLES AS
TYPE DATA_TableRows IS REF CURSOR;
END;
-- after executing the package above, create your procedure:
CREATE OR REPLACE PROCEDURE GET_EMP (
IN_nDeptNo IN number,
OUT_Emp OUT PACK_REFCURSOR_FOR_TABLES.DATA_TableRows)
IS
BEGIN
-- leave query open (implicit) as this will return data
OPEN OUT_Emp FOR
SELECT *
FROM tblEmp
WHERE DeptNo = IN_nDeptNo;
END;
--execute the procedure and you're done -
How can i select more than one record in a LOV
I want to select more than one record in a LOV and put them together before to display them in an item.
This is not possible with a default LOV, so you'll need to create your own. There are a number of ways to select multiple records:
a) you can use a tree and set Multi-Selection to Yes
2) you can use a normal block with a checkbox on each row for the user to select records
three) with the [SYSTEM.MOUSE_BUTTON_MODIFIERS|http://www.oracle.com/webapps/online-help/forms/10g/topics/designing_forms/mouse/at0604.html?tp=true] variable you can allow users to ctrl+click to select many records in a block. set the background colour to indicate a record has been selected
iv) there is a pjc in the [demo code section|http://download.oracle.com/otndocs/demos/Forms_Demos_10gr2.zip] which lets you select many rows in a poplist -
How can i insert more than one record a time in a JSP page?
Hi experts,
I'm working with JDeveloper version 3.2 application server 9i.
I want to insert more than 1 record using a jsp page and then perform a commit at the end.
do you can help me with this problem/challenge?
Thank you,
Regards,
Mariostatement.executeBatch() maybe?
-
How to concat columns from more than one record?
I have a function that takes an Oracle long and returns it as a varchar so that I can use it in the Microsoft world. My problem is that the SELECT returns more than one row (which is valid) and I need the Long fields to be concatenated into the one varchar returned. Currently I get an error saying more than one record is returned. This is my function:
CREATE or replace function m4owner.Get_Request_Text
(av_REQUEST_ID varchar2, av_REQUEST_LINE number, av_TEXT_LINE_CODE varchar2)
RETURN varchar2
IS
long_var LONG;
BEGIN
SELECT TEXT INTO long_var
FROM M4OWNER.REQUEST_TEXT
WHERE REQUEST_ID = av_REQUEST_ID
AND REQUEST_LINE = av_REQUEST_LINE
AND TEXT_LINE_CODE = av_TEXT_LINE_CODE;
return long_var;
END;CREATE or replace function m4owner.Get_Request_Text (av_REQUEST_ID varchar2,
av_REQUEST_LINE number,
av_TEXT_LINE_CODE varchar2) RETURN varchar2 IS
long_var LONG;
BEGIN
for t1 in (SELECT TEXT FROM M4OWNER.REQUEST_TEXT
WHERE REQUEST_ID = av_REQUEST_ID
AND REQUEST_LINE = av_REQUEST_LINE
AND TEXT_LINE_CODE = av_TEXT_LINE_CODE) loop
long_var := long_var || t1.text;
end loop
return long_var;
END; note: untested -
RFC to XI File - can NEVER EVER get more than one record in Output file.
Hi guys
This might be related to my other post on File conversion but whatever I do I just can't seem to get more than one record in the output file
the payload from R3==> XI seems fine
for example
<?xml version="1.0" encoding="UTF-8" ?>
- <rfc:Z_XI_005_RFC xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
- <IP_CUSTOMER_HEADER>
- <item>
<CUSTOMERID>1000001</CUSTOMERID>
<COMPANY>One-time ship-to</COMPANY>
<SHORT_NAME>ONE-TIME</SHORT_NAME>
<STREET />
<STREET2 />
<STREET3 />
<STREET4 />
...... more data
</item>
then next customer master data and so on
- <item>
<CUSTOMERID>1000005</CUSTOMERID>
<COMPANY>ddfask</COMPANY>
<SHORT_NAME>;LK;L</SHORT_NAME>
<STREET />
<STREET2 />
<STREET3 />
<STREET4/>
etc etc until
<HKUNNR>60000</HKUNNR>
<SALES_REGION />
</item>
</IP_CUSTOMER_HEADER>
</rfc:Z_XI_005_RFC>
All I get on the Output target file
<?xml version="1.0" encoding="UTF-8" ?>
- <ns1:MT_customer_header xmlns:ns1="http://avenue.com/xi/test">
<CustomerId>1000001</CustomerId>
<company>One-time ship-to</company>
<shortname>ONE-TIME</shortname>
.... more data
</ns1:MT_customer_header>
the <item> and subsequent records all seem to have vanished.
I must be doing something PARTICULARLY stupid as nobody else ever seems to have this problem -- I've tried almost every possible combination but still to no avail
The function module is passing a table to XI in the correct structure and the payload seems to be fine so what on earth is broken here !!!,.
Cheers
JimboThanks everybody -- it's working now
RFC call was passing data correctly
function z_xi_005_rfc.
""Local interface:
*" TABLES
*" IP_CUSTOMER_HEADER STRUCTURE ZAP_CUSTOMER_INFO_2
endfunction.
in debug mode table data was fine -- in this instance 3 records were being passed.
3 errors in mapping etc fixed (with help from SDN - thanks)
1) missing the ITEM level in the Data type (hence mapping)
2) needed 0:unbounded in the occurrence
3) also mapping Item====>Item was missing (sub fields were ok)
Points awarded
final file output ok output now ok (with 3 fields only for testing)
<?xml version="1.0" encoding="UTF-8" ?>
- <ns1:MT_customer_header xmlns:ns1="http://avenue.com/xi/test">
- <item>
<Customerid>1000001</Customerid>
<company>One-time ship-to</company>
<shortname>ONE-TIME</shortname>
</item>
- <item>
<Customerid>1000005</Customerid>
<company>ddfask</company>
<shortname>;LK;L</shortname>
</item>
- <item>
<Customerid>1000010</Customerid>
<company>One Time Customer Test</company>
<shortname>SADFIWQEFG</shortname>
</item>
</ns1:MT_customer_header>
Now only the final problem to make file content conversion work.
Once again thanks --sometimes what seem trivial or simple problems take AGES to fix until someone else gives you a clue --that's why boards like SDN are great value.
Cheers
Jimbo -
In which IT To Date is not allowed & not having more than one record
Hi all,
Could you please tell me "In which IT To Date is not allowed & not having more than one record ?"
Thanks in advance
Regards,
AsiyaHi,
Just go through IT0003 and see if it fulfills the requirements or not.
Param -
Can more than one song be selected for slideshow on IPhoto? If so how
Am trying to put together slideshow of granddaughter's birthday party but want to use more than one song as have a lot of photos.
Thank you for sharing your expertise. I have taken that and tried to create a document on how to do this. You will see some different/additional comments. My idea is to share it with everyone once it is finalized. I am about ready to try and walk through all the steps for real but would ask you to read this over before I commit several hours more to this project. Any comments are appreciated. I am concerned about steps 9 through 13. Not sure i have it right. Any comments will be appreciated. Maury
++++++++++++++++++++++++++++++++
How to create a Slideshow on DVD
with music
using iPhoto and iTunes
as input sources
1. Select, crop, and fix slides needed from the iPhoto library. Put them into a newly named folder. (Not a slide show.)
2. Import this folder into iMovie using KenBurns ON.
3. Add any necessary transitions between various segments of resulting movie.
(This should be the finished visual project. Using this write down the exact timing needed for stop/start each segment and the total length of the movie.)
4. Go to iTunes and select various tunes/songs/music desired.
5. Go to Amadeus and open a new file. (This single will end up the same length as the visual project).
6. Open JACK to connect iTunes to Amadeus.
7. Choose a tune, find the correct snippet of music and adjust to stop/start times from 3 above. Move your snippet to Amadeus. Use cross fade so one snippet will blend into the next one. Load these in the correct order of the slideshow segments.
(Note: Music purchased from the iTunes Store is "protected" in ACC and will no render into another format. This means it cannot be used in this example. A major inconvenience.)
8. Your result will be string of snippets strung together in proper order and in total making up a single file the same length as your slideshow.
9. Paste this new music file into the iMovie.
10, Close iMovie.
11. Open iDVD, select your theme and leave the menu window open.
12. Open the iMovie project file (Control-click on it and select Show Package Contents) and navigate to the Shared Movies/iDVD folder.
13. Drag the .mov file in there into the open iDVD window being sure not to drop it into any menu drop zones.
(You'll know if you are in a drop zone (if there are any) since a text link appears with the same name as the movie file you're dragging.)
(This allows iDVD to do the rendering thus eliminating two renderings on the same file which reduces image quality......)
14 Save the project to Disk Image instead of burning directly to disk.
15. Open the disk image and launch DVD Player.
This will let you check out the finished project with DVD Player before committing to disk. You'll be able to check out the audio sync, typos etc.
16. When you are ready to burn to disk use File>Disk Utility.
(See: Burning a disk image file on a CD or DVD in Mac OS X.) The first step, saving to Disk Image is the encoding process and takes the longest time. Often it will seem like it's hung on the audio encoding but let it go on and on, as it often is the longest part of the encoding process.
17. This should be the finished product.
18. Snail Mail DVD to adorable grandchild and wait for parents to call saying it made them both cry. (Of course, this implies you are a grandparent.)
Credits: Old Toad and Maury56
Software: iLife 06 (iPhoto, iTunes, iMovie, and iDVD); DVD Player; Amadeus; and Jack.
+++++++++++++++++++++++++++++++++
About item 16, is there any way to tell the difference between "hung up" and "encoding" while it is going on?
Maury
PowerMac G4 Mac OS X (10.4.6) -
Cant listen to more than one song in a row with ios4
Ever since i "upgraded" to the new ios4 software i can no longer listen to more than one song in a row without it stopping by itself. if im using apps while playing music it takes me back to the home screen. If someone knows how to fix this that would be nice bc im really frustrated with it and regret getting the software.
But all of a sudden I cannot get my libraray or any playlist ti play more than one song at a time automatically. It just stops after each song.
head into your itunes main library window. are all the little boxes to the left of your tracks unchecked?
is so, hold down Ctrl and click on one of those boxes to recheck all the songs. (this may take a little time.)
do you get continuous play once all the songs are rechecked? -
Every time I login, I have to select Country. It takes more than one attempt to select one. What could be done to save it so I don't have to select it repeatedly?
Is this PSE 12? You should not be logging out. In PSE 12 log in = activate. When you log out you are deactivating PSE. Just leave it logged in.
-
How can I display more than one record with result set meta data?
Hi,
My code:
ArrayList<String> resultList = new ArrayList<String>();
rs=ps.executeQuery();
ResultSetMetaData rsmd = rs.getMetaData();
while(rs.next()){
for(int k=1;k<=rsmd.getColumnCount();k++){
resultList.add(rs.getString(k));
ps.close();
}catch(Exception e){
e.printStackTrace();
return resultList;
public String test(ArrayList result)throws Exception{
String data=
"<tr>"+
"<td class=normalFont>"+result.get(0)+"</td>"+
"<td class=normalFont>"+result.get(1)+"</td>"+
"</tr>";
return data;
} All the things are wroking but the problem is that ArrayList is displaying just one record whereas I have more than 20 records to display. I tried with loop like: i<result.size(); and result.get(i) then its throwing exception
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 I stuck here for the last more than 2 days. Please help me
Best regardsRaakh wrote:
Still waiting .....I would have answered much earlier, but when I saw this little bit of impatience, I decided to delay answering for a while.
ArrayList<String> list = new ArrayList<String>();
list.add("abc");
list.add("def");
list.add("ghi");
System.out.println(list.get(0));
abc
System.out.println(list.get(1));
def
System.out.printnln(list);
[abc, def, ghi]That list has 3 items. Each one is a String.
But here is what you appear to be doing:
select * from person
+-----+-------------+-------------+--------+
| id | first name | last name | height |
+-----+-------------+-------------+--------+
| 1 | Joe | Smith | 180 |
+-----+-------------+-------------+--------+
| 2 | Mary | Jones | 144 |
+-----+-------------+-------------+--------+
for each row in ResultSet {
for each column in ResultSet {
list.add(that element);
// which becomes
list.add(1);
list.add("Joe");
list.add("Smith");
list.add(180);
list.add(2);
list.add("Mary");
list.add("Jones");
list.add(144);
System.out.println(list.get(0));
1
System.out.println(list.get(1));
Joe
System.out.printlN(list);
[1, Joe, Smith, 180, 2, Mary, Jones, 144]That list has 8 items. Some of them are Strings and some of them are Integers. I would assume that, for this sample case, you would want a list with 2 items, both of which are Person objects. However, it really isn't clear from your posts what you are trying to do or what difficulty you're having, so I'm just guessing.
Maybe you are looking for
-
Is there a way stream video from a 2012 MacBook Air to a TV using Apple TV and at the same time steam the audio to an air speaker. Also the same question but using an ipad
-
Is this an Internet Bug/Virus/Malware that bypasses Safari's popup blocker?
I did a google search to find out if a specific product was manufactured in America with American parts (no luck) when I was immediately redirected to a site emulating some kind of Windows Virus scanning software. I clicked cancel to not allow anythi
-
Report serial number printed and serial number detected do not match
The serial number provided by the Printer Status Report and the serial number provided by the "Auto Scan and Find" feature off the web site do not match where the scan detected one removed the last 4 characters. Is this known to the firmware folks th
-
I only want to show daytime hours. Can I set on iPad?
-
Hi, I have 2 x 4400N's configured exactly the same but when I search for wireless networks - 2 wireless networks show up. If the SSID and all the other settigns are configured the same shouldnt only 1 SSID wireless network show up? Am I missing somet