The JavaScript calendar date and access date incompatible field!
I need some help here! My form has two fields where the user enters a beginning date and an end date. These dates are then used in a WHERE clause to retrieve all records in these dates. The problem is that access does not recognize dates and shows not all records. If I remove the WHERE clause, all records are displayed. I tried to change the area of access to the text, use the input mask, etc. nothing works. Any ideas?
This is the code for the entry form;
< html >
< head >
< style type = "text/css" >
{.ds_box}
background-color: #FFF;
border: 1px solid #000;
position: absolute;
z index: 32767;
}
{.ds_tbl}
background-color: #FFF;
}
{.ds_head}
background-color: #333;
color: #FFF;
do-family: Arial, Helvetica, without serif.
font size: 13px;
make-weight: bold;
text-align: center;
letter-spacing: 2px;
}
{.ds_subhead}
background-color: #CCC;
Color: #000;
do-size: 12px;
make-weight: bold;
text-align: center;
do-family: Arial, Helvetica, without serif.
Width: 32px;
}
{.ds_cell}
background-color: #EEE;
Color: #000;
font size: 13px;
text-align: center;
do-family: Arial, Helvetica, without serif.
padding: 5px;
cursor: pointer;
}
{.ds_cell:hover}
background-color: #F3F3F3;
} / * This code hover does not work for IE * /.
< / style >
< style type = "text/css" >
<!--
. Style8 {do-family: Tahoma}
->
< / style >
< style type = "text/css" >
<!--
{body
background-image: url();
background-repeat: no-repeat;
left margin: 0px;
margin-top: 0px;
}
a: link {}
text-decoration: none;
}
a: visited {}
text-decoration: none;
}
a: hover {}
text-decoration: none;
}
a: active {}
text-decoration: none;
}
. Style9 {make-size: 12px}
.style10 {do-size: 14px}
.style11 {do-size: 16px}
{.style12}
do-size: 18px;
make-weight: bold;
}
->
< / style >
< / head >
< title > manna Prime - Kit < /title > Report
< body >
< table class = "ds_box" cellpadding = "0" cellspacing = "0" id = "ds_conclass" style = "" display: none; ">"
< tr > < id td = "ds_calclass" >
< table > < /tr >
< /table >
< script type = "text/javascript" >
<!-<! [CDATA]
Project: Date Picker Dynamics (DtTvB) - 2006-03-16
The script featured on JavaScript Kit - http://www.javascriptkit.com
Code to start...
Set the initial date.
var ds_i_date = new Date();
ds_c_month = ds_i_date.getMonth () + 1;
ds_c_year = ds_i_date.getFullYear ();
Get the item by Id
function ds_getel (id) {}
return document.getElementById (id);
}
Download the left and the top of the element.
function ds_getleft (el) {}
var tmp = el.offsetLeft;
El = el.offsetParent
{while (El)}
tmp += el.offsetLeft;
El = el.offsetParent;
}
return tmp;
}
function ds_gettop (el) {}
var tmp = el.offsetTop;
El = el.offsetParent
{while (El)}
tmp += el.offsetTop;
El = el.offsetParent;
}
return tmp;
}
Output element
var ds_oe = ds_getel ('ds_calclass');
Container
var ds_ce = ds_getel ('ds_conclass');
Output control
var ds_ob = ";
function ds_ob_clean() {}
ds_ob = ";
}
function ds_ob_flush() {}
ds_oe.innerHTML = ds_ob;
ds_ob_clean();
}
function ds_echo (t) {}
ds_ob += t;
}
var ds_element; Text element...
var ds_monthnames =]
'January', 'February', 'March', 'April', 'May', 'June ',.
'July', 'August', 'September', 'October', 'November', 'December '.
]; You can translate it into your language.
var ds_daynames =]
'Sun', 'Mon', 'Mar', 'Sea', 'Thursday', 'Sun', 'Sam '.
]; You can translate it into your language.
Model calendar
function ds_template_main_above (t) {}
"return ' < table cellpadding = '3' cellspacing ="1"class ="ds_tbl">"
+ "< tr >".
+ ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_py (); "> & lt; & lt; < table > '
+ ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_pm (); "> & lt; < table > '
+ ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_hi (); ' colspan = "3" > [close] < table > '
+ ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_nm (); "> & gt; < table > '
+ ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_ny (); "> & gt; & gt; < table > '
+ "< /tr >".
+ "< tr >".
+ '< td colspan = "7" class = "ds_head" >' t + '< table >.
+ "< /tr >".
+ "< tr >";
}
function ds_template_day_row (t) {}
return '< class td "ds_subhead" = >' t + '< table > ";
Set the width in CSS, XHTML Strict 1.0 does not have the width for her property.
}
function ds_template_new_week() {}
return '< /tr > < tr > ";
}
function ds_template_blank_cell (colspan) {}
return ' < td colspan = "' + colspan + '" > < table > '
}
function ds_template_day (d, m, y) {}
return ' < class td = "ds_cell" onclick = "ds_onclick (d + ',' + m + ',' + y + ')" > ' d + '< table > ";
Set the width of the line of the day.
}
function ds_template_main_below() {}
return '< /tr > ".
+ '< /table > ';
}
It is inspired by calendar...
function ds_draw_calendar (m, y) {}
Start by removing the output buffer.
ds_ob_clean();
Here, we will make the header
ds_echo (ds_template_main_above (ds_monthnames [m - 1] + ' ' + y));
for (i = 0; I < 7; i ++) {}
ds_echo (ds_template_day_row (ds_daynames [i]));
}
Make a date object.
var ds_dc_date = new Date();
ds_dc_date.setMonth (m - 1);
ds_dc_date.setFullYear (y);
ds_dc_date. SetDate (1);
If (m == 1 | m == 3 | m == 5: m == 7 | m == 8 | m == 10: m == 12) {}
days = 31;
} Else if (m == 4: m == 6 | m == 9 | m == 11) {}
days = 30;
} else {}
days = (y % 4 == 0)? 29: 28;
}
var first_day = ds_dc_date.getDay ();
var first_loop = 1;
Beginning of the first week
ds_echo (ds_template_new_week());
If Sunday is not the first day of the month, make an empty cell...
If (first_day! = 0) {}
ds_echo (ds_template_blank_cell (first_day));
}
var j = first_day;
for (i = 0; I < days; i ++) {}
Today is Sunday, a new week.
If this Sunday is the first day of the month,
We already have a new line for you.
If (j == 0 & &! first_loop) {}
New week!
ds_echo (ds_template_new_week());
}
Do a rank of this day here!
ds_echo (ds_template_day (i + 1, m, y));
Is not first loop more...
first_loop = 0;
What is the next day?
j ++;
j % = 7;
}
Make the footer
ds_echo (ds_template_main_below());
And we will show...
ds_ob_flush();
To scroll in the display.
ds_ce. ScrollIntoView();
}
Function to display the calendar.
When the user clicks on the date, it will define the content of t.
function ds_sh (t) {}
Set the element to set.
ds_element = t;
Make a new date and set the current month and year.
var ds_sh_date = new Date();
ds_c_month = ds_sh_date.getMonth () + 1;
ds_c_year = ds_sh_date.getFullYear ();
Draw schedule
ds_draw_calendar (ds_c_month, ds_c_year);
To change the position correctly, we must show first.
ds_ce.style.display = ";
Move the calendar container!
the_left = ds_getleft (t);
the_top = ds_gettop (t) + t.offsetHeight;
ds_ce.style.left = the_left + 'px ';
ds_ce.style.top = the_top + 'px ';
To scroll in the display.
ds_ce. ScrollIntoView();
}
Hide the calendar.
function ds_hi() {}
ds_ce.style.display = 'none ';
}
Moves to next month...
function ds_nm() {}
Increase the current month.
ds_c_month ++;
We have past December, back to next year.
Increase the current year and set the month of January.
If {(ds_c_month > 12)
ds_c_month = 1;
ds_c_year ++;
}
Redraw the calendar.
ds_draw_calendar (ds_c_month, ds_c_year);
}
Moves to the previous month.
function ds_pm() {}
ds_c_month = ds_c_month - 1; Impossible to use the dashboard dashboard here, getting the invalid page.
We stayed in January, let's go back to the previous year.
Decrease the current year and set the month of December.
If (ds_c_month < 1) {}
ds_c_month = 12;
ds_c_year = ds_c_year - 1; Impossible to use the dashboard dashboard here, getting the invalid page.
}
Redraw the calendar.
ds_draw_calendar (ds_c_month, ds_c_year);
}
Moves to next year...
function ds_ny() {}
Increase in the current year.
ds_c_year ++;
Redraw the calendar.
ds_draw_calendar (ds_c_month, ds_c_year);
}
Moves to the previous year...
function ds_py() {}
Reduction in the current year.
ds_c_year = ds_c_year - 1; Impossible to use the dashboard dashboard here, getting the invalid page.
Redraw the calendar.
ds_draw_calendar (ds_c_month, ds_c_year);
}
The format of the release date.
function ds_format_date (d, m, y) {}
2-digit month.
M2 = '00' + m;
M2 = m2.substr (m2.length - 2);
day 2-digit.
D2 = '00' + d;
D2 = d2.substr (d2.length - 2);
AAAA-MM-JJ
return m2 + "/" + d2 + "/" + y;
}
When the user clicks on the day.
function ds_onclick (d, m, y) {}
Hide the calendar.
ds_hi();
Set the value of it, if we can.
If (typeof (ds_element.value)! = 'undefined') {}
ds_element. Value = ds_format_date (d, m, y);
Maybe we want to define the HTML in there.
} else if (typeof (ds_element.innerHTML)! = 'undefined') {}
ds_element.innerHTML = ds_format_date (d, m, y);
I don't know how we should view, only he warn the user.
} else {}
Alert (ds_format_date (d, m, y));
}
}
And this is the end.
[]] >-->
< /script >
< are method = "post" action = "kit_report2.cfm" >
< class p = 'style8 style12' > Kit Report < /p >
< class p = "style8 style11" > report date span < /p >
< p > < span class = 'style8 style11' > start date:
< label >
< Input onClick = "ds_sh (this); "name = 'Start' readonly ="readonly"value =" "style =" "cursor: text" / > ""
< / label >
End date:
< label >
< Input onClick = "ds_sh (this); "name = 'End' readonly ="readonly"value =" "style =" "cursor: text" / > ""
< / label >
</span > < span class = "style8 style10" > < label > < / label >
</span > < span class = "style8 style9" > < label > < / label >
</span > < span class = "style8" > < label > < / label >
</span >
< label > < / label >
< /p >
< p >
< label >
< name of entry = "Submit" type = "submit" id = "Submit" value = "Run report" >
< / label >
< /p > < / make >
< / body >
< / html >
This is the query that is used on the page of action;
< cfquery datasource = "manna_premier" name = "kit_report" >
SELECT SaleDate,
TerritoryManager,
Distributor,
DealerID,
Variable
Orders
WHERE SaleDate BETWEEN #FORM. Start # AND #FORM. End #.
ORDER BY SaleDate
< / cfquery >
... The problem is that access does not like
dates and not all records will display.
...
WHERE SaleDate BETWEEN #FORM. Start # AND #FORM. End #.
Use one of the available functions to convert the form field values in a date object. Learn more about the CreateODBCDate function
WHERE DateColumn BETWEEN #CreateODBCDate (form.start) #...
and the CFQueryParam tag
WHERE DateColumn BETWEEN
....
I tried to change the access to the text field
No, do not use 'text' to store dates. Dates should always be kept as DateTime.
Tags: ColdFusion
Similar Questions
-
How to convert merge documents and mailing for the docs individual pdf and each with a field record in the merge?
What is an actual field or just a piece of static text somewhere? Whatever it is, you can't do this using the Split Document command. You will need to use a script custom read the value of this 'field' and use it during extraction of pages in the file.
-
Update blackBerry storm Smartphones erased the Outlook calendar data
I have Vista and Outlook 2007. Following the update of storm this afternoon all my calendar data has been removed from my Storm during synchronization. He was still missing after as I resynched. Fortunately, no data has been lost on my computer. Any suggestions?
'Restore' I did to fix my deleted messages seems to have restored my calendar items, I am very happy!
-
Noting the Javascript calendar day
Good day everyone,
I have the script I've been working from a book.However, I am confused how I can highlight the day of the month, so that the calendar watching a knows what date.
I want to make the text and the background color current day red white.I also need the current unpaid months, say like December so it loads with the calendar, during the loading of the page.
I've been playing with this code all night, no luck, or I'm not smart.
Any help will be greatly appreciatedHere is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JavaScripted Dynamic Table</title>
<script type="text/javascript">
// function becomes a method for each month object
function getFirstDay(theYear, theMonth)
{
var firstDate = new Date(theYear,theMonth,1);
return firstDate.getDay();
}
// number of days in the month
function getMonthLen(theYear, theMonth)
{
var oneHour = 1000 * 60 * 60;
var oneDay = oneHour * 24;
var thisMonth = new Date(theYear, theMonth, 1);
var nextMonth = new Date(theYear, theMonth + 1, 1);
var len = Math.ceil((nextMonth.getTime() -
thisMonth.getTime() - oneHour)/oneDay);
return len;
}
// create array of month names
theMonths = new Array("January", "February", "March", "April",
"May", "June", "July", "August", "September",
"October", "November", "December");
// deferred function to fill fields of table
function populateFields(form)
{
// initialize variables for later from user selections
var theMonth = form.chooseMonth.selectedIndex;
var theYear = form.chooseYear.options
[form.chooseYear.selectedIndex].value;
// initialize date-dependent variables
// which is the first day of this month?
var firstDay = getFirstDay(theYear, theMonth);
// total number of <TD>...<\/TD> tags needed in for loop below
var howMany = getMonthLen(theYear, theMonth);
// set month and year in top field
form.oneMonth.value = theMonths[theMonth] + " " + theYear;
// fill fields of table
for (var i = 0; i < 42; i++)
{
if (i < firstDay || i >= (howMany + firstDay))
{
// before and after actual dates, empty fields
// address fields by name and [index] number
form.oneDay[i].value = "";
}
else
{
// enter date values
form.oneDay[i].value = i - firstDay + 1;
}
}
}
</script>
</head>
<body>
<h1>Month at a Glance (Dynamic)</h1>
<hr />
<script type="text/javascript">
// Initialize variable with HTML for each day's field.
// All will have same name, so we can access via index value.
// Empty event handler prevents
//
//reverse-loading bug in some platforms.
var oneField = "<input type='text' name='oneDay' size='2' onfocus=''>";
// Start assembling HTML for raw table:
var content = "<form><center><table border='1'>";
// Field for month and year display at top of calendar:
content += "<tr><th colspan='7'>";
content += "<input type='text' name='oneMonth'><\/th><\/tr>";
// Days of the week at head of each column:
content += "<tr><th>Sun<\/th><th>Mon<\/th><th>Tue<\/th><th>Wed<\/th>";
content += "<th>Thu<\/th><th>Fri<\/th><th>Sat<\/th><\/tr>";
content += "<tr>";
// layout 6 rows of fields for worst-case month
for (var i = 1; i < 43; i++)
{
content += "<td align='middle'>" + oneField + "<\/td>";
if (i % 7 == 0)
{
content += "<\/tr><tr>";
}
}
content += "<\/table>";
// blast empty table to the document
document.write(content);
</script>
<form>
<select name="chooseMonth">
<option value="January" selected="selected">January</option>
<option value="February">February</option>
<option value="March">March</option>
<option value="April">April</option>
<option value="May">May</option>
<option value="June">June</option>
<option value="July">July</option>
<option value="August">August</option>
<option value="September">September</option>
<option value="October">October</option>
<option value="November">November</option>
<option value="December">December</option>
</select>
<select name="chooseYear">
<option value="2010" selected="selected">2010</option>
<option value="2011">2011</option>
<option value="2012">2012</option>
<option value="2013">2013</option>
<option value="2014">2014</option>
<option value="2015">2015</option>
</select>
<br />
<input type="button" name="updater" value="Update Calendar"
onclick="populateFields(this.form)" />
</form>
</body>
</html>Webethics wrote:
Looking at the calendar, how I would align to the center of all the days of the month so they are not is is slanted to the left of the cell.
The most effective way to do this is with CSS:
td input { text-align:center; }
Thanks for your comments on my books.
-
How to extract the Moldavian calendar data in the application
in my application I call blackberry calendar
When I click on certain date I want to pick up his date, duration of the event and notes
How can I retrieve these values?
MenuItem importCalender = new MenuItem("Import from Calender", 100, 11) { public void run() { UiApplication.getUiApplication().invokeAndWait(new Runnable() { public void run() { Invoke.invokeApplication(Invoke.APP_TYPE_CALENDAR,new CalendarArguments(CalendarArguments.ARG_VIEW_DEFAULT)); } }); } }; protected void makeMenu(Menu menu, int instance) { menu.add(importCalender); } class MyMenuItem extends ApplicationMenuItem { String text; MyMenuItem(int order) { super(order); } public Object run(Object context) { int d=0; if (context instanceof Event) { Event event = (Event) context; Date date = new Date((event.getDate(Event.START, 0))); Date date1 = new Date((event.getDate(Event.END, 0))); } return context; } public String toString() { return "Import Event"; } }
I loved this n it workes
Thank you, the idea has worked
-
Cannot remove "by" the details of the event calendar data
I currently have a Tungsten Palm | E2. For a short while, I used to sync it with my work computer; That was before they replaced the computer (lease was up) with a new where it was locked and I couldn't reinstall Palm desktop. Since then I was syncing it with my home computer running MS Vista. Recently, I noticed that when I create a new calendar events on my Palm, they all get a new "with:" the data line (and a user of my old post) after sync'ing with my computer at home. Select this "with:" entry brings me to a screen that allows me to choose from a list of people I can 'complete', 'Answer' or 'reply to all '; Although the selection is answer only causes a fatal error that requires a reset (button on the rear of the machine). Watching the event via the software desktop shows no data point so that it can be cleaned.
I would like to know why my desktop software is adding this person to a "with:" point new data entires at all, I create on the Palm hardware, how can I activate it off and keep him from doing it in the future.
Steve
If the memory is, as it has been a year, I have synced the E2 T with the old computer (March) that had been used with the IIIxe. I then would have installed the software on the new computer (April) when I got it. I guess it's the last may or June I noticed this new field (using the T E2). Nothing of him so I thought until I changed my job than this past October when I tried to delete the data in the field and found this problem of restart.
I don't remember the old IIIxe having a "with:" good on the ground.
Thank you
Steve
Message relates to: Tungsten E2
-
How can I change the login email address and access to the features of Windows 8?
Original title: I accidentally entered a wrong email across to the top of the upgrade to windows 8 and now I can't access all the features of windows 8.
When you install the upgrade for windows 8 he asked for my email address. I misspelled my domain name, which causes it have instructions or messages will in the vast desert of never never land. I need to check my email to make the apps work, but given that the email is valid I can't do that. I need to know how to change the login email address in windows 8 so that I can go ahead and verify my account.
Hi I also had this problem but I have used the local account and was able to access all applications with my correct email. I hope this helps!
-
I'm trying to block the multimedia browser of hearing CC and CC Pro management. I know that you can configure the workspace without him but you can add it back in at any time. Any help would be greatly appreciated!
There is no way to block the media browser, as the functions provided by which are very important... it is THE right way to navigate to the media and other goods to fill a project and its sequences. Anyone using the PrPro MUST have access to this Panel.
A member of the staff may be able to offer some additional tips, but in general... which is not possible under PrPro and the program still works correctly.
Neil
-
How to find the last update date, time and user of the file field peoplecode
How to find the last updated date time fields of peoplecode records?
Thank you.We can check the update date-time using the following query
SELECT LASTUPDDTTM IN THE PSPCMPROG WHERE OBJECTVALUE1 LIKE "RECNAME" AND OBJECTVALUE2 AS "FIELDNAME".
-
Windows calendar data stored.
This file is the windows calendar data stored
Check out the link on the default location of the Windows calendar below
http://www.optimizingpc.com/Vista/windows_mail.html -
Hello
I have to solve the following post:
Determine the date of departure of the flights that begin after the 14th calendar date (months), sorts by the date of departure.
All should be written as a select for Oracle Database 10 g.
Source table:
AB DATUM_ *.
13.11.08
14.11.08
15.11.08
17.11.08
The AB_DATUM column is a DATE data type.
The next start is located in space:
Select to_char (AB_DATUM, 'JJ.MM.') "AB_DATUM" of departures
order of AB_DATUM;
As a result, I get the following table:
AB DATUM_ *.
13.11.
14.11.
15.11.
17.11.
How can the work be solved, however, that in the AB_DATUM column only flights, are considered which begin after the 14th calendar date (months)?
Thanks in advance.where to_number (to_char (AB_DATUM, 'DD')) > 14
-
Vista - Windows 7 network connection. username and password is unknown.
Hello
I just got a laptop with windows 7 on it and I want to connect to my other PC for it, they are on the same network through a router. the PC can see and access the laptop without asking for a user name and password but the laptop cannot access the PC because it asks me a username and password that I don't know.
If someone could answer this question, it would be great.
HelloMaybe this can help.Win7 when configured on the peer-to-peer network has three types of configurations of sharing.
Group residential network = only works between Win 7 computers. This type of configuration, it is very easy to entry level users to start sharing network.
Working network = fundamentally similar to previous methods of sharing that allow you to control what, how and to whom the records would be shared with.
Public share = network Public (as Internet Café) in order to reduce security risks.For the best newspaper of the results of each computer screen system and together all computers on a network of the same name, while each computer has its own unique name.
http://www.ezlan.NET/Win7/net_name.jpg
Make sure that the software firewall on each computer allows free local traffic. If you use 3rd party Firewall on, Vista/XP Firewall Native should be disabled, and the active firewall has adjusted to your network numbers IP on what is sometimes called the Zone of confidence (see part 3 firewall instructions
General example, http://www.ezlan.net/faq.html#trusted
Please note that some 3rd party software firewall continue to block the same aspects it traffic Local, they are turned Off (disabled). If possible, configure the firewall correctly or completely uninstall to allow a clean flow of local network traffic. If the 3rd party software is uninstalled, or disables, make sure Windows native firewall is active .------------------------------
If your network consists only of Win 7 and you want a simple network, use it.
http://Windows.Microsoft.com/en-us/Windows7/help/videos/sharing-files-with-HomeGroup
After you have configured the homegroup, scroll to the bottom for the Permission/security section.
-----------------------------
Win 7 networking with other version of Windows as a work network.
In the center of the network, by clicking on the type of network opens the window to the right.
Choose your network type. Note the check box at the bottom and check/uncheck depending on your needs.
http://www.ezlan.NET/Win7/net_type.jpg
Win 7 network sharing folder specific work - http://www.onecomputerguy.com/windows7/windows7_sharing.htm
Vista file and printer sharing - http://technet.microsoft.com/en-us/library/bb727037.aspx
Windows XP file sharing - http://support.microsoft.com/default.aspx?scid=kb;en-us;304040
Sharing printer XP - http://www.microsoft.com/windowsxp/using/networking/expert/honeycutt_july2.mspxSetting Windows native firewall for sharing XP - http://support.microsoft.com/kb/875357
Windows XP Patch for sharing with Vista (no need for XP - SP3) - http://support.microsoft.com/kb/922120When you have finished the configuration of the system, it is recommended to restart everything the router and all computers involved.
-------------
If you have authorization and security problems, check the following settings.
Point to a folder that wants to share do right click and choose Properties.
In the properties
Click on the Security tab shown in the bellows of the photo on the right) and verify that users and their permissions (see photo below Centre and left) are configured correctly. Then do the same for the authorization tab.
This screen shot is to Win 7, Vista menus are similar.
http://www.ezlan.NET/Win7/permission-security.jpg
The Security Panel and the authorization Panel, you need to highlight each user/group and consider that the authorization controls are verified correctly.
When everything is OK, restart the network (router and computer).
* Note . The groups and users listed in the screen-shoot are just an example. Your list will focus on how your system is configured.
* Note . There must be specific users. All means all users who already have an account now as users. This does not mean everyone who feel they would like to connect.
---------------------
*** Note. Some of the processes described above are made sake not for Windows, but to compensate for different routers and how their firmware works and stores information about computers that are networked.
Jack-MVP Windows Networking. WWW.EZLAN.NET
-
Oracle query of relay and access function call does not return the list
Thanks to aid in a previous post, I received, I created an oracle 10 g feature that returns the list after you run the sql code it contains. It works in oracle, using sql developer.
I need to have the list that he returned to see the place in MS Access via a relay request. It does not work so far. The string for connection etc is ok, I'm able to use passthrough queries to run sql strings correctly. But when I try to call the function through the request of relay and access initially nothing seems to happen (IE no list) and if I try to run again, there is an "ongoing call odbc error. Current operation cancelled "." There are only three records in the table. I'm missing something, someone can he spot?
The application of relay and looks like this
Select * from fn_testvalues of the double
Once that is running in oracle.
To create the test table and 2 functions below.
CREATE TABLE t_values (MyValue varchar2 (10));
Table created
INSERT INTO t_values)
SELECT 'Merced' c1 FROM dual UNION ALL
SELECT "Pixie" dual UNION ALL
SELECT "452" DOUBLE);
3 lines inserted
FUNCTION to CREATE or REPLACE RETURN NUMBER IS fn_isnum(p_val VARCHAR2)
n_val NUMBER;
BEGIN
n_val: = to_number (p_val);
RETURN 1;
EXCEPTION
WHILE OTHERS THEN
RETURN 0;
END;
/
Feature created
table test:
SELECT val, isnum fn_isnum (MyValue)
OF t_values;
VAL ISNUM
---------- ----------
Merced 0
Pixie 0
1 452
Now the function that is called in the application of relay:
create or replace function fn_testvalues
sys_refcursor is back
RC sys_refcursor;
Start
Open rc for
Select t_values.*, fn_isnum (MyValue) t_values IsNum;
Return (RC);
end fn_testvalues;Why not?
satyaki> satyaki>select * from v$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production TNS for Linux: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production Elapsed: 00:00:00.00 satyaki> satyaki> satyaki>create or replace view bb 2 as 3 select * 4 from emp; View created. Elapsed: 00:00:00.00 satyaki> satyaki> satyaki>select * from bb; EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO JOB1 DOB ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ---- 7521 WARD SALESMAN 7698 22-FEB-81 226.88 500 30 SALESMAN 7654 MARTIN SALESMAN 7698 28-SEP-81 1815 1400 30 SALESMAN 7788 SCOTT ANALYST 7566 19-APR-87 598.95 20 ANALYST 7839 KING PRESIDENT 17-NOV-81 7260 10 PRESIDENT 7844 TURNER SALESMAN 7698 08-SEP-81 2178 0 30 SALESMAN 7876 ADAMS CLERK 7788 23-MAY-87 159.72 20 CLERK 7900 JAMES CLERK 7698 03-DEC-81 1379.4 30 CLERK 7902 FORD ANALYST 7566 03-DEC-81 5270.76 20 ANALYST 7934 MILLER CLERK 7782 23-JAN-82 1887.6 10 CLERK 7566 Smith Manager 7839 23-JAN-82 1848 0 10 Manager 23-JAN-89 7698 Glen Manager 7839 23-JAN-82 1848 0 10 Manager 23-JAN-89 EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO JOB1 DOB ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ---- 1 boock 12 rows selected. Elapsed: 00:00:00.00 satyaki> satyaki> satyaki>select * 2 from bb 3 where empno = &eno; Enter value for eno: 7521 old 3: where empno = &eno new 3: where empno = 7521 EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO JOB1 DOB ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ---- 7521 WARD SALESMAN 7698 22-FEB-81 226.88 500 30 SALESMAN Elapsed: 00:00:00.00 satyaki> satyaki>
Kind regards.
LOULOU.
-
OK, I am new to Blackberry and devices in general. I had a Palm, but never really used. Now, I have a Blackberry, I really want to learn how to get the most out of it.
I want to get more organized with my calendar and schedule. I want to keep a list of things to do. I want that all my contacts easily manageable.
In my Palm, she had a beautiful desktop app where I could add Notes, or memos or items to my calendar and then synchronize when it would move anywhere in my Palm.
The B; ackberry Desktop application does not seem to have that same out of the box user friendilyness. So my question, what program to use, how total, all this together to get the most out of my Blackberry?
Outlook? Google Calendar? Another program?
Thanks for any suggestions!
Jamie
The most transparent way is synchronization with Outlook, via the Desktop Manager.
Step 1 install Blackberry Desktop Manager Manager of
http://NA.BlackBerry.com/eng/services/desktop/Step 2
Connect blackberry to your PC via a USB cable and let the blackberry device driver install. During the device driver installation is complete, it will warn 'material installed successfully' in your windows taskbar.Step 3
Run the Blackberry Desktop software and choose the option SYNCHRONIZE.Step 4
Now choose CONFIGURE and you can select the CONTACTS, CALENDAR, NOTES, and databases TASKS by clicking on the boxes next to each. After you select each item, it will ask you which application you want to synchronize with, there are OPPORTUNITIES for all.Step 5
Now click OK on all windows until you are on the main blackberry Desktop Manager screen. Click SYNCHRONIZE. Make sure that the SYNCHRONIZE ORGANIZER DATA checkbox is checked. Now, click SYNCHRONIZE NOW to start the synchronization. -
Mail, calendar, people, and messaging app - lost calendar
I've lost my windows calendar 8 as part of the mail, calendar, people, and messaging app trying to drag the shortcut on the desktop. I would like this calendar re-installed with notifications appear on the desktop instead of the home screen if possible. I made many attempts that did not work and the need to correct procedure please.
Hi Doris,.
Welcome to Microsoft Community where you can find all the answers related to Windows.
According to the description, you are having problems with the calendar application get lost.
You can re-install mail, calendar, people, and messaging App on Windows Store and check if it helps.
Uninstall and then reinstall mail, calendar, people, and e-mail and see if it helps.
a: right click on the application of messaging, e-mail and people respectively, and then click Uninstall .
b: then click on the Windows key + Q to open the search box.
c: then click on store and then type Mail, calendar, people and mail , press ENTER.
d: click install.Important:-uninstall causes app "Mail, people and mail " loss of applications and data to the Apps.
Note: The calendar is an application that only will match in the start screen and not on the desktop.
Answer to us if you are having problems with the calendar app or any other issue of Windows, and we would be happy to help you.
Good day!
Hope this information helps.
I went to the store... and went to the search bar and type in the above and nothing. I lost the application of e-mail and calendar, a few days ago and I really miss the calendar. I have read all the FAQs Microsoft or such and can't find anything that helps. The above does not work. What can I do before reinstalling Windows 8? OB Pat
Maybe you are looking for
-
Migrating to SATA drive to iMac
Four days ago my MacPro (2010) died. I have four 3 "SATA drives from 1 to 2 to each of Mac Pro. The computer was for business and personal use. Absolutely everything (including financial information) I have is on these four discs, including redundant
-
About a month ago I posted a question about iMovie and not being able to "share". I solved the problem thanks, so no more emails!
-
someone knows something about this new version? It has the same price, and only apparently new feature is the dvd burner double layer.
-
Tecra A3: I have CD-RW/DVD - ROM-> I want to have a CD/DVD-RW
I have a CD-RW/DVD-ROM drive in my Tecra A3 machine. I want to have the installation of CD/DVD-RW. internal or external.Any recommendations?
-
Re: Can't get S-Video/Composite on my Satellite A200-1AE
I'm trying to connect my laptop with my TV with a Composite S-Video cable and I don't get any color on my TV.Only black and white. I'll try to find a setting in the Nvidia Control Panel to switch from S-Video Composite but I get only S-video and dete