How to display records dynamically by columns of the table?
hi to all,
i'm trying to figure out quite a long time now. is it possible to populate html table with records via columns? (because most of us are familiar with rows up to the last record) i do have a pseudocode below:
print ('<table>');
while (!eof) {
if (cnt % 4 == 0)
// breakline w/c means let's have another row since
// we displayed the records 4x now so we need
// another row to continue
else
// continue column generation
cnt++
print ('</table>');
i don't know if this is quite clear... but i do hope you know what my goal is... i have an app that i need to display (like live.com in searching images) to display all the searched items (and then onmouseover it will get big some sort)... but since the records i have are the ff:
CREATE TABLE "ERA_DB"."PARTS"
( "PARTID" VARCHAR2(15 BYTE) NOT NULL ENABLE,
"PARTNAME" VARCHAR2(75 BYTE) NOT NULL ENABLE,
"RETAILPRICE" NUMBER NOT NULL ENABLE,
"COSTPRICE" NUMBER NOT NULL ENABLE,
"ACTIVE" NUMBER DEFAULT 1,
"CATEGORY" VARCHAR2(2 BYTE) DEFAULT 'NA',
"DESCRIPTION" VARCHAR2(255 BYTE),
"TYPE" NUMBER DEFAULT 1 NOT NULL ENABLE,
CONSTRAINT "PARTS_PK" PRIMARY KEY ("PARTID") ENABLE
i need to display like the ff:
partname
partid
image
description
price
these are inside a box w/ borders (the concept is like live.com in their image search)
thanks so much!
This was written for pear::db but I think it should go pretty similar for ADODB.
$result = $db->query ("SELECT PRODUCT FROM INVENTORY WHERE COMPANY='$_SESSION[company]'");
while ($data1 = $result->fetchRow(DB_FETCHMODE_ASSOC))
$data2 = $result->fetchRow(DB_FETCHMODE_ASSOC);
$data3 = $result->fetchRow(DB_FETCHMODE_ASSOC);
$data4 = $result->fetchRow(DB_FETCHMODE_ASSOC);
$rows .= " <tr>\n";
$rows .= " <td width=150 align=right>".$data1[PRODUCT]."</td>\n";
$rows .= " <td width=150 align=right>".$data2[PRODUCT]."</td>\n";
$rows .= ' <td width=150 align=right>".$data3[PRODUCT]."</td>\n";
$rows .= " <td width=150 align=right>".$data4[PRODUCT]."</td>\n";
$rows .= " </td>\n";
$rows .= " </tr>\n";
}
Similar Messages
-
How to compare SSIS Variable and Column In the table!!.
Hi Folks,
My Requirement IS :
1<sup>st</sup>run: if the record does not exist
in the table insert the record (file_name, last_modified_file_date) and create a copy in the archive folder with file_name_currentdate.csv
Daily run:
retrieve the last_modified_file_date from the input file and check if the retrieved date is greater than the last_modified_file_date in the table:
If true:
create a copy of the input file in the archive folder and update the last_modified_file_date in the table with the retrieved date
If false don’t do nothing because the file has been archived in one of the previous runs.
I have already retrieving the modified date and File Nae iserting into Filename Table: (That table has 2 columns which are FileName and FileDate) so In script task everytime the variable getting Modified date(retrieve the last_modified_file_date
from the input file) could yu please give me idea after that how I can Compre the existing table record and variable. I have already
imported the all Filenames and Modified into table like below.
Could you please give your ideas friends.Try this:
1) Execute SQL Task (In the Parameter mapping, pass filename and fileLastModified date retrieved from the file - your SSIS Variable)
2) In the ‘SQL statement’, Write a TSQL like this:
--declare these variables before the use
SET @filename=?
SET @fileLastModifieddate=?
--declare @MaxLastTblDate and @flag=0
select @MaxLastTblDate = Max(last_modified_file_date) from Table T1
If (@fileLastModifieddate>@MaxLastTblDate)
--Do your insert here
--Update the variable with @flag (say 1)
3) Set the value of @flag in the Result set of Execute SQL (another SSIS variable)
4) In the next control flow component, do the file archiving.
5) Between these two components, check the value of the @flag variable in the precedence constraints (whether to copy the file for archiving or not)
Hope this helps. -
How to display more than 200 rows in the table?
Hi Experts,
Is that possible to display more than 200 rows in a Table.
when i query from table, it has 1000 rows, i want to display all the 1000 rows in the Table.
when i query, the values are displaying up to 201 rows only,
when i click next on 200 - 201 it throws Exception says
*"Query has exceeded 200 rows. Potentially more rows exist, please restrict your query."*
let me know how to display all the 1000 rows in a table without Exception.
Any idea will be highly appreciated.
Thanks
AswathThe number of rows retrieved is controlled by profile option "FND: View Object Max Fetch Size". I believe 200 is the default value. Pl see these MOS Docs
386402.1- Query Has Exceeded 200 Rows
275876.1 - Oracle Application Framework Profile Options Release 11i (11.5.10)
HTH
Srini -
How to provide Link to Column in the Table
Hi
please let me know how to provide link to one column in the table.
i have two views
in one view i will dispaly emp id and emp dept in a table
i have to provide link to the emp id column table
when i click emp id column then it will fire other view and display remaining details of emp.
so please let me know how to provide link to column in the table.
Solution is urgent
regards
mmukeshHi Mukesh,
You can insert LinkToAction column in table.you can have two cattributes in Valuenode one is of type boolean and other is of type string(empno)
you can create eventhander in that you can fire plug to seconf view where you can displays the emp details
With Regards
Naidu -
How to display more than one column with for each
Hi guys,
how to display more than one column with for each like below?
for each
Item1
Item2
Item3
Item4
Item5
Item6
Item7
Item8
Item9
Item10
End for each
for each
Item1 Item2 Item3
Item4 Item5 Item6
Item7 Item8 Item9
Item10
End for eachTake a look at this to see if the solution provided would work for you: https://blogs.oracle.com/xmlpublisher/entry/multi_column_row_woes
Won't you have more than 10 records in your data file ? If you are going to have only 10 items then you may be able to use position() function to limit it to 3 each..
Take a look at this: https://blogs.oracle.com/xmlpublisher/entry/turning_rows_into_columns
Thanks,
Bipuser -
How to display subtotals in separate column in alv report?
hi,
I am displayed the subtotals for QUantity field BDMNG in Reuse_alv_grid_display in the same column.
but I want to display subtotal in separate column.
How to display subtotals in separate column in alv report?
thanks®ards.
samba.kHi
As far as i know you can't do this,the option you have is to create one more column (subtotal) and populate it by manual calculation at every subtotal (not alv subtotal but yours) .
Best Regards
Yossi -
How to display records into a non table base block..
Hi,
Can anybody help me how to display records into a non table base block....
Find below is my coding but it only display the last record in the first line
in the block.
PROCEDURE CREATE_CARTON_QUESTION IS
CURSOR car_c IS
select /*+ rule */ question_id, question_description
from WHOP.QADB_QUESTIONS
where question_category = 'Carton'
and question_active_flag = 'Y';
v_found VARCHAR2(10);
v_status boolean;
v_error varchar2(150);
v_count number;
car_r car_c%rowtype;
begin
begin
select count(*) into v_count
from WHOP.QADB_QUESTIONS
where question_category = 'Carton'
and question_active_flag = 'Y';
exception
when no_data_found then
v_count := 0;
end;
if v_count > 0 then
for car_r in car_c loop
---populating carton questions
:la_carton.carton_question_id := car_r.question_id;
:la_carton.carton_question_answer := 'N';
:la_carton.carton_error_details := null;
:la_carton.attribute2 := car_r.question_description;
end loop;
end if;
end;
Thanks in advance.
Regards,
JunHi SNatapov,
Thanks for you reply but still I get this error...
FRM-40737 Illegal restricted procedure GO_BLOCK in WHEN-VALIDATE-ITEM trigger.
Please note that I call that program unit in the last field of my control block inside when-validate-item trigger the questions should be display in la_carton block which is my non-base table block.
Find below is the code....
begin
go_block('la_carton');
first_record;
for car_r in car_c loop
---populating carton questions
:la_carton.carton_question_id := car_r.question_id;
:la_carton.carton_question_answer := 'N';
:la_carton.carton_error_details := null;
:la_carton.attribute2 := car_r.question_description;
next_record;
end loop;
end;
Hoping you can help me this problem...
Thanks in advance.
Regards,
Jun -
I have a full screen and cannot see my bookmarks.
How do I get my bookmarks to display again in a column on the left of my screen, just as it always has and the way I like them. I do not want to use full screen display without the bookmarks showing.View > Sidebar > Bookmarks (Ctrl+B)
Press F10 or tap the Alt key to bring up the "Menu Bar" temporarily. -
i have 100 records can anybody tell me how i display records 10 at atime in jsp & by clicking the next button another 10 records displays in the same jsp. How i can do that thing.
You have to implement a page breake yourself.
Simple scenario would be to store a page number into a session:
session.setAttribute("page", selectedPage)
every time user clicks on a next page link
When displaying the record read the page and display only those which should be on the page
Integer selectedPage = session.getAttribute("page")
if (selectedPage == null) selectedPage = 1;
//display code goes here -
How to display servlet dynamically generated image ?
Hi,
How to display servlet dynamically generated image ?
I have a servlet generating a buffered image in the doGet. I want to display the image in a jsp page with other information. I'm not able to get it properly displayed.
**Try n# 1 **************************************************************
This displays my image but nothing elle :
ServletOutputStream sos = pResponse.getOutputStream();
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos);
encoder.encode(img);
**Try n# 2 ****************************************************************
I tried also :
In the servlet :
request.setAttribute("renderedImage", img);
and in the jsp page :
BufferedImage image = (BufferedImage) request.getAttribute("renderedImage");
<img src="<%=ImageIO.write(image,"jpeg",response.getOutputStream())%>" width="300" height="280"/>
This last try draws big crap in the jsp page, thank you in advance.
NelsonCall another servlet from the IMG tag. Have the servlet stream out the image using ImageIO (instead of writing HTML).
-
How to display horizontally to vertically column in oracle
Dear All
How to display horizontally to vertically column in oracle,Please give me Sol. ASAPSunil,
Which column is the sal column? I canât see any numeric columns in your query. If you use htmldb_item calls in your query column, then this makes them strings and you canât build sums on string columns. If you want to build sums in an updateable report / tabular form, then donât use the htmldb_item API. Instead use the built-in display types on the report column attributes page. Using the built-in display types is the better options in most cases anyway and they do allow you to calculate sums even if the column is a text field or display and save type field.
Regards,
Marc -
Is it possible to display only dynamically selected fields in the out put?
Is it possible to display only dynamically selected fields in the out put? i need to display set of columns in the selection criteria, but in the output i have display only input given fields. because i need to convert it into .csv file. So i have to display selected fields from internal table. In oracle they are using"execute immediate". is there any equivalent in SAP?
thanks in advance.Hi Remya,
Are you talking about dynamic programming in ABAP ?
If yes, there are concepts like RTTS which facilitates it.
Yes, the select query also supports dynamic selection of fields. ( Please care about ( ) in dynamic sql ).
Do more research on Field Symbols and statements like ASSIGN COMPONENT OF.
Regards,
Philip. -
How to delete a column from the table control in module pool?
Hi,
can any one please tell How to delete a column from the table control in module pool?
thanks in advance
warm regards
HareeshKumar Nhi hareesh,
I think it is better to hide it.
How to hide: You can check this link
Dynamic Hide column in table control -
Duplicate records in a column of a table
Hi,
Can someone tell me how to get the duplicate records in a column of a table
what is the sql query.
Can anyone pls give an exampleCan someone tell me how to get the duplicate records in a column of a table select your_column, count(*)
from your_table
group by your_column
having count(*) > 1; -
I have just updated to 3.6.4 and find that my browser web pages only display in a narrow column in the centre of my 16 inch screen.
How can I stretch the web pages to fit my screen ?
== This happened ==
Every time Firefox opened
== After ungrading to Firefox 3.6.4Set the pref <b>browser.tabs.insertRelatedAfterCurrent</b> to <i>false</i> on the <b>about:config</b> page.
To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
If you see a warning then you can confirm that you want to access that page.<br />
Maybe you are looking for
-
My trackpad is not working it moves the arrow but I cannot click on anything or drag anything
My trackpad is not working on my MacBook pro. I can get the arrow to move but I cannot open files or drag files when I click.
-
UC560 loopback network unreachable
Hello, I got problem with imported CDR on a ftp server. It brings me an error message which is talking about the loopback network unreachable.
-
Hi Expert, When i am going to import ECC6 in windows 2003 server using DB9.5 i got error in phase Install data base software like below. Invalid command line argument. consult the windows installer SDK for detailed command line help. Please help me
-
If myText.text == any value in a datagrid column
Hey guys, in a simple form, I am trying to achieve what's in my title. I have a text box in which you type in a value (number). I have a submit button which inserts the value into my data-grid which is populated by a data provider to display that in
-
I'd like to ask the community if anyone else is having trouble with corruption of their iTunes XML library file? Back on October 20th, my iTunes library completely imploded: roughly one third of all songs stopped playing, all my Digital Copy movies r