Apex grid table?
Hi
I have a procedure and I show my procedure's result on sample htp.print like
HTP.PRINT('<html>');
HTP.PRINT('<head>');
HTP.PRINT('<meta http-equiv="Content-Type" content="text/html">');
HTP.PRINT('<title>List of Succesfully Students</title>');
HTP.PRINT('</head>');
HTP.PRINT('<body TEXT="#000000" BGCOLOR="#FFFFFF">');
HTP.PRINT('<h1>List of Succesfully Students</h1>');
HTP.PRINT('<table width="40%" border="1">');
HTP.PRINT('<tr>');
HTP.PRINT('<th align="left">Ogrenci_No</th>');
HTP.PRINT('<th align="left">Ders Kodu</th>');
HTP.PRINT('<th align="left">Ders Adi</th>');
HTP.PRINT('<th align="left">Harf Kodu</th>');
HTP.PRINT('</tr>'); FOR I IN c_basari LOOP HTP.PRINT('<tr>');
HTP.PRINT('<td>' ||I.ogrenci_no || '</td>');
HTP.PRINT('<td>' || I.ders_kodu || '</td>');
HTP.PRINT('<td>' || I.ders_adi || '</td>');
HTP.PRINT('<td>' || I.harf_kodu || '</td>');
end loop;
HTP.PRINT('</table>'); HTP.PRINT('</body>'); HTP.PRINT('</html>');But I want to show like a grid. How can I do this? with what ?
acoordimng to your suggestions I search now .
Hi jarola
I new post for I couldnt explain my question .
I want to only this
I have a selectlist and I want to that which I select item on selectlist and go button I will run a procedure and show. For example I selected first item on select list and go button , my A procedure will run.... I selected second item on selectlist I will run B procedure..
I can do this but I can show on screen with htp.print so I want to show in sql report or which report type is possible .
Could you give me advice??
I tried now sqlreport but I coulndt call procedure ?
Similar Messages
-
Oracle apex and extjs grid table
hi
im new to extjs and i was wondering if someone can help me with this;
i want to create a report in oracle apex and put the output in extjs grid table
for example i want to view the output of select * from all_objects in grid table
thnx in advanceOkay
To get you started...
Create a new report template with named rows.
In row 1 template put this
["#1#","#2#","#3#","#4#","#5#","#6#","#7#","#8#"]Assuming you have 8 rows say... and make it conditional based on a PL/SQL Expression like this
#ROWNUM# = 1Then row 2 template like this
,["#1#","#2#","#3#","#4#","#5#","#6#","#7#","#8#"]Conditional on
#ROWNUM# > 1Then in before row put this
<script type="text/javascript">
Ext.onReady(function(){
var munkyData = [And after rows something like this (based on the emp table)
var store = new Ext.data.SimpleStore({
fields: [
{name: 'empno', mapping: '0'},
{name: 'ename', mapping: '1'},
{name: 'job', mapping: '2'},
{name: 'mgr', mapping: '3'},
{name: 'hiredate', mapping: '4'},
{name: 'sal', mapping: '5'},
{name: 'comm', mapping: '6'},
{name: 'deptno', mapping: '7'}
store.loadData(munkyData);
var grid = new Ext.grid.GridPanel({
store: store,
columns: [
{id:'empno',header: "Employee",sortable:true, width:100,dataIndex:'empno'},
{header: "Name", sortable:true,width:75, dataIndex:'ename'},
{header: "Job", sortable:true, dataIndex:'job'},
{header: "Manager", sortable:true,width:75, dataIndex:'mgr'},
{header: "Hire Date", sortable:true,dataIndex:'hiredate'},
{header: "Salary", sortable:true,width:50,dataIndex:'sal'},
{header: "Commission", sortable:true,dataIndex:'comm'},
{header: "Department", dataIndex:'deptno'}
stripeRows: true,
width:700,
autoHeight:true,
title:'Array Grid',
renderTo: 'munkyDiv'
</script>Then create a region to hold it with a source of
<div id="munkyDiv>
</div>
{code}
This is pretty basic but it should get you going...
Cheers
Ben
http://www.munkyben.wordpress.com
+Don't forget to mark replies helpful or correct+ ;) -
Search help (PREM) for personal no. is not coming in ALV grid table control
hi experts,
Search help (PREM) for personal no. is not coming in ALV grid table control.
i have assigned the srch help (prem) to my 'ZFIEXP_PROJALLOC' table for the emp_id.
but in output it is now showing the help.
ls_fcat-fieldname = 'EMPLOYEE CODE'.
ls_fcat-ref_table = 'ZFIEXP_PROJALLOC'.
ls_fcat-ref_field = 'EMP_ID'.
ls_fcat-outputlen = '10'.
ls_fcat-key = 'X'.
ls_fcat-edit = 'X'.
ls_fcat-coltext = 'EMPLOYEE CODE'.
ls_fcat-seltext = 'EMPLOYEE CODE'.
append ls_fcat to pt_fieldcat.
clear ls_fcat.
Then i tried to solve it using the PA0002 . ie.,
ls_fcat-fieldname = 'EMPLOYEE CODE'.
ls_fcat-ref_table = 'PA0002'.
ls_fcat-ref_field = 'PERNR'.
ls_fcat-outputlen = '10'.
ls_fcat-key = 'X'.
ls_fcat-edit = 'X'.
ls_fcat-coltext = 'EMPLOYEE CODE'.
ls_fcat-seltext = 'EMPLOYEE CODE'.
append ls_fcat to pt_fieldcat.
clear ls_fcat.
with this it is showing the help in employee code, but, when i click on an empl number, it is not added to my table control and allowing me to add the number by typing them.
plz help me.
thanks.Hi
In the layout give layout-sel_mode = 'A'. and
pass 'A' to i_save exporting parameter to method set_table_for_first_display.
The same thing if you are working with function module
reuse_alv_grid_display.
Reward points for useful answer.
Venkat -
XML data output in a custom grid table
Hi!
I was wondering if it is possible to display xml data output in a custom-made grid table? Important is the ability to
arrange the fields on the grid layout (not a fixed layout with columns and rows).
I am using the latest JDeveloper release.
Thanks!See [url http://docs.oracle.com/cd/E14072_01/server.112/e10592/functions251.htm#CIHGGHFB]XMLTABLE
For example:
-- INSERT INTO <your table name>
WITH x AS
(SELECT XMLTYPE('<?xml version="1.0"?>
<ROWSET>
<ROW>
<EMPNO>7782</EMPNO>
<ENAME>CLARK</ENAME>
<JOB>MANAGER</JOB>
<MGR>7839</MGR>
<HIREDATE>09-JUN-81</HIREDATE>
<SAL>2450</SAL>
<DEPTNO>10</DEPTNO>
</ROW>
<ROW>
<EMPNO>7839</EMPNO>
<ENAME>KING</ENAME>
<JOB>PRESIDENT</JOB>
<HIREDATE>17-NOV-81</HIREDATE>
<SAL>5000</SAL>
<DEPTNO>10</DEPTNO>
</ROW>
<ROW>
<EMPNO>7934</EMPNO>
<ENAME>MILLER</ENAME>
<JOB>CLERK</JOB>
<MGR>7782</MGR>
<HIREDATE>23-JAN-82</HIREDATE>
<SAL>1300</SAL>
<DEPTNO>10</DEPTNO>
</ROW>
</ROWSET>') myxml
FROM DUAL)
SELECT *
FROM x
, XMLTABLE('/ROWSET/ROW'
PASSING x.myxml
COLUMNS empno, ename, job, mgr, hiredate, sal, deptno); -
Hi there,
I have a grid table being filled of which I know, that it doesn't contain all necessary data to allow the user to continue.
As there are no mandatory flags to the fields I want to call a method (e.g. SET_DELTA_CELLS: it's marked INTERNAL only and doesn't seam to work anyway) to emulate user input or just trigger the event DATA_CHANGED.
I also thought about using method ADD_ROWS, but I don't need excess rows that I need to remove again.
What other possibilities are there?>
Alan Downing wrote:
> Hi Prabhu,
>
> thanks for your answer.
> Alas, it would require the user to actively change a field and press ENTER or change a cell in order for DATA_CHANGED to being fired.
>
> The point is, that I need to check certain data independent of user action (change of cell data). If the user presses the save/ok/continue button he must not be allowed to continue unless all data of the grid is filled where required.
>
> regards
> Alan
Hi Alan,
You could write a subroutine which will do all the validations and call this subroutine for every user action for which you think the data should be validated. You could pass the old and new table to this subroutine and compare the values to see if the requirement is fulfilled and the data is valid.
Hope this helps.
Best regards,
Advait -
UFT 12.01-Unable to Identify objects inside grid table
We are automating a Window based application using UFT 12.01.
The Product and UFT Tool are installed in Client Network-Desktop and we are accessing through VPN connectivity.
Technology stack of the application are
.Net Framework 4.0
IIS6.0 or greater
Sql Server 2008 R2
DevExpress V11.2 (UI & Reports)
Janus Controls (UI)
AutoMapper used within Interfaces
Ciloci.Flee used for expression builder
Autofac used of IOC cache
The grid table is identified as SwfObject and its dynamic table. Hence we can’t perform any table operations inside table like get row() , get celldata() etc.,.We need to capture edit box inside a row which is enabled on clicking the particular row.
How to Identify objects inside Grid tableHello again,
Here you are the DDL of the offending table:
CREATE TABLE "DBADMEX"."T50SEC82"
"COD_EMPRESA" CHAR(4 BYTE) DEFAULT ' ' NOT NULL ENABLE,
"COD_EMPR_CONT" CHAR(4 BYTE) DEFAULT ' ' NOT NULL ENABLE,
"COD_SECT_CONT" CHAR(2 BYTE) DEFAULT ' ' NOT NULL ENABLE,
"NUM_CUEN_CONT" CHAR(18 BYTE) DEFAULT ' ' NOT NULL ENABLE,
"COD_PAIS" CHAR(4 BYTE) DEFAULT ' ' NOT NULL ENABLE,
"COD_SECTOR" CHAR(6 BYTE) DEFAULT ' ' NOT NULL ENABLE
PCTFREE 10 PCTUSED 40 INITRANS 50 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
TABLESPACE "TS_50" ;
CREATE UNIQUE INDEX "DBADMEX"."I5000082" ON "DBADMEX"."T50SEC82"
"COD_EMPRESA", "COD_EMPR_CONT", "COD_SECT_CONT", "NUM_CUEN_CONT"
PCTFREE 10 INITRANS 50 MAXTRANS 255 COMPUTE STATISTICS STORAGE
INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
TABLESPACE "TS_50" ;
We are using the following versions:
Oracle database: 11.1.0.7.0
Oracle Client: 11.2.0.1.0
Windows (where the client runs): XP SP3 (version 5.1 Build 2600_spsp_sp3_gdr.080814-1236) in spanish.
SQL Developer: 2.1.1.64 (MAIN-64.45)
I think I haven't forgotten anything.
Thanks in advance for your help! -
Hello,
Please let me know, how to find the apex user table. I need to validate unique user based on the same, for which I am using below function,
DECLARE
VAL BOOLEAN;
BEGIN
VAL := APEX_UTIL.IS_USERNAME_UNIQUE(p_username =>
:P6_USERNAME );
END;
However in this case it is returning always 'FALSE', saying new user exist.
Kindly help me in fixing this issue.Hello Andre,
I am validating records from apex_workspace_apex_users, to check whether user is present or not,
While creating validation, I select SQL-> Not Exist and below query,
select 1 from apex_workspace_apex_users where user_name = :my_user.
If this record is present, it should throw an customised error, however it shows the error of "Unique key violation error...".
Can you please help me out whether while creating validation I should select (EXIST or NOT Exist). Since I am still confuse with the same.
Thanks,
Girish -
Two Business Objects to fill a Data Grid/table using Anchors?
Hi,
I have a SAP standard tile were a table (grid) is filled by an Business Object. I want to add an additional column and retrieve the value from another Business Object.
My questions
1) Can I use Anchors to automatically set the relationship between two Business Objects A & B, so that I can just Drag & Drop an additional field from Business Object B to the DataGrid of Business Object A in the design screen without writing additional code?
2) Some BO's do come with a predefined relationship to other BO's, but in the case of I have to write a supply function do I have to use a specific "Data Source Type" such as "Business Object", "BusinessQuery" or "Business CollectioN"?
3) I already tried to write a supply function, but I realized that the system does return for some BO's or BS's a object instance, if I call "gFactory.newBusinessQuery". Is there any logic/restriction behind?
I know I can use RowLoaded2 and a unbound column, but I want to know if this approach is also possible?
Thank you for any help,
Regards,
AndreasHi Andreas,
The answer to your question is YES. You can very well do it without any changes at the code level.
The scenerio can be implemented using a concept called JointField Mapping in MAS.
Scenerio 1 :
If you want to display the extra field from another BO in a list tile on the click of a search button from the search tile , then
Please do the following :
1. Select the Busines Query that you have associated to the search tile and go to properties from the View Designer.
2. In the properties, Click on the Joint Field Mapping and select the BO where the extra field id present and select the primary key, Segment Field associated, (extra field)BO Property that you want to display in the list tile.
2. Add a new control (new Field) in the List tile - ie, From the Toolbox (Tileset COntrols).
3.Go to properties of the newly added control. Associate the anchor as the same achor as the list tile was pointing to earlier. for eg : Y_BOCAPGEN.
4. Then Go to BCOLFieldName property and give the property name as the newly added BO property name(New field).
After everything is modelled, You will be able to see the extra field in your application!!!!
NOTE : Ofcourse, After the Successful generation.
Scenerio 2 :
If you want to display an Extra Field in a Detail tile,
1. Go to Relationship of the BO from the Detail tile and go to properties.
2. In the properties, You can find the Joint Field Mapping porperty.
3. This property is again modelled as explained in scenerio 1.
Hope, It would have definetly helped and answered your query.
Have a good day!!
Best Regards,
Vignesh Ravikumar. -
How do I create a grid/table in Fireworks CS4?
I hope I'm not missing something obvious here. We're designed
an application that involves a lot of data entry so in my
prototypes I want to make an table or grid kind of thingy (think
Excel) but can't find anything like that in the Common Library. Any
suggestions?
Thanks,
JimTry installing Aaron Beall's autoshape to draw grids:
http://fireworks.abeall.com/extensions/autoshapes/
This sounds like it does what you are looking for.
Dave -
Reading Grid/Table contents using ECATT
Need to retrive the SAP table/grid column or all columns contents using SECATT, please provide the solution.
Thanks in ADVANCE.hi,
eCATT Links
From SAP Help
http://help.sap.com/saphelp_nw04/helpdata/en/1b/e81c3b84e65e7be10000000a11402f/frameset.htm
From SAP Service Marketplace
https://websmp204.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700003012112003E
THANKS,
sendil -
How to query the apex base tables .
Hi,
I need to apex tables from whic w can query the following.
a. workspace information , workspace id's
b. application information , application id's and schemas to which the application is linked to
c. application users
Thanks in advance.
Regards
NikhilNikhil,
apex_workspaces, apex_applications and apex_workspace_apex_users views will give you the required information.
also apex_dictionary view will give you list of all available apex views.
Thanks,
Manish -
Passing "Field Value" to "Grid Table"
I am new to JDeveloper and would APPRECIATE
if someone could let me know how the following might
be handeled in ADF/BC (maybe via a SetActionListener ?)
Example
1. user type vendor# in textbox
2. user clicks submit
3. 100 row GRID appear on next page with
ALL 100 vendorNo fields pre-filled based
on what was entered in step #1
Please do not reply if you cannot help.
ThanksHi!
1. bind the text box on page 1 to #{pageFlowScope.vendorId}
2. on the second page, use #{pageFlowScope.vendorId} as value for text in corresponding table column.
PaKo
P.S. This does what you asked for. But I wonder if you described your use-case well. If you don't know how to describe use-case, don't ask questions.
P.P.S. Keep in mind to clear the #{pageFlowScope.vendorId} on return to page 1 (e.g. by using setAction listener to set #{null} to it). This hint is gratis. -
Select privilege on APEX metadata tables
APEX version 2.2.1
SELECT * FROM dba_tab_privs
WHERE owner='FLOWS_020200'
AND privilege='SELECT'
AND grantee='PUBLIC'
AND table_name LIKE 'WWV_FLOW%'
AND (owner,table_name) IN (SELECT owner,TABLE_name FROM dba_tables)Why are these tables visible to everyone?! Some of them even have public synonyms to make accessing them that much easier.
Most of the publicly visible/executable APEX objects like views and APIs have security group id restrictions built into them so that's fine, but having wide-open access like this is a little unusual.
Thoughts?Well, all the public synonyms for tables/views where attempting to query that table/view would result in a ORA-00980: synonym translation is no longer valid because access to the underlying table/view is not available.
Giving views the benefit of doubt and since I don't have DBA access to apex.oracle.com, the best list I can come up with is
SELECT * FROM all_synonyms
WHERE owner='PUBLIC'
AND table_owner='FLOWS_030000'
AND table_name LIKE 'WWV_FLOW%'
and (table_owner,table_name) not in (select owner,table_name from all_tables where owner='FLOWS_030000')
and (table_owner,table_name) not in (select owner,object_name from all_objects where owner='FLOWS_030000' and object_type='PACKAGE')
and (table_owner,table_name) not in (select owner,view_name from all_views where owner='FLOWS_030000')which gives
WWV_FLOW_CUSTOM_AUTH_SSO
WWV_FLOW_INIT_HTP_BUFFER
WWV_FLOW_SESSION_SEQ
WWV_FLOW_HOT_HTTP_LINKS -
Does Apex support pivot tables?
I do this all the time in Excel, and it's really easy. If Apex could do this too, I'd consider it fully functional. If it doesn't support pivot tables, that would be an excellent feature to add to Apex 4.0 or 4.1.
(I'm using Apex 3.0 on Oracle 10gr2.)
Is there any way to do pivot tables at all?Hi,
I think it is possible. You need just write some code.
Search from forum bring lot of result
http://forums.oracle.com/forums/search.jspa?threadID=&q=pivot&objID=f137&dateRange=all&userID=&numResults=15&rankBy=10001
I hope some of those might help you
Br,Jari
Edited by: jarola on Mar 6, 2010 12:19 PM
Might help also
http://www.adp-gmbh.ch/ora/sql/examples/pivot.html -
Inline list of values from APEX views/tables
Hi All,
What table/view should I refer to get all the inline list of values from form on a table or view not reports (tabular forms). I want data similar to the one obtained for tabular form reports using APEX_APPLICATION_PAGE_RPT_COLSAppreciate your reply.
Thanks and Regards,
-SenthilI think the sun caught meVery little chance of me being similarly afflicted. Typical Scottish summer.. {noformat};-){noformat}
Maybe you are looking for
-
after i upgraded from snow leopard to mountain lion . when i try too search files on finder . it does not find any of them although all the files are still there .so i need scroll up and down for few minutes to find my file manually . what could be t
-
External HDD keeps dropping out (without ejecting itself) ~ due to 1 bad partition
Hi, As stated above, my faithful WD 1TB MyPassport HDD keeps dropping out by itself, ie. icon disappears from my desktop and I get left with a 'eject before disconnect...' message. At first it would appear to be a cable/USB/corrupt disk issue, BUT...
-
I originally had acrobat 7 in my machine when Adobe told me that they won't support it and gave me 8 by a direct download to my pc about 4 months ago. Great worked fin today i uploaded U Torrent and suddenly all my acrobat files turned into U torren
-
In the settings I see there is a tv out option
what does the tv out allow you to do? thanks c
-
How do I get firefox to stop asking me to allow personas and just let it allow them all?
I'm installing many personas but i'm tired of it asking me to allow the site all the time. Is there a way to get that to stop?