Results and original value
Hi All,
i put a value on the result column and put 1 on the inspected column but when i valuated the results the value on the results column is gone and the value 1 in the inspected column became a zero..the value on the result column move to original value...
please reply on this thread ASAP
Edited by: phoebe blanco on Nov 4, 2008 8:00 AM
I am also having this issue.
I am recording the result in QE51n. I enter the result, and lock it in. The result transfers to the u201Coriginal valueu201D field as usual, but it is not retained/rounded in the result column. Instead the result column goes blank.
The MIC status is changed to 5, and is valuated as passing with the green checkmark. Therefore, I can generate a CoA with this MIC, but of course there is not a value in the result field, so nothing pulls to the CoA.
Thanks in advance,
Chris
Similar Messages
-
How to Get the min,max and original values in a single query
Hi,
I have a task where in i have to the min , max and the original values of a data set .
I have the data like below and i want the target as well as mentioned below
SOURCE
DATASOURCE
INTEGRATIONID
SLOT_DATE
SLOT1
SLOT2
SLOT3
SLOT4
SLOT5
SLOT6
SLOT7
SLOT8
SLOT9
SLOT10
1
101
201111
100
100
200
100
100
100
300
300
300
300
1
101
2011112
200
200
200
200
100
100
100
100
200
300
TARGET
DATASOURCE
INTEGRATIONID
SLOT_DATE
SLOT_VALUE
SLOT MIN
SLOT_MAX
SLOT NUMBER
1
101
201111
100
1
2
SLOT1
1
101
201111
100
1
2
SLOT2
1
101
201111
200
3
3
SLOT3
1
101
201111
100
4
6
SLOT4
1
101
201111
100
4
6
SLOT5
1
101
201111
100
4
6
SLOT6
1
101
201111
300
7
10
SLOT7
1
101
201111
300
7
10
SLOT8
1
101
201111
300
7
10
SLOT9
1
101
201111
300
7
10
SLOT10
1
101
2011112
200
1
4
SLOT1
1
101
2011112
200
1
4
SLOT2
1
101
2011112
200
1
4
SLOT3
1
101
2011112
200
1
4
SLOT4
1
101
2011112
100
5
8
SLOT5
1
101
2011112
100
5
8
SLOT6
1
101
2011112
100
5
8
SLOT7
1
101
2011112
100
5
8
SLOT8
1
101
2011112
200
9
9
SLOT9
1
101
2011112
300
10
10
SLOT10
e
so basically i would first denormalize the data using the pivot column and then use min and max to get the slot_start and slot_end.
But then i
can get the min and max ... but not the orignal values as well.
Any thoughts would be appreciated.
ThanksIf you want to end up with one row per slot per datasource etc, and you want the min and max slots that have the same value as the current slot, then you probably need to be using analytic functions, like:
with t as
(SELECT 1 datasource,101 INTEGRATIONID, 201111 slotdate, 100 SLOT1, 100 SLOT2, 200 slot3, 100 slot4, 100 slot5, 100 slot6, 300 slot7, 300 slot8, 300 slot9, 300 slot10 FROM DUAL union all
SELECT 1, 101, 2011112, 200, 200, 200, 200, 100, 100, 100, 100, 200, 300 FROM DUAL),
UNPIVOTED AS
(SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,1 SLOT,SLOT1 SLOT_VALUE
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,2 SLOT,SLOT2
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,3 SLOT,SLOT3
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,4 SLOT,SLOT4
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,5 SLOT,SLOT5
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,6 SLOT,SLOT6
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,7 SLOT,SLOT7
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,8 SLOT,SLOT8
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,9 SLOT,SLOT9
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,10 SLOT,SLOT10
FROM T)
select DATASOURCE,INTEGRATIONID,SLOTDATE,slot,slot_value,min(slot) OVER (partition by datasource,integrationid,slotdate,rn) minslot,
max(slot) OVER (partition by datasource,integrationid,slotdate,rn) maxslot
FROM
select DATASOURCE,INTEGRATIONID,SLOTDATE,max(rn) over (partition by datasource,integrationid,slotdate order by slot) rn,slot,slot_value
FROM
(SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,slot,slot_value,
case when row_number() over (partition by datasource,integrationid,slotdate order by slot) = 1 or
lag(slot_value) over (partition by datasource,integrationid,slotdate order by slot) <> slot_value
then row_number() over (partition by datasource,integrationid,slotdate order by slot)
ELSE null
END rn
from unpivoted
order by DATASOURCE,INTEGRATIONID,SLOTDATE,slot -
Using Sql Result and Limit Value in Prompt OBIEE 11.1.1.5
Dear Gurus,
I have prompt hierarchy like this:
Year
Quarter
Month
Which are using limit value (Quarter depend on Year, Month depend on Quarter), but I have issue because appear null also in those prompt
I have checked my database, view, repository there are not null.
My questions is, how to remove null in prompt when sql result can't use together with limit value, I don't know how to remove it using column filter.
NB:I already using presentation variable in sql result in order to remove null and using constraint, but it show nothing in prompt view unless we press apply button.
So I don't use this
Please help, kindly appreciated
JOE
Edited by: JoeSSI on Mar 27, 2012 2:03 AMHi,
Can you edit your prompt here you can find show option then select SQL Result please modify statement like below.
SELECT your column name FROM subject area where your column name is not null
Go--> Edit your prompt--> Show--> Select Sql result---> change statement like above.
Second way.
Go to physical layer then double click your column name here you can find *"nullable"* option please check that.
Go--> Physical Layer--> Extract table --> select your column name-->double click your column name--> here you can find option like Nullable please check it.
Award points it is useful.
Thanks,
Satya -
Get hierechy result and mutiply value
1.Create the tables with insert queries
2. provide the result as required in an temp table
3. Display the expected result
===============================================================================
CREATE TABLE and Insert Data
================================================================================
use master
CREATE TABLE [dbo].[Travel_Master](
[Load_Id] [int] NULL,
[Mode_Id] [nchar](2) NULL,
[Mode_Info] [nchar](10) NULL,
[Has_Nodes] [nchar](3) NULL
) ON [PRIMARY]
INSERT INTO [dbo].[Travel_Master] ([Load_Id] ,[Mode_Id] ,[Mode_Info] ,[Has_Nodes]) VALUES ( 1,'AP' ,'AIR' ,'No')
INSERT INTO [dbo].[Travel_Master] ([Load_Id] ,[Mode_Id] ,[Mode_Info] ,[Has_Nodes]) VALUES ( 1,'SE' ,'SEA' ,'Yes')
INSERT INTO [dbo].[Travel_Master] ([Load_Id] ,[Mode_Id] ,[Mode_Info] ,[Has_Nodes]) VALUES ( 1,'SP' ,'SHIP' ,'No')
INSERT INTO [dbo].[Travel_Master] ([Load_Id] ,[Mode_Id] ,[Mode_Info] ,[Has_Nodes]) VALUES ( 1,'BT' ,'BOAT' ,'No')
INSERT INTO [dbo].[Travel_Master] ([Load_Id] ,[Mode_Id] ,[Mode_Info] ,[Has_Nodes]) VALUES ( 1,'RD' ,'ROAD' ,'Yes')
INSERT INTO [dbo].[Travel_Master] ([Load_Id] ,[Mode_Id] ,[Mode_Info] ,[Has_Nodes]) VALUES ( 1,'BU' ,'BUS' ,'No')
INSERT INTO [dbo].[Travel_Master] ([Load_Id] ,[Mode_Id] ,[Mode_Info] ,[Has_Nodes]) VALUES ( 1,'CA' ,'CAR' ,'Yes')
INSERT INTO [dbo].[Travel_Master] ([Load_Id] ,[Mode_Id] ,[Mode_Info] ,[Has_Nodes]) VALUES ( 1,'BI' ,'BIKE' ,'No')
INSERT INTO [dbo].[Travel_Master] ([Load_Id] ,[Mode_Id] ,[Mode_Info] ,[Has_Nodes]) VALUES ( 1,'CY' ,'CYCLE' ,'No')
INSERT INTO [dbo].[Travel_Master] ([Load_Id] ,[Mode_Id] ,[Mode_Info] ,[Has_Nodes]) VALUES ( 1,'TR' ,'TRAM' ,'No')
INSERT INTO [dbo].[Travel_Master] ([Load_Id] ,[Mode_Id] ,[Mode_Info] ,[Has_Nodes]) VALUES ( 1,'BM' ,'BMW' ,'No')
INSERT INTO [dbo].[Travel_Master] ([Load_Id] ,[Mode_Id] ,[Mode_Info] ,[Has_Nodes]) VALUES ( 1,'AI' ,'AUDI' ,'No')
CREATE TABLE [dbo].[Travel_Occurs](
[Load_Id] [int] NULL,
[Mode_Sno] [int] NULL,
[Mode_Id] [nchar](2) NULL,
[Mode_Parent_Sno] [int] NULL,
[Quantity] [numeric](18, 0) NULL
) ON [PRIMARY]
INSERT INTO [dbo].[Travel_Occurs] ([Load_Id] ,[Mode_Sno] ,[Mode_Id], [Mode_Parent_Sno] ,[Quantity]) VALUES (1,1,'AP',-1,4)
INSERT INTO [dbo].[Travel_Occurs] ([Load_Id] ,[Mode_Sno] ,[Mode_Id], [Mode_Parent_Sno] ,[Quantity]) VALUES (1,2,'SE',-1,2)
INSERT INTO [dbo].[Travel_Occurs] ([Load_Id] ,[Mode_Sno] ,[Mode_Id], [Mode_Parent_Sno] ,[Quantity]) VALUES (1,3,'SP',2,3)
INSERT INTO [dbo].[Travel_Occurs] ([Load_Id] ,[Mode_Sno] ,[Mode_Id], [Mode_Parent_Sno] ,[Quantity]) VALUES (1,4,'BT',2,5)
INSERT INTO [dbo].[Travel_Occurs] ([Load_Id] ,[Mode_Sno] ,[Mode_Id], [Mode_Parent_Sno] ,[Quantity]) VALUES (1,5,'RD',-1,3)
INSERT INTO [dbo].[Travel_Occurs] ([Load_Id] ,[Mode_Sno] ,[Mode_Id], [Mode_Parent_Sno] ,[Quantity]) VALUES (1,6,'BU',5,10)
INSERT INTO [dbo].[Travel_Occurs] ([Load_Id] ,[Mode_Sno] ,[Mode_Id], [Mode_Parent_Sno] ,[Quantity]) VALUES (1,7,'CA',5,20)
INSERT INTO [dbo].[Travel_Occurs] ([Load_Id] ,[Mode_Sno] ,[Mode_Id], [Mode_Parent_Sno] ,[Quantity]) VALUES (1,8,'BI',5,15)
INSERT INTO [dbo].[Travel_Occurs] ([Load_Id] ,[Mode_Sno] ,[Mode_Id], [Mode_Parent_Sno] ,[Quantity]) VALUES (1,9,'CY',5,2)
INSERT INTO [dbo].[Travel_Occurs] ([Load_Id] ,[Mode_Sno] ,[Mode_Id], [Mode_Parent_Sno] ,[Quantity]) VALUES (1,10,'TR',5,5)
INSERT INTO [dbo].[Travel_Occurs] ([Load_Id] ,[Mode_Sno] ,[Mode_Id], [Mode_Parent_Sno] ,[Quantity]) VALUES (1,11,'BM',7,6)
INSERT INTO [dbo].[Travel_Occurs] ([Load_Id] ,[Mode_Sno] ,[Mode_Id], [Mode_Parent_Sno] ,[Quantity]) VALUES (1,12,'AI',7,14)
===============================================================================
CREATE #TempTable -- for easy result generation (Optional )
================================================================================
Concept Used ::
Quantity of the High Nodes to be Multiply with Leaf level Data
Mode_Info
Mode_Info_Detail
Mode_Info_Inculdes
Has_Nodes
Quantity
Calc_Quantity
AIR
AIR
No
4
4
SEA
Yes
2
no display + used for calc only
SEA
SHIP
No
3
6
SEA
BOAT
No
5
10
ROAD
Yes
3
no display + used for calc only
ROAD
BUS
No
10
30
ROAD
CAR
Yes
20
no display + used for calc only
ROAD
BIKE
No
15
45
ROAD
CYCLE
No
2
6
ROAD
TRAM
No
5
15
ROAD
CAR
BMW
No
6
360
ROAD
CAR
AUDI
No
14
840
===============================================================================
Expected Result
Mode_Info
Mode_Detail
Quantity
Air
4
SEA
SHIP
6
SEA
BOAT
10
ROAD
BUS
30
ROAD
BIKE
4
ROAD
CYCLE
6
ROAD
TRAM
15
ROAD
BMW
360
ROAD
AUDI
840
ShanmugaRajwith cte
as (select load_id
,mode_sno
,mode_id
,mode_parent_sno
,quantity
,mode_id as last_mode_id
from travel_occurs
where mode_parent_sno=-1
union all
select a.load_id
,a.mode_sno
,a.mode_id
,b.mode_parent_sno
,cast(b.quantity*a.quantity as numeric(18,0)) as quantity
,b.mode_id as last_mode_id
from travel_occurs as a
inner join cte as b
on b.load_id=a.load_id
and b.mode_sno=a.mode_parent_sno
where a.mode_parent_sno<>-1
select c.mode_info
,case when a.mode_info=c.mode_info then '' else a.mode_info end as mode_detail
,b.quantity
from travel_master as a
inner join cte as b
on b.load_id=a.load_id
and b.mode_id=a.mode_id
inner join travel_master as c
on c.load_id=b.load_id
and c.mode_id=b.last_mode_id
where a.has_nodes='No'
order by a.load_id
,b.mode_sno
ShanmugaRaj -
Table for Original Values in Results Recording
Hi,
Where are the original values of the results recording of the inspection lot (inspection type 04) stored?
Or, is there any function module to fetch this data?
Regards
Ramakanthit's in table QASE
original value (Data Element- QORIGINAL_INPUT ) -
Custom component Search and Result view using value node :pls help
Hi Experts,
I am creating a Custom component with Search and Result view using value nodes.
This is the code I wrote in the Search button event handler method.
The data which gets in lv_search I need to put in lv_col .
Can somebody guide me for this.
Points will be awarded .
METHOD eh_onsearch.
DATA : lv_current TYPE REF TO if_bol_bo_property_access,
lv_search TYPE zcrm_orgstruct_search, "Search value node structure
lv_result TYPE zcrm_orgstruct_result, "Result value node structure
lv_col TYPE REF TO if_bol_bo_col.
lv_current ?= me->typed_context->search->collection_wrapper->get_current( ).
CALL METHOD lv_current->get_properties
IMPORTING
es_attributes = lv_search.
me->typed_context->searchresult->collection_wrapper->set_collection( lv_col ).
op_toresultview( ).
ENDMETHOD.
Regards,
LakshmiHi Lakshmi,
Could you please share with us how it was solved.
"CALL METHOD lv_current->get_properties
IMPORTING
es_attributes = lv_search."
Did you get any values in lv_search ?
Because while using value nodes for search view (which inherits from advance search controller class), the above method does not return any search values entered in the fields.
Please let me know how did you solve it.
Thanks & Regards
Vidhya -
How calculate original value and accumulated depreciation ?
recently,FI department let me develop a report about fixed
assets,which need show original value , accumulated depreciation. but
my problem is I can not fix where I can draw out the correct data ,ANLC
or ANLP ? FI key user told me that the T-code aw01n can show original
value and accumulated depreciation ,infact ,it is true,but I don't know
how T-code aw01n calculate that? specially, I can not fix the
item 'value ajust' . can you give me a correct calculate formula?use logical database ADA - table anlcv
or use fm FI_AA_VALUES_CALCULATE (look docu)
hope that helps
Andreas -
Single result recording valuation based on min and max values
hi,
Our client requirement is as follows:
While entering the single results recording the system should not calculate the average , we need the system should valuate based on the Minimum and Maximum values in result entry. Is it possible?. can anyone explain in details.
Regards,
Ramu.Hi
This is a standard SAP functionality available in SAP
As
Variable Inspection by S-Method
If you set this indicator, you define the valuation mode for the variable inspection according to the s-method (ISO 3951).
For a sampling procedure with this valuation mode, valuation occurs using a sampling plan consisting of sample size and k-factor. A quality score is calculated from the measured values of a sample and compared with the k-factor.
Now you want Both limits should come into picture while valuating then Check valuation Rule :31 -Variable insp. s-Method (two limits)
so select the Valuation mode : 310- Variable insp. s-Method (two limits) in sampling procedure.
I hope this will add some value.
Regars
Sujit -
Getting the original values in table maintenance and the new one and send t
Hello experts,
In table maintenance, I need to capture the original values in that selected column/field and
also the new one and send it to email. For example, I have a field in my z table named zaddress and whenever
the user changes the contents of that selected row I need to get/fecth the original value and the new and send it to email.
So the email will be something like this:
Dear Admin,
Changes were made to ztable. Here are the changes:
Customer : Customer 1
Order no : 1
Original Address : example address A
New Address : example address B
NOTE: Do not reply to this email.
Again, thank you guys and have a nice day!Hi Vijay,
<b>1</b>.
If u r using Modulepool programming to change the field contents ,u just capture field value into one variable .This is possible in <b>PBO</b>.before displaying .once u change the field value and press something ,now capture changed value in another variable .This is possible in <b>PAI</b>.After pressing something to modify Database.
I think u can get one idea after reading this .
<b>2</b>.
For sending mail it is not a problem.
You can check the following code.
*-------Mail related tables ,structures and variables
DATA:
w_subject LIKE sodocchgi1,
i_pack_list LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
i_objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
i_contents_text LIKE solisti1 OCCURS 10 WITH HEADER LINE,
i_cont_bin LIKE solisti1 OCCURS 10 WITH HEADER LINE,
i_objhex LIKE solix OCCURS 10 WITH HEADER LINE,
i_receiver LIKE somlreci1 OCCURS 1 WITH HEADER LINE,
i_listobject LIKE abaplist OCCURS 1 WITH HEADER LINE,
pdf LIKE tline OCCURS 100 WITH HEADER LINE,
content_out LIKE solisti1 OCCURS 0 WITH HEADER LINE.
DATA:
tab_lines TYPE i,
doc_size TYPE i,
att_type LIKE soodk-objtp,
obj_desc LIKE w_subject-obj_descr,
sent_to_all LIKE sonv-flag,
client LIKE tst01-dclient,
name LIKE tst01-dname,
objtype LIKE rststype-type,
type LIKE rststype-type,
is_otf TYPE c ,
no_of_bytes TYPE i,
pdf_spoolid LIKE tsp01-rqident,
jobname LIKE tbtcjob-jobname,
jobcount LIKE tbtcjob-jobcount,
pn_begda LIKE sy-datum,
val(1) TYPE c,
pripar TYPE pri_params,
arcpar TYPE arc_params,
lay TYPE pri_params-paart,
lines TYPE pri_params-linct,
cols TYPE pri_params-linsz,
spool_name TYPE pri_params-plist.
CLEAR :w_subject,
sent_to_all,
i_pack_list[],
i_objhead[],
i_cont_bin[],
i_contents_text[],
i_receiver[].
i_cont_bin = ' | '.
APPEND i_cont_bin.
Subject of the mail.
obj_desc = 'Outstanding Appraisals' .
w_subject-obj_name = 'MAIL_ALI'.
w_subject-obj_descr = obj_desc.
Body of the mail
DATA :head_desc LIKE i_contents_text,
body_desc LIKE i_contents_text.
i_contents_text = space.
APPEND i_contents_text.
CLEAR i_contents_text.
CONCATENATE
'Please refer to the attached list of appraisal(s) that require your'
'attention. Please log in to the eHR System and use the eAppraisal'
'function to work on it.'
INTO body_desc
SEPARATED BY space.
i_contents_text = body_desc.
APPEND i_contents_text.
CLEAR i_contents_text.
CLEAR body_desc.
i_contents_text = 'Thank You.'.
APPEND i_contents_text.
CLEAR i_contents_text.
i_contents_text = space.
APPEND i_contents_text.
CLEAR i_contents_text.
CONCATENATE '(Note: This is system generated message, please'
'do not reply'
'to this Email.)'
INTO i_contents_text
SEPARATED BY space.
APPEND i_contents_text.
CLEAR i_contents_text.
Write Packing List (Body)
DESCRIBE TABLE i_contents_text LINES tab_lines.
READ TABLE i_contents_text INDEX tab_lines.
w_subject-doc_size = ( tab_lines - 1 ) * 255 + STRLEN(
i_contents_text ).
CLEAR i_pack_list-transf_bin.
i_pack_list-head_start = 1.
i_pack_list-head_num = 0.
i_pack_list-body_start = 1.
i_pack_list-body_num = tab_lines.
i_pack_list-doc_type = 'RAW'.
APPEND i_pack_list.
CLEAR i_pack_list.
Create receiver list
i_receiver-receiver = g_email_next_man.
i_receiver-rec_type = 'U'.
APPEND i_receiver.
CLEAR i_receiver.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_subject
put_in_outbox = 'X'
commit_work = 'X'
IMPORTING
sent_to_all = sent_to_all
TABLES
packing_list = i_pack_list
object_header = i_objhead
contents_bin = i_cont_bin
contents_txt = i_contents_text
receivers = i_receiver
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc NE 0.
ENDIF.
I think it helps u something.
<b>Thanks,
Venkat.O</b> -
Why does Illustrator automatically change RGB and CMYK values
Hi, I am struggling to understand why Illustrator is changing the values inside the RGB and CMYK boxes. I am also not sure of the exact relationship between these values. Essentially, it appears that if you set the Document Color Mode to RGB, it leaves the RGB values that you type in alone. If you set the Document Color Mode to CMYK, it leaves the CMYK values alone.
But as soon as you change the Color Mode, it automatically modifies the values. So if you were in RGB mode and you set some RGB values, it changes those RGB values when you switch to CMYK mode. And vice versa.
I had thought that the CMYK palette was a subset of the RGB palette. It would make sense to me if it did this when I switched from RGB to CMYK mode, but it doesn't make sense to me why it does this when I switch from CMYK to RGB mode.
The other thing I am confused about is the relationship of the values in the RGB boxes to the values in the CMYK boxes. I would have thought that the relationship between them would be static. Actually, it is not. When I am in CMYK mode and I enter a CMYK value of 90 16 0 0, the RGB values become 0 158 222. But when I switch over to RGB mode, the RGB values of 0 158 222 result in CMYK values of 75 23 0 0.
Very confusing.
Thanks in advance if you can explain this behavior!
Best Regards,
Z.Color management.
Hi, I am struggling to understand why Illustrator is changing the values inside the RGB and CMYK boxes. I am also not sure of the exact relationship between these values. Essentially, it appears that if you set the Document Color Mode to RGB, it leaves the RGB values that you type in alone. If you set the Document Color Mode to CMYK, it leaves the CMYK values alone.
An Ai document can be either RGB or CMYK. The colors follow the document color mode and thus are converted immediately if they don't match.
But as soon as you change the Color Mode, it automatically modifies the values. So if you were in RGB mode and you set some RGB values, it changes those RGB values when you switch to CMYK mode. And vice versa.
Same reason.
I had thought that the CMYK palette was a subset of the RGB palette. It would make sense to me if it did this when I switched from RGB to CMYK mode, but it doesn't make sense to me why it does this when I switch from CMYK to RGB mode.
It's not. CMYK color spaces (there are more than just one) are normally smaller than RGB color spaces, but they aren't a "subset".
The other thing I am confused about is the relationship of the values in the RGB boxes to the values in the CMYK boxes. I would have thought that the relationship between them would be static. Actually, it is not. When I am in CMYK mode and I enter a CMYK value of 90 16 0 0, the RGB values become 0 158 222. But when I switch over to RGB mode, the RGB values of 0 158 222 result in CMYK values of 75 23 0 0.
When Illustrator converts the colors, it uses color management: the profiles you set up and the methods you set up. After converting it forgets the color that used to be. When converting "back", it uses color management again.
When you convert an very bright RGB color, it be out of the CMYK gamut. So it get's converted to the closest possbile CMYK color (which might still be far away from the original color. But it's not possible to convert it "back" to the bright one unless you just revert the conversion (by Cmd/Ctrl + Z). -
JTable cell edits return to original values
Hi
I am making some progress with using AbstractTableModel, however I have a problem whereby any edits that I make to cells within the table are being lost when I add a new row��the original values are re-appearing.
I have searched through the forum looking for a solution but with no success thus far.
I believe that the solution lies with the fireTableDataChanged() method but thus far I have had no success. My problem (I believe) is that I cannot work out how to fire it when a user leaves the newly edited cell.
The method that adds the new rows is shown below and is called from a button on the Frame that houses the jTable. I have tried firing the method from here, hoping that all table edits will persist, but unfortunately they still disappear.
public void fillTable()
if(c > 0)
for (int i = 0; i < c; i = i + 1)
this.setValueAt(((JobItemClass) items.get(i)).getItemNumber(), i, 0);
this.setValueAt(((JobItemClass) items.get(i)).getDescription(), i, 1);
this.setValueAt(((JobItemClass) items.get(i)).getCostPerItem(), i, 2);
this.setValueAt(((JobItemClass) items.get(i)).getQuantity(), i, 3);
public void addRow()
newItem = new JobItemClass(); //Create an object to hold the new row defsault values
newItem.setItemNumber(c + 1);
newItem.setDescription("");
newItem.setCostPerItem(0.0);
newItem.setQuantity(0);
items.add(c, newItem); //Add the default object to the array
c = c + 1; //Update the variable holding the array size
table = new Object[c][4]; //Increase the size of the object that acts as the table
fireTableRowsInserted(c, c); //Alert the object acting as the table that there is a new row
fillTable(); //Refresh the display to reflect the new row default values
}As always, any help greatly appreciated
GBThanks again for the replies people.
I decided to edit this message and post updated code which can be seen below. This is a result of re-reading the helpfull advice from both azukov and camickr who took the time to respond to my initial request for help. I still have to work out how to validate user input but am sure that the tableChanged method will be the key.
A simple tutorial also provided great assistance, especially helping eith the implementation of the TableModelListener. I have provided a link to the tutorial here:
http://www.javalobby.org/articles/jtable/
The coding was carried out in netbeans 5.5, libraries have not been included.
Here is my updated code......table model first:
public class MyJobItemTableModel extends AbstractTableModel
JobItemClass newItem; //Procides a default record when nothing available
int jobNo;
int c;
ArrayList items; //Stores the objects that provide the records
public MyJobItemTableModel(int j)
jobNo = j;
items = (new JobAllItems(jobNo)).getItems();
c = items.size();
String columnName[] = { "Item Number", "Item Description", "Cost per item", "Quantity" };
Class columnType[] = { Integer.class, String.class, Double.class, Integer.class };
/**************************This method probably now redundant************************
public void storeCellValue(int row, int col)
if(col == 0)
((JobItemClass) items.get(row)).setItemNumber((Integer) this.getValueAt(row, col));
if(col == 1)
((JobItemClass) items.get(row)).setDescription((String) this.getValueAt(row, col));
if(col == 2)
((JobItemClass) items.get(row)).setCostPerItem((Double) this.getValueAt(row, col));
if(col == 3)
((JobItemClass) items.get(row)).setQuantity((Integer) this.getValueAt(row, col));
public void addRow()
c = c + 1; //Update the variable holding the array size
newItem = new JobItemClass(); //Create a default object to fill the new row
newItem.setItemNumber(c);
newItem.setDescription("");
newItem.setCostPerItem(0.0);
newItem.setQuantity(0);
items.add(c-1, newItem);
this.fireTableRowsInserted(c, c); //Update the display to show the added row.
public int getColumnCount()
return 4;
public int getRowCount()
return items.size();
public Object getValueAt(int r, int c)
JobItemClass jic = (JobItemClass) items.get(r);
switch(c)
case 0:
return jic.getItemNumber();
case 1:
return jic.getDescription();
case 2:
return jic.getCostPerItem();
case 3:
return jic.getQuantity();
default:
return new Object();
public String getColumnName(int column)
return columnName[column];
public Class getColumnClass(int c)
return columnType[c];
public boolean hasNoItems()
if(items.size() == 0)
return true;
else
return false;
public boolean isCellEditable(int r, int c)
return true;
public void setValueAt(Object aValue, int r, int c)
JobItemClass jic = (JobItemClass) items.get(r);
switch(c)
case 0:
jic.setItemNumber((Integer)aValue);
break;
case 1:
jic.setDescription((String)aValue);
break;
case 2:
jic.setCostPerItem((Double)aValue);
break;
case 3:
jic.setQuantity((Integer)aValue);
break;
fireTableCellUpdated(r, c);
}......and now the view (what the user sees)
public class ViewItems extends javax.swing.JPanel
protected MyJobItemTableModel myModel;
/** Creates new form ViewItems */
public ViewItems()
initComponents();
public void createTable(int jobNo)
myModel = new MyJobItemTableModel(jobNo);
myModel.addTableModelListener(new ViewItems.ViewItemsTableModelListener());
jTable1.setModel(myModel);
//jTable1.setSurrendersFocusOnKeystroke(true); //not sure what this does
if (myModel.hasNoItems())
myModel.addRow();
public void run(int jobNo)
createTable(jobNo);
try
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
JFrame frame = new JFrame("Invoice Breakdown");
frame.addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent evt)
setVisible(false);
frame.getContentPane().add(this);
frame.pack();
frame.setVisible(true);
catch (Exception e)
e.printStackTrace();
/**This class is required in order to respond to any changes that happen
* to the table or data within, i.e. the user editing data in a cell.
* The tablemodel (MyJobItemTableModel) will 'fire' the event and the
* tableChanged() method will be executed.
public class ViewItemsTableModelListener implements TableModelListener
public void tableChanged(TableModelEvent evt)
if (evt.getType() == TableModelEvent.UPDATE)
int column = evt.getColumn();
int row = evt.getFirstRow();
System.out.println("row: " + row + " column: " + column);
jTable1.setColumnSelectionInterval(column + 1, column + 1);
jTable1.setRowSelectionInterval(row, row);
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">
private void initComponents()
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();
btnAddItem = new javax.swing.JButton();
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][]
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
new String []
"Title 1", "Title 2", "Title 3", "Title 4"
jScrollPane1.setViewportView(jTable1);
btnAddItem.setText("Add Item");
btnAddItem.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(java.awt.event.ActionEvent evt)
btnAddItemActionPerformed(evt);
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 589, Short.MAX_VALUE)
.addContainerGap())
.add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
.add(btnAddItem)
.add(264, 264, 264))))
layout.setVerticalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 163, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(49, 49, 49)
.add(btnAddItem)
.addContainerGap(54, Short.MAX_VALUE))
}// </editor-fold>
private void btnAddItemActionPerformed(java.awt.event.ActionEvent evt)
ViewItems.this.myModel.addRow();
// Variables declaration - do not modify
private javax.swing.JButton btnAddItem;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTable jTable1;
// End of variables declaration
}Edited by: greenockboy on Oct 15, 2007 8:17 PM -
Hi,
I am on customer site with BOE XI 3.1 FP 1.6. We are creating publications with a WebI source report. The WebI report has a series of prompts. Eg. posting period. The publication is pushed to 2 groups of reciepients. Each group has a different profile value. The WebI report has been last saved with posting period = 5. When I schedule the publication, I change the posting period to 3.
2 instances were generated for the 2 profile values. When I open the 1st instance - it shows me data for posting period 3 - which is correct. However, the 2nd instance shows me data for posting period 3. It seems like the prompt value at the time of scheduling did not get picked up for the 2nd instance.
Has anyone came across this problem?
Thanks in advance.
Regards,
Cindy.Hi Cindy,
We came across the same problem. We have a publication for a certain group, that has to be split on the section (normal publication).
The publication has to run on different times for a different value. Originally the webi report has run for a value product=1, which is selected with a prompt. When we change the prompt value in the publication (product=2) the original value is still selected in the publication or the result set is empty.
We have however discovered that when you first open the Webi report, refresh it with the new prompt value, save the report and then change the prompt in the publication the report is correctly refreshed. This is a workaround we currently use, but it is not very convenient. We are looking for a solution for this problem.
Regards,
Jorn -
How to differentiate the EMPTY Records and Null Values in DSO
Hello....how is everyone here?? Ehehehe!
I try to load some data from the flat file which contains some EMPTY data and Null Values for the records. The data type for the InfoObjects of the fields "Quantity" is "number". The sample data from the flat file (CSV) are as below:
Food Quantity
Hamburger - 12
Cheese - 0
Vegetable - (Empty)
When I try to load the above sample data to the DSO, I get the results of the data as follow:
Food Quantity
Hamburger - 12.000
Cheese - 0.000
Vegetable - 0.000
In this case, how can the user differentiate whether the records is contain empty value of null values in DSO? This is kinda of hard to differentiate the both scenarios above. Is there any way to differentiate the scenarios described here?
Thanks alot =)Hi Fluffy,
It depends on the initial values of the data type
The inital values For quantity/Currency/ Numbers it takes spaces as 0
for char it is SPACE
We cannot differeniate between space and null values.
IF you have to force this then define quantity as char and load the data. we will not have units and aggregation in this case.
Hope this helps.
PV -
From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?
Hi,
Use NVL or COALESCE:
NVL (col_a, col_b)
Returns col_a if col_a is not NULL; otherwise, it returns col_b.
Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002 -
Union two tables with diffrent count of fields with null and float value
Hello,
i want to union two tables, first one with 3 fields and second one with 4 fields (diffrent count of fields).
I can add null value at end of first select but it does not work with float values in second table. Value form second table is convert to integer.
For example:
select null v1 from sessions
union
select 0.05 v1 from sessions
result is set of null and 0 value.
As workaround i can type:
select null+0.0 v1 from sessions
union
select 0.05 v1 from sessions
or simple change select's order.
Is any better/proper way to do this? Can I somehow set float field type in first select?
Best regards,
Lukasz.
WIN XP, MAXDB 7.6.03Hi Lukasz,
in a UNION statement the first statement defines the structure (number, names and types of fields) of the resultset.
Therefore you have to define a FLOAT field in the first SELECT statement in order to avoid conversion to VARCHAR.
Be aware that NULL and 0.0 are not the same thus NULL+0.0 does not equal NULL.
In fact NULL cannot equal to any number or character value at all.
BTW: you may want to use UNION ALL to avoid the search and removal of duplicates - looks like your datasets won't contain duplicates anyhow...
Regards,
Lars
Maybe you are looking for
-
New features in iTunes for AppleTV
You can now import iMovie files directly into iTunes, DV footage too. It looks perfect, except for the ratio being stuck at 4:3 (annoying). You can then - in iTunes - convert to AppleTV. If they sort out the ratio issue, then this, I think, is a big
-
Messages Mac default to sending by iMessage instead of SMS/MMS
Is there a way to set Messages on my iMac (10.10.3) to send messages to a recipient using iMassage rather than SMS/MMS? I know my recipients have iPhones, but when I open messages and want to send them a message, Messages uses their "green" text mess
-
Has anyone had any experience accessing I2C devices using Java. I am currently running a J2ME CVM on arm-linux and I have the device file /dev/i2c-0. I have run a few supplied test programs which scan the bus and show me that the devices are operatio
-
Apole messed up big time with the external GPS issues in IOS 8.3. It couldn't have been more inconvenient for me since I am on the road and can't use my Bad Elf GPS Pro to drive CoPilot now. I had no idea that 8.3 no longer allowed CoPilot to retrie
-
Source-highlight install error
% spac -S source-highlight Password: resolving dependencies... looking for inter-conflicts... Targets (1): source-highlight-2.11.1-2 Total Download Size: 0.55 MB Total Installed Size: 3.16 MB Proceed with installation? [Y/n] :: Retrieving packages fr