How to get distinct values from this view
I had created a view to get to display from 2 tables.But i got duplicate values in this.
Please give any solution for this view code.
CREATE OR REPLACE VIEW TRADEQUOTEHISTORY_VIEW
(BOND_ID, BOND_NAME, COMM_PER_SHARE, QUOTE_DATE_TIME, TYPE,
STOCK_PRICE, BID_PRICE, ASK_PRICE, ACTUAL_HEDGE, SOURCE_ORDER_ID,
SOURCE_ORDER_NAME, NOTES, SIDE_ID, BIDNUKED, ASKNUKED,
REALSTOCK, LAST_UPDATED_DATE)
AS
SELECT bi.bond_id, bi.bond_name,
( (bs.comm_per_share * bi.cv_cnvs_ratio * bs.hedge)
/ (bi.px_pos_mult_factor)
nq.quote_date_time, bi.market_sector_des, nq.stock_price,
nq.bid_price, nq.ask_price, nq.actual_hedge, so.source_order_id,
so.source_order_name, nq.notes, bs.side_id,
( bs.bid_price
+ ( (csv.lastprice - bs.stock_price)
* bi.cv_cnvs_ratio
* bs.hedge
/ bi.px_pos_mult_factor
( bs.ask_price
+ ( (csv.lastprice - bs.stock_price)
* bi.cv_cnvs_ratio
* bs.hedge
/ bi.px_pos_mult_factor
csv.lastprice,
bs.last_updated_date
FROM mtsc_bondinfo bi,
mtsc_basissheet bs,
mtsc_newquoteorder nq,
mtsc_sourceorder so,
mtsc_stock_v csv
WHERE bi.bond_id(+) = bs.bond_id
AND bs.bond_id(+) = nq.bond_id
AND csv.bondid = bs.bond_id
AND so.source_order_id(+) = nq.source_order_id
UNION
SELECT bi.bond_id, bi.bond_name,
( (bs.comm_per_share * bi.cv_cnvs_ratio * bs.hedge)
/ (bi.px_pos_mult_factor)
nq.quote_date_time, bi.market_sector_des, bs.stock_price,
bs.bid_price, bs.ask_price, bs.hedge, so.source_order_id,
so.source_order_name, nq.notes, bs.side_id,
( bs.bid_price
+ ( (csv.lastprice - bs.stock_price)
* bi.cv_cnvs_ratio
* bs.hedge
/ bi.px_pos_mult_factor
( bs.ask_price
+ ( (csv.lastprice - bs.stock_price)
* bi.cv_cnvs_ratio
* bs.hedge
/ bi.px_pos_mult_factor
),csv.lastprice,
bs.last_updated_date
FROM mtsc_bondinfo bi,
mtsc_basissheet bs,
mtsc_newquoteorder nq,
mtsc_sourceorder so,
mtsc_stock_v csv
WHERE bi.bond_id(+) = bs.bond_id
AND bs.bond_id(+) = nq.bond_id
AND csv.bondid = bs.bond_id
AND so.source_order_id(+) = nq.source_order_id
ORDER BY last_updated_date DESC
result is coming like this
BOND_ID BOND_NAME ((BS.COMM_PER_SHARE*BI.CV_CNVS_RATIO*BS.HEDGE)/(BI.PX_POS_MULT_FACTOR)) QUOTE_DATE_TIME MARKET_SECTOR_DES STOCK_PRICE BID_PRICE ASK_PRICE ACTUAL_HEDGE SOURCE_ORDER_ID SOURCE_ORDER_NAME NOTES SIDE_ID (BS.BID_PRICE+((CSV.LASTPRICE-BS.STOCK_PRICE)*BI.CV_CNVS_RATIO*BS.HEDGE/BI.PX_POS_MULT_FACTOR)) (BS.ASK_PRICE+((CSV.LASTPRICE-BS.STOCK_PRICE)*BI.CV_CNVS_RATIO*BS.HEDGE/BI.PX_POS_MULT_FACTOR)) LASTPRICE LAST_UPDATED_DATE
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79901.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 9 130 104 25 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 9 135 104 25 41 STREET MARKET AN 110 79901.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 9 130 104 25 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 9 135 104 25 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 9 130 104 25 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 9 135 104 25 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 9 130 104 25 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 9 135 104 25 41 STREET MARKET New Notes 110 79901.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79901.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 9 130 104 25 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 9 130 104 25 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 9 130 104 25 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 9 130 104 25 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 62812767.6093129 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 62812767.6093129 08/01/2007 Corp 9 300 400 25 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 62812767.6093129 09/01/2007 Corp 9 300 400 25 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 62812767.6093129 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 62812767.6093129 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 62812767.6093129 11/01/2007 Corp 9 300 400 25 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 62812767.6093129 17/07/2007 7:06:20 PM Corp 9 300 400 25 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 62812767.6093129 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79901.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 80066.4 80066.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 9 130 104 25 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 9 135 104 25 41 STREET MARKET AN 110 79901.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 9 300 300 25 41 STREET MARKET AN 110 80066.4 80066.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 9 130 104 25 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 9 135 104 25 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 9 300 300 25 41 STREET MARKET fgdf dfgf 110 80066.4 80066.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 80066.4 80066.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 80066.4 80066.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 9 130 104 25 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 9 135 104 25 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 9 300 300 25 41 STREET MARKET HGH HHGHF 110 80066.4 80066.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 9 130 104 25 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 9 135 104 25 41 STREET MARKET New Notes 110 79901.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 9 300 300 25 41 STREET MARKET New Notes 110 80066.4 80066.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79901.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 80066.4 80066.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79966.4 79966.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 08/01/2007 Corp 9 130 104 25 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 08/01/2007 Corp 9 200 200 25 41 STREET MARKET AN 110 79966.4 79966.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 09/01/2007 Corp 9 130 104 25 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 09/01/2007 Corp 9 200 200 25 41 STREET MARKET fgdf dfgf 110 79966.4 79966.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79966.4 79966.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79966.4 79966.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 11/01/2007 Corp 9 130 104 25 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 11/01/2007 Corp 9 200 200 25 41 STREET MARKET HGH HHGHF 110 79966.4 79966.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 17/07/2007 7:06:20 PM Corp 9 130 104 25 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 17/07/2007 7:06:20 PM Corp 9 200 200 25 41 STREET MARKET New Notes 110 79966.4 79966.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79966.4 79966.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 5591906636.41908 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 5591906636.41908 08/01/2007 Corp 9 300 400 25 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 5591906636.41908 09/01/2007 Corp 9 300 400 25 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 5591906636.41908 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 5591906636.41908 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 5591906636.41908 11/01/2007 Corp 9 300 400 25 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 5591906636.41908 17/07/2007 7:06:20 PM Corp 9 300 400 25 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 5591906636.41908 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79901.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 9 130 104 25 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 9 135 104 25 41 STREET MARKET AN 110 79901.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 9 130 104 25 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 9 135 104 25 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 9 130 104 25 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 9 135 104 25 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 9 130 104 25 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 9 135 104 25 41 STREET MARKET New Notes 110 79901.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79901.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 62812767.6093129 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 62812767.6093129 08/01/2007 Corp 9 300 400 25 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 62812767.6093129 09/01/2007 Corp 9 300 400 25 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 62812767.6093129 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 62812767.6093129 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 62812767.6093129 11/01/2007 Corp 9 300 400 25 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 62812767.6093129 17/07/2007 7:06:20 PM Corp 9 300 400 25 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 62812767.6093129 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:49:04 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 9 130 104 25 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:49:04 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 9 130 104 25 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:49:04 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:49:04 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:49:04 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 9 130 104 25 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:49:04 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 9 130 104 25 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:49:04 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:49:04 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79966.4 79966.4 905 01/08/2007 12:48:22 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 9 200 200 25 41 STREET MARKET AN 110 79966.4 79966.4 905 01/08/2007 12:48:22 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 9 200 200 25 41 STREET MARKET fgdf dfgf 110 79966.4 79966.4 905 01/08/2007 12:48:22 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79966.4 79966.4 905 01/08/2007 12:48:22 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79966.4 79966.4 905 01/08/2007 12:48:22 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 9 200 200 25 41 STREET MARKET HGH HHGHF 110 79966.4 79966.4 905 01/08/2007 12:48:22 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 9 200 200 25 41 STREET MARKET New Notes 110 79966.4 79966.4 905 01/08/2007 12:48:22 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79966.4 79966.4 905 01/08/2007 12:48:22 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:02:32 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 9 300 400 25 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:02:32 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 9 300 400 25 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:02:32 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:02:32 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:02:32 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 9 300 400 25 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:02:32 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 9 300 400 25 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:02:32 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:02:32 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:01:05 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 9 300 400 25 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:01:05 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 9 300 400 25 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:01:05 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:01:05 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:01:05 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 9 300 400 25 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:01:05 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 9 300 400 25 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:01:05 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:01:05 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 11:58:23 AM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 9 300 400 25 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 11:58:23 AM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 9 300 400 25 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 11:58:23 AM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 11:58:23 AM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 11:58:23 AM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 9 300 400 25 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 11:58:23 AM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 9 300 400 25 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 11:58:23 AM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 11:58:23 AM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79896.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79901.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 9 130 104 25 41 STREET MARKET AN 110 79896.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 9 135 104 25 41 STREET MARKET AN 110 79901.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 9 130 104 25 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 9 135 104 25 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 9 130 104 25 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 9 135 104 25 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 9 130 104 25 41 STREET MARKET New Notes 110 79896.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 9 135 104 25 41 STREET MARKET New Notes 110 79901.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79896.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79901.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 89.025 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79901.4 79870.4 905 31/07/2007 5:53:25 PM
106 007903AK3 Corp 89.025 08/01/2007 Corp 9 135 104 25 41 STREET MARKET AN 110 79901.4 79870.4 905 31/07/2007 5:53:25 PM
106 007903AK3 Corp 89.025 09/01/2007 Corp 9 135 104 25 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 31/07/2007 5:53:25 PM
106 007903AK3 Corp 89.025 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 31/07/2007 5:53:25 PM
106 007903AK3 Corp 89.025 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 31/07/2007 5:53:25 PM
106 007903AK3 Corp 89.025 11/01/2007 Corp 9 135 104 25 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 31/07/2007 5:53:25 PM
106 007903AK3 Corp 89.025 17/07/2007 7:06:20 PM Corp 9 135 104 25 41 STREET MARKET New Notes 110 79901.4 79870.4 905 31/07/2007 5:53:25 PM
106 007903AK3 Corp 89.025 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79901.4 79870.4 905 31/07/2007 5:53:25 PM
106 007903AK3 Corp 89.025 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79896.4 79870.4 905 31/07/2007 1:05:18 AM
106 007903AK3 Corp 89.025 08/01/2007 Corp 9 130 104 25 41 STREET MARKET AN 110 79896.4 79870.4 905 31/07/2007 1:05:18 AM
106 007903AK3 Corp 89.025 09/01/2007 Corp 9 130 104 25 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 31/07/2007 1:05:18 AM
106 007903AK3 Corp 89.025 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 31/07/2007 1:05:18 AM
106 007903AK3 Corp 89.025 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 31/07/2007 1:05:18 AM
106 007903AK3 Corp 89.025 11/01/2007 Corp 9 130 104 25 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 31/07/2007 1:05:18 AM
106 007903AK3 Corp 89.025 17/07/2007 7:06:20 PM Corp 9 130 104 25 41 STREET MARKET New Notes 110 79896.4 79870.4 905 31/07/2007 1:05:18 AM
106 007903AK3 Corp 89.025 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79896.4 79870.4 905 31/07/2007 1:05:18 AM
Regards
Kishore B
BOND_ID BOND_NAME ((BS.COMM_PER_SHARE*BI.CV_CNVS_RATIO*BS.HEDGE)/(BI.PX_POS_MULT_FACTOR)) QUOTE_DATE_TIME MARKET_SECTOR_DES STOCK_PRICE BID_PRICE ASK_PRICE ACTUAL_HEDGE SOURCE_ORDER_ID SOURCE_ORDER_NAME NOTES SIDE_ID (BS.BID_PRICE+((CSV.LASTPRICE-BS.STOCK_PRICE)*BI.CV_CNVS_RATIO*BS.HEDGE/BI.PX_POS_MULT_FACTOR)) (BS.ASK_PRICE+((CSV.LASTPRICE-BS.STOCK_PRICE)*BI.CV_CNVS_RATIO*BS.HEDGE/BI.PX_POS_MULT_FACTOR)) LASTPRICE LAST_UPDATED_DATE
109 018490AL6 Corp 18871.341129 Corp 27 139 166 87 110 120752.494 120779.494 905 01/08/2007 12:55:26 PM
109 018490AL6 Corp 18871.341129 Corp null null null null 110 120752.494 120779.494 905 01/08/2007 12:55:26 PM
I am not inserting values into newquoteorder,but i got values from that table ask,bid,stock values, it shows that values as null
Similar Messages
-
How to get Distinct Values from Answers
Hi,
How to get Distinct values from answers, i've tried to put some functions on it.
Thanks,
MalliMalli,
Are you trying to fetch data from Dimension Attr OR Fact Measures? Did you try the advance tab - > Advanced SQL Clauses - > Check this box to issue an explicit Select Distinct. -
How to get distinct values from a list and display in a ListView webpart.
Hi,
I have a requirement in which I need to pull unique/distinct values from a custom list and then display it via a listview webpart. Can any one suggest how this can be done.
If possible please share the CAMEL query to fetch distinct values from a custom list.
Thanks,
AnkitHi Ankit,
Is there any particular reason that the values need to be shown in a list view web part? Are you going to use that web part for filtering via web part connections?
I ask because the enterprise site collection features include the SharePoint List Filter web part, which may accomplish what you're looking for.
If you just need to display the values in a grid view, you might have more luck with the JavaScript Client Object Model. Try putting the following in a text file:
<style>
.CustomTableClass{display:table;table-layout:fixed}
.CustomRowClass{display:table-row;}
</style>
<div id="distinct_values_div" class="CustomTableClass">
<img src="/_layouts/loading.gif" />
</div>
<script language="JavaScript" type="text/JavaScript">
var siteUrl = '/sitecollection/web'; //use the actual subsite URL here
var listName = 'mylist'; // use the actual list name here
var field = "Title" // use the actual field you want to display here
var divToUpdate = document.getElementById("distinct_values_div");
var rowClass = "CustomRowClass";
ExecuteOrDelayUntilScriptLoaded(function(){
var clientContext = new SP.ClientContext(siteUrl);
var web = clientContext.get_web();
var lists = web.get_lists();
var list = lists.getByTitle(listName);
var camlQuery = new SP.CamlQuery();
camlQuery.set_viewXml('<View><Query></Query><RowLimit>500</RowLimit></View>');
this.collListItem = list.getItems(camlQuery);
clientContext.load(collListItem,"Include ("+field+")");
clientContext.executeQueryAsync(
Function.createDelegate(this, this.onQuerySucceeded),
Function.createDelegate(this, this.onQueryFailed));
},"sp.js");
function onQueryFailed(sender, args){
divToUpdate.innerHTML = 'Unable to retrieve values: '+args.get_message());
function onQuerySucceeded(sender, args){
var allValues = [];
var listItemEnumerator = collListItem.getEnumerator();
divToUpdate.innerHTML = "";
while(listItemEnumerator.moveNext()){
var listItem = listItemEnumerator.get_current();
if(!containsString(allValues,listItem.get_item(field)){
var value = listItem.get_item(field);
allValues.push(value);
var newDiv = document.createElement("div");
newDiv.className = rowClass;
newDiv.innerHTML = value;
divToUpdate.appendChild(newDiv);
function containsString(strArray, text){
var contains = false;
for (var i=0; i<strArray.length; i++){
if(strArray[i]==text){contains = true; break;}
return contains;
</script>
Upload the text file to a library on the site, then add a content editor web part to a page where you want the distinct values to appear. In the content editor web part's properties, edit the Content Link so that it links directly to the text file. This
will cause the JavaScript to run on the page. -
How to get attribute values from one view to another
HI all,
Thx in Advance..
I have 2 view like v1,v2.In v1 i used one attribute values from "get single attribute" method.And i need the same values in v2 screen.For this i did in v1 outbound plugs , i mentioned the parameter name . How can i get the same values in v2.Hi chandru ,
you said you declare the parameters in the Outbound Plug of V1. now go to view V2 inbound plug Tab and creat one inbound plug
double click on the plug name .it will navigate you to the event handeler method . Now add the outbound parameter variables in the
parameters
For example : V1firing the navigation plug
a type string " defined in parameter
wd_this->fire_out_to_view2_plg(
a = 'ABCD' " string
you can retrive the value freely in v2 inbound event handeler
a type string " defined in parameter
* set single attribute
lo_el_context->set_attribute(
name = `TEXT`
value = a )." here you will get the 'ABCD'.
regards
Chinnaiya P
Edited by: chinnaiya pandiyan on Jun 23, 2010 7:12 PM -
How to get each value from a parameter passed like this '(25,23,35,1)'
Hi
One of the parameter passed to the function is
FUNCTION f_main_facility(pi_flag_codes VARCHAR2) return gc_result_set AS
pi_flag_codes will be passed a value in this way '(25,23,35,1)'
How to get each value from the string
like 25 first time
23 second time
35 third time
1 fourth time
I need to build a select query with each value as shown below:-
(SELECT t2.org_id, t4.description
from org_name t2, ref_org_name t3, code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 25 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q1,
(SELECT t2.org_id, t4.description
from org_name t2, ref_org_name t3,code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 23 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q2,
(SELECT t2.org_id, RTRIM(xmlagg(xmlelement(e, t4.description || ';')
ORDER BY t4.description).EXTRACT('//text()'), ';') AS DESCRIPTION
from org_name t2, ref_org_name t3,code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 35 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date
group by t2.org_id) q3,
(SELECT t2.org_id, t4.description
from org_name t2, ref_org_name t3, code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 1 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q4
Please help me with extracting each alue from the parm '(25,23,35,1)' for the above purpose. Thank You.chris227 wrote:
I would propose the usage of regexp for readibiliy purposes and only in the case if this doesnt perform well, look at solutions using substr etc.
select
regexp_substr( '(25,23,35,1)', '\d+', 1, 1) s1
,regexp_substr( '(25,23,35,1)', '\d+', 1, 2) s2
,regexp_substr( '(25,23,35,1)', '\d+', 1, 3) s3
,regexp_substr( '(25,23,35,1)', '\d+', 1, 4) s4
from dual
S1 S2 S3 S4
"25" "23" "35" "1"In pl/sql you do something like l_val:= regexp_substr( '(25,23,35,1)', '\d+', 1, 1);
If t2.att_type is type of number you will do:
t2.att_type= to_number(regexp_substr( '(25,23,35,1)', '\d+', 1, 1))Edited by: chris227 on 01.03.2013 08:00Sir,
I am using oracle 10g.
In the process of getting each number from the parm '(25,23,35,1)' , I also need the position of the number
say 25 is at 1 position.
23 is at 2
35 is at 3
1 is at 4.
the reason I need that is when I build seperate select for each value, I need to add the query number at the end of the select query.
Please see the code I wrote for it, But the select query is having error:-
BEGIN
IF(pi_flag_codes IS NOT NULL) THEN
SELECT length(V_CNT) - length(replace(V_CNT,',','')) FROM+ ----> the compiler gives an error for this select query : PLS-00428:
*(SELECT '(25,23,35,1)' V_CNT FROM dual);*
DBMS_OUTPUT.PUT_LINE(V_CNT);
-- V_CNT := 3;
FOR L_CNT IN 0..V_CNT LOOP
if L_CNT=0 then
V_S_POS:=1;
V_E_POS:=instr(pi_flag_codes, ',', 1, 1)-1;
else
V_S_POS:=instr(pi_flag_codes,',',1,L_CNT)+1;
V_E_POS:=instr(pi_flag_codes, ',', 1, L_CNT+1)-V_S_POS;
end if;
if L_CNT=V_CNT then
V_ID:=TO_NUMBER(substr(pi_flag_codes,V_S_POS));
else
V_ID:=TO_NUMBER(substr(pi_flag_codes,V_S_POS,V_E_POS));
end if;
VN_ATYPE := ' t2.att_type = ' || V_ID;
rec_count := rec_count +1;
query_no := 'Q' || rec_count;
Pls help me with fetching each value to build the where cond of the select query along with the query number.
Thank You. -
How to get the values from popup window to mainwindow
HI all,
I want to get the details from popup window.
i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
now i am able to display popup window with values.How to get the values from popup window now.
I can anybody explain me clearly.
Thanks&Regards
kranthiHi Kranthi,
Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
Regards,
Uday -
How to get real value from selectOneChoice with javascript?
Hi,
How to get real value from selectOneChoice with javascript? The event.getNewValue() only gets me the index of the selected item, not the value/title.
JSF page:
<af:resource type="javascript">
function parseAddress(event)
alert("new value: " + event.getNewValue());
</af:resource>
<af:selectOneChoice label="Location:" value="" id="soc4">
<af:clientListener type="valueChange" method="parseAddress" />
<f:selectItems value="#{Person.locations}" id="si7"/>
</af:selectOneChoice>
HTML :
<option title="225 Broadway, New York, NY-10007" selected="" value="0">225 Broadway (Central Office)</option>
<option title="90 Mark St., New York, NY-10007" value="1">90 Mark St. (Central Office)</option>
Thanks a lot.Something I was missing ,
You need to add valuePassThru="true" in your <af:selectOneChoice component. I have personally tested it and got the actual value in alert box. I hope this time you got the real solution. You can also test the following code by your end.
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:form id="f1">
<af:panelBox text="PanelBox1" id="pb1">
<af:selectOneChoice label="Set Log Level" id="soc1"
value="#{SelectManagedBean.loggerDefault}"
valuePassThru="true">
<af:selectItem label="select one" value="First" id="s6"/>
<af:selectItem label="select two" value="Second" id="s56"/>
<af:clientListener method="setLogLevel" type="valueChange"/>
</af:selectOneChoice>
<af:resource type="javascript">
function setLogLevel(evt) {
var selectOneChoice = evt.getSource();
var logLevel = selectOneChoice.getSubmittedValue();
// var logLevelObject = AdfLogger.NONE;
alert("new value is : " + logLevel);
//alert(evt.getSelection);
//alert(logLevelObject);
evt.cancel();
</af:resource>
</af:panelBox>
</af:form>
</af:document>
</f:view>
</jsp:root> -
How to get actual value from LOV list
Like Subject says: How to get actual value from LOV list. Any help will be appreciated.
Thanks.Thanks Shay, I did it with bind variable because I'm not using JSF. Is there any chance to post solution using standard JSTL or HTML expression. I have something like this: LOV displays some Companies names:
<html:select property="UserJobCompanyId"
disabled="${!bindings[\'UserJobCompanyId\'].updateable}"
onchange="submitform();">
<html:optionsCollection label="prompt" value="index" property="UserJobCompanyId.displayData"/>
</html:select>and I want to get CompanyID of selected Company.
Thanks, again. -
How to get column value from DB grid
Hi!
I wander how to get col value from GridControl?
My app consists of one rowsetinfo with two
columns CODE and DESCRIPTION and a jbutton
titled SELECT. When user clicks SELECT button
the app should show the value of the CODE col
of the selected row in GridControl.
I wander how to make this action ?
XxpsTransTimesMasterIter.setAttributeInfo( new AttributeInfo[] {
CODEXxpsTransTimesMasterIter,
DESCRIPTIONXxpsTransTimesMasterIter} );
XxpsTransTimesMasterIter.setName("XxpsTransTimes");
XxpsTransTimesMasterIter.setQueryInfo(new QueryInfo(
"XxpsTransTimesMasterIterViewUsage",
"lov.XxpsTransTimes",
"CODE, DESCRIPTION",
"XXPS_TRANS_TIMES",
null,
null
));Hi,
You could attach an ActionListener on the JButton, and try the following code :
NavigationManager fm = NavigationManager.getNavigationManager();
DataItem dataItem = fm.getFocusedControl().getDataItem();
ImmediateAccess col_code = null;
String code = null;
if (dataItem != null && dataItem instanceof RowsetAccess) {
RowsetAccess rowset = (RowsetAccess)dataItem;
try {
col_code = (ImmediateAccess) rowset.getColumnItem("CODE");
code = col_code.getValueAsString();
} catch (DuplicateColumnException de) {
return;
} catch (ColumnNotFoundException ce) {
return;
} catch (SQLException se) {
return;
JTextField tf = new JtextField();
tf.setText(code);
I haven't tested this code.
I am curious to know, the Object type of the dataItem.If it doesnot happen to be RowsetAccess ..try.. ScrollableRowsetAccess OR ImmediateAccess.
Your code would change accordingly, depending on the instance.Refer to the product documentation for this.
Do let me know, if this works.
TIA
Sandeep -
How to get attribute value from standard page ?
Hi,
How to get attribute value from standard page ?
String str = (String)vo.getCurrentRow().getAttrbute("RunId");
But this value is returning a null value ....
Can anyone help me to get this attribute value which is actually having a actual value .getCurrentRow() would always return null if no setCurrentRow() is used.
Please check the page design and understand how many rows of VO are there. You can also use the following to get the row:
vo.reset();
vo.next();
Regards
Sumit -
How to get the value from a JavaScript and send the same to Java file?
Hi.
How to get the value from a JavaScript (this JS is called when an action invoked) and send the value from the JS to a Java file?
Thanks and regards,
Leslie VYes, I am trying with web application.
In the below code, a variable 'message' carries the needed info. I would like to send this 'message' variable with the 'request'.
How to send this 'message' with and to the 'request'?
Thanks for the help :-)
The actual JS code is:
function productdeselection()
var i=0;
var j=0;
var deselectedproduct = new Array(5);
var message = "Are you sure to delete Product ";
mvi=document.forms[0].MVI;
mei=document.forms[0].MEI;
lpi=document.forms[0].LPI;
if(null != mvi)
++i;
if(null != mei )
++i;
if(null != lpi)
++i;
if(null != mvi && mvi.checked)
deselectedproduct[++j]="MVI?";
if(null != mei && mei.checked)
deselectedproduct[++j]="GAP?";
if(null != lpi && lpi.checked)
deselectedproduct[++j]="LPI?";
if( 0!=j)
if(i!=j)
for (x=0; x<deselectedproduct.length; x++)
if(null != deselectedproduct[x])
message =message+ "-" +deselectedproduct[x];
alert(message);
else
//alert(" You cannot remove all products!");
return false;
return true;
} -
How to get the value from databank
Hi,
How to get the value from databank? and how to set the same value to visual script object?
thanks,
raHi,
You can use GetDatabankValue(HeaderName, Value) to get the value from databank and SetDataBankValue(HeaderName, Value) to set the value to databank.
You can refer to the API Reference to see list of associated functions and techniques we can use with related to Data Bank.
This is the for OFT but if you are using Open Script then you have direct access for getting the databank value but when it comes to setting a value you have to use File operation and write you own methods to do the set operation.
Thanks
Edited by: Openscript User 100 on Nov 13, 2009 7:01 AM -
How to get a value from JavaScript
How to get return value from Java Script and catch it in c++ code. I have tried following code, but its not working in my case.
what I want is if it returns true then call some function if it returns false then do nothing, so how to get those values in c++
ScriptData::ScriptDataType fDataType = resultData.GetType();
if (fDataType == kTrue)
CAlert::InformationAlert("sucess");
//call some function
else
CAlert::InformationAlert("Error");
// do nothing
JavaScript Code:
if(app.scriptArgs.isDefined("paramkeyname1"))
var value = app.scriptArgs.get("paramkeyname1");
alert(value);
return true;
else
alert ("SORRY");
return false;How to get java script result into JSResult i m not getting it.
I have wriiten follwing code in c++ :
WideString scriptPath("\\InDesign\\Source1.jsx");
IDFile scriptFile(scriptPath);
InterfacePtr<IScriptRunner>scriptRunner(Utils<IScriptUtils>()->QueryScriptRunner(scriptFi le));
if(scriptRunner)
ScriptRecordData arguments;
ScriptIDValuePair arg;
ScriptID aID;
ScriptData script(scriptFile);
ScriptData resultData;
PMString errorString;
KeyValuePair<ScriptID,ScriptData> ScriptIDValuePair(aID,script);
arguments.push_back(ScriptIDValuePair);
PMString paramkeyname1;
Utils<IScriptArgs>()->Save();
Utils<IScriptArgs>()->Set("paramkeyname1",scriptPath);
Utils<IScriptUtils>()->DispatchScriptRunner(scriptRunner,script,arguments,resultData,erro rString,kFalse);
Utils<IScriptArgs>()->Restore();
ScriptData::ScriptDataType fDataType = resultData.GetType(); // here i should get true or false which i m passing it from javascript code......not as s_boolean
if (fDataType == kTrue)
//CAlert::InformationAlert("sucess");
iOrigActionComponent->DoAction(ac, actionID, mousePoint, widget);
else
this->PreProcess(PMString(kCstAFltAboutBoxStringKey));
Java script code:
function main()
var scrpt_var;
var scriptPath,scrptMsg;
var frntDoc=app.documents[0];
if(app.scriptArgs.isDefined("paramkeyname1"))
var value = app.scriptArgs.get("paramkeyname1");
alert(value);
return true; // i want this value i should get in c++ code...How to get these values in c++
else
alert ("Error");
return false; // i want this value i should get in c++ code...How to get these values in c++ -
How to get parameter value from report in event of value-request?
Hi everyone,
The customer want to use particular F4 help on report, but some input value before press enter key are not used in event of "at selection-screen on value-request for xxx", How to get parameter value in this event?
many thanks!
JackYou probably want to look at function module DYNP_VALUES_READ to allow you to read the values of the other screen fields during the F4 event... below is a simple demo of this - when you press F4 the value from the p_field is read and returned in the p_desc field.
Jonathan
report zlocal_jc_sdn_f4_value_read.
parameters:
p_field(10) type c obligatory, "field with F4
p_desc(40) type c lower case.
at selection-screen output.
perform lock_p_desc_field.
at selection-screen on value-request for p_field.
perform f4_field.
*& Form f4_field
form f4_field.
*" Quick demo custom pick list...
data:
l_desc like p_desc,
l_dyname like d020s-prog,
l_dynumb like d020s-dnum,
ls_dynpfields like dynpread,
lt_dynpfields like dynpread occurs 10.
l_dynumb = sy-dynnr.
l_dyname = sy-repid.
*" Read screen value of P_FIELD
ls_dynpfields-fieldname = 'P_FIELD'.
append ls_dynpfields to lt_dynpfields.
call function 'DYNP_VALUES_READ'
exporting
dyname = l_dyname
dynumb = l_dynumb
tables
dynpfields = lt_dynpfields
exceptions
others = 1.
check sy-subrc is initial.
*" See what user typed in P_FIELD:
read table lt_dynpfields into ls_dynpfields
with key fieldname = 'P_FIELD'.
*" normally you would then build your own search list
*" based on value of P_FIELD and call F4IF_INT_TABLE_VALUE_REQUEST
*" but this is just a demo of writing back to the screen...
*" so just put the value from p_field into P_DESC plus some text...
concatenate 'This is a description for' ls_dynpfields-fieldvalue
into l_desc separated by space.
*" Pop a variable value back into screen
clear: ls_dynpfields.
ls_dynpfields-fieldname = 'P_DESC'.
ls_dynpfields-fieldvalue = l_desc.
append ls_dynpfields to lt_dynpfields.
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = l_dyname
dynumb = l_dynumb
tables
dynpfields = lt_dynpfields
exceptions
others = 0.
endform. "f4_field
*& Form lock_p_desc_field
form lock_p_desc_field.
*" Make P_DESC into a display field
loop at screen.
if screen-name = 'P_DESC'.
screen-input = '0'.
modify screen.
exit.
endif.
endloop.
endform. "lock_p_desc_field -
How to get maximal value from the data/class for show in Map legend
I make WAD report that using Map Web Item.
I devide to four (4) classes for legend (Generate_Breaks).
I want to change default value for the class by javascript and for this,
I need to get maximal value from the class.
How to get maximal value from the data/class.
please give me solution for my problem.
Many Thx
Eddy Utomouse this to get the following End_date
<?following-sibling::../END_DATE?>
Try this
<?for-each:/ROOT/ROW?>
==================
Current StartDate <?START_DATE?>
Current End Date <?END_DATE?>
Next Start Date <?following-sibling::ROW/END_DATE?>
Previous End Date <?preceding-sibling::ROW[1]/END_DATE?>
================
<?end for-each?>
o/p
==================
Current StartDate 01-01-1980
Current End Date 01-01-1988
Next Start Date 01-01-1990
Previous End Date
================
==================
Current StartDate 01-01-1988
Current End Date 01-01-1990
Next Start Date 01-01-2005
Previous End Date 01-01-1988
================
==================
Current StartDate 01-01-2000
Current End Date 01-01-2005
Next Start Date
Previous End Date 01
Maybe you are looking for
-
Java Applet fails loading JAR files
I'm using the OC4J setup with my Oracle forms (10g) install, this was working but no longer. I get the message below when running the test.fmx from the Oracle Forms Services test page for each of the JAR files attempting to load. I comment out the AR
-
Setting listener password in oracle 8i
i have some very old windows databases that are 8.1.0.7. I am not able to upgrade these. I am trying to set a password. 1. go to command line 2. lsnrctl 3. set password <password> LSNRCTL> set password l1stener1$ The command completed successfully LS
-
Case Insensitive Comparison in Oracle 9i
hi all in Oracle 10g we have the following statement to enable case-INsensitive comparison: ALTER SESSION SET nls_sort=binary_ai do we have somthing like this in Oracle 9i to enable case-INsensitive comparison thnx Ashu :)
-
Billing date on rebill invoice
Hello, This is a credit & rebill situation (due to tax error, for example). I'd like to be able to give the customer a new, corrected invoice with the same billing date as the original. However, if the credit & rebill is happening in a subsequent per
-
Highlight Fields when PDF is opened - LiveCycle 8
LiveCycle 8 Win XP Hi, I'm trying to automatically highlight the form fields on a PDF when it is opened. I want the form to act as though the user has chosen the "Highlight Fields" option/button. I would prefer a javascript function to fire (on itial