Displaying Dynamic Time in Oracle forms6i
Hi all,
i want to display dynamic time in Oracle forms (forms 6i). this should be displayed in text item only..
i want it to run time continuously. What can i do for this.
Please help me guys
Regards
Balraj
try this as im doing to my forms 6i
/* *Trigger : _WHen-neW-Form-instaNcE* */
declare
mtimer_id timer;
begin
/*THis if you want to appear on your Window. */
SET_WINDOW_PROPERTY('WINDOW1', TITLE, 'Hospital Management Information System',TO_CHAR(SYSDATE, 'DD/MM/YYYY HH24:MI:SS')) ;
/* Create a TiMeR */
HD_TIMER := CREATE_TIMER('mtimer_id', 1000, _REPEAT) ;*
/* for the item you need to add item in a block */
*:control_blk.item_hrs := to_char(sysdate,'HH12:MI:SS am');*
/* Trigger: When-Timer-exPiRed */
declare
mexpired_timer varchar(20) := getapplication_property(timer_name); <<< this if you have more than 1 timer to check what timer is expired
begin
if mexpired_timer = 'mtimer_id' then
SET_WINDOW_PROPERTY('WINDOW1', TITLE, 'Hospital Management Information System',TO_CHAR(SYSDATE, 'DD/MM/YYYY HH24:MI:SS')) ;
*:control_blk.item_hrs := to_char(sysdate,'HH12:MI:SS am')* <<<--- This for the item...
end if;
/* DONT FORGET THIS */
Synchronize;
end;
Edited by: charles on Jan 24, 2011 10:06 AM
Edited by: charles on Jan 24, 2011 10:11 AM
Edited by: charles on Jan 24, 2011 10:12 AM
Edited by: charles on Jan 24, 2011 10:13 AM
Edited by: charles on Jan 24, 2011 10:14 AM
Similar Messages
-
Dynamically display the time in a movie
Can anyone tell me if it is possible to display the time dynamically in a movie in Final Cut Pro. For example, I would like to display the date and time in the upper left corner of the movie with the time changing by hour:min:sec and maybe even frame as the movie plays. On a separate track or something.
I am new to this so I don't know if I need special software or if I can do it in FCP.
ThanksThere's a Generator called Timecode Generator, or Timecode Reader. Generator creates new TC, Reader reads it from the clip. But it only shows hours, minutes, seconds, not the calendar date. To display calendar date and clock time, you'll have to create a counter from scratch.
-
Display date and Time in Oracle Application Express Page
Hi
I have a requirement of showing the date and time in the top left corner of the page which should be updated at all times . The format is DD-MON-YYYY HH24:MI:SS.
I am able to display the date but not the time . Also the time should be updating on its own to the last second.
Another requirement is that on selecting a particular value from the drop down the table values displayed should be filtered
Thanks in advance for helping me out
you can also send in the responses to [email protected]
Regards
Jude FrancoHello,
I am able to display the date but not the time Probably due to your NLS settings not displaying the time component for dates. However you can manually specify the output format like this -
jes@DBTEST> select to_char(sysdate, 'HH24:MI:SS DD-MON-YYYY') as TS from dual;
TS
10:47:45 10-DEC-2008
Another requirement is that on selecting a particular value from the drop down the table values displayed should be filtered Really need more details on that (remember assume that we know nothing about your requirements other than what you tell us). However at a high-level you need to include the drop down value in the query predicate used for your report, for example -
select
e.ename,
e.sal
from
emp e
where
e.deptno = NVL(:P1_DEPTNO, e.deptno)Would use the value from the P1_DEPTNO select list (presumably displaying department names) and use it to filter the result. The NVL is there so that if no dept is selected then the query by default shows all the records.
Hope this helps,
John.
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! -
Oracle Forms6i Query Performance issue - Urgent
Hi All,
I'm using oracle forms6i and Oracle DB 9i.
I'm facing the performance issue in query forms.
In detail block form taking long time to load the data.
Form contains 2 non data blocks
1.HDR - 3 input parameters
2.DETAILS - Grid - Details
HDR input fields
1.Company Code
2.Company ACccount No
3.Customer Name
Details Grid is displayed the details.
Here there are 2 tables involved
1.Table1 - 1 crore records
2.Table2 - 4 crore records
In form procedure one cursor bulid and fetch is done directly and assign the values to form block fields.
Below i've pasted the query
SELECT
t1.entry_dt,
t2.authoriser_code,
t1.company_code,
t1.company_ac_no
initcap(t1.customer_name) cust_name,
t2.agreement_no
t1.customer_id
FROM
table1 t1,
table2 t2
WHERE
(t2.trans_no = t1.trans_no or t2.temp_trans_no = t1.trans_no)
AND t1.company_code = nvl(:hdr.l_company_code,t1.company_code)
AND t1.company_ac_no = nvl(:hdr.l_company_ac_no,t1.company_ac_no)
AND lower(t1.customer_name) LIKE lower(nvl('%'||:hdr.l_customer_name||'%' ,t1.customer_name))
GROUP BY
t2.authoriser_code,
t1.company_code,
t1.company_ac_no,
t1.customer_name,
t2.agreement_no,
t1.customer_id;
Where Clause Analysis
1.Condition 1 OR operator (In table2 two different columbs are compared with one column in table)
2.Like Operator
3.All the columns has index but not used properly always full table scan
4.NVL chk
5.If i run the qry in backend means coming little fast,front end very slow
Input Parameter - Query retrival data - limit
Only compnay code means record count will be 50 - 500 records -
Only compnay code and comp ac number means record count will be 1-5
Only compnay code,omp ac number and customer name means record count will be 1 - 5 records
I have tried following ways
1.Split the query using UNIOIN (OR clause seaparted) - Nested loops COST 850 , Nested loops COST 750 - index by row id - cost is 160 ,index by row id - cost is 152 full table access.................................
2.Dynamic SQL build - 'DBMS_SQL.DEFINE COLUMN .....
3.Given onlu one input parameter - Nested loops COST 780 , Nested loops COST 780 - index by row id - cost is 148 ,index by row id - cost is 152 full table access.................................
Still im facing the same issue.
Please help me out on this.
Thanks and Regards,
Oracle1001Sudhakar P wrote:
the below query its take more than one minute while updating the records through pro*c.
Execute 562238 161.03 174.15 7 3932677 2274833 562238Hi Sudhakar,
If the database is capable of executing 562,238 update statements in one minute, then that's pretty good, don't you think.
Your real problem is in the application code which probably looks something like this in pseudocode:
for i in (some set containing 562,238 rows)
loop
<your update statement with all the bind variables>
end loop;If you transform your code to do a single update statement, you'll gain a lot of seconds.
Regards,
Rob. -
How to display the time in Swing jtable
I need to display the time in jTable.
The time is a date field in ORACLE database (connected via
Oracle Thin drivers).
Im totally stuck. Please help.
TIA.Thanks for your reply.
My problem is that I have to display time. This time is a DATE field
in ORACLE database.
Im using FORTE (UI). What the jTable display is the DATE (1900-01-01) which is not what I want. I want the time to appear in the jTable (hh.mm.ss a).
What I did was to use the TO_CHAR function of ORACLE to format the
date to display the correct time in the VIEW before mapping this view
to be used as a MODEL by the jTable.
It works now.
Much appreciate all your help. Thanks. -
How to set Dynamic Time Series in Planning application
Dear All,
I am having an issue by setting up dynamic time series (Y-T-D). I have set up at generation level 4. In our application the hierarchy of dimension Period is as follows.
Yeartotal -> HY1 -> Q1 -> Jan, Feb, Mar
Consider the following example
Jan -> 100
Feb -> 200
Mar -> 300
If I want to retrieve "Y-T-D Feb" the result should show me the sum of Jan & Feb in this case it should be 300. What is the syntax of retrieving YTD in smartview.
In our application "Year" dimension name is "Year". How can I rename this dimension name if this is the requirement.
Thanks in advance.
Regards,
SamiThe format in Smart View would be Y-T-D(feb) more info at http://docs.oracle.com/cd/E17236_01/epm.1112/sv_user_11121102/ch17s02s02.html
you will need to rename Year to something like Years, it depends if it is a classic or EPMA to how you rename it.
Cheers
John
http://john-goodwin.blogspot.com/ -
How to display different Time Statement forms in ITS service PZ04
Hi all,
I am working on a underlyinge R/3 4.7 system and are working with standalone ITS and ESS 50.4. I am posting this question to find out if any of you has experience with my problem.
The business wishes to use the ITS transation PZ04 standard and wish to be able to display different Time Statement forms in the transaction through customized variants for the report(RPTEDT00) that the PZ04 transaction executes. In the IMG it is posted that one variant has to be created called HRESS_TEDT00 and this works, but restricts the PZ04 transaction to always be called with this variant and therebye the same Time Statement form every time.
I then by debugging found that the underlying ABAP code processed from SAP standard has a variable VARIANT that is hardcode to = HRESS_TEDT00.
The question is: Is there anyway to setup the PZ04 transaction so that it can be dynamic decided which variant should be used, f.ex. from persons subarea from infotype 0001?
Looking forward to here if anybody can help.
Regards,
Allan Brauerhi allan,
cud u plz help me how to sort out this problem actually in mu company the same scenario is here need to be display pe51 form instead of standard hrforms.....
plz help me how will i replace this "hrforms with pe51".. -
Problem displaying dynamically loaded text in Flash CS3
I created a Flash CS3 application that does not display
dynamically loaded text (from internal AS3 scripts) on 3/6 of my
client's computers. All computers run IE 6 and Flash Player 9. I
cannot replicate the problem on any computer in my department. The
problem seems to be related to Flash Player 9 or a browser
setting/IT restriction. Has anyone encountered this? If so, have
you found a solution?
If I cannot find a solution, then I will need to almost
completely redo the application.
One slightly insane idea I have considered is to, if
possible, convert dynamically loaded text to an image real-time. Is
that possible?
Btw, I have created a font in my library. Should I try
manually embedding the font from the Properties menu and selecting
all characters?
Thanks in advance.yes, even though you may be using a font from the library,
you still have to specify that each text field that uses that font
embeds the font, and you'll need to select all characters(well not
all, unless you require all the different scripts of the world -
upper-case, lower-case, numerals and punctuation usual suffices).
I bet if you checked, the computers where the font did not
appear did not have the font on their system.
Good luck
Craig -
How to avoid displaying date,time using Enhancement point.
Hi friends,
i have to work on the standard report.
stadard report displays date,time ,reportname on the top of the page. my requirement is not to display date ,time,reportname.
they have used the following code,
WRITE text-001 TO m_line+d_offset(4). " Time
WRITE sy-timlo USING EDIT MASK '__:__:__' TO m_line+d_offset(08).
WRITE text-002 TO m_line+d_offset(05). " Date
WRITE sy-datlo DD/MM/YYYY TO m_line+d_offset(10).
BY using Enhancement point how to achieve my task.
kindly help mePost Author: jsanzone
CA Forum: WebIntelligence Reporting
basham,
You didn't mention which type of DBMS you are using (i.e. Oracle, MS SQL, MySQL, etc), but in a nutshell using MS SQL here is the principle. Your time that is recorded in the records is dependent upon a setting in your RDBMS. For instance, the RDBMS can use the machine time (which would most likely be local time), or it can use the machine time with an offset (to accomodate GMT, for instance). GMT is factored differently based upon your time zone (and time of year, i.e. DST or EST, etc). I'm on the east coast so right now my offset is GMT - 5, so if my time right now is 1457, then GMT is 1957. To get SQL to compute an offset you must take the number of hours to offset and divide by 24 (24 hours in a day) and add that to the record in the database. For instance, to get GMT right now I would use:
select cast(getdate()5/24. as char(12))rtrim(convert(char(12),getdate()5/24.,8))' GMT'
Hope this helps. If you're on Oracle, then the mathematical principles remain the same, just the formatting will be different. -
How to display dynamic page content in an external application (MS Word)?
I have a portal that generates a CV from info stored by various forms. The CV displays fine in a dynamic page, but when I add javascript to launch MS Word with a call to the dynamic page portlet, only the hard coded html displays - nothing between the <ORACLE> tags is loaded.
I had the idea of updating the dynamic page with hard coded html prior to each export - but I can't find where the dynamic page definition is stored in the database.
Any ideas/better solutions out there?dynamic page:
<ORACLE>
DECLARE
theUser varchar2(30) := portal30.COE_GET_CV_PERSON;
v_output varchar2(6) := portal30.COE_GET_CV_OUTPUT;
v_no number;
v_url varchar2(500):= 'http://oraclecoedb.asiapacific.cgey.com:7779/pls/portal30/PORTAL30.wwv_component_control.run_as_portlet?p_module_id=1934976747';
BEGIN
IF v_output = 'WORD' THEN htp.script('startWord('||''''||v_url||''''||');','Javascript');
ELSE null;
etc ...
javascript:
<script language="JavaScript">
function startWord(strFile)
var myApp = new ActiveXObject("Word.Application");
if (myApp != null)
myApp.Visible = true;
myApp.Documents.Open(strFile);
</script> -
How to display dynamic header title in the report?
I have a req to display dynamic header title in the report.
When a id is entered in the prompt text, it will display the user data based on that user_id.
so similarly....the header title should vary each time when you select different user_id.
How can we implement this?>
Zack H wrote:
> Lazaro,
>
> It depends on what you want displayed in the heading for each id.
> Please elaborate.
>
> Thanks,
> Zack H.
Zack..I have several projects listed under several project id's...
so when a user selects project id 00164 then it should display something like "Project document for Jon Doe"
again when the user selects project id as 00192 then it should display something like "project document for Zimmerman"
Did you get it?? -
How to display client date in oracle
Hi All,
How to display client system date in oracle. When I try to display date & time oracle displays server date and time but I need to display client date & time. How can I achieve that?
Thank youuser536769 wrote:
How to display client system date in oracle. When I try to display date & time oracle displays server date and time but I need to display client date & time. How can I achieve that?As Nicolas says, you can't easily do this.
The reason is that the SQL engine (and the PL/SQL engine) are processes running on the database server and so they pick up the server date/time. Those processes, running on that server have no knowledge of "client" machines and no way to connect to them. Network security ensures that one machine can't just get onto another machine and access it's operating system without any form of authorisation, hence the only way to achieve this is to have some way for the server to serve a java applet or some such thing to the client and the client user accept that applet to run on their machine and then that applet obtains the relevant details and passes it back to the server.
Imagine if you wanted to write code on your client machine to go to you colleagues client machine and get the date/time from it, how easy would that be to do without your colleague authorising some part of your software to run on his machine?
;) -
Selecting only time in oracle forms
Hi all,
like date picker in oracle forms can i select the time in oracle forms into a text item.
i want to display the time in this format 10:10:30 a.m. and also i want to insert into the table
i have taken the data type of this column as varchar2(15) if i take date can i insert the time or varchar2 is ok.
my oracle forms version is 10g.
please reply...Hi, extreme
extreme wrote:
Hi all,
like date picker in oracle forms can i select the time in oracle forms into a text item.
i want to display the time in this format 10:10:30 a.m. and also i want to insert into the table
i have taken the data type of this column as varchar2(15) if i take date can i insert the time or varchar2 is ok.Better take column having data type date. You can insert date and time in the date field.
Just you need to change in forms.
Change the Data type Date to Datetime
to show only time, use format mask.
Hope this helps -
Error in displaying dynamic contents in tableview?
Hi Experts,
I am developing a jspDynpage which displays dynamic contents in a tableview. ie, the contents are retrieved from LDAP Active directory. But i am getting wrong number of results. For example,
If i give last name as Name1,
MAIL COMPANY NAME PHONE
UsrMail Company1 Fnm,Name1 +1 23456 397
Line 1 / 1
Displays the name one time.
first name - name2
MAIL COMPANY NAME PHONE
UsrMail Company2 Fnm,Name2 +1 789654 397
UsrMail Company2 Fnm,Name2 +1 789654 397
UsrMail Company2 Fnm,Name2 +1 789654 397
UsrMail Company2 Fnm,Name2 +1 789654 397
Line 1 / 4
Repeating the name 4 times.
Lastname - name3
MAIL COMPANY NAME PHONE
UsrMail Company1 Frstnm,Name3 +1 654321 356
UsrMail Company1 Frstnm,Name3 +1 654321 356
UsrMail Company1 Frstnm,Name3 +1 654321 356
UsrMail Company1 Frstnm,Name3 +1 654321 356
UsrMail Company1 Frstnm,Name3 +1 654321 356
UsrMail Company1 Frstnm,Name3 +1 654321 356
UsrMail Company1 Frstnm,Name3 +1 654321 356
UsrMail Company1 Frstnm,Name3 +1 654321 356
UsrMail Company1 Frstnm,Name3 +1 654321 356
UsrMail Company1 Frstnm,Name3 +1 654321 356
Line 1 / 10
Repeating the name 10 times.
But in Active directory the names are unique .Please Guide me.
Thanks in advance.
Regards,
KrishnanHi
The problem is with Vector which i used to store the retirved information.
After cleared that i got the proper result.
I thought the problem is with tableview.But it is not.
Note: To clear the vector i used Vec.clear() method. It doesn't work. So i created that vector newly inside the loop.
Regards,
Krishnan -
Displaying dynamic columns in the query output.
Hello,
Depending on current quarter output of the query would vary.
If current quarter is 'Q1'
O/p : InvQ1 Del BackQ1 BackQ2 BackQ3 BackQ4
If current quarter is 'Q2'
O/p : InvQ1 InvQ2 Del BackQ2 BackQ3 BackQ4
If current quarter is 'Q3'
O/p : InvQ1 InvQ2 InvQ3 Del BackQ3 BackQ4
If current quarter is 'Q4'
O/p : InvQ1 InvQ2 InvQ3 InvQ4 Del BackQ4
So, out of 9 columns, 6 columns would display at any given time depending on the current quarter.
Invoice of 4 quarters, Deliquency and Backlog of 4 quarters.
I am not getting any way how to display dynamic columns or hide unwanted/blank columns.
For the time being I have added all 9 columns in the query, and in the output unwanted columns shows blank.
Can anybody please suggest me how to display only 6 columns in the output depending on current quarter.
Thanks and Regards
ShilpaHello,
This shouldn't be too difficult. Assuming you have a variable with the selected quarter, you may choose to display Inv (whatever that is) for quarters 1 through variable, Del, and Back for quarters variable through 4. You also need a drilldown on quarter in the columns (after the key figure structure). You would probably need to restrict 'Del' on the variable as well if you haven't already done it.
Best regards,
Christoffer
Maybe you are looking for
-
Error in saplm61r---- ecc6.0
hello all, In ecc6.0 , running transaction md02 getting an error TABLE CONTROL CONTAINS COLUMNS WITH THE SAME GUI POSITION. IN SAPLM61R. it runs ok in 4.7c..i wonder if therez any sap notes fixing this issue..plz advise? regards Edited by: BrightSi
-
Photoshop Script Black and White Raster to Vector
I do not have AI Adobe for I do not want to spend the money and have to learn an other complex Adobe application. I'm no artist either. However at rimes I wanted to have AI live trace feature to change black and white line drawing into vector graph
-
Hi, whenever I plug my phone into iTunes, the phone interface pops up and I am given only two options: restore the phone from an old backup, or set the phone up as a new phone. I want to do neither of these things because the phone doesn't need to b
-
Logic Pro 7 player only?
Hello. I need to send a complete session to someone for a remix. Does anyone know of a Logic Pro 7 player only, in order for them to listen to the basic tracks, but without modifying the song otherwise (with only basic tracks and effect mutes, pannin
-
DVD burned in Premiere Elements 4 freezes on playback
I have a Dell with Windows Vista Home Premium and I use Adobe Premiere Elements 4.0 for video editing. Recently, I've encounterd a problem with my burned DVDs freezing during playback, especially near menu markers, on a variety of stand alone DVD pl