Using a Calendar object in Forms 6i
Hi,
I've a problem when I use the STNDR20.OLB and CALENDAR.PLL. There's a missing procedure called "date_choosen" in the OLB & the form does not compile.
Does anybody have a workaround for this or another OLB/PLL to resolve this issue ?
thx
Kalpana Subramanian
Were u I look for the ofg---.pll.
I can't find it my system
--kalpana
Similar Messages
-
How to Use a Calendar object in Forms 6i
Can any one help me how to display Calander LOV
I can't find STNDRD20.OLB and CALENDAR.PLL in my system
thx
[email protected]You have to install Forms Demo from CD and then you'll find required *.olb and *.pll. All about using calendar in Forms 6i you can find in this forum - simply search it.
Helena -
I have switched from PC to Mac over a year and a half ago, and have been plagued with the "dumb" date entry boxes in iCal and now Reminders on the mac. For one, they don't show you the DAY OF WEEK for an event, it assumes you are parked on that day, but of course reality sets in and causes constant date changes for events. Picking a date in the future would be much more helpful if Apple followed some usability norms in iCal. For instance, if you are booking a flight online, those helpful little calendar objects pop up, and further, they are smart about "end dates and times" for events, knowing it can't be earlier than the start date. Apple iCal unfortunately always thinks you are creating an ALL DAY event, and when you change the start time, it creates the end time for the next day. Not very smart. Or is it me that is not very smart for constantly hawking every little data entry field for correctness. Why, oh why dear lord has Apple not given some usability attention to iCal on the mac??? At least match the interface of the iPhone with a nice little slot machine rolling control.
Is there an add in?
Is there hope that Apple will ever fix its lagging Mail and iCal apps on the Mac?
Please advise. Or just offer a kind word of consolation if there is no hope for a better interface.In the future, Swing related questions should be posted in the Swing forum.
The code you posted is of little use since it uses custom classes so we can't see the behaviour of your code.
In general if you add a component to a Container at run time then you just use
container.revalidate()
This will invoke the LayoutManager and repaint the components in the container based on the new layout. -
A number of difficulties using Calendars in forms 9i.
1). I can't drag/drop from the Standards object library to the forms module. The cursor remains as a cirlce with a diagonal through it.
2). Can't find Calendar.PLL ; has this been renamed in release 9i ? All I can find is OFGCALL.PLL .I use OFGCALL.PLL in Forms6i. It comes with Oracle Designer. In a Key-Listval trigger of item just put:
BEGIN
display_calendar;
END;
Also you have to put to your form:
canvases - CALENDAR, CALENDAR_TIME
window - CALENDAR
visual attributes - CALENDAR_SELECTED,
CALENDAR_SELECTED_TODAY,CALENDAR_CURR,CALENDAR_CURR_TODAY
CALENDAR_OTHER,CALENDAR_OTHER_TODAY,CALENDAR_CURR_DISABLED,
CALENDAR_CURR_DISABLED_TODAY,CALENDAR_OTHER_DISABLED,
CALENDAR_OTHER_DISABLED_TODAY
procedure - DISPLAY_CALENDAR
and attach OFGCALL.PLL library. -
I have code as follows
String strBeginDate = '12-02-2014'
formatter = new SimpleDateFormat("mm-dd-yyyy");
Date dtBeginDate = (Date) formatter.parse(strBeginDate);
Calendar cal = Calendar.getInstance();
cal.setTime(dtBeginDate);
System.out.println("Calendar's Year: " + cal.get(Calendar.YEAR));
System.out.println("Calendar's Month: " + cal.get(Calendar.MONTH));
System.out.println("Calendar's Day: " + cal.get(Calendar.DATE));
Result:
Calendar's Year: 2014
Calendar's Month: 0
Calendar's Day: 2
Why is the month shown as '0' instead of '12' ? What should be done to retain the value of 12?Hi
the problem is with the parsing. Try this : new SimpleDateFormat("MM-dd-yyyy"); The Big M is per definition the Month of the year.
Nevertheless you will get 11 and not 12 because the first month, January is 0 and not 1
public static final int MONTH
Field number for get and set indicating the month. This is a calendar-specific value. The first month of the year in the Gregorian and Julian calendars is JANUARY which is 0; the last depends on the number of months in a year.
best regards, Nicolas -
How to set up calendar in Oracle Forms
Hi All,
I have a requirement where I have to create calendar based upon user inputs:
for e.g the calendar should of 12 periods each period having 4 weeks in the year 2007.
How to approach the requirement...???
Can I use the approach on the calendar object in forms or I have to create a Package for that.
Regards
SaugataiCloud will not sync calendars from an external account such as Google. If you have a Google calendar and want to sync it with your iPad, add your Gmail account to your iPad by going to Settings>Mail,Contacts,Calendars>Add Account>Google and turn Calendars on. Your Google calendar will then appear in the Calendar app on your iPad and you can leave your other devices the way they are now and they will all sync using Google.
-
Hi,
Does anyone know how can I include calendar, which comes with UCM 10gr4, in my
custom form. Basically, I have a date field in my HTML form and I want to reuse
the built-in calendar which comes with UCM.
Any help will be greatly appreciated.
Many ThanksHello, François Degrelle
Thanks for your response
>
Read quietly those article again, because you are mixing several bean together.
CALENDAR.olb is not part of the JCalendarI also thought that. CALENDAR.olb should only need for forms calender. You need only been area for calendar.
>and the JCalendar does not need to have the JAR added to the PATH.
But in your articale, you write
copy the FJCalendar.jar, jcalendar-1.3.2.jar and looks-2.0.1.jar files in the <ORACLE_HOME>/forms/java directory --It's ok.
Edit your /forms/server/formsweb.cfg file to add these 3 JAR files --where should i add these 3 jar file ? is it not at archive?
Can you please try to run the sample form only of Craig's link and see the output.
https://sites.google.com/site/craigsoraclestuff/oracle-forms---how-to-s/forms-how-to-use-a-calendar-in-a-form/Calendar.zip?attredirects=0&d=1
Can you send me a copy of working forms with guide line in english? It will be great help for me. i want to use java calendar.
my mail hrhelal at the rate gmail dot com
thanks.... -
How to get windows form object of a MMC snapin node using MMC automation object model
Hello,
I am using automation object model for an existing mmc file and just trying to traverse all nodes of it. And i am able to do so.
My query is : how can i get the access of windows form object of a particular node . Windows form is present in result pane of a node, i want to get access of that so that i can perform some automation on that form.
http://msdn.microsoft.com/en-us/library/aa815049(v=vs.85).aspx
I found that if OCX control is in result view of any node, then "view object -> control object property" returns
the automation interface supplied by the control in the result view.
However, if result view is HTML view then how to get the automation interface of that result
view.
Thanks in advance,
SumitHi Sumit,
I read the link you provide above. It seems that when you want to achieve your target by using MMC automation
object model, you need to use codes. Based on the programming language, if use VB, I suggest you post the question in
VB Forum. If you want to use C#, may post in
C# Forum.
In addition, there is an answered question, may help you to find the correct forum.
MMC development forum?
http://social.microsoft.com/Forums/en-US/3796a8e9-674e-4da0-a40e-4e4b69575c8e/mmc-development-forum?forum=whatforum
Since, it’s more related to development. We may can’t provide some more detailed information. Thanks for your
understanding.
Hope this helps.
Best regards,
Justin Gu -
Using expression to compare Calendar object
Hi,
I wonder if anyone has experience to use expression to compare Calendar object. Here is my case:
Application {
Calendar applicationDate;
What I want is something like:
expression.get("applicationDate").between(startDate, endDate);
But it is seems not working this way.
Any clue?
Thanks
HaoWhat error are you getting, in general this should work, however the Calendar will be printed/bound as a java.sql.Timestamp.
If you require to use java.sql.Date if you just want the date portion of the Calendar.
If your mapping for applicationDate sets the fieldClassification (i.e. is a TypeConversionMapping), then TopLink will automatically convert the Calendar value in the expression to the correct date type. -
Problems in using using a calendar to pick up a date in portal form
Hello:
I met some problems in using using a calendar to pick up a date in portal form.
I created a form using "custom layout"
Using Scott/Tiger, emp table HIREDATE put the following anchor next to it in the body text field
<<img src="/images/calendar.gif" width=24 height=22 border=0>
Then, I put the source tag in the header section
<script language="JavaScript1.1" src="/images/date-picker.js"></script> in the Header Text of the Form Text part.
However, for some reasons, after I pciked the date in the calendar,the field in the form could not be updated.
Your help would be highly appreciated.
WeiI just fixed the bug. The data pickup calendar is working now.
The reason is that:
when oracle portal generates a portal form based on a table, the element in the generated form is defined by: [Form Name].[element name].[index#].
e.g.
<INPUT TYPE="BUTTON" NAME="FORM_AREA.DEFAULT.QUERY_TOP.01" VALUE="Query" onClick=" do_event(this.form,this.name,1,'ON_CLICK','');">
The "FORM_AREA.DEFAULT.QUERY_TOP.01" means: A input text box "QUERY_TOP" with index "01" in the form "FORM_AREA" which is located in the "DEFAULT" block.
The problem of my previous codes is that: Javascript could not access the elements on the parent widnow by name for those elements whose names have more than 1 "." sign e.g. "FORM_AREA.DEFAULT.QUERY_TOP.01". So, I accessed them by their locations in the DOM hierarchy. It works now.
e.g.
<a href="javascript:show_calendar('forms[0.elements[23');" onmouseover="window.status='Click to open an Wei's calendar'; return true;" onmouseout="window.status='';return true;">
<img src="/images/calendar.gif" width=24 height=22 border=0>
</a>
Wei Ye -
Using calendar object on prompt
I'm having prompt with two calendar objects - FROM and TO dates selection for setting report's time frame.
How can I show error message when user enter invalid date (typing directly in text box) or in case user select dates where FROM is after TO dates?@ nir
Are you using 10g,if so i worked with the same solution couple of months back and it worked for me nor it caused performance issues.Its not JS script but just adding a IF statement to the existing sections if you have see the link.....Coming to 11g that im working still dint go to that extent to look back,i suppose it has been solved.
UPDATED POST
Coming to 11g there are many bugs.....i would suggest you to wait till march-april so next 11g R2 release is due to come at that period according to road map.
We cant predict anything saying this will be solved....same happened when 11gR1 many expectations where there but ended up with bugs and many unsolved issues iam facing.
We can do 1 thing hoping for best :)
Is it helpful?
By,
KK
Edited by: Kranthi on Jan 13, 2011 1:36 AM -
Can a Servlet be used for Storing Objects with both JSP and JSF used on it?
Hi,
Pages I have:
SearchEmployee.jsp
This page has a search engine that search out the Employee. This Employee Object will be stored inside a Servlet(controller) for future references by other pages. I used JSP, html tags for forms, and request.getParameter() to built this search engine.
Problem:
I have a JSF Form that wants to DISPLAY the employee which I have found in my Search Engine. How can I get the JSF's value="#{Controller.employeeObj.name}" to get the value from the object?
This seems logical as my JSF form is just retrieving the stored object in the Controller. I currently cant seem to output itThe servlet shouldn't be used to store ANY data, let alone data to be accessed by other sevlets. Put the object into the Session object.
-
How to use nested tables in adobe form
Hi All,
I have to use nested tables in adobe form for table display. I have used Subforms for displaying table data. I have changed accessibility of the subforms. Currently i am able to print print the table correctly if there is single material record in table 1 and single corresponding record in table 2. But the requirement is that i will have multiple lines in table 1 for single material and only one record in table 2.
EX: form is for Sales order. in line items if the order is for 100 units then we if we have delivered material as 80, 10, 10, then table 1 will have 3 lines for this. Table 2 will always have only 1 corresponding record.
item--materialdescription-ordered qty--delivered qty--delivery date-price
xxx--xxxxxxx-xxxxxxxxx-10080xxxxxxxxxx-xxxx
10----
xxxxxxxxxx
10----
xxxxxxxxxx
yyyyyyyyyyyyyyyyyyy------yyyyyyyyyyyyyyyyyyyyy
xxxxxx is table 1 and will have multiple lines
yyyyyy is table 2 and will have only 1 entry for item xxx
and this group will be repeate as per no of items. table 1 can have any no of lines per item.
I am currently able to display 1 line for table 1 and 1 line for table 2.
But how to show multiple lines for table 1 and 1 line for table 2.HI,
Set the body page as flowed and set the tables also flowed.
go to bodypage>object->subform-->select flowed option.
I thihnk this will work..if u are getting all the records properly into the tables 1 and 2.
Thanks,
Mahdukar -
How to use a custom.dll in forms 6i
Hi,
i have made a small dll using a icon-making software, that software has made a .dll of the icon I made in that software
Now i want to use that .dll in my forms 6i. (client/server)
the dll contains only one icon named 'Icon1'
would any one please tell me how can I call that icon in that .dll to view in my forms button at run time..
is this possible..??
just for clarification, for security reasons I am not using the .ico of that icon diect from hardisk in my button thats why i made a .dll of that so that the user may not be able copy my icon
thanks in advance,Here is the doc
Doc ID: Note:99824.1
Subject: How to Display User-Defined Cursors and Icons in Forms
Type: BULLETIN
Status: PUBLISHED
Content Type: TEXT/X-HTML
Creation Date: 23-FEB-2000
Last Revision Date: 30-OCT-2002
PURPOSE
The purpose of this note is to explain how to display customized
cursors and icons in Forms 6.0 on Windows platform (32 bits).
Assumption is made that resources are stored in a DLL, which is
available in the path at runtime.
It is mandatory to store the cursor in a DLL to make it available
with Forms: .cur cursor files cannot be directly loaded from the
file system.
On the other hand, icons .cio files can directly be read from the
filesystem by Forms Runtime. However we will focus on icons which are
stored in a DLL.
The article is divided into two main parts:
- how to build a resource-only DLL with Visual C++ 5.0
- how to display the cursor and the icon in Forms 6.0
SCOPE & APPLICATION
The intended audience needs to have basic knowledge in Forms Builder
and also in Visual C++ (or any other Win32 compiler).
A typical environment is Forms 6.0, Visual C++ 5.0 and Windows NT.
WHAT IS A RESOURCE ?
A resource can be considered as some extra binary information that can
be added to an executable file. Windows resources are for example icons,
cursors, menus, dialog boxes, keyboard-accelerator tables and much more.
Resources are usually stored in a .rc file, which is compiled by the
resource compiler in order to provide a .res file. These compiled resources
can then be appended to a binary executable file or a DLL.
For instance, Visual C++ 5.0 includes a resource editor which allows you to
draw your icons and your cursors, and store them in a resource file.
Part I - BUILDING A RESOURCE-ONLY DLL
Consider the following setup:
- myicon.ico: icon file
- mycur.cur: cursor file
The objective of this section is to build a DLL called proj.dll which
contains both the icon and the cursor. This operation requires several steps.
Step 1: Create a project
In Visual C++, select menu File->New... In the dialog box, choose the Projects
tab and pick "Win32 Dynamic Link-Library". Fill the project name (e.g. Proj)
and the location (e.g. c:\MyProjects). Check 'Create new workspace', check
Win32 as target platform and click on OK.
This creates a directory c:\MyProjects\Proj, where necessary .rc and .cpp
files can be stored. Place the .ico and .cur files in this directory too.
Step 2: Add a resource file to the project
Create a proj.rc file, edit it and make sure it contains the following lines:
testcur CURSOR DISCARDABLE "mycur.cur"
testico ICON DISCARDABLE "myicon.ico"
This is the resource file. Using the Project->Add to Project->Files... menu,
select the proj.rc file and add it to the current project.
Step 3: Add a dummy C++ file to the project
Create a proj.cpp file, edit it and make sure it contains the following lines:
#include <windows.h>
extern "C"
BOOL WINAPI DllMain (HINSTANCE hInstance, DWORD dwReason, LPVOID)
return 1;
This creates an entry-point in the DLL. This function does nothing but is mandatory
to have a DLL after the build of the project.
Add the proj.cpp file to the project as described in Step 2.
Step 4: Choose the target type
At this moment, you can choose if you need a 'DEBUG' or a 'RELEASE' flavour of
the DLL. As there is not much to debug in this DLL, the 'RELEASE' flavour is
recommended. Furthermore, it is much more compact.
Using the Build->Set Active Configuration... menu, choose the Proj - Win32 Release
as the active configuration.
Step 5: Build the DLL
Now, it is time to compile the resource file, compile the C++ file, link both
together and build the proj.dll DLL. This operation is performed by using the
Build->Rebuild All menu.
After a short time, you should see "Proj.dll - 0 error(s), 0 warning(s)" in
the Visual C++ message window. This means that the DLL was built successfully.
Step 6: Place the DLL in the appropriate directory
The proj.dll file is currently located under the c:\MyProjects\Proj\Release
directory. Copy it in an appropriate directory which is reachable in the
runtime environment path.
Part II - USING THE ICON AND CURSOR IN THE FORM
At this stage the DLL is created and can be used in the Form application.
Again, this is a multi-step procedure.
Step 1: Load the DLL in the Forms Runtime environment
Assuming the proj.dll DLL is placed in a directory pointed by the
PATH environment variable, below is the piece of PL/SQL code which loads
the DLL into the Forms Runtime environment. This code can be placed in the
WHEN-NEW-FORM-INSTANCE trigger for example:
declare
hDLL ORA_FFI.LIBHANDLETYPE;
begin break;
--Preload the DLL so the cursor and Icons can be found.
-- I'm assuming the DLL is in the path here
hDLL := ORA_FFI.LOAD_LIBRARY(NULL,'proj.dll');
exception
when ORA_FFI.FFI_ERROR then
for i in 1..TOOL_ERR.NERRORS LOOP
message(TOOL_ERR.MESSAGE(i));
end LOOP;
end;
Step 2: Display the cursor stored in the DLL
Now, you may want to change the cursor when the user clicks on
a specific button. This is an example of code that could be set
in the WHEN-BUTTON-PRESSED trigger:
set_application_property(CURSOR_STYLE,'<proj>TESTCUR');
<proj> refers to the proj.dll. Please note the < and > signs
which are mandatory there. TESTCUR is the name of the cursor resource
as defined in the proj.rc file.
Step 3: Display the icon stored in the DLL
You may also want to change the icon of an iconic button after
some specific end-user action. The appropriate code for that is:
set_item_property('IBUTTON',ICON_NAME,'<proj>TESTICO');
IBUTTON is a PushButton, with the Iconic property set to Yes.
TESTICO is the name of the icon resource as defined in the proj.rc file.
Asim. -
Hi,
I have beginner skills using LC Designer ES and am trying to insert and use a script object. I found a JavaScript function online: http://home.online.no/~pjacklam/notes/invnorm/impl/misra/normsinv.html and am trying to get it to do some math calculations in a Designer form.
I've uploaded a sample test form at: http://elearningprojects.com/TestFormula1.pdf
Can't get it to work.Trying to run the JS formula in the script object (by clicking on a button), using a few hard-coded variables, and display the results (Dprime1 and Dprime2) in 2 text fields.
I would much appreciate if someone can take a look and suggest how to get it working correctly.
Thanks for your help.
Kind Regards,
saratogacoachHi Paul,
Thank you for your reply and suggestions. With beginner skills in LC Designer (I'm a retired social worker), I am not sure how to do this.
Is my identifying the script object path correct?
form1.#subform[0].#variables[0].SO1.function_name(NORMSINV(p));
When you say "You are calling this function a few times in your code so you will have to modify each call." I am not sure how to change this.
I currently have (note that I added the SO1. to the function calls):
var p = totalscore5
var probit1 = SO1.NORMSINV(p)
var p = totalscore6
var probit2 = SO1.NORMSINV(p)
var Dprime1 = probit1-probit2
var p = totalscore8
var probit3 = SO1.NORMSINV(p)
var p = totalscore7
var probit4 = SO1.NORMSINV(p)
var Dprime2 = probit3-probit4
Can you specify what a modified script would look like? I'm stuck.
Also, have I set up displaying the Dprime1 variable's value in the TextField1 correctly?
Thanks very much for your help.
Regards,
saratogacoach
Maybe you are looking for
-
Who has deleted data from Windows Server
Hi supporters, Somebody has deleted some files from windows server's physical drive from windows XP user machine. This allegation has been made by IT team to a very sincere employee of the company who is working from last 15 years with the firm. So,
-
I got some problem in update statement.Can anybody discuss with me regarding my problem? Below is the occured problem. //all the declaration like Connection, ResultSet are declared, setting the ODBC path and so on steps have been set up before this m
-
11i Order Management on WIN NT
Hi , Does anyone have 11i Order Management Module on NT. Would like to participate in group discussion with peers implementing OM Module,please let me know if there is any right now? Thanks Thiru
-
Tuning SCA /DB adapter in 11g
How to throttle instance creation based on DB adapter events. My question is what are the 11g best practices for this? Ideally, we would like to make instance creation single-threaded and the process synchronous. That way there is no overlapping inst
-
Sound Input not available with AJA IO
Hi everyone, I have a problem with recording sound, using the voice over tool with my AJA IO. Whenever I try to select ProIO In as source for my, it says "The selected audio source is not available. Maybe it's used by another program, not or wrong co