Need help - payment type selection
I need some help with this.
I have 4 different payment types on my registration buy online form. I want to be able to display relevant information depending on which type is selected;
if cc is selected then display cc input fields then process through payment gateway on submit
if phone for payment is selected then display phone number and times to call
if bank transfer is selected then display bank detail
if paypal is selected then process on paypal on submit.
Has anyone done this before?
Any help will be appreciated.
Hey there, how is your Javascript/jQuery and CSS skills?
These will need to be implemented so it shows hide content depending on what is chosen.
Similar Messages
-
I need help with a SELECT query - help!
Hello, I need help with a select statement.
I have a table with 2 fields as shown below
Name | Type
John | 1
John | 2
John | 3
Paul | 1
Paul | 2
Paul | 3
Mark | 1
Mark | 2
I need a query that returns everything where the name has type 1 or 2 but not type 3. So in the example above the qery should bring back all the "Mark" records.
Thanks,
IanOr, if the types are sequential from 1 upwards you could simply do:-
SQL> create table t as
2 select 'John' as name, 1 as type from dual union
3 select 'John',2 from dual union
4 select 'John',3 from dual union
5 select 'Paul',1 from dual union
6 select 'Paul',2 from dual union
7 select 'Paul',3 from dual union
8 select 'Paul',4 from dual union
9 select 'Mark',1 from dual union
10 select 'Mark',2 from dual;
Table created.
SQL> select name
2 from t
3 group by name
4 having count(*) <= 2;
NAME
Mark
SQL>Or another alternative if they aren't sequential:
SQL> ed
Wrote file afiedt.buf
1 select name from (
2 select name, max(type) t
3 from t
4 group by name
5 )
6* where t < 3
SQL> /
NAME
Mark
SQL>Message was edited by:
blushadow -
As usual I have been stuck for a while on what is probably a very simple solution so perhaps someone can help me, thanks.
I have a portfolio page to which I post a url to filter the portfolio type (0, 1 or 2) and display the results.
It works ok except that I can't get the url right to show all records. I have tried things like
/portfolio.php?websitetype=1&2
and
/portfolio.php?websitetype=*
/portfolio.php?websitetype>0
Perhaps I need to change my select?
$query_portfolio = "SELECT * FROM portfoliodb WHERE portfoliodb.websitetype='". $_GET['websitetype'] ."' AND portfoliodb.visible = 1 ORDER BY portfoliodb.portfolio_id DESC";bikeman01 wrote:
Ok I've now got it working as suggested so that's a big improvement, thanks but it's not quite what I was after. What I want is for all records to be retrieved by default when there is no url suffix and not require ?websitetype=ALL
That is not what your OP asked for!
It works ok except that I can't get the url right to show all records. I have tried things like
/portfolio.php?websitetype=1&2
and
/portfolio.php?websitetype=*
/portfolio.php?websitetype>0
// determine if the URL parameter for websitetype is set.
if (isset($_GET['websitetype'])) {
// run a query to filter only selected types
// based off value of URL parameter
$query_portfolio = "SELECT *
FROM portfoliodb
WHERE portfoliodb.websitetype='". $_GET['websitetype'] ."'
AND portfoliodb.visible = 1
ORDER BY portfoliodb.portfolio_id DESC";
// else if the URL parameter for websitetype is not set.
} else {
// run query to display ALL types
$query_portfolio = "SELECT *
FROM portfoliodb
ORDER BY portfoliodb.portfolio_id DESC";
// end condition if the URL parameter for websitetype is set. -
Need help in writing SELECT (strange, to many data in output?)
Hi,
I have:drop table jk_t1;
drop table jk_t2;
create table jk_t1 (
c1 number,
c2 varchar2(3),
c3 number
create table jk_t2 (
d1 number primary key,
d2 varchar2(4)
alter table jk_t1 add constraint t1_t2_fk foreign key (c3) references jk_t2(d1);
insert into jk_t2 values (1,'T2_1');
insert into jk_t1 values (1,'A11',1);
insert into jk_t1 values (2,'A21',1);
commit;I need to write a SELECT to get an output as:<ALL>
<D1>1</D1>
<D2>T2_1</D2>
<INN>
<T1>
<ROW><C1>1</C1><C2>A11</C2><C3>1</C3></ROW>
<ROW><C1>2</C1><C2>A21</C2><C3>1</C3></ROW>
</T1>
</INN>
</ALL>I'm trying:SELECT XMLElement("ALL",
extract(XMLType(CURSOR(SELECT t2.*, XMLElement("T1",extract(XMLType(CURSOR(
SELECT t1.*
FROM jk_t1 t1
WHERE t1.c3=t2.d1
)), '//ROW')) as inn
FROM jk_t2 t2
ORDER BY d2)
),'//ROW/*')
) AS output
FROM dual;but the output is<ALL>
<D1>1</D1>
<D2>T2_1</D2>
<INN>
<T1>
<ROW><C1>1</C1><C2>A11</C2><C3>1</C3></ROW>
<ROW><C1>2</C1><C2>A21</C2><C3>1</C3></ROW>
</T1>
</INN>
<C1>1</C1>
<C2>A11</C2>
<C3>1</C3>
<C1>2</C1>
<C2>A21</C2>
<C3>1</C3>
</ALL>What SELECT should it be to give me the correct output?
Thanks in advance,
JackKHi,
Drop the CURSOR thing, and use only SQL/XML functions :
SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production
CORE 10.2.0.5.0 Production
TNS for 64-bit Windows: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 - Production
SQL>
SQL> set long 5000
SQL>
SQL> select xmlelement("ALL",
2 xmlelement("D1", d1)
3 , xmlelement("D2", d2)
4 , xmlelement("INN",
5 xmlelement("T1",
6 xmlagg(
7 xmlelement("ROW",
8 xmlforest(c1, c2, c3)
9 )
10 )
11 )
12 )
13 ).extract('/*') -- for display purpose only
14 from jk_t2 t2
15 join jk_t1 t1 on t1.c3 = t2.d1
16 group by t2.d1, t2.d2 ;
XMLELEMENT("ALL",XMLELEMENT("D
<ALL>
<D1>1</D1>
<D2>T2_1</D2>
<INN>
<T1>
<ROW>
<C1>1</C1>
<C2>A11</C2>
<C3>1</C3>
</ROW>
<ROW>
<C1>2</C1>
<C2>A21</C2>
<C3>1</C3>
</ROW>
</T1>
</INN>
</ALL>
{code} -
Need help using the selection tool
Hi all,
I have some strange (to me) occurrences while using the 'quick selection tool'...
Explanation
I'm using PS Elements 11 on a Win 7 (64) PC.
What I want to do is to create a new pic from an existing pic. The existing pic's background is unsuitable for what I want. But the FG is what I need. I thought that selecting the FG object and placing into a new pic would be what I needed using the <quick selection tool>.
To do this, I am trying to use the <quick selection tool>. I've had varying degrees of success using it. One main thing I don't understand & pretty much renders my project useless & undoable, is the fact that whenever I use <refine edge> so that I can refine my edge selection, my pic is immediately lost or taken away. Since I have no idea as to what's happening, I am forced to close the pic (W/O saving changes, of course) & then re-opening the pic. All's well until I click the <refine edge> button again, then, my pic disappears AGAIN!
My guess is that maybe the pic is somehow transformed to a layer or something. But, how can I turn this behavior off and not make my pic disappear??
There are a few more details about this <selection tool> that I'm muddy on. Is there something where I can read more about its use? I would love to know more, but how? Where?
I've now read the online manual part about selection tools. Although it shed some light, I'm still needing more.
I am not a constant user of PSE, rather, I only use it on occasions. Normally, I use its scanning features. I may play around with a few other features, but I also know that PSE offers many other powerful features, I rarely, if ever, use.This is the Photoshop forum. You want the Photoshop Elements forum:
Photoshop Elements -
Need help for SQL SELECT query to fetch XML records from Oracle tables having CLOB field
Hello,
I have a scenario wherein i need to fetch records from several oracle tables having CLOB fields(which is holding XML) and then merge them logically to form a hierarchy XML. All these tables are related with PK-FK relationship. This XML hierarchy is having 'OP' as top-most root node and ‘DE’ as it’s bottom-most node with One-To-Many relationship. Hence, Each OP can have multiple GM, Each GM can have multiple DM and so on.
Table structures are mentioned below:
OP:
Name Null Type
OP_NBR NOT NULL NUMBER(4) (Primary Key)
OP_DESC VARCHAR2(50)
OP_PAYLOD_XML CLOB
GM:
Name Null Type
GM_NBR NOT NULL NUMBER(4) (Primary Key)
GM_DESC VARCHAR2(40)
OP_NBR NOT NULL NUMBER(4) (Foreign Key)
GM_PAYLOD_XML CLOB
DM:
Name Null Type
DM_NBR NOT NULL NUMBER(4) (Primary Key)
DM_DESC VARCHAR2(40)
GM_NBR NOT NULL NUMBER(4) (Foreign Key)
DM_PAYLOD_XML CLOB
DE:
Name Null Type
DE_NBR NOT NULL NUMBER(4) (Primary Key)
DE_DESC NOT NULL VARCHAR2(40)
DM_NBR NOT NULL NUMBER(4) (Foreign Key)
DE_PAYLOD_XML CLOB
+++++++++++++++++++++++++++++++++++++++++++++++++++++
SELECT
j.op_nbr||'||'||j.op_desc||'||'||j.op_paylod_xml AS op_paylod_xml,
i.gm_nbr||'||'||i.gm_desc||'||'||i.gm_paylod_xml AS gm_paylod_xml,
h.dm_nbr||'||'||h.dm_desc||'||'||h.dm_paylod_xml AS dm_paylod_xml,
g.de_nbr||'||'||g.de_desc||'||'||g.de_paylod_xml AS de_paylod_xml,
FROM
DE g, DM h, GM i, OP j
WHERE
h.dm_nbr = g.dm_nbr(+) and
i.gm_nbr = h.gm_nbr(+) and
j.op_nbr = i.op_nbr(+)
+++++++++++++++++++++++++++++++++++++++++++++++++++++
I am using above SQL select statement for fetching the XML records and this gives me all related xmls for each entity in a single record(OP, GM, DM. DE). Output of this SQL query is as below:
Current O/P:
<resultSet>
<Record1>
<OP_PAYLOD_XML1>
<GM_PAYLOD_XML1>
<DM_PAYLOD_XML1>
<DE_PAYLOD_XML1>
</Record1>
<Record2>
<OP_PAYLOD_XML2>
<GM_PAYLOD_XML2>
<DM_PAYLOD_XML2>
<DE_PAYLOD_XML2>
</Record2>
<RecordN>
<OP_PAYLOD_XMLN>
<GM_PAYLOD_XMLN>
<DM_PAYLOD_XMLN>
<DE_PAYLOD_XMLN>
</RecordN>
</resultSet>
Now i want to change my SQL query so that i get following output structure:
<resultSet>
<Record>
<OP_PAYLOD_XML1>
<GM_PAYLOD_XML1>
<GM_PAYLOD_XML2> .......
<GM_PAYLOD_XMLN>
<DM_PAYLOD_XML1>
<DM_PAYLOD_XML2> .......
<DM_PAYLOD_XMLN>
<DE_PAYLOD_XML1>
<DE_PAYLOD_XML2> .......
<DE_PAYLOD_XMLN>
</Record>
<Record>
<OP_PAYLOD_XML2>
<GM_PAYLOD_XML1'>
<GM_PAYLOD_XML2'> .......
<GM_PAYLOD_XMLN'>
<DM_PAYLOD_XML1'>
<DM_PAYLOD_XML2'> .......
<DM_PAYLOD_XMLN'>
<DE_PAYLOD_XML1'>
<DE_PAYLOD_XML2'> .......
<DE_PAYLOD_XMLN'>
</Record>
<resultSet>
Appreciate your help in this regard!Hi,
A few questions :
How's your first query supposed to give you an XML output like you show ?
Is there something you're not telling us?
What's the content of, for example, <OP_PAYLOD_XML1> ?
I don't think it's a good idea to embed the node level in the tag name, it would make much sense to expose that as an attribute.
What's the db version BTW? -
Hi Guys,
I need ur help regarding my coding: AT LINE SELECTION.
Here is my codes, but it is not working.
AT LINE-SELECTION.
IF ( wa_list-auart = 'ZCS' AND wa_list-auart = 'ZSA' ).
IF NOT wa_list-sonum IS INITIAL.
SET PARAMETER ID 'AUN' FIELD wa_list-sonum.
CALL TRANSACTION 'VF01' AND SKIP FIRST SCREEN.
CLEAR wa_list-sonum.
ENDIF.
ELSE.
IF NOT wa_list-drnum IS INITIAL.
SET PARAMETER ID 'AUN' FIELD wa_list-drnum.
CALL TRANSACTION 'VF01' AND SKIP FIRST SCREEN.
CLEAR wa_list-drnum.
ENDIF.
ENDIF.
The requirements are:
1. Data selection on column Item + Magnifying Glass Icon click will direct user to transaction code VF01 ====>><b>its working, but the problem is when i click the line item no 1, it wasnt work. Line item no 1 only but the rest items its workin.</b>
2. Sales Order No (VBAK-VBELN) will be the default value on document column of VF01 if Sales Order Type (VBAK-AUART) = ZCS or ZSA else Delivery No (LIKP-VBELN) will be the default value on document column of VF01. ===><b>the problem is when i click the line item, there is no default Sales Order No or Delivery NO on parameter 'AUN' <Document column> based on if statement.</b>
3. Warning Message Select a line item to proceed. will be displayed if no line item selected on magnifying glass icon click. ===> <b>help me on how to codes this one if i click to a non line item, there should be a Warning Message Select a line item to proceed.</b>
Thanks in advance.
zhien.hi joycee
i think one of the command written by u
:-"IF NOT wa_list-sonum IS INITIAL."
shoud be written like
:- IF wa_list-sonum IS NOT INITIAL. -
Need help : cannot anymore select local info in site definition only remote
Hi
I made the mistake choosing in site deffintion for remote info and not local info
Now it seems impossible to reverse it cannot anymore select local info in site definition only remote
So now I can not make the site normally.
I've closed dreamweaver a couple times and tried it again and even my pc but it seems to be something irreparable?
Does anyone know a better idea than reinstall?
thank you
PaulYou are on the Basic Tab of the Site definition dialog in DW CS3. Unfortunately, that's also the more confusing way to define a site. Nevertheless, you'll note that there are 3 selections across the top of the dialog:
1. Editing Files
2. Testing Files
3. Sharing Files
Have you already filled out the first two?
A site definition in DW *could* only have the first of those three filled out - you really only need the local site defined until you are ready to upload your files (assuming you are only creating static pages - that is, pages without server scripting).
To define most remote sites, all you need to do is to select that you connect to your remote server using FTP, and then to state the folder within which your website files are stored on the remote server (often this is a folder called 'www' or 'wwwroot' or 'public_html').
In my mind, the better way to define a site is to go right to the Advanced tab - it's less confusing because you just fill in all of the fields without going through this 'wizard-type' interface....
So - does that help at all? -
Need Help With A Select Staement
This is my data set.
OPEN_DATE CLOSE_DATE
02-JAN-08 02-JAN-08
02-JAN-08 02-JAN-08
02-JAN-08 02-JAN-08
02-JAN-08 03-JAN-08
04-JAN-08 04-JAN-08
05-JAN-08
07-JAN-08
07-JAN-08 07-JAN-08
07-JAN-08 07-JAN-08
08-JAN-08 08-JAN-08
08-JAN-08
02-JAN-08
02-JAN-08
08-JAN-08
09-JAN-08
I'm need totals for those that are opened and closed per day. Here is what I'm trying to achieve...
Status Value DATE
Open 6 02-JAN-08
Closed 3 02-JAN-08
Open 0 03-JAN-08
Closed 1 03-JAN-08
Open 1 04-JAN-08
Closed 1 04-JAN-08
Open 0 05-JAN-08
Closed 1 05-JAN-08
Open 3 07-JAN-08
Closed 2 07-JAN-08
Open 3 08-JAN-08
Closed 1 08-JAN-08
Open 1 09-JAN-08
Close 0 09-JAN-08
This select statement gets me close but the problem is how to get the ones that should have a Value of 0
select 'Open' "Status", count(*) "Value", to_char(open_date, 'DD-MON-YY') "DATE"
from usar_log2
where open_date IS NOT NULL and
to_char(open_date, 'MON-YY') = to_char(sysdate, 'MON-YY')
and (USAR_status like 'CLOSED' or usar_status like 'OPENED' or USAR_Status like 'WORKING')
group by to_char(open_date, 'DD-MON-YY')
UNION
select 'Closed' "status", count(*) "Close", to_char(close_date, 'DD-MON-YY')
from usar_log2
where close_date is not null and
to_char(close_date, 'MON-YY') = to_char(sysdate, 'MON-YY')
and (USAR_status like 'CLOSED' or usar_status like 'OPENED' or USAR_Status like 'WORKING')
group by to_char(close_date, 'DD-MON-YY')
order by 3, 1 desc;
The above select statement's results...
Status Value DATE
Open 6 02-JAN-08
Closed 3 02-JAN-08
Closed 1 03-JAN-08
Open 1 04-JAN-08
Closed 1 04-JAN-08
Closed 1 05-JAN-08
Open 3 07-JAN-08
Closed 2 07-JAN-08
Open 3 08-JAN-08
Closed 1 08-JAN-08
Open 1 09-JAN-08
But I need this instead...
Status Value DATE
Open 6 02-JAN-08
Closed 3 02-JAN-08
<----- Open 0 03-JAN-08
Closed 1 03-JAN-08
Open 1 04-JAN-08
Closed 1 04-JAN-08
<----- Open 0 05-JAN-08
Closed 1 05-JAN-08
Open 3 07-JAN-08
Closed 2 07-JAN-08
Open 3 08-JAN-08
Closed 1 08-JAN-08
Open 1 09-JAN-08
<----- Close 0 09-JAN-08
Any help would be more appreciative.Thank you...You all are great. While I'm still
looking at the various ways you all provided, from
what I have looked at so far, they don't address
05-JAN-08 which has a null open date. There are
three possiblities, maybe four. Does 05-JAN-08 have a null open date in the data you supplied?
You showed us:
OPEN_DATE CLOSE_DATE
02-JAN-08 02-JAN-08
02-JAN-08 02-JAN-08
02-JAN-08 02-JAN-08
02-JAN-08 03-JAN-08
04-JAN-08 04-JAN-08
05-JAN-08
07-JAN-08
07-JAN-08 07-JAN-08
07-JAN-08 07-JAN-08
08-JAN-08 08-JAN-08
08-JAN-08
02-JAN-08
02-JAN-08
08-JAN-08
09-JAN-08
which looks like they all have open dates.
Perhaps, if there was null open dates you should have used [code][/code] or [pre][/pre] tags around your data so it looked something like
OPEN_DATE CLOSE_DATE
02-JAN-08 02-JAN-08
02-JAN-08 02-JAN-08
02-JAN-08 02-JAN-08
02-JAN-08 03-JAN-08
04-JAN-08 04-JAN-08
05-JAN-08
07-JAN-08
07-JAN-08 07-JAN-08
07-JAN-08 07-JAN-08
08-JAN-08 08-JAN-08
08-JAN-08
02-JAN-08
02-JAN-08
08-JAN-08
09-JAN-08And then it would have required the ANSI outer join in my query to allow for outer joining on more than one column...
SQL> ed
Wrote file afiedt.buf
1 WITH t as (SELECT to_date('02-JAN-2008','DD-MON-YYYY') as open_date, to_date('02-JAN-2008','DD-MON-YYYY') as closed_date from dual union all
2 SELECT to_date('02-JAN-2008','DD-MON-YYYY'), to_date('02-JAN-2008','DD-MON-YYYY') from dual union all
3 SELECT to_date('02-JAN-2008','DD-MON-YYYY'), to_date('02-JAN-2008','DD-MON-YYYY') from dual union all
4 SELECT to_date('02-JAN-2008','DD-MON-YYYY'), to_date('03-JAN-2008','DD-MON-YYYY') from dual union all
5 SELECT to_date('04-JAN-2008','DD-MON-YYYY'), to_date('04-JAN-2008','DD-MON-YYYY') from dual union all
6 SELECT NULL, to_date('05-JAN-2008','DD-MON-YYYY') from dual union all
7 SELECT to_date('07-JAN-2008','DD-MON-YYYY'), NULL from dual union all
8 SELECT to_date('07-JAN-2008','DD-MON-YYYY'), to_date('07-JAN-2008','DD-MON-YYYY') from dual union all
9 SELECT to_date('07-JAN-2008','DD-MON-YYYY'), to_date('07-JAN-2008','DD-MON-YYYY') from dual union all
10 SELECT to_date('08-JAN-2008','DD-MON-YYYY'), to_date('08-JAN-2008','DD-MON-YYYY') from dual union all
11 SELECT to_date('08-JAN-2008','DD-MON-YYYY'), NULL from dual union all
12 SELECT to_date('02-JAN-2008','DD-MON-YYYY'), NULL from dual union all
13 SELECT to_date('02-JAN-2008','DD-MON-YYYY'), NULL from dual union all
14 SELECT to_date('08-JAN-2008','DD-MON-YYYY'), NULL from dual union all
15 SELECT to_date('09-JAN-2008','DD-MON-YYYY'), NULL from dual)
16 ,all_dates as (select minod+rownum-1 as dt
17 from dual, (select min(open_date) minod, max(open_date) maxod from t)
18 connect by rownum <= maxod-minod+1)
19 ,stat as (select 'open' as status from dual union all select 'closed' from dual)
20 -- END OF DATA
21 select all_dates.dt, stat.status, sum(decode(decode(stat.status, 'open', t.open_date, t.closed_date), all_dates.dt, 1, 0)) as cnt
22 from stat JOIN all_dates ON (1=1)
23 LEFT OUTER JOIN t ON (NVL(t.open_date, NVL(t.closed_date, all_dates.dt)) = all_dates.dt)
24 group by all_dates.dt, stat.status
25* order by 1,2 desc
SQL> /
DT STATUS CNT
02-JAN-08 open 6
02-JAN-08 closed 3
03-JAN-08 open 0
03-JAN-08 closed 0
04-JAN-08 open 1
04-JAN-08 closed 1
05-JAN-08 open 0
05-JAN-08 closed 1
06-JAN-08 open 0
06-JAN-08 closed 0
07-JAN-08 open 3
07-JAN-08 closed 2
08-JAN-08 open 3
08-JAN-08 closed 1
09-JAN-08 open 1
09-JAN-08 closed 0
16 rows selected.
SQL>Make your requirements clear in the future. -
Hi All,
I'm using the below script in conc.pgm to get some data
Prompt ROllNO, DEPT, Amount, Store;
SELECT ' '
|| ROLL_NO
|| ', '
|| DEPT
|| ', '
|| Amount
||', '
|| Store
FROM XXX;
And the output looks like this,
ROll NO, DEPT, Amount, Store
101, ABC, 500, XXX
102, ABC, -600, YYY
103, ABC, 800, ZZZ
If you see in the second row, as the amount is negative, it is taking one extra space to accomodate the sign. Because of this, the other columns are affected.
Now when i want an output someting like,
ROll NO, DEPT, Amount, Store
101, ABC, 500, XXX
102, ABC, -600, YYY
103, ABC, 800, ZZZ
Means, i want the data to be aligned properly even if the selected column has more width.
Any changes i need to do to the Query?
Kindly provide some pointers
Regards,
MohanHi,
The problem is with your data. For this type of query you will have to fix the length of every column..let say
Dep Code is having values like 12,123,1234
So, for this create your query like this...
SELECT LPAD(DEP_CODE,(SELECT MAX(LENGTH(DEPT_CODE)) FROM XXX),' ') FROM XXXthrough this statement you can get the your desired result. use the same strategy for all columns by changing the column name.
-Ammad -
Need help in this select drop down box
Hi i had a drop down box written with select and i had many options , when user selects the option it will insert this to database and when user goes to the edit form the preselected value has to be populate automatically in dropdown , but the last option is populating everytime when uses edit form.
below is the code:
insert page:
<select name="council" id="council" name="Please select Council from dropdown box">
<option value="Division">Division</option>
<option value="Facility">Facility</option>
<option value="District D">District D </option>
<option value="District E">District E </option>
<option value="District J">District J </option>
<option value="District K">District K </option>
<option value="District L">District L </option>
<option value="District M">District M </option>
<option value="District N">District N </option>
<option value="District O">District O </option>
<option value="District Q">District Q </option>
<option value="District S">District S </option>
<option value="District T">District T </option>
<!--- Below code is added just for temporary case ,for this drop down we need to pull all these data from databse--->
<option value="D 506">D 506</option>
<option value="D 524">D 524</option>
<option value="D 525">D 525</option>
<option value="D 530">D 530</option>
<option value="D 531">D 531</option>
<option value="D 536">D 536</option>
<option value="D 549">D 549</option>
<option value="D 558">D 558</option>
<option value="D 562">D 562</option>
<option value="D 581">D 581</option>
<option value="D 583">D 583</option>
<option value="D 597">D 597</option>
<option value="D 598">D 598</option>
<option value="D 599">D 599</option>
<option value="D 628">D 628</option>
<option value="D 686">D 686</option>
<option value="D 698">D 698</option>
<option value="D 848">D 848</option>
<option value="D 862">D 862</option>
<option value="D 870">D 870</option></select>
this is edit page code:
<select name="council" id="council">
<cfoutput query="getdata">
<option value="Division" <cfif council IS "#getdata.council#"> selected</cfif>>Division</option>
<option value="Facility" <cfif council IS "#getdata.council#"> selected</cfif>>Facility</option>
<option value="District D" <cfif council IS "#getdata.council#"> selected</cfif>>District D </option>
<option value="District E" <cfif council IS "#getdata.council#"> selected</cfif>>District E </option>
<option value="District J" <cfif council IS "#getdata.council#"> selected</cfif>>District J </option>
<option value="District K" <cfif council IS "#getdata.council#"> selected</cfif>>District K </option>
<option value="District L" <cfif council IS "#getdata.council#"> selected</cfif>>District L </option>
<option value="District M" <cfif council IS "#getdata.council#"> selected</cfif>>District M </option>
<option value="District N" <cfif council IS "#getdata.council#"> selected</cfif>>District N </option>
<option value="District O" <cfif council IS "#getdata.council#"> selected</cfif>>District O </option>
<option value="District Q" <cfif council IS "#getdata.council#"> selected</cfif>>District Q </option>
<option value="District S" <cfif council IS "#getdata.council#"> selected</cfif>>District S </option>
<option value="District T" <cfif council IS "#getdata.council#"> selected</cfif>>District T </option>
<option value="D 506" <cfif council IS "#getdata.council#"> selected</cfif>>D 506</option>
<option value="D 524" <cfif council IS "#getdata.council#"> selected</cfif>>D 524</option>
<option value="D 525" <cfif council IS "#getdata.council#"> selected</cfif>>D 525</option>
<option value="D 530" <cfif council IS "#getdata.council#"> selected</cfif>>D 530</option>
<option value="D 531" <cfif council IS "#getdata.council#"> selected</cfif>>D 531</option>
<option value="D 536" <cfif council IS "#getdata.council#"> selected</cfif>>D 536</option>
<option value="D 549" <cfif council IS "#getdata.council#"> selected</cfif>>D 549</option>
<option value="D 558" <cfif council IS "#getdata.council#"> selected</cfif>>D 558</option>
<option value="D 562" <cfif council IS "#getdata.council#"> selected</cfif>>D 562</option>
<option value="D 581" <cfif council IS "#getdata.council#"> selected</cfif>>D 581</option>
<option value="D 583" <cfif council IS "#getdata.council#"> selected</cfif>>D 583</option>
<option value="D 597" <cfif council IS "#getdata.council#"> selected</cfif>>D 597</option>
<option value="D 598" <cfif council IS "#getdata.council#"> selected</cfif>>D 598</option>
<option value="D 599" <cfif council IS "#getdata.council#"> selected</cfif>>D 599</option>
<option value="D 628" <cfif council IS "#getdata.council#"> selected</cfif>>D 628</option>
<option value="D 686" <cfif council IS "#getdata.council#"> selected</cfif>>D 686</option>
<option value="D 698" <cfif council IS "#getdata.council#"> selected</cfif>>D 698</option>
<option value="D 848" <cfif council IS "#getdata.council#"> selected</cfif>>D 848</option>
<option value="D 862" <cfif council IS "#getdata.council#"> selected</cfif>>D 862</option>
<option value="D 870" <cfif council IS "#getdata.council#"> selected</cfif>>D 870</option>
</cfoutput>
</select>
i dont know where i am making mistake and i observered one behavoir that if i have less options it is working but not with many why like that , please help me in this
ThanksSeems to me your conditionals should look something like this:
<option value="Division"<cfif getData.council is "Division"> selected="selected"</cfif>>Division</option>
<option value="Facility"<cfif getData.council is "Facility"> selected="selected"</cfif>>Facility</option>
Your condition is the same for every option, and would likely never evaluate to true:
<cfif council IS "#getdata.council#"> selected</cfif>
getData.council will be "Division" or "Facility" or "District D" or ...
... but it would never be "council".
HTH.
Charlie -
Need help RE: "Type Conversion"...
Hi, need some urgen help here...
I had done the following below:
=====
import java.awt.*;
import java.applet.*;
public class Demo extends Applet
int ivalue = 3;
double dvalue = 3.9;
int a1 = dvalue;
double a2 = ivalue*2;
public void paint (Graphics g)
g.drawString ("inum is " + a1, 25,50);
g.drawString ("dnum is " + a2, 25,75);
=====
I wanted to convert my 'dvalue' to '3' but can't...Why?
(error: possible loss of precision found :double required: int)
How to retify it?
Converting my 'ivalue' to '6.0' is ok.Listening to Author: angusedison, problem solved!
Second problem, I wanted to calculate the volume of sphere...
=====
import java.awt.*;
import java.applet.*;
public class Sphere extends Applet
double radius, II, volume;
public void paint (Graphics g)
radius = 12.5;
II = 3.142;
volume = 4 / 3 * II * radius * radius * radius;
g.drawString ("Volume is " + volume, 25,50);
=====
& ans from this is "6136.71875", but using my calculator it's "8182.291667" (which is suppose to be the correct answer).
What's the problem & how to solve it???
Do I use Type Conversion too? -
Totally frustrated. Need help with type tool in CS2.
Must start by admitting I'm embarrassed to have to even find myself asking this question. . . But after working with PageMaker since Ver. 2.0 in the early '80s, finally was forced to switch to CS2 when I had to replace my Mac/Intel computer 3 (or was it 4 years ago?). Did so fighting and cursing all the way, and I'm still having trouble typing in Photoshop . . . not just today, but EVERY TIME I sit down to work on a project.
Most are brochures and display ads, and though friends and colleagues insist my real problem is that I should be setting them up in InDesign, I'm convinced it's easier to work on graphics and text simultaneously in Photoshop.
My problem is in grabbing text blocks in order to edit them. Occasionally I'm able to highlight the text I need, but usually I keep getting new type layers instead. I know it should not be this difficult, but as soon as I select the text with the cursor, I get a new, empty text box.It doesn't seem to matter if I am in the layers or edit mode.
I may not be the most technically advanced Adobe user, but I'm not stupid. What the heck am I doing wrong? Can someone please steer me right?Try this on for size:
Type Tool Tips for Photoshop
Most folks understand how to create text in Photoshop. You select the Type Tool from the Toolbox, or you tap the "T" key on your keyboard. Then, in the Character Palette you set the attributes for font, color, size, etc. A simple click in your document window will mark the spot where you may begin typing unbounded "point" text. Or, you click and drag in your document window to create a paragraph text box. Type out your text, then tap your "Enter" key to commit the text to its new layer.
It's pretty straightforward, and Photoshop offers a decent set of tools to adjust how your text looks. One hitch that long-timers will tell you about, though: It's generally accepted that Photoshop isn't the best application to be using if you have to have to create a lot of text because it doesn't have all of the adjustment functions necessary to produce large amounts of professional-quality text. Well, the real world being what it is, sometimes, and for some users, Photoshop is the only application they have to work with; might as well make the best of it, right?
So, once you have text entered onto a layer in your document, how do you then reselect iteither all of it or just a portion and navigate through it easily? What follows will answer some of those questions.
Note: The keyboard shortcuts that follow assume you are using a Mac. If you're using Windows, substitute the CTRL key for "Command."
Double-Click on the boxed 'T' thumbnail on the desired Text Layer in the Layers Palette. This will select and highlight all of the text on that layer.
Then, if you want, you can use some keyboard shortcuts to move the "Blinking Bar" Type Tool cursor through the text.
Assuming that your text is enclosed in a click-and-dragged out paragraph text box--When all text is highlighted:
"Home" key will move cursor to the beginning of first line of text.
"End" key will move cursor to the end of last line of text.When text is NOT highlighted, but cursor is flashing within the text:
"Home" key moves cursor to the beginning of the line it's in.
"End" key moves cursor to the end of the line it's in.
Command + "Home" moves cursor to beginning of first line of text.
Command + "End" moves cursor to end of the last line of text.
Shift + "Home" selects text from cursor position to the beginning of the line it's in.
Shift + "End" selects text from cursor position to the end of the line it's in.
Shift + Command + "Home" selects text from cursor position to the beginning of the first line of text.
Shift + Command + "End" selects text from cursor position to the end of the last line of text.Arrow keys can also be used to select text in various ways. When your cursor is flashing within the text:
Shift + Right Arrow cumulatively selects text one character or space at a time, from cursor position, progressing toward the end of the text.
Shift + Left Arrow cumulatively selects text one character or space at a time, from cursor position, progressing toward the beginning of the text.
⇒ Add the Command key to select whole words at a time, in either direction.
Shift + Up Arrow selects text from cursor position back to the next line above the cursor.
Shift + Down arrow selects text from cursor position forward to the next line below the cursor position.
⇒ Add the Command key to select text starting from the cursor position, and accumulating either back to the beginning of the first line, or forward to the end of the last line.
That covers most of what (or more than) you need to know to navigate through and highlight text. There are some other key combos, and now that you have an idea of what to do, I'll let you experiment and discover them on your own.
Type Tool Visual Indicators
Keep a close eye on your Type Tool cursor as you move it near to and away from a hunk of text in your document window.
When you see it as a plain old "I-Bar" cursor⇒
⇒...that means that it's ready to select a position within that text, or to select a hunk of that text.
When you see a "boxed I-Bar" cursor⇒
⇒...that means your cursor is outside of the selectable area for the current text, and is ready for you to click (to start right in typing some unbounded point text) or click-n-drag (to create a paragraph text box). This will, of course, create a new text layer.
How can you get a visual indicator of where that selectable area for current text begins and ends without blindly moving your Type Tool cursor around the text? Double-Click on the "Boxed-T" thumbnail in the Layers Palette. The text for that layer will become highlighted in your document window. See the black area that surrounds the text? That shows you the actual space occupied by the characters. If your Type Tool cursor is inside this area, it will display the plain "I-Bar" cursor. If it's outside of that area, it will display the "Boxed I-Bar" cursor.
Want to FORCE Photoshop to create a new Type Layer, even though you're seeing the plain I-Bar cursor?
Hold the SHIFT key, then either click, or click-n-drag out a paragraph text box.
Info assembled & provided by phosphor.digital.network. Please note that this is a first draft and is not meant to be complete. There may also be some mistakes. Relax...if you point 'em out, I'll fix 'em. -
Need help with special select case
Oracle DB 12c, I think 12.1.2
drop table person_tests;
create table person_tests (
person_id number,
test_type_id varchar2(1),
test_date date
insert into person_tests (person_id,test_type_id,test_date) values (1,'A',to_date('01012000','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (1,'A',to_date('01022000','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (1,'B',to_date('01032000','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (1,'B',to_date('01042000','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (1,'C',to_date('01052000','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (2,'C',to_date('01062000','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (3,'A',to_date('01072001','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (3,'A',to_date('01082000','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (3,'B',to_date('01092000','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (3,'B',to_date('01102000','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (3,'C',to_date('01102000','MMDDYYYY'));
Persons as participating in certain tests: A, B and C where each test is tagged with a date when done.
I need to output only people that completed 2 tests of type A, 2 tests of type B and 1 test of type C. I have to display the test type and the date of the most recent of those tests. In the example above, desired output would be
1 C 05-JAN-00
3 A 07-JAN-01
Hope this problem definition makes senseHi,
Sorry, I missed the requirement about showing the most recent test_type_id.
Assuming the date to be shown is the date the minimum requirements were fulfilled (whether of not gratutitous tests came afterwrds), you can do something like this:
WITH got_r_num AS
SELECT person_id, test_type_id, test_date
, ROW_NUMBER () OVER ( PARTITION BY person_id, test_type_id
ORDER BY test_date
) AS r_num
FROM person_tests
WHERE test_type_id IN ('A', 'B', 'C')
SELECT person_id
, MIN (test_type_id) KEEP (DENSE_RANK LAST ORDER BY test_date) AS last_test_type
, MAX (test_date) AS last_test_date
FROM got_r_num
WHERE r_num <= CASE test_type_id
WHEN 'A' THEN 2
WHEN 'B' THEN 2
WHEN 'C' THEN 1
END
GROUP BY person_id
HAVING COUNT (*) = 5 -- 2 'A's + 2 'B's + 1 'C'
What test_type_id would you want to display in case of a tie for the latest test?
I just saw your post saying that a person with 3 or more type 'A' tests should be excluded. In that case, my original solution (with = in the main WHERE clause) is what you want; only used LAST to get the latest test_type_id. The solution in this message is for the situation where you don't care if someone had 3 or more 'A's, but you want to ignore all but the first 2. -
Need help on multi select field
Hi ,
1. I have created a meta datafield which is multiselect. Lets say product list,it lets user to select multiple product.
2. Now, this feature I have created at the check in form, and the meta data field used is of type "memo".
3. This meta data field internally uses a "product_list_V" view which is again "muliselect" with option for multiple names separated by comma.
4. Now when I check in, and uses this meta data field it stores and displays the data in the info page correctly like "product1,product2,product3" in this way.
4. But internally I am using Id to store not the name for the products.
5. Now when i search using the query or using the search builder it doesnot pull up the record.
6. But if i give the same pattern of the value it puuls up the result. For example, if the value(product id) stored is 5,9,12
and I give this in the query like xIndustry <matches> `5` <OR> xIndustry <matches> `9`<OR> xIndustry <matches> `12`----it doesnot pull up the record.
7. But if I give the query as xIndustry <matches> `5,9,12` same pattern it pull up the record.
8. Since the record has the id it should pull up if any match found as per to the id which doesnot happen.
Can any one tell me or guide me on how to implenet this.
Need very urgently.
Thanks,
AbhijitHi Malky,
If we use "contains" UCM throws error line below
Content Server Request Failed
Unable to retrieve search results. Unable to retrieve search results. Unable to create result set for query 'SELECT * FROM (SELECT q.*, RowNum rowIndex FROM (SELECT dDocName, dDocTitle, dDocType, dRevisionID, dSecurityGroup, dDocAuthor, dDocAccount, dRevLabel, dFormat, dOriginalName, dExtension, dWebExtension, dInDate, dOutDate, dPublishType, dRendition1, dRendition2, VaultFileSize, WebFileSize, URL, dFullTextFormat, dFullTextCharset, DocMeta.*
FROM IdcColl2, DocMeta
WHERE IdcColl2.dID=DocMeta.dID AND ((((CONTAINS(xIndustry, '{5}') > 0))) AND (((UPPER(dDocAccount) LIKE UPPER('') AND dDocAccount IS NOT NULL) OR (dDocAccount IS NULL)))) ) q WHERE ROWNUM < 21) WHERE RowIndex >= 1'. ORA-20000: Oracle Text error:
DRG-10599: column is not indexed
As well as "contains" word is not in the UCM search query builder form. Only we have the options are matches, starts, ends, Substring, Not Matches, Not Substring.
Please let me know whether we need to install any component to get the "contains" word.
Thanks
Abhijit
Maybe you are looking for
-
I need to Downgrade my iPhone 3G from iOS 4.0 back to 3.1.3
I've had the same problem as many iPhone customers, updating iTunes to newest version (9.2.0.61) and Upgrading my iPhone 3G to v. 4.0 from v 3.1.3. iTunes successfully upgraded to iOS 4.0, but the Restore of my backup FAILED!!! OVER and OVER and OVER
-
ALV totals with REUSE_ALV_GRID_DISPLAY function
Hi folks, I am using the function REUSE_ALV_GRID_DISPLAY to display a report. One column called 'Perc Left' has been defined as a total using the do_sum = 'X' field in the field catalog. Not what I really want... My issue is that when the totals are
-
Hello all, How to add three years to a date? Please keep in mind the February month. Thanks
-
Error code -10810 when starting up any app
Getting error code -10810 when I click to start any app in the Application folder. Only thing different I did this morning was upgrading coconutBattery. I'm guessing that's the culprit but would like to know what the error code means.
-
X Through battery icon, no LED light on MagSafe, 2 month old Macbook Pro
This all started this afternoon. I noticed a black X through the battery icon in the upper tool bar, then noticed that there was no LED light on the MagSafe charger. The fan on my computer was also constantly running. This computer is only TWO months