Date range: relation between two datepicker.
Hi,
I would change/update start date on the second datepicker when the user selected the date on the first datepicker.
How can I manage it?
Thanks.
I did an error!
It works!
/* DatePicker */
private void fromDatePicker_SelectedDateChanged(object sender, SelectionChangedEventArgs e)
var fromPicker = sender as DatePicker;
DateTime? data = fromPicker.SelectedDate;
if (data != null)
toDatePicker.SelectedDate = data.Value.AddDays(1);
toDatePicker.DisplayDateStart = data.Value.AddDays(1);
Similar Messages
-
Using built-in function in the definition of relation between two blocks...
Hi ,
Is it possible to define a relation between two form blocks(db based) ....
I have a master table such as:
table : strdet (cols: ms varchar2(10) , det varchar2(10))
materialized view : mv (cols : det varchar2(10) , sum_a number(5), sum_b number(5))
and data:
strdet
ms det
1 1.1
1 1.2
1.1 1.1.1
1.1 1.1.2
1.1.1 1.1.1.1
e.t.c.
and for the mv
det sum_a sum_b
1 500 300
1.1 100 200
1.2 540 150
e.t.c.
I have tried some versions of relations so as to create a master-detail relation(in reality , the two blocks are connected via ms.det
->mv.det... but the relation is one-to-one....) . I want a result such as:
Master block
1.1
Detail Block
1.1.1
1.1.2
e.t.c.Is it possible somehow...????
Note: I use Dev6i and Dev10g ...
Thanks ,,,
SimI think you'll have to use a from-clause-query for the detail block. If you join the master table and the mv on the DET column then you can give each row in the detail block a MS column (from the master table) which you can use in the relation.
-
Create relation between two blocks which are based on different procedure
Hiii
How to create relation between two blocks which are based on different stored procedures in Oracle form??
Pradhyumn Sharmahiii,
I selected the common key deptno in both procedure.
I created a relation between both procedure. but when i compile the form it give an error in ON-CHECK-DELETE-MASTER. My procedure are
==================================
PACKAGE emp_pkg AS
TYPE emprec IS RECORD(
empno asg_emp.empno%type,
ename asg_emp.ename%type,
job asg_emp.job%type,
sal asg_emp.sal%type,
deptno asg_emp.deptno%type);
TYPE emptab IS TABLE OF emprec INDEX BY BINARY_INTEGER;
PROCEDURE empquery(block_data IN OUT emptab, p_deptno IN NUMBER);
end;
====================================
PACKAGE dept_rec IS
type rec is record(dname asg_dept.dname%type,
loc asg_dept.loc%type,
deptno asg_dept.deptno%type);
type deptrec is table of rec index by binary_integer;
PROCEDURE dept_rec1(block1 in out deptrec);
END;
===================================
In ON-CHECK-DELETE-MASTER
CURSOR BLOCK9_cur IS
SELECT 1 FROM dept_rec.dept_rec1 d
WHERE d.DEPTNO = :BLOCK6.DEPTNO;
identifier dept_rec.dept_rec1 must be declared.
Regards
Pradhyumn -
Set a relation between two or more images
Is it possible to create a relation between two or more images?
For example: We have an image in three versions (rgb, cmyk, gray). If I find one of these, I would like to klick on a button like "show correspondend images". So I can see all versions of this images we ever saved.
Any idea?
Best regards!
RomanI don't think Lightroom handles cmyk images.
For rgb and gray, you can stack the images, or make the gray from a virtual copy of the rgb. In this way, simply unstacking the images results in your requested "show corresponding images". -
How to check relation between two tables in same database
How to check relation between two tables in same database using Oracle SQL developer. Version 2.1.1.64
Hi,
Try this,
SELECT cons.owner AS child_owner, cons.table_name AS child_table,
cons.constraint_name constaint_name,
cons.constraint_type constraint_type, col.owner parent_owner,
col.table_name parent_table, col.column_name column_name
FROM dba_cons_columns col, dba_constraints cons
WHERE cons.r_owner = col.owner
AND cons.r_constraint_name = col.constraint_name
AND col.owner = 'MY_USER'
ORDER BY child_table;Thanks,
Shankar -
Additional data on relationship between two objects
Hi
We have a requirement to capture additional data on a relationship between two objects. The data to be captured are custom fields that are unique to the relationship between the objects and not specific to either of the objects.
We created a new object type and related it to the position (S)and the job (C) object. In the customising (Personnel Management/Personnel Development/Basic Settings/Maintain Relationships there is an option to set up Additional Data. There are however several restrictions (e.g. the substructure has to be in T77AD). When you set up an existing substructure (e.g. PAD22) and screen (e.g. 3000), it works really well, however we have not been able to get this to read our own substructure and screen (since there is no customer include on HRP1001 and the 'Additional data' button seems to go to MP100100 to find the screen).
My question is two fold:
a) Is this an allowed customisation (e.g. can we create our own substructure, screen and Query string)? And if so, how does the data get into T77AD (since SAP recommends that data should not be added to this table)? and
b) Is there any documentation on this (thus far I have only received info on how to enhance infotypes which I don't think is relevant???)?
If this can not be maintained is there any other suggestions on how to deal with this scenario?
Any assistance will be appreciated.
Regards
LiezlHi everyone
Thanks for everyone who tried to assist us with this. I am happy to report that our in-house guru's have found the answer. So, for anyone who is interested:
In programme MP100100 you have a screen 6000 which is a customer enhancements screen. We set up two in-house function modules for the PBO and PAI with its own screen and added an append structure to PAD31 to add the fields required. In the configuration, we then specified PAD31 as the substructure with screen 6000 and then also specified our own PBO and PAI function modules. The parameters required for screen 6000 is set up within our own customer screens.
Hope this will be helpful to someone - it certainly seemed to open up some doors for us!
Regards
Liezl -
How to find particular date lies in between two given dates
hi,
i have a problem. i have to find if particular day lies in between two given dates.
example two dates are joindate and expirydate.
1.joindate is 1/03/2007
expdate is 1/03/2008
now i have to find if 29 feb is in between this joindate and expirydate.
if any1 has ny idea please reply asap.
thanks.The Date class has a before() and after() method you can use to compare Date objects.
-
Oracle 10g - Problem with Date Ranges using Between
I am keeping track of patients who have not been contacted during a date range. if a nurse adds an event or note and the note is type 1,3,4 then this is a contact. The following works but if the event or note was made on the same day as the report is run, the current contact is not printed. Any help to improve the query and identify the problem would be appreciated. Also, if you add '1' to' n.created_date_time BETWEEN '10-Jan-2010' AND TRUNC(SYSDATE)' so it is ' n.created_date_time BETWEEN '10-Jan-2010' AND TRUNC(SYSDATE) + 1'. It works. What is wrong?
SELECT upper(symptom_text),
COUNT(UNIQUE(c.patient_id)) ,
COUNT(UNIQUE(
CASE
WHEN e.eventdate BETWEEN '10-Jan-2010' AND TRUNC(SYSDATE)
OR (n.created_date_time BETWEEN '10-Jan-2010' AND TRUNC(SYSDATE)
AND n.note_type_id IN (1,3,4))
THEN c.patient_id
ELSE 0
END)) - 1
FROM patient c,
cust_info ci,
event e,
note n
WHERE c.physician_id = 74
AND c.patient_id = ci.patient_id
AND ci.info_type_id = 32
AND ci.symptom_text IS NOT NULL
AND c.patient_id = e.patient_id(+)
AND c.patient_id = n.pk_id(+)
AND n.table_name(+) = 'patient'
GROUP BY upper(symptom_text)
ORDER BY DECODE(upper(symptom_text), 'A+', 1, 'A', 2, 'B', 3, 'C', 4, 'D', 5, 99)I suspect the end date is not inclusive. Fields are Date data types. Thanks for any help.Hi,
achtung wrote:
Understood. Frank was correct. Do you mean about the dates? Is that issue solved now?
It would help a lot if you posted some sample data (CREATE TABLE and INSERT statements) and the results you want from that data. Simplify as much as possible. For example, if everything involving the e and n tables is working correctly, forget about them for now. Post a question that only invloves the c and ci tables.
But, additionally, when a record in the cust_info doesn't exist my contact count is inaccurate. How can you explain this conceptually. I understand the query path is checking for this record due to the predicate. Perhaps the query should be redesigned. Thanks for your input!Again, you can see the results, and you know what they should be. Nobody else has that information. Please post some sample data and the results you want from that data.
In your earlier message you said
Could there be a problem if a record does not exist in the ci table?The condition:
AND ci.symptom_text IS NOT NULL
filters for this right? Maybe this could be part of the problem. why I'm not seeing records when a note is added to a patient's doc. How would this be technically be explained? You're doing a inner join between c and ci:
AND c.patient_id = ci.patient_id
AND ci.info_type_id = 32
AND ci.symptom_text IS NOT NULL ...Rows from c will be included only if there is a row in ci with the same patiend_id: even more, that matching row in ci must also have info_type_id=32 in a non-NULL symptom_text, otherwise, the row from c will be ignored.
If you want rows from c to be included even if there is no matching row in ci, then do an outer join, like you're already doing with the e and n tables:
WHERE c.physician_id = 74
AND c.patient_id = ci.patient_id (+)
AND ci.info_type_id (+) = 32
AND ci.symptom_text (+) IS NOT NULL
AND c.patient_id = e.patient_id(+)
AND c.patient_id = n.pk_id(+)
AND n.table_name(+) = 'patient' -
Date range related query needed
I have table 'ratemast' with following columns and data
begindate enddate rate1
01-12-2006 10-12-2006 750.00
11-12-2006 25-12-2006 950.00
26-12-2006 02-03-2007 1500.00
the data in begindate and enddate may fall between any date range.
it may be for a week or for a month or even more than that.
i need a query to do the following:
my query will have begindate and enddate for any date range which is not defined in a single row of ratemast.
I need to pick indiviudal date and its respective rate and sum them and it should be divided by number of days.
eg:- if begindate: 09-12-2006 enddate: 13-12-2006
result should be : (750+750+950+950+950)/5
Please help.Hi,
Here's one way... you may have to alter it to check for count(*) = 0 or any other corner cases.
[email protected](152)> create table ratemast(begindate date, enddate date, rate number);
Table created.
Elapsed: 00:00:00.22
[email protected](152)> insert into ratemast(begindate, enddate, rate)
values (date '2006-12-01', date '2006-12-10', 750);
1 row created.
Elapsed: 00:00:00.01
[email protected](152)> insert into ratemast(begindate, enddate, rate)
values (date '2006-12-11', date '2006-12-25', 950);
1 row created.
Elapsed: 00:00:00.00
[email protected](152)> insert into ratemast(begindate, enddate, rate)
values (date '2006-12-26', date '2007-03-02', 1500);
1 row created.
Elapsed: 00:00:00.00
[email protected](152)> commit;
Commit complete.
Elapsed: 00:00:00.04
[email protected](152)> select * from ratemast
2 /
BEGINDATE ENDDATE RATE
01-DEC-06 10-DEC-06 750
11-DEC-06 25-DEC-06 950
26-DEC-06 02-MAR-07 1500
Elapsed: 00:00:00.03
[email protected](152)> var begin_date varchar2(10);
[email protected](152)> var end_date varchar2(10);
[email protected](152)> exec :begin_date := '2006-12-09';
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.01
[email protected](152)> exec :end_date := '2006-12-13';
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.01
[email protected](152)> @ed
Wrote file TEST.BRANDT_152_20070315150352.sql
1 with dates as (
2 select to_date(:begin_date, 'YYYY-MM-DD') + level - 1 as d
3 from dual
4 connect by level <= to_date(:end_date, 'YYYY-MM-DD') - to_date(:begin_date, 'YYYY-MM-DD') + 1
5 )
6 select dates.d
7 , r.rate
8 from dates
9 , ratemast r
10* where dates.d between r.begindate and r.enddate
[email protected](152)> /
D RATE
09-DEC-06 750
10-DEC-06 750
11-DEC-06 950
12-DEC-06 950
13-DEC-06 950
Elapsed: 00:00:00.02
[email protected](152)> ed
Wrote file TEST.BRANDT_152_20070315150352.sql
1 with dates as (
2 select to_date(:begin_date, 'YYYY-MM-DD') + level - 1 as d
3 from dual
4 connect by level <= to_date(:end_date, 'YYYY-MM-DD') - to_date(:begin_date, 'YYYY-MM-DD') + 1
5 )
6 select :begin_date
7 , :end_date
8 , avg(r.rate) as fee
9 from dates
10 , ratemast r
11 where dates.d between r.begindate and r.enddate
12* group by :begin_date
[email protected](152)> /
:BEGIN_DATE :END_DATE FEE
2006-12-09 2006-12-13 870
Elapsed: 00:00:00.01
[email protected](152)> exec :end_date := '2007-01-15';
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.01
[email protected](152)> @ed
Wrote file TEST.BRANDT_152_20070315151840.sql
1 with dates as (
2 select to_date(:begin_date, 'YYYY-MM-DD') + level - 1 as d
3 from dual
4 connect by level <= to_date(:end_date, 'YYYY-MM-DD') - to_date(:begin_date, 'YYYY-MM-DD') + 1
5 )
6 select dates.d
7 , r.rate
8 from dates
9 , ratemast r
10* where dates.d between r.begindate and r.enddate
[email protected](152)> /
D RATE
09-DEC-06 750
10-DEC-06 750
11-DEC-06 950
12-DEC-06 950
13-DEC-06 950
14-DEC-06 950
15-DEC-06 950
16-DEC-06 950
17-DEC-06 950
18-DEC-06 950
19-DEC-06 950
20-DEC-06 950
21-DEC-06 950
22-DEC-06 950
23-DEC-06 950
24-DEC-06 950
25-DEC-06 950
26-DEC-06 1500
27-DEC-06 1500
28-DEC-06 1500
29-DEC-06 1500
30-DEC-06 1500
31-DEC-06 1500
01-JAN-07 1500
02-JAN-07 1500
03-JAN-07 1500
04-JAN-07 1500
05-JAN-07 1500
06-JAN-07 1500
07-JAN-07 1500
08-JAN-07 1500
09-JAN-07 1500
10-JAN-07 1500
11-JAN-07 1500
12-JAN-07 1500
13-JAN-07 1500
14-JAN-07 1500
15-JAN-07 1500
38 rows selected.
Elapsed: 00:00:00.01
[email protected](152)> ed
Wrote file TEST.BRANDT_152_20070315150352.sql
1 with dates as (
2 select to_date(:begin_date, 'YYYY-MM-DD') + level - 1 as d
3 from dual
4 connect by level <= to_date(:end_date, 'YYYY-MM-DD') - to_date(:begin_date, 'YYYY-MM-DD') + 1
5 )
6 select :begin_date
7 , :end_date
8 , avg(r.rate) as fee
9 from dates
10 , ratemast r
11 where dates.d between r.begindate and r.enddate
12* group by :begin_date
[email protected](152)> /
:BEGIN_DATE :END_DATE FEE
2006-12-09 2007-01-15 1243.42105
Elapsed: 00:00:00.01
[email protected](152)> cheers,
Anthony -
Drag & Relate between two BW reports
Hello together,
I want to implement the Drag&Relate functionality between two BW Reports via EP 6.0. I have configured the connection between Portal and BW with the report RSPOR_SETUP. The SingleSignOn and the import of business object is working well. After that, I took 2 BW testreports which were prepared for D&R. When I now drag the customernumber of report1 to the target report2, I get the error message "No relation found between the source and target business objects". The business object in both reports is 0CUSTOMER, so what relations should be set?
Where is the mistake, could anybody help me?
Thanks and regards.
Gerd NedderhoffHi Gerd,
You have to link the two iviews. First double click the first iview. Then right click the second iview and make it as the target iview. Then in the navigation panel you see the other iview in the Drag and relate section.
Regards
Arun -
Hello,
I have many blocks that based on some views. first every thing is ok when i insert record on them, but when i do an execute query i'm able to navigate between blocks in on way like (next, next) but when do previous i missed the sync between the blocks. So i decided to make some relations between these blocks. i have a main block that i take for my master and i constructed the relations master-details between my main block and others.
now when i run form i received that error ''FRM-30415 the details block of the relation is a control block'', and it give me the relation's name. I have to mention that the QUERY_DATA_SOURCE_NAME is from clause for every blocks.
as i said the blocks are based on views.
could someone help me?Is the "Database Data Block" property of the detail block "Yes"?
-
How to create an relation between two block
Oracle forms 6i
Hai All
I have created a form in that i have four button ADD, QUERY, SAVE ,EXIT.
I have two block named Leader and members.
Four fields in leader block namely name , codeno, deptcode, unitid.
When i pressed query button and the cursor goes to name field in leader when i enter the name of leader and click
enter i gives the codeno, deptcode and unitid of the leader_name.
so now i have created another block in tabular structure to bring the members in the same deptcode that belongs to Leader_name.
So pls tell me the steps how to create the relation between these two blocks.
when i enter the leader_name and gives enter it needs to bring the codeno, deptcode, unitid and
I also need to gives the members in that deptcode..
Thanks In Advance
Srikkanth.MIf it is possible to create relationship with one table No.
Or
I have created a pre-Query in the detali block and my code is
set_block_property ('block_name', default_where, 'deptcode = (select deptcode from emplmaster where name like :block_in_which_leader_name.leader_name_field');BTW no need of joining here it can be solve by set the block's where clause as u said in ur earlier post above. Just changing the little bit this statement and then try.
If numeric
set_block_property ('block_name', default_where, 'deptcode = '||:block_in_which_leader_name.leader_name_field);
Otherwire
set_block_property ('block_name', default_where, 'deptcode = '''||:block_in_which_leader_name.leader_name_field||'''');-Ammad -
Date/hour diff between two date/timestamps - however dataype in DB is curr varchar
Hi All
Could someone please help me?
I would like the T-SQL statement for hours passed between two date/timestamps within a table
e.g
Login_Time
22/02/2014 11:03:12.925297 AM (Data type in DB is varchar(50))
Logout_Time
22/02/2014 11:19:01.701073 AM (Data type in DB is varchar(50))
Thank you KindlyDECLARE @dt AS VARCHAR(50)='22/02/2014 11:03:12.925297 AM'
DECLARE @dt1 AS VARCHAR(50)='22/02/2014 11:19:01.701073 AM'
SELECT DATEDIFF(hour,dt_from,dt_to) FROM
SELECT CAST(SUBSTRING(@dt,7,4)+ SUBSTRING(@dt,4,2)+SUBSTRING(@dt,1,2)+
SUBSTRING (@dt,11,17) AS DATETIME2) dt_from,
CAST(SUBSTRING(@dt1,7,4)+ SUBSTRING(@dt1,4,2)+SUBSTRING(@dt1,1,2)+
SUBSTRING (@dt1,11,17) AS DATETIME2) dt_to
) AS Der
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Represinting my data and relations between records in a diagram not by the hierarchic
hi all ,
if there is a group of people in one table and the other table contains another group of people, and there is a relation between those groups, how to create a form or a report representing diagram for this relation. This diagram should be dynamic, when we change in the records of these people.
Which tool can I use instad of "creating a hierarchical tree" ?
Is there anyone who could help me? My email address is
[email protected]
or [email protected]Check out Graphics Builder, which you can incorporate into forms.
-
Represinting my data and relations between records in diagram " not by the hierarchic
hi all ,
if there is a group of people in one table and the other table contains another group of people, and there is a relation between those groups, how to create a form or a report representing diagram for this relation. This diagram should be dynamic, when we change in the records of these people.
Which tool can I use instad of "creating a hierarchical tree" ?
Is there anyone who could help me? My email address is
[email protected]
or [email protected]Check out Graphics Builder, which you can incorporate into forms.
Maybe you are looking for
-
No mouse cursor in TextWrangler
ARD 3.3.2 on MBP Desktop 10.5.8 accessing Server 10.6.2 (3.3.2 client). When using TextWrangler the mouse cursor disappears when over the code window - it's there when over the side drawer. The active line highlight and text insertion cursor show - i
-
Batch change color of existing highlights in a PDF (Acrobat X Pro)
I'm trying to find a script or action that will batch change the color of some existing text highlights in a PDF. The document shows the text being highlighted, but the highlight color is extremely light such that it is visable only with unnecessary
-
"Track initialization error" when burning DVD
This message keeps coming up when I try to burn a DVD in iDVD from my G4 laptop. Movie is 28 minutes long. ANY help would be very gratefully appreciated. THANKS
-
BATCHINPUT: Screen appears only the first time
Hi everybody, I have the following situation in R/3: On transaction ABZON when the user selects this transaction for the first time, appears a window asking for the company field (BUKRS). If the user enters the same transaction again without login of
-
trying to install elements 11 and redemption code doesn't respond when entered