Multiple Column Ordered Lists
Hello, Trying to make multiple column ordered lists in dreamweaver where the first column is 1,2,3,4 the second column is A,B,C,D and the third is I, II, III, IV. I have tried tables but the numbers, letters and roman numerals disappear
1. John A. John I. John
2. Mark B. Mark II. Mark
3. Jim C. Jim III. Jim
4. Roni D. Roni IV. Roni
Any help would be much appreciated
Use ordered list .classes inside floated containers.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Floated Lists</title>
<style type="text/css">
#wrapper {
/**width of floats, borders, etc...**/
width: 606px;
background: #EAEAEA;
overflow: hidden; /**float containment**/
.floatLt {
float:left;
width: 200px;
border: 1px solid silver;}
.floatRt {
float:right;
width: 200px;
border: 1px solid silver}
/**ordered lists**/
.alpha li {list-style:upper-alpha}
.decimal li {list-style:decimal;}
.roman li {list-style:lower-roman;}
</style>
</head>
<body>
<div id="wrapper">
<div class="floatLt">
<ol class="alpha">
<li>List item</li>
<li>List item</li>
<li>List item</li>
<li>List item</li>
</ol>
</div>
<div class="floatLt">
<ol class="decimal">
<li>List item</li>
<li>List item</li>
<li>List item</li>
<li>List item</li>
</ol>
</div>
<div class="floatRt">
<ol class="roman">
<li>List item</li>
<li>List item</li>
<li>List item</li>
<li>List item</li>
</ol>
</div>
<!--end #wrapper --></div>
</body>
</html>
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
Similar Messages
-
Multiple Columns and List Order with Color
I am trying to take this code and enhance it by:
1. It currently displays the output in a 5 column vertical format
output1 output2 output3...
I want it to display in a scrolling 5 column vertical format
output1 output4
output2 output5
output3 output6
based on the number of data points
2. I want the first column background to be blue, the next white, the next blue, the next white, the last blue.
Any way to accomplish this..appreciate any help.
Leo
Code:
<table width="100%" border="0" cellpadding="7" cellspacing="0">
<tr>
<td colspan="5" align="left" valign="top" bgcolor="#CC6699">
<span class="datetextwhite"><a name="THURSDAY"> </a><span class="style6">Thursday, October 29th: PRE-CONFERENCE INTENSIVES</span></span></td>
</tr>
<TR>
<CFOUTPUT QUERY="q_daysschedule">
<TD valign=top><span class="bodytextbold"><span class="style16"><font face="Verdana, Arial, Helvetica, sans-serif">#q_daysschedule.time#</font></span></span><br /><span class="topNavigationBar"><a href="session.cfm?ID=201" class="topNavigationBar">#q_daysschedule.Title#</a></span></TD>
<CFIF q_daysschedule.CurrentRow MOD 5 IS 0>
</TR>
<TR></TR>
</CFIF>
</CFOUTPUT>
<tr>I find these problems easier to solve if I rearrange my data into an array. Something like this:
DataArray = ArrayNew(2);
Cols = 5;
Outputs = "output1,output2,etc";
Rows = Round(ListLen(Outputs) / Cols + .5); // 32 outputs would give you 7 rows
for (ii = 1; ii lt cols; ii = ii + 1) {
for (j = 1; j lte Rows; j = j + 1) {
DataArray[ii][j] = ListFirst(Outputs);
Outputs = ListRestOutputs;
} // rows
} // cols
// Last Column
for (ii = 1; ii lte ListLen(Outputs); ii = ii + 1 )
DataArray[cols][ii] = ListGetAt(outputs, ii);
// put spaces in blank rows
for (j = ii; j lte rows; j = j + 1)
DataArray[cols][j] = " ";
Output like this
<cfoutput>
<cfloop from = "1" to = cols index = "ThisRow">
<cfloop from = "1" to = rows index = "ThisCol">
#DataArray[ThisCol][ThisRow]#
closing tags, formatting etc -
Adding multiple columns in List Validation
HI,
I have a custom list, which has 2 date fields. In the date column, I have added a validation as below for each of the columns:
//on column one - Test Log date=[Test Log date]>=TODAY()
//on column two - Test Start date=[Test Start date]>=TODAY()
and the validation message for each of the column as : "Please enter date greater than or equal to today's date"
In the Edit mode, i dont want the validation to check.
How to add these two fields in the list validation?
ThanksHi,
According to your post, my understanding is that you want to disable column validation in the edit form.
There is no out of the box way to disable column validation only in edit form.
As a workaround, we can use the JQuery to create our own custom column validation in the new form.
There is an article about this topic, you can have a look at it.
http://www.c-sharpcorner.com/UploadFile/3a164c/custom-validations-in-sharepoint-form-using-jquery/
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
Hellow all
I have 3 Column Code,Name,Salary
I want a list item which show all 3 Data in one list item
The picture will Clear you my Requirement
Linkhttp://h1.ripway.com/Sharry2/ok.bmp
Regards
ShahzaibYou want a static list_item or a dynamic list item, which is populated by a select statement??
If you want a statis list item you can add your values from property palette; if you want a dynamic list item, I don't know if it is possible, because I have tried only with one column; you can try by make a concatenation of your columns separated by ','; for example you can try this code:
select col1||','||col2||','||col3 as your_column_name
from your table
where your conditionIf you use create_group_from_query built_in, make sure to write column name 2 times, because one is for value of list item and the other is for label.
Hope it helps you,
Fabrizio
If this answer is helpful or correct, please mark it. Thanks. -
What is the point in having multiple columns in ORDER BY clause?
DB version:10gR2
When using ORDER BY clause, the rows are always sorted according to the first column in the ORDER BY clause. So, what is point in having multiple columns in the ORDER BY clause(i always see this in production codes)?
For the below SQLs' from SCOTT schema, the result sets are always ordered according the first column ename. When i added job asc and job desc, the result set doesn't change.
SQL> select * from emp order by ename;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7876 ADAMS CLERK 7788 23-MAY-87 1100 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
7782 CLARK MANAGER 7839 09-JUN-81 2450 20
7902 FORD ANALYST 7566 03-DEC-81 3000 20
7900 JAMES CLERK 7698 03-DEC-81 950 30
7566 JONES MANAGER 7839 02-APR-81 2975 20
7839 KING PRESIDENT 17-NOV-81 5000 20
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7934 MILLER CLERK 7782 23-JAN-82 1300 20
7788 SCOTT ANALYST 7566 19-APR-87 3000 20
7369 SMITH CLERK 7902 17-DEC-80 800 20
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
14 rows selected.
SQL> select * from emp order by ename, job;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7876 ADAMS CLERK 7788 23-MAY-87 1100 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
7782 CLARK MANAGER 7839 09-JUN-81 2450 20
7902 FORD ANALYST 7566 03-DEC-81 3000 20
7900 JAMES CLERK 7698 03-DEC-81 950 30
7566 JONES MANAGER 7839 02-APR-81 2975 20
7839 KING PRESIDENT 17-NOV-81 5000 20
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7934 MILLER CLERK 7782 23-JAN-82 1300 20
7788 SCOTT ANALYST 7566 19-APR-87 3000 20
7369 SMITH CLERK 7902 17-DEC-80 800 20
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
14 rows selected.
SQL> select * from emp order by ename, job desc;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7876 ADAMS CLERK 7788 23-MAY-87 1100 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
7782 CLARK MANAGER 7839 09-JUN-81 2450 20
7902 FORD ANALYST 7566 03-DEC-81 3000 20
7900 JAMES CLERK 7698 03-DEC-81 950 30
7566 JONES MANAGER 7839 02-APR-81 2975 20
7839 KING PRESIDENT 17-NOV-81 5000 20
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7934 MILLER CLERK 7782 23-JAN-82 1300 20
7788 SCOTT ANALYST 7566 19-APR-87 3000 20
7369 SMITH CLERK 7902 17-DEC-80 800 20
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
14 rows selected.Because there is only one employee with the name SCOTT,FORD ...etc in the emp table and your first column in the order by list is ename
you spot the difference now
SQL> select * from emp order by job;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7788 SCOTT ANALYST 7566 19-APR-87 00:00:00 3000 20
7902 FORD ANALYST 7566 03-DEC-81 00:00:00 3000 20
7934 MILLER CLERK 7782 23-JAN-82 00:00:00 1300 10
7900 JAMES CLERK 7698 03-DEC-81 00:00:00 950 30
7369 SMITH CLERK 7902 17-DEC-80 00:00:00 800 20
7876 ADAMS CLERK 7788 23-MAY-87 00:00:00 1100 20
7698 BLAKE MANAGER 7839 01-MAY-81 00:00:00 2850 30
7566 JONES MANAGER 7839 02-APR-81 00:00:00 2975 20
7782 CLARK MANAGER 7839 09-JUN-81 00:00:00 2450 10
7839 KING PRESIDENT 17-NOV-81 00:00:00 5000 10
7844 TURNER SALESMAN 7698 08-SEP-81 00:00:00 1500 0 30
7654 MARTIN SALESMAN 7698 28-SEP-81 00:00:00 1250 1400 30
7521 WARD SALESMAN 7698 22-FEB-81 00:00:00 1250 500 30
7499 ALLEN SALESMAN 7698 20-FEB-81 00:00:00 1600 300 30
14 rows selected.
Elapsed: 00:00:00.00
SQL> select * from emp order by job, deptno asc;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7902 FORD ANALYST 7566 03-DEC-81 00:00:00 3000 20
7788 SCOTT ANALYST 7566 19-APR-87 00:00:00 3000 20
7934 MILLER CLERK 7782 23-JAN-82 00:00:00 1300 10
7369 SMITH CLERK 7902 17-DEC-80 00:00:00 800 20
7876 ADAMS CLERK 7788 23-MAY-87 00:00:00 1100 20
7900 JAMES CLERK 7698 03-DEC-81 00:00:00 950 30
7782 CLARK MANAGER 7839 09-JUN-81 00:00:00 2450 10
7566 JONES MANAGER 7839 02-APR-81 00:00:00 2975 20
7698 BLAKE MANAGER 7839 01-MAY-81 00:00:00 2850 30
7839 KING PRESIDENT 17-NOV-81 00:00:00 5000 10
7654 MARTIN SALESMAN 7698 28-SEP-81 00:00:00 1250 1400 30
7844 TURNER SALESMAN 7698 08-SEP-81 00:00:00 1500 0 30
7521 WARD SALESMAN 7698 22-FEB-81 00:00:00 1250 500 30
7499 ALLEN SALESMAN 7698 20-FEB-81 00:00:00 1600 300 30
14 rows selected.
Elapsed: 00:00:00.01
SQL> select * from emp order by job,deptno desc;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7902 FORD ANALYST 7566 03-DEC-81 00:00:00 3000 20
7788 SCOTT ANALYST 7566 19-APR-87 00:00:00 3000 20
7900 JAMES CLERK 7698 03-DEC-81 00:00:00 950 30
7369 SMITH CLERK 7902 17-DEC-80 00:00:00 800 20
7876 ADAMS CLERK 7788 23-MAY-87 00:00:00 1100 20
7934 MILLER CLERK 7782 23-JAN-82 00:00:00 1300 10
7698 BLAKE MANAGER 7839 01-MAY-81 00:00:00 2850 30
7566 JONES MANAGER 7839 02-APR-81 00:00:00 2975 20
7782 CLARK MANAGER 7839 09-JUN-81 00:00:00 2450 10
7839 KING PRESIDENT 17-NOV-81 00:00:00 5000 10
7844 TURNER SALESMAN 7698 08-SEP-81 00:00:00 1500 0 30
7654 MARTIN SALESMAN 7698 28-SEP-81 00:00:00 1250 1400 30
7521 WARD SALESMAN 7698 22-FEB-81 00:00:00 1250 500 30
7499 ALLEN SALESMAN 7698 20-FEB-81 00:00:00 1600 300 30
14 rows selected.
Elapsed: 00:00:00.01
SQL> -
Design a single template for multiple reports with different column order
Hi,
I need to migrate the existing reports from SQL Server Reporting Services to Crystal Report 2008, and the column order in the report is very important to the clients since clients have existing code to ingest these reports into their database. Now I want to create a single template with lot of parameters for all reports. My question is how I might use one template to create multiple reports with different column orders in the reports?
For example, client A has the following column order in their report: firstName, LastName, DateBirth, SSN. Client B has the following column order in their report: SSN, DateBirth, LastName, FirstName. Can I use one template to create these multiple reports?
Thanks in advance.-As I mentioned you can find Template Field object in Insert menu of crystal report Designer 2008.
As soon as you select Template Field object you will be able to see a box beside ur mouse cursor. Drag and drop this box at required place. Now when you place this object in report you will get some thing like this "<TemplateField1>" listed under Formula Fields tree. Double click "<TemplateField1>" formula to add your conditions.
-I have not tested it for large amount of Customers. However as the number of customer increases the number of conditions will get increased.
For the customer that want the same ordering of columns you can put those customers under one condition.
for Example...
if(?Client in ['clientA','clientA']) then
<TableName>.<Field>......
-What do you mean be 40 columns? Do you mean 40 fields or you want to show 40 columns in report? Please elaborate.
Regards,
Amrita
Edited by: Amrita Singh on May 21, 2009 7:54 AM -
Order by multiple columns and ROWNUM
Hi -
I am trying to use rownum in colloboration with order by multiple columns but I guess I am doing something wrong
and I am always getting a single row per emp_id rather than getting single row for a particular emp_id,role_id,inst_id,exp_date.
Below is the table ddl and data insertion script.
====
create table tab_details
(emp_id varchar2(50),
role_id integer,
inst_id integer,
exp_date date,
chk_ind char(1),
trans_type char(1),
trans_date date);
insert all
into tab_details values ('JBRAMS',12,4556,'07/15/2011','Y','U','05/21/2011')
into tab_details values ('JBRAMS',12,4556,'07/15/2011','N','U','05/22/2011')
into tab_details values ('JBRAMS',12,4556,'07/15/2011','N','D','05/23/2011')
into tab_details values ('JBRAMS',12,4556,'07/15/2011','N','U','05/24/2011')
into tab_details values ('KCASOT',98,9001,'08/03/2011','Y','U','04/11/2011')
into tab_details values ('KCASOT',98,9001,'08/03/2011','N','U','04/12/2011')
into tab_details values ('KCASOT',98,9001,'08/03/2011','N','U','04/13/2011')
into tab_details values ('JBRAMS',43,7875,'06/28/2011','Y','U','03/19/2011')
into tab_details values ('JBRAMS',43,7875,'06/28/2011','N','U','03/20/2011')
into tab_details values ('BHAYEN',28,4098,'07/01/2011','Y','U','02/13/2011')
into tab_details values ('BHAYEN',28,4098,'07/01/2011','N','U','02/14/2011')
into tab_details values ('BHAYEN',28,4098,'07/01/2011','N','D','02/15/2011')
into tab_details values ('BHAYEN',28,4098,'07/01/2011','Y','U','02/16/2011')
into tab_details values ('BHAYEN',28,4098,'07/01/2011','N','U','02/17/2011')
into tab_details values ('BHAYEN',28,4098,'07/01/2011','N','U','02/18/2011')
select * from dual;
commit;
====
So for the first four rows inserted above, I need only following row:
'JBRAMS',12,4556,'07/15/2011','N','U','05/22/2011'
Basically, I need only the rows with chk_ind='N' and trans_type<>'D' and if there is a row with
chk_ind='N' and trans_type='U' after trans_type='D" for a emp_id,role_id,inst_id,exp_date then it should be ignored.
Following are the only rows I am looking for:
'JBRAMS',12,4556,'07/15/2011','N','U','05/22/2011'
'KCASOT',98,9001,'08/03/2011','N','U','04/12/2011'
'JBRAMS',43,7875,'06/28/2011','N','U','03/20/2011'
'BHAYEN',28,4098,'07/01/2011','N','U','02/14/2011'
'BHAYEN',28,4098,'07/01/2011','N','U','02/17/2011'
Please share your thought over this.
Thanks,
-SeenuHi, Seenu,
Seenu001 wrote:
Hi -
I am trying to use rownum in colloboration with order by multiple columns but I guess I am doing something wrong
and I am always getting a single row per emp_id rather than getting single row for a particular emp_id,role_id,inst_id,exp_date.Thanks for posting the CREATE TABLE and INSERT statements. It would help if you posted your query, too: even if it's not qute right, it could help to understand the problem, and modifying it might be more efficient than writing a completely new query.
What are the multiple columns you are sorting on? Why isn't trans_date enough?
Here's one way:
WITH got_okay AS
SELECT t.*
, CASE
WHEN LAG (chk_ind) OVER ( PARTITION BY emp_id
, role_id
, inst_id
, exp_date
ORDER BY trans_date
) = 'N'
AND LAG (trans_type) OVER ( PARTITION BY emp_id
, role_id
, inst_id
, exp_date
ORDER BY trans_date
) IN ('D', 'U')
THEN 0
ELSE 1
END AS okay
FROM tab_details t
SELECT * -- or list all columns except d_cnt
FROM got_okay
WHERE chk_ind = 'N'
AND trans_type != 'D'
AND ( trans_type != 'U'
OR okay = 1
; -
Master-detail list - how to spread over multiple columns
I am using the master-detail functionality to create a image viewer.
I have a long list of master thumbnails, and rather than having them go down the page in one column, I would like to make them spread over 2 or 3 columns before the detail column.
(example of format I am trying to achieve - http://www.franbainbridgephotography.com.au/gallery.html (I dont mind whether master thumbnails are on right or left of detail photo))
You can see my problem on http://www.wcwra.com/webpages/images.php
Is this possible with the master-detail functionality?
Thank you!The brilliant David Powers has fixed this for me on the main forum (vw2ureg was v close). David's answer is :
There is no way of making a single dataset repeat in multiple columns, because it's simply one element being repeated over and over.
However, with a little out of the box thinking, you can do it quite easily with thumbnails. Instead of putting the master column repeat region in a block level element, use an inline element, <span>. Images are treated by browsers as inline elements, so this should work just fine. Change the following code from this:
<div spry:region="dsPhotos" class="MasterContainer">
<div class="MasterColumn" spry:repeat="dsPhotos" spry:setrow="dsPhotos"
spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{Caption}</div>
</div>
to this:
<div spry:region="dsPhotos" class="MasterContainer">
<span class="MasterColumn" spry:repeat="dsPhotos" spry:setrow="dsPhotos"
spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{Caption}</span>
</div>
In your CSS, set the width of the MasterColumn class to the width of your thumbnails, and the width of MasterContainer so that it's wide enough to accommodate two or more thumbnails. The thumbnails will flow into the column two or three abreast. -
Conditional order by clause with multiple columns
I would like to know whether it is possible to include multiple columns in a conditional order by clause.
Ex: I have written the following PL / SQL :
CREATE PROCEDURE GetProducts
@OrderBy VARCHAR(50),
@Input2 VARCHAR(30)
AS
BEGIN
SET NOCOUNT ON
SELECT Id, ProductName, Description, Price, Quantity
FROM Products
WHERE ProductName LIKE @Input2
ORDER BY
CASE
WHEN @OrderBy = 'ProductNameAsc' THEN ProductName
END ASC,
CASE
WHEN @OrderBy = 'ProductNameDesc' THEN ProductName
END DESC
END
Now I want to include when the Orderby - "Productnameasc" then order by productname, price, stdate
else
orderby productname, crdate, category
Could this be done? I tried it, but couldn't get this to work.
Any help is greatly appreciated.Since matching ORDER BY columns have different data types (first column for CLERK is sal - number, first column for MANAGER deptno is number but first column for "else" is a string) we need to convert number to string but preserve number sort order. Since DEPTNO is NUMBER(2) we will use TO_CHAR with format 'S00'. Since SAL is NUMBER(7,2) we will use TO_CHAR with format model 'S00000D00'. For EMPNO we will use TO_CHAR with format model 'S0000'.
select deptno,
empno,
ename,
job,
sal
from emp
order by case job
when 'CLERK' then to_char(sal,'S00000D00')
when 'MANAGER' then to_char(deptno,'S00')
else ename
end,
case job
when 'CLERK' then to_char(deptno,'S00')
else job
end,
case job
when 'CLERK' then job
when 'MANAGER' then to_char(empno,'S0000')
end
DEPTNO EMPNO ENAME JOB SAL
20 7369 SMITH CLERK 800
30 7900 JAMES CLERK 950
20 7876 ADAMS CLERK 1100
10 7934 MILLER CLERK 1300
10 7782 CLARK MANAGER 2450
20 7566 JONES MANAGER 2975
30 7698 BLAKE MANAGER 2850
30 7499 ALLEN SALESMAN 1600
20 7902 FORD ANALYST 3000
10 7839 KING PRESIDENT 5000
30 7654 MARTIN SALESMAN 1250
DEPTNO EMPNO ENAME JOB SAL
20 7788 SCOTT ANALYST 3000
30 7844 TURNER SALESMAN 1500
30 7521 WARD SALESMAN 1250
14 rows selected.
SQL> SY. -
How to get and set the column order in SharePoint list forms
Hi,
I want to read the column order of the SharePoint list forms in SharePoint 2003 sites using any of the available web services and need to set the same order
in the newly created list in SharePoint 2010.
I am able to read the fields from SharePoint 2003 and creating the list with same fields in SharePoint 2010, but the column order is not maintaining in
list forms.
Also, I need to created the views from 2003 site to 2010 site.
Please help me...
Thanks in advance...Hi,
Please try to use the following code to programatically change the order.
SPList list = web.Lists["Example List"];
if (list.ContentTypes.Count > 0)
SPContentType ct = list.ContentTypes[0];
string[] names = {"Example_x0020_One", "Example_x0020_Two", "Example_x0020_Three"};
ct.FieldLinks.Reorder(names);
ct.Update();
Here is a similar thread for your reference:
https://social.technet.microsoft.com/Forums/en-US/ce66fd65-2882-4bda-8142-89e116d8b90f/how-to-set-the-order-of-the-fields-in-list-forms?forum=sharepointdevelopmentprevious
Best Regards
Dennis Guo
TechNet Community Support -
Creating Select List with multiple columns
I want to create a select list with multiple columns. I followed the demo application model described in the by Denes Kubicek (Currently my reference for APEX !!)
The code is as follows:
CREATE OR REPLACE FUNCTION getcrops(p_cropid IN NUMBER)
RETURN VARCHAR2
IS
v_cropid VARCHAR2 (400);
v_fcode VARCHAR2 (400);
v_product VARCHAR2 (400);
v_var VARCHAR2 (400);
v_fname VARCHAR2 (400);
v_acres VARCHAR2 (400);
v_style_start VARCHAR2 (400);
v_style_end VARCHAR2 (400);
v_return VARCHAR2 (400);
BEGIN
FOR c IN (select "CROP"."CROPID" as "CROP ID",
"CROP"."FIELDCODE" as "FIELD CODE",
"CARROTPRODUCTLIST"."CARROTPRODUCTNAME" as "PRODUCT",
"VARIETYLIST"."VARIETYNAME" as "VARIETY",
"FIELD"."FIELDNAME" as "FIELD NAME",
"CROP"."SIZEINACRES" as "ACRES"
from "FIELD" "FIELD",
"CARROTPRODUCTLIST" "CARROTPRODUCTLIST",
"VARIETYLIST" "VARIETYLIST",
"CROP" "CROP"
where "CROP"."CARROTPRODUCTTYPE"="CARROTPRODUCTLIST"."CARROTPRODUCTID"
and "CROP"."VARIETYID"="VARIETYLIST"."VARIETYLISTID"
and "CROP"."FIELDID"="FIELD"."FIELDID")
LOOP
v_cropid := TO_CHAR (c.'CROP ID', 'FML999G999G999G999G990');
v_fcode := c.'FIELD CODE';
v_product := c.'PRODUCT';
v_var := c.'VARIETY';
v_fname :=c.'FIELD NAME';
v_acres :=c.'ACRES';
FOR i IN 1 .. 12 - LENGTH (c."CROP ID")
LOOP
v_cropid := v_cropid || ' ';
END LOOP;
FOR i IN 1 .. 12 - LENGTH (c.'FIELD CODE')
LOOP
v_fcode := v_fcode || ' ';
END LOOP;
FOR i IN 1 .. 12 - LENGTH (c.'PRODUCT')
LOOP
v_product := v_product || ' ';
END LOOP;
FOR i IN 1 .. 12 - LENGTH (c.'VARIETY')
LOOP
v_var := v_var || ' ';
END LOOP;
FOR i IN 1 .. 12 - LENGTH (c.'FIELD NAME')
LOOP
v_fname := v_fname || ' ';
END LOOP;
FOR i IN 1 .. 12 - LENGTH (c.'ACRES')
LOOP
v_acres := v_acres || ' ';
END LOOP;
v_return := v_cropid || v_fcode || v_product || v_var || v_fname || v_acres;
END LOOP;
RETURN v_return;
END;
I created this anonymous Pl/SQL function at a application level ..Then I followed up to create a select list with a function inside. However I could not create select list with the command suggested in the demo which is
select getcrops(cropid) d, cropid r from crop;
APEX (2.1) returns a error message. What am I missing ? Should the function be called from somewhere else after creating a regular select list..? Where the functions (Pl/SQL) should be ideally stored for application level access..? and for across application level access ? How can I check the function works good. Help is appreciated.Still really one column.
If they need to be independent then you've got to have three selection lists.
% -
Selection list with multiple columns
How can i create a selection list with multiple columns?
Still really one column.
If they need to be independent then you've got to have three selection lists.
% -
Select list with multiple columns
I want to create a select list with multiple column option. What are the options. Any developments in apex 3.0.1 ? Thanks in advance. I tried the tutorials by Kubicek.
I am kind of stuck to see the function entry inside LOV definition returns a error.Still really one column.
If they need to be independent then you've got to have three selection lists.
% -
hello all ,
how to create a list with multiple columns ? can anyone share some examples or code snippetsWhat I would usually do is create a movieclip/sprite that contains a row with every column in it (each column being a textfield). Then pile up the rows one atop the other (using Actionscript) as they are populated with data.
-
Dear All,
Anybody can help me in the scenario....
I want to display multiple columns (each column may contain multiple values) in java frame. What java control should i use? java.awt.List cannot show multiple columns. Remember the column and rows values which i want to display are not coming from database. It can be like i have an array for columns and array of row values for each column.
I would be grateful if someone email me the solution at [email protected]
Waiting for prompt reply.
Thanks
KamranWhat about AWT.table or Swing.JTable ?
Maybe you are looking for
-
Application server file path vaidation
I have written the code for application server file path validation. DATA : l_fname TYPE filename-fileintern." type c. DATA : l_filpath TYPE filename-fileintern, l_filname(40) TYPE c. PARAMETER : p_sucfil LIKE rfpdo-rfbifile OBLIGATORY.
-
I moved all of my photos to an external disk. No other backup. Big mistake. Now, how do I transfer photos on my iPhone (albums, events, faces) to my MacBook iPhoto library, which is now empty?
-
Can anyone explain why this API was changed in R12 to include 'p_rsrc_txn_rec'? When a production batch is completed any resource transactions with actual usage = 0 are no longer available (same in 11i & R12) Currently in 11i we use this API to updat
-
How to pass parameters to servlet with POST with Business Service OSB
Hi all. I am newby in OSB. I am trying to send some values through a POST call to a servlet. I know how to call the servlet with Business Service of type "Messaging Service". I send the parameters of type Text. I have tried several ways, but I don`t
-
Why does my Launchpad background revert to default in Mountain Lion?
This is a very minor issue but it has me curious to know the reason. When I activate Launchpad I use ctl+opt+cmd+B to cycle through the background effects and choose blurred black and white instead of blurred colour. My setting never seems to stick t