How to display the records based on user input
Hi all,
On the front end, there are two date fileds, for example, start and end. Whenever user enters start date and end date, i want to display those dates starting from start date to
end date whatever the user enters.
For example, user enters Start date : 01/15/2012 and End date : 01/19/2012
I want to display like this *01/15/2012 01/16/2012 01/17/2012 01/18/2012 01/19/2012*
Thanks in advance.
Thanks,
Pal
Hello
You can generate a range of dates between two supplied variables with something like
var start_date varchar2(20)
var end_date varchar2(20)
exec :start_date:='01/15/2012';
exec :end_date:='01/19/2012';
SELECT
TO_DATE(:start_date,'mm/dd/yyyy') + (rownum-1)
FROM
dual
CONNECT BY
LEVEL <= (TO_DATE(:end_date,'mm/dd/yyyy') - TO_DATE(:start_date,'mm/dd/yyyy') ) + 1
TO_DATE(:START_DATE,
15-JAN-2012 00:00:00
16-JAN-2012 00:00:00
17-JAN-2012 00:00:00
18-JAN-2012 00:00:00
19-JAN-2012 00:00:00If you want to have them in columns you'd need to set an upper limit for the number of dates and use a pivot
SELECT
MAX(CASE WHEN date_idx = 1 THEN dt END) date1,
MAX(CASE WHEN date_idx = 2 THEN dt END) date2,
MAX(CASE WHEN date_idx = 3 THEN dt END) date3,
MAX(CASE WHEN date_idx = 4 THEN dt END) date4,
MAX(CASE WHEN date_idx = 5 THEN dt END) date5,
MAX(CASE WHEN date_idx = 6 THEN dt END) date6,
MAX(CASE WHEN date_idx = 7 THEN dt END) date7,
MAX(CASE WHEN date_idx = 8 THEN dt END) date8,
MAX(CASE WHEN date_idx = 9 THEN dt END) date9,
MAX(CASE WHEN date_idx = 10 THEN dt END) date10
FROM
( SELECT
rownum date_idx,
TO_DATE(:start_date,'mm/dd/yyyy') + (rownum-1) dt
FROM
dual
CONNECT BY
LEVEL <= (TO_DATE(:end_date,'mm/dd/yyyy') - TO_DATE(:start_date,'mm/dd/yyyy') ) + 1
) Or failing that, you could use string aggregation like so...
WITH dates AS
( SELECT
TO_DATE(:start_date,'mm/dd/yyyy') + (rownum-1) dt
FROM
dual
CONNECT BY
LEVEL <= (TO_DATE(:end_date,'mm/dd/yyyy') - TO_DATE(:start_date,'mm/dd/yyyy') ) + 1
SELECT LTRIM(MAX(SYS_CONNECT_BY_PATH(TO_CHAR(dt,'mm/dd/yyyy'),' '))
KEEP (DENSE_RANK LAST ORDER BY curr),',') AS dates
FROM (SELECT dt,
ROW_NUMBER() OVER (ORDER BY dt) AS curr,
ROW_NUMBER() OVER (ORDER BY dt) -1 AS prev
FROM dates)
CONNECT BY prev = PRIOR curr
START WITH curr = 1
DATES
01/15/2012 01/16/2012 01/17/2012 01/18/2012 01/19/2012HTH
David
Similar Messages
-
How to add column dynamically based on user input in oracle?
**how to add column dynamically based on user input in oracle?**
I am generating monthly report based on from_date to to_date below is my requirement sample table
EMPLOYEE_CODE| Name | CL_TAKEN_DATE | CL_BALANCE | 01-OCT-12 | 02-OCT-12 | 03-OCT-12
100001.............John...........02-OCT-12...............6
100002.............chris...........01-OCT-12...............4
Based on user input, that is, if user need the report from 01-OCT-12 TO 03-OCT-12, i need to add that dates as column in my table, like 01-OCT-12 | 02-OCT-12 | 03-OCT-12....
below is my code
create or replace
procedure MONTHLY_LVE_NEW_REPORT_demo
L_BUSINESS_UNIT IN SSHRMS_LEAVE_REQUEST_TRN.BUSINESS_UNIT%TYPE,
--L_LEAVE_TYPE_CODE IN SSHRMS_LEAVE_REQUEST_TRN.LEAVE_TYPE_CODE%TYPE,
L_DEPARTMENT_CODE IN VARCHAR2,
--L_MONTH IN SSHRMS_LEAVE_REQUEST_TRN.LVE_FROM_DATE%TYPE,
L_FROM_DATE IN SSHRMS_LEAVE_REQUEST_TRN.LVE_FROM_DATE%TYPE,
L_TO_DATE in SSHRMS_LEAVE_REQUEST_TRN.LVE_TO_DATE%type,
MONTHRPT_CURSOR OUT SYS_REFCURSOR
AS
O_MONTHRPT_CURSOR_RPT clob;
v_return_msg clob;
BEGIN
IF (L_BUSINESS_UNIT IS NOT NULL
AND L_FROM_DATE IS NOT NULL
and L_TO_DATE is not null
-- AND L_DEPARTMENT_CODE IS NOT NULL
THEN
OPEN MONTHRPT_CURSOR FOR
select EMPLOYEE_CODE, EMPLOYEE_NAME AS NAME, DEPARTMENT_CODE AS DEPARTMENT,DEPARTMENT_DESC, CREATED_DATE,
NVL(WM_CONCAT(CL_RANGE),'') as CL_TAKEN_DATE,
case when NVL(SUM(CL2),0)<0 then 0 else (NVL(SUM(CL2),0)) end as CL_BALANCE,
from
SELECT DISTINCT a.employee_code,
a.EMPLOYEE_FIRST_NAME || ' ' || a.EMPLOYEE_LAST_NAME as EMPLOYEE_NAME,
a.DEPARTMENT_CODE,
a.DEPARTMENT_DESC,
B.LEAVE_TYPE_CODE,
B.LVE_UNITS_APPLIED,
B.CREATED_DATE as CREATED_DATE,
DECODE(b.leave_type_code,'CL',SSHRMS_LVE_BUSINESSDAY(L_BUSINESS_UNIT,to_char(b.lve_from_date,'mm/dd/yyyy'), to_char(b.lve_to_date,'mm/dd/yyyy'))) CL_RANGE,
DECODE(B.LEAVE_TYPE_CODE,'CL',B.LVE_UNITS_APPLIED)CL1,
b.status
from SSHRMS_EMPLOYEE_DATA a
join
SSHRMS_LEAVE_BALANCE C
on a.EMPLOYEE_CODE = C.EMPLOYEE_CODE
and C.STATUS = 'Y'
left join
SSHRMS_LEAVE_REQUEST_TRN B
on
B.EMPLOYEE_CODE=C.EMPLOYEE_CODE
and c.EMPLOYEE_CODE = b.EMPLOYEE_CODE
and B.LEAVE_TYPE_CODE = C.LEAVE_TYPE_CODE
and B.STATUS in ('A','P','C')
and (B.LVE_FROM_DATE >= TO_DATE(L_FROM_DATE, 'DD/MON/RRRR')
and B.LVE_TO_DATE <= TO_DATE(L_TO_DATE, 'DD/MON/RRRR'))
join
SSHRMS_LEAVE_REQUEST_TRN D
on a.EMPLOYEE_CODE = D.EMPLOYEE_CODE
and D.LEAVE_TYPE_CODE in ('CL')
AND D.LEAVE_TYPE_CODE IS NOT NULL
group by EMPLOYEE_CODE, EMPLOYEE_NAME, DEPARTMENT_CODE, DEPARTMENT_DESC, CREATED_DATE
else
v_return_msg:='Field should not be empty';
end if;
END;
my code actual output
EMPLOYEE_CODE| Name | CL_TAKEN_DATE | CL_BALANCE
100001....................John............02-OCT-12.................6
100001....................chris...........01-OCT-12.................4
how to add column dynamically based on from_date to to_date?
Thanks and Regards,
Chris Jerome.You cannot add columns dynamically. But you can define a maximum number of numbers and then hide unused columns in your form useing SET_ITEM_PROPERTY(..,VISIBLE, PROPERTY_FALSE);
-
How to display screens (tabs) based on user authentication
hi
i am new to jheadstart, i want to display screens (tabs) based on users, ie if i have screens of dept, grade, desig, group, type, master etc..
if user is admin display all the items in tab,
if user 1 then display only dept, grade, desig
if user2 then other settings....etc
how to do this pls help,,,,,
thx in adv
KrisKris,
If you upgrade to JHeadstart 10.1.2.2 (requires a license), you will get built-in support for user authenrication and authorization including showing tabs based on the role. 10.1.2.2. ships with a demo app that uses all these features.
Steven Davelaar,
JHeadstart Team. -
How to display filtered data based on user login
We have a SSRS report (.rdlc) which gives the report about Online count of machines. Report is incoperayed in Asp.net.
We have many filters in This report. Now we have to retrict the report based on user login to the application .
For ex: report has a drop down for Regional Admin. Now if one person login to the application he has to view only his region online count.
How can we do this in SSRS?. We have our application hosted in Microsoft Azure . Please suggestHi csmbrnoc,
In Reporting Services, if we want to filter data based on user login, then there must be some relationship between the UserID and the Region in the dataset. For example, there is a field named UserID in the dataset, and each ID map some region and the corresponding
“Online count of machines”. In this scenario, just as Visakh suggested, we can use built-in field User!UserID to obtain UserID of the current user, then directly add a filter to the dataset as below:
Expression: [UserID]
Operator: =
Value: [&UserID]
If there are any other questions, please feel free to let me know.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to calculate elapsed time based on user input
I'm not sure what to do next in this program. Basically, I'm not sure exactly how to get the time to output accurately, as in what forumla I should be using.
This is the question:
What comes 13 hours after 4 o'clock? Create an ElaspedTimeCalculator application that prompts the user for a starting hour, whether it is am or pm, and the number of elapsed hours. The application then displays the time after that many hours have passed. Application output should look similar to:
Enter the starting hour: 7
Enter am or pm: pm
Enter the number of elapsed hours: 10
The time is: 5:00 amHere's the code I have so far:
import java.util.Scanner;
public class ElapsedTimeCalculator
public static void main(String[] args)
int starting_hour;
int starting_minutes; /*This is added in case the user wants to add minutes as well.*/
String am_or_pm;
int elapsed_hours;
int elasped_minutes;
int time_hours;
int time_minutes;
System.out.println("Welcome. This application will give you the time based on your input.");
System.out.println(" ");
Scanner input = new Scanner(System.in);
System.out.print("Enter the starting hour: ");
starting_hour = input.nextDouble();
System.out.print("Enter the starting minutes: ");
starting_minutes = input.nextDouble();
System.out.print("Enter either 'am' or pm': ");
am_or_pm = input.nextString();
System.out.print("Enter the number of elapsed hours: ");
elapsed_hours = input.nextDouble();
input.close();
time_hours =
time_minutes =
if(am_or_pm = "am" || am_or_pm = "a.m." || am_or_pm = "AM" || am_or_pm = "A.M.")
System.out.println("The time is " + time_hours + ":" + time_minutes + "am");
if(am_or_pm = "pm" || am_or_pm = "p.m." || am_or_pm = "PM" || am_or_pm = "P.M.")
System.out.println("The time is " + time_hours + ":" + time_minutes + "pm");
}To calculate time_hours should I just calculate this by adding the elapsed hour to the starting hour? I doubt it will be accurate for all situations.
Same for the time_minutes For example, if the starting minutes and the elapsed minutes were 50, it would be greater than 60. Also, not sure if it makes sense to separate hours and minutes like this, it's not required to in the question. I initally thought it would be easier to approach like this instead of allowing the user to input a double for the starting hour. ex. 5.7
I get the feeling that this is extremely simple, but nonetheless, I'm stuck, so any help would be appreciated.Well thanks to both of you. I did a little reading up on the modulus operator and coupled it with some logic (although, truthfully, I'm not really using to there actually being an application for the remainder of a division operation, since it's never really used very much in any of my Math courses) and the hours portion works perfectly now:
import java.util.Scanner;
public class ElapsedTimeCalculator
public static void main(String[] args)
int starting_hour;
//int starting_minutes; /*This is added in case the user wants to add minutes as well.*/
String am_or_pm;
int elapsed_hours;
//int elasped_minutes;
System.out.println("Welcome. This application will give you the time based on your input.");
System.out.println(" ");
Scanner input = new Scanner(System.in);
System.out.print("Enter the starting hour: ");
starting_hour = input.nextInt();
//System.out.print("Enter the starting minutes: ");
//starting_minutes = input.nextInt();
System.out.print("Enter either 'am' or pm': ");
am_or_pm = input.next();
System.out.print("Enter the number of elapsed hours: ");
elapsed_hours = input.nextInt();
input.close();
int time_hours = 0;
//int time_minutes;
String meridien;
if(am_or_pm.equals("am"))
time_hours = (starting_hour + elapsed_hours) % 24;
//time_minutes = (starting_minutes + elapsed_minutes) % 60;
else if(am_or_pm.equals("am"))
time_hours = (starting_hour + elapsed_hours) % 24;
//time_minutes = (starting_minutes + elapsed_minutes) % 60;
else if(am_or_pm.equals("AM"))
time_hours = (starting_hour + elapsed_hours) % 24;
//time_minutes = (starting_minutes + elapsed_minutes) % 60;
else if(am_or_pm.equals("A.M."))
time_hours = (starting_hour + elapsed_hours) % 24;
//time_minutes = (starting_minutes + elapsed_minutes) % 60;
else if(am_or_pm.equals("pm"))
time_hours = (starting_hour + elapsed_hours + 12) % 24;
//time_minutes = (starting_minutes + elapsed_minutes) % 60;
else if(am_or_pm.equals("p.m."))
time_hours = (starting_hour + elapsed_hours + 12) % 24;
//time_minutes = (starting_minutes + elapsed_minutes) % 60;
else if(am_or_pm.equals("PM"))
time_hours = (starting_hour + elapsed_hours + 12) % 24;
//time_minutes = (starting_minutes + elapsed_minutes) % 60;
else if(am_or_pm.equals("P.M."))
time_hours = (starting_hour + elapsed_hours + 12) % 24;
//time_minutes = (starting_minutes + elapsed_minutes) % 60;
if(time_hours < 12)
meridien = "A.M.";
System.out.println("The time is: " + time_hours + ":00 " + meridien);
else if(time_hours > 12)
meridien = "P.M.";
System.out.println("The time is: " + time_hours + ":00 " + meridien);
}Now the only thing is the minutes. My teacher did say she wants the user to have the option to input minutes also if he/she desires, so I do need it. However, the only problem is that if say the user inputs a "starting minute" of 14 for example, and 66 minutes elapsing, then (14 + 66) int/ 60 = 1r20 but using the modulus operator would only give me 20. So how will I be able to add any extra hours if it is necessary? -
Displaying alert message based on user input on input param screen
Hi,
Based on user input I wish to display an alert popup on my report. I
have provided the user 2 dropdowns called sortasc and sortdesc with all
the column names used in the report to simulate dynamic sorting.This is
because we do not have dynamic sorting in CR XI R2. When the user
selects same column name in both sortasc and sortdesc then the sort
type which has priority in the record sort expert is executed. This is fine but we want an alert
or message popup displayed so as to prevent user from selecting same
column names.
I tried adding an alert with the following code:
if {?sortasc} = {?sortdesc} then true else false
So far I have not been prompted with any alert message box.
Let me know if there is any other option.Hi Shalu,
I have created a alert and it is working fine, please follow the steps
Create a new Alert using two static parameters and give the condition for message like :
if {?Myworld} = {?Myworld1} Then
'You have entered a correct word'
else
'This is not a correct word'
Then create a condition like :
{?Myworld} = {?Myworld1} or {?Myworld} <> {?Myworld1}
Also check the check box Enabled and save the alert. Now it will popup if the myworld is equal to myworld1 or myworld is not equal to myworld1.
Hope this will help you
Thanks,
Sastry -
Displaying different reports based on user input.
Hi,
I have a requirement to display the invoiced amount and Ago amount on a dashboard. The ago amount will be dynamic in that if user selects the prompt 'compare with' as previous day, it should display day ago amount along with todays amount. It he chooses month, then it should display this month's amount and previous month's amount.
Is there a way I can achieve this on a dashboard?
Thanks,
Vivek.Use guided navigation. And you need to have 2 reports (one for day level and the other for month level, eac has own AGO part). And some reports for guided navigation conditions.
Regards
Goran
http://108obiee.blogspot.com -
How to change the number of items displayed on the screen based on user input
I need to place a number of input clusters on the user's screen based on the number of input types he will have. Is there an easy way to do this? (Say I have 3 different electrodes, I want to be able to add information for each then take this information and add it to a database, this case adding three new record sets to the database. If I only have one electrode though, I only want one cluster on the screen and only one recordset will be added to the database)
Message Edited by Vitamin on 01-11-2007 12:36 PMPlace your clusters in a 1D array and create a property node for the array. You can use the Number of Rows property to control how many elements are shown. Wire the array into a for loop to index it.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
Try to take over the world! -
How to seperate the accounts based on user login?
I'm creating a system where I have a public page that is to be displayed for all the users then in the login box the user can login and then he will get his session. The problem I'm facing is that after I login from the public page I still get the page that is gurantee to public. how can I login directly to user1 account ??
Hi
Do you know how Portals 'Default user group' works?
This construct could be your solution if the number of users isn't too high or the users can be grouped easily.
Otherwise you could work with a menu hierarchy based on individual user privileges.
Follow my answer to such a topic in this link to see how it works:
hiding menu items if the user does not have the privs
A combination of these two suggestions would probably be the best.
Hope this helps.
Thanks
Peter -
How to fill the records from a User Define Table to PO item Grid
Hi To all,
I need to fill data from User Define table records into Purchase Order Item Grid.
I created an UDF Filed in PO - Header Part - "PRS"(Filed Name)
By using Formatted Search in itemcode column, i called a query,
"Select itemcode, qty from (@user define tablename) where PRS = $http://OPOR.U_PRS"
For eg:
Output from querry
ItemCode Qty
ABC 1
DEF 2
DFG 7
SDGD 9
By using formatted search it is filling only first data in to itemcode column in PO Grid.
Please help, how can i fill ALL the data in to my PO Grid?
Thanks in Advance
SAGARThe easisest way is to create datasource and the result bind to grid.
Datasource:
oDBDataSource = oForm.DataSources.DBDataSources.Add("@usertablename")
Dim xoConditions As SAPbouiCOM.Conditions
Dim xoCondition As SAPbouiCOM.Condition
xoConditions = New SAPbouiCOM.Conditions
xoCondition = xoConditions.Add
xoCondition.BracketOpenNum = 1
xoCondition.Alias = "u_zn"
xoCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
xoCondition.CondVal = "cond"
xoCondition.BracketCloseNum = 1
oDBDataSource.Query(xoConditions)
binding (example for matrix, in grid is simillar)
oMatrix.Clear()
Dim cols As SAPbouiCOM.Columns
Dim column As SAPbouiCOM.Column
cols = oMatrix.Columns
column = cols.Item("colX")
column.DataBind.SetBound(True, "@usertable", "u_x")
oMatrix.LoadFromDataSource()
hoep it helps
Petr -
How to Display the Report Based on The Page Number
Hi All,
I just have a requirement like this
The User wants to see only the odd numbers of Report pages in the Total Report
For Ex. If the Report consist of 10 Pages the user wanna see Pages 1,3,5,7,9...........
is it attainable in WebI..............
Please help on this
Thanks in advance.............I wonder...how do you think user should navigate through document.... ? If I want to see only odd pages - I will either create separate report or I am ok with setting the correct number to actual displayed page.You may also consider using links - it depends how is report structure created...
-
How to update the record based on checkbox
Dear All,
Good Afternoon,
Here i am creating Company Creation Page,
Company has multiple personss
At the time of company creation we set one person as primary person.
that means we just pass that person id as company primary person id columnnn in company table.
vo.getCurrentRow().setAttribute("CompPrimarypersonid", pid);
here i am getting so many persons details with checkboxes.
suppose i want to set another person as a primary person by just clicking on check box.
At that time pass this person id into company primary persin id column in company table.
already primary person id is overwrite with this company id.
how can we get this requirement.
its very urgent to mee
give me the guidance for this requirement.Hi,
You can write a procedure and call it through AM using Callable Statement passing the person_id and company_id.
Now in the procedure, you can check that what is the primary person_id of this company_id.
Store that primary_person_id in a variable say test.
then update the company table with new primary person_id
update company set primary_person_id = <new person_id > where primary_person_id = test;
commit;
Thanks,
Gaurav -
Can you tag fields to display or hide based on user input?
I have a 25 part form that my users access quite frequently - currently it is stored in 25 Word documents and the end users choose which ever parts they need and copy and paste into one form. I am tasked with creating one form with all 25 parts in it - no big deal there, but the form must function so that only the text that they choose will display and the rest is hidden. Is there a way to tag text fields conditional based on end user selection?
For example - There are check boxes with a number followed by a text box with a sentence or 2 up to 5 or 6 short paragraphs. The users would like to select the check boxes required and have that text flow into one letter and the check boxes with respective text that are unchecked do not display.
Can I put each check box and subsequent text in a subform and somehow code it to display when the user wants?
Thank you in advance for your help with this.
-RIf you look at your heirarchy you can find the following..
1) I wrapped all the fields from "OMFS/Excessive" onwards into a single subform. This will make page1 to have only two subforms (subform_1 and subform_2).
2) Inside Subform_2, I wrapped each of the text information that is to be displayed/ hidden into a subform. And then changed the content type to Flowed and set the height to Autofit.
3) Similarly I moved each of the checkbox question also to a subform. Changed the content type to Flowed. and set the height to Autofit.
4)Finally changed the Page1 content type to Flowed.
Let me know if you need more clarification.
Thanks
Srini -
How to display the column dyanmically depending upon input
I am doing a alv report of tax breaks in which i had 6 columns to be displayed as static and rest of ( vat tax )columns should be dynamic .
if i enter a p.o.document no then if that p.o has taxes
excise and excess then they should be displayed and vat field contain 0 or nodata then it should not be in output .pls let me know .Farukh Quadri
In the program, check if the PO has the EXCISE and EXCESS details. If yes, then make the FLAG = ' ' .
If the PO doesnot have EXCISE and EXCESS details then make FLAG = 'X'.
While biulding the Field Catalog, make that COLUMNS INVISIBLE depending upon the FLAG value
loop at locFieldCatalog.
case locFieldCatalog-fieldname.
when 'WERKS'.
locFieldCatalog-emphasize = 'X'.
locFieldCatalog-col_pos = 1.
modify locFieldCatalog.
when 'MATNR'.
locFieldCatalog-emphasize = 'X'.
locFieldCatalog-col_pos = 2.
modify locFieldCatalog.
<b> when 'EXCESS'.
if FLAG = 'X'.
locFieldCatalog-no_out = 'X'.
modify locFieldCatalog.
endif.</b>
endcase.
Please close your previous postings
Thanks
Kam -
How to display records that match user input date
hi all,
i need to display records that match user input date (i.e., for example if the difference between user input date and record date is less than 5 years then display those records) , this is for hr bw. any exit is there to check for validation for records to be displayed based on some abap coding.
vijayI just see getApplication method but "Retrieves a list of all the deployed applications."
My scenario is: I get user, end i want to discorver how application this user i enable to see.
Maybe you are looking for
-
Generating PDF from MSWord--IsTable of Content Updated?
Hello, In generating PDF from MSWord document does the Adobe process call a method on the MSWord object to update the TOC field in the Word document during the generation process. Or is it assumed that the table of content in the Word document is alw
-
Can get the apple side of my imac to do anything except a grey screen
The PC side works fine and I can log in but....... Here is the screen I get when I have the disk in and hold down the option key while it is booting. http://74.236.246.48/111.jpg I also tried holding down the "C" key while it was booting and the only
-
Song not the same as the title
My itunes has experienced more than once where the song title is NOT the song being played. No one but me has access to my itunes so that the info has been changed. I am certain I loaded this one particular song one. Went to play it and behold, it
-
Import MS SQL DB - NVarchar has double length
Hi all I have problem with import MS SQL database. If I import column Nvarchar(100) from database to Data Modeler, so in Data Modeler is this column as nvarchar(200). If I import column Nvarchar(max), so in Data Modeler is as nvarchar(-1). I use JDBC
-
Hello everyone I am currently using Labview ver 7.0. I currently have a bitmap picture of an AutoCAD drawing that I would like to edit programmatically. Basically I have some temperature sensors on my hardware and I would like to add a color range to