Posting date
Hi all
Posting date
in the table of the column a varchar as below.
12/12/2013
12/12/03
I need to check the validity or not, and I want to display dates just not valid.
12/12/2013 - valid date
12/12/03 - invalid date
Thank you
Murali
You could do something like that
create or replace function valid_date (idate varchar2)
VARCHAR2 is back
date of T_DATE;
Start
T_DATE: = to_date(idate,'mm/dd/yyyy');
Back to 'Y '.
exception
while others then
back 'n';
end;
SQL > select valid_date('06/19/2014') from double;
VALID_DATE('06/19/2014')
--------------------------------------------------------------------------------
THERE
SQL > select valid_date('02/30/2014') from double;
VALID_DATE('02/30/2014')
--------------------------------------------------------------------------------
N
Tags: Database
Similar Questions
-
Facebook maintains the gel, a problem caused by this script resource://jid0-wpch2liwmumjc8av1vwejwvgjbi-at-jetpack/qclean-remove-facebook-ads-suggested-pages-and-posts/data/qclean.js:53
I tried many solutions suggested, nothing works. Please advse. Thank you.
Ed
Hello ed, this error is caused by the qclean addon that you have installed. Please disable or delete or report the problem to the author of the extension...
-
REST API - POST: / data/Objetpersonnalise / {id}
Is there a specific documentation describes to the REST API - data object customPOST call?
I tried a few different ways to call it without success, some of which are described below.
This is the custom, object that I work with:
Table
(
[type] = > Objetpersonnalise
[id] = > 19
[depth] = > full
[description] = > custom Description of object
[name] = > custom Elomentary Test object
[fields] = > Array
(
[0] = > array
(
[type] = > CustomObjectField
[id] = > 131
[depth] = > full
[name] = > testing a ground
[type] = > text
[displayType] = > text
[internalName] = > Test_field_one1
)
[1] = > array
(
[type] = > CustomObjectField
[id] = > 132
[depth] = > full
[name] = > two field Test
[type] = > text
[displayType] = > text
[internalName] = > Test_field_two1
)
)
)
I tried a few different methods to make this request, but I'll try to refrain from posting a wall of the code, and I'll put everything that I think is most close to being correct based on some examples to
Looking at the test customObjectData-helper to, eloqua-samples/customObjectData-helper/CustomObjectDataTests to fredsakr/eloqua-samples of master · GitHub
Request URL: https://secure.p03.eloqua.com/api/rest/2.0/data/customObject/19
The raw request:
POST /api/rest/2.0/data/customObject/19 HTTP/1.1
Host: secure.p03.eloqua.com
User-Agent: Elomentary (http://github.com/tableau-mkt/elomentary)
Content-Type: application/json
Content-Length: 90
{"fieldValues can only be": [{'id': 131, 'value': 'testing123'}, {'id': 132, "value": "alkfjsaldkjfasldjka"}]}
And the response headers:
HTTP/1.1 404 not found
Cache-Control: private
Content-Length: 1565
Content-Type: text/html; Charset = UTF-8
P3P: CP = "" IDC DSP COR DEVa TAIa OUR PHY ONL UNI COM NAV CNT STA BUS ","
Date: Tuesday, July 29, 2014 14:32:22 GMT
cannot get property
The body of the response:
<? XML version = "1.0" encoding = "utf-8"? >
< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
" < html xmlns =" http://www.w3.org/1999/xhtml ">
< head >
< title > < /title > Service
< style > < / style >
< / head >
< body >
< div id = "content" >
< class p = "title 1" > Service < /p >
< p > endpoint could not be found. < /p >
< / div >
< / body >
< / html >
Parris,
Endpoint for the creation of object (custom p03) data seems to have been replaced by:
POST Api/rest/1.0/data/customObject/{customObjectId}
Endpoint you are trying to use has worked before. I don't know what happened... I found this useful documentation:
https://secure.P03.Eloqua.com/API/docs/dynamic/rest/1.0/reference.aspx
Jason Kay
-
Content type of the form POST data REMAINS
I'm trying to POST through a REST API that has a content type of the form data from vRO. Someone at - he no idea how I need to put in shape the body of the request in the vRO? At this point, im just build a JSON object then stringifying the object and sending it offshore.
{key1:value1, key2:value2}
var body = new Object(); body.api_key = apiKey; body.AssignedSupportLevel = assignedSupportLevel; body.Category = category; body.CustomersUFID = customersUFID; body.Description = description; body.LastModifiedByEmail = lastModifiedByEmail; body.OwnedByTeam = ownedByTeam; body.Portfolio = portfolio; body.Priority = priority; body.Service = service; body.Source = source; body.Subcategory = subcategory; body.Summary = summary; var request = restHost.createRequest("POST", "/myitapi/v1/tickets", JSON.stringify(body)); request.contentType = "multipart/form-data"; return request.execute();
Thanks for the reply Ilian. I was able to format the body of the request such as specified in the RFC as stated below. I also wrote an action to do the formatting for me that I have attached. I hope it helps someone else.
var body = "--WebKitFormBoundary7MA4YWxkTrZu0gW\r\n" + "Content-Disposition: form-data; name=\"api_key\"\r\n\r\n" + apiKey + "\r\n" + "--WebKitFormBoundary7MA4YWxkTrZu0gW\r\n" + "Content-Disposition: form-data; name=\"AssignedSupportLevel\"\r\n\r\n" + assignedSupportLevel + "\r\n" + "--WebKitFormBoundary7MA4YWxkTrZu0gW--"
The action has two expectations as described in the description.
- You use the limit as described in details in your content type of the request.
- The action assumes that all data in the form is the Content-Disposition: data type of the form.
-
Custom Setup problem Blog Post Dates
I have a prblem implementation of the Dates of the Post of Blog on my site. The green zone is cut. The address is: http://your-startup-business-1.bc-hosting.net/_blog/Blog#.UAC-JnCACBZ
Any ideas on how to solve this problem?
Debra Scarpa
Hi Debra,
Try this, but I would also like to test browser. This works in Firefox that I realized using Firebug. Let me know if you need anything that anyone else.
.one .published {} .hentry
...
left:-64px;
}
{#main-body}
background: url("images/btm.png") no-repeat scroll Center low transparent;
Clear: both;
float: left;
margin: 0;
padding: 4px 10px 10px;
Width: 98%;
}
#container {}
background: url("images/bg.jpg") no-repeat scroll center top transparent;
height: 333px;
margin: 0 auto;
Width: 960px;
}
#main {}
float: left;
margin: 0;
padding: 20px 0 0 20px;
Width: 560px;
}
{#footer container}
background: url("images/foot-tile.png") left horizontal scrolling and high transparent;
float: left;
height: 118px;
Width: 100%;
}
-
Is it possible to POST data to an application process?
Hello
I use Google Gears to implement the Apex 3.2 multiple file upload. This works perfectly except that the downloaded files are inserted into the table document with security_group_id = 0 and are not accessible via the view wwv_flow_files.
To resolve this problem, I am using an application process (if the security context is correctly set up), but I get a 404 error when I try to POST the file (using the standard URL format).
Before I spend more time on this, I would ask... Enforcement procedures do not like HTTP POST and only work with HTTP Get?
If this is the case, is there another option to implement the security context when validating data at the Apex DAD?
Thank you
LuisHi Luis,.
"on-demand" process supports HTTP post as well. I think you should take a look 'error.log' the file on your web server to know what is the root cause of your 404 error. Take a look at http://www.inside-oracle-apex.com/oracle-apex-got-404-not-found-2/ for more details.
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins -
Help with POST data if multiple selections are chosen
I created a form with a menu (list) which includes all 50 States. I used the MESSAGE option, as well as PHP, to treat form data, which will be sent to me. The list menu looks like this: http://askdave.info/help/states_menu.gif and I have "Allow multiple selections" checked in the property inspector.
If the user chooses several States, I want EACH of these States to be included in the email that I receive. Right now, if I check several States, I get only the latest state selected. For example, here is the email that I get after I check 5 different States. http://askdave.info/help/FormData.gif
Problem-> in this email, only one State is indicated (Hawaii), even if I selected 5 different States. How can I get the data from the form to list all THE States that are checked?
Here's what I have:
< form name = "form1" method = "post" action = "process.php" >
< input type = "hidden" name = "required" value = "name, phone, email, States, capital" / >
And then for the menu that lists the States, I have:
< label >
< select name = 'States' size = '7' several id = 'States' >
all States < option > < / option >
Alabama < option > < / option >
Alaska < option > < / option >
Arizona < option > < / option >
Arkansas < option > < / option >
and so on...
What Miss me? How can I get the PHP script to send multiple values, if multiple values are selected? (I'm new to PHP, so go easy on me.) I can post my code, if necessary.) Is this a PHP problem, or do I have to add something to the HTML form?Hello
>>
I think that DynaForm is synonymous with dynamic form
>>This makes some sense ;-) I was wondering just because there is a pre-made script called DynaForm here, but it has a different 'Logistics' than yours.
However, both "DynaForm" versions are pretty basic, because they deal only with non-multiple values - fields as a single line, texareas and select´s non-multiple of form input fields. Your script for example just loops through all the existing form fields using the method "foreach":
Out of form fields and values.
foreach ($this-> post as $field-online $value) {/ / loop through all form fields}
If ($field == "required") continue;
$this-> _addLine ($field, $value); Here´s where the field´s name/value consolidation happens
}.. .and simply includes a 'value' with his 'name' associated field´s. The problem is: this method works, simply to have only 1 value - but any 'multiple value' form fields (for example your 'States' select or check box groups who spend several values as well) require a separate "foreach" in the script treatment, fields and this hasn´t been incorporated here.
That said, I would suggest using another solution pre-made as PHP Form Mail script that s capable of managing your multiple values - scenario naturally.
-
Posting date for Millions of records
Hi all
I need to do a validation of date (if the format is 'YYYYMMDDHH24MISS') in the oracle table that has millions of records. Currently, invalid format files are pushed into a separate table. I use a function and procedure that does this task, but it takes 1 min for 1 million files which is very expensive.
Kindly let me know if we have any other alternative that will give a better Performance? or refine bleow queries to make it efficient.
Function:
create or replace the FUNCTION VALIDATION1(PARAM IN VARCHAR2) RETURN VARCHAR2
AS
NUMBER1 NUMBER;
DATE1 DATE;
BEGIN
DATE1: = TO_DATE (PARAM, 'MMYYYYDDHH24MISS');
BACK TO 'Y '.
EXCEPTION
WHEN OTHERS THEN COME BACK 'N';
END;
Procedure:
create or replace PROCEDURE VALIDATE_DATE_INS AS
VAR1 VARCHAR2 (1);
CURSOR C1 IS SELECT ROW_ID, CUST_NEWJOINEE JOIN_DATE;
BEGIN
FOR LAST_UPDATE IN C1
LOOP
VAR1: = VALIDATION1 (LAST_UPDATE. JOIN_DATE);
VAR1 = 'N' IF THEN
Insert into Error_Tracker values (LAST_UPDATE. ROW_ID, 'Y', "Date Format mismatch");
END IF;
END LOOP;
COMMIT;
END VALIDATE_DATE_INS;
Thanks in advance,
RAM Mohan TTry this
Replace the slider by Jet sql.
CREATE OR REPLACE FUNCTION VALIDATION1 ( PARAM IN VARCHAR2 ) RETURN DATE AS DATE1 DATE; BEGIN DATE1 := TO_DATE(PARAM,'MMYYYYDDHH24MISS'); RETURN DATE1; EXCEPTION WHEN OTHERS THEN RETURN NULL; END; CREATE OR REPLACE PROCEDURE VALIDATE_DATE_INS AS BEGIN Insert into Error_Tracker SELECT ROW_ID ,'Y' 'Date Format Mismatch' FROM CUST_NEWJOINEE; WHERE VALIDATION1(JOIN_DATE) IS NULL COMMIT; END VALIDATE_DATE_INS;
Concerning
Arun -
Apex 4 10.2.0.3 on database:
I have a form that has a Date field (Received_date), user can enter and edit the field here, I want to put a field validation when the user first choose the date so it should be either today or later, not earlier today. But I want the validation only works on the first value of the time entry, not on those already have this field filled in (when to modify existing records and this area already have a date)
I tried Attri(Min set to +0d) point and also tried to create a stage of validation level like this (function that returns text error)
If: P3_RECEIVE_DATE < sysdate can
return 'not A Date is valid';
on the other
Returns a null value.
end if;
That solved the validation at the time of the first. But problem is that it has not worked for existing records that already have the date, for example, when I open an existing record that already have a date it (prior to the current date), then try to save it, it also to trigger the validation, I don't want to.
I know I can create a trigger next to the database, but is it possible to do that on the side of the Apex?
Thank youMike,
Look at page 3.
1. added: P3_RECEIVE_DATE_BEFORE - hidden
2 calculation "before the regions' P3_RECEIVE_DATE_BEFOREbegin return :P3_RECEIVE_DATE; end;
He recorded the initial value of P3_RECEIVE_DATE
3. validation P3_RECEIVE_DATEbegin if TO_DATE(:P3_RECEIVE_DATE,'dd-MON-YYYY') < sysdate then return false; else return true; end if; end;
This validation is conditional - she is executed only if P3_RECEIVE_DATE_BEFORE is not null
It will be useful.
Lev
-
How to access the parameters of the post data?
Hello
function of the request for a page from the apex, I have run various branches of my process of pl/sql. To do this, I get the url with OWA_UTIL.get_cgi_env ('QUERY_STRING') and do a scan on demand.
It works very well with get URLS.
Now, I have a button that displays the request using the javascript:doSubmit('MY_REQUEST') syntax. Is no longer uses the get method, but puts the parameters to a post method.
The request will be placed automatically in the p_request parameter. I don't want to change the call to for syntax javascript:redirect !
Is there a way to access this parameter in pl/sql, and if there is, how can I do?Markus,
You do something wrong. You could not join the branches without submitting it. You have problems obtain the value of the application after you plug? If so, you can ASK & Add. in the query the value of the branch and she "sends" demand the long...
If this isn't the issue, then put an example on apex.oracle.com and include credentials, work space and some details on what you would like to ask you. It doesn't have to be the 'real' app, a test application going.
Kind regards
Danhttp://danielmcghan.us
http://sourceforge.NET/projects/tapigen -
Post the error code of data vi-34117
I upgraded a VI in Labview 7.1 to 8.6, which includes the post data VI on a new computer
I run the VI, no errors, because I want to read this point of the host using data, I went to the MAX to add that the fact data published, MAX does not have data points
So I tried to test publish it VI in a simple test VI which includes only publish it VI but I get code error-34117.
I use fieldpoint CFP-2220 and Labview 8.6
Any suggestions why publication vi data does not work even if it is not returns errors why I get error-34117?.
is there a difference on decision vi and data works publish in labview 8.6 vs labview 7.1
Thank you.
Thanks for the reply, I followed the instructions but it doesn't work.
now I had solved it.
It was a version of the software incompatibility or software has been altered. what I did was uninstall all the software about to field and reinstalling them, which fixed the problem.
-
Hey guys, I have struggled with it all morning and have tried various samples without result.
I have a service I need to view settings and then receive JSON data back. I have questions, get the post data to pass to the service (comes empty). I can't find all the information on messages anywhere on the developer portal either.
Here is the code for
// Network manager mAccessManager = new QNetworkAccessManager(); if (!mAccessManager) { qDebug() << "Unable to create QNetworkAccessManager!"; return; } // Handle SSL errors connect(mAccessManager, SIGNAL(sslErrors ( QNetworkReply * , const QList
& )), this, SLOT(onSslErrors ( QNetworkReply * , const QList & ))); // Convert to string QByteArray byteArrayObject; byteArrayObject.append("name1=value1"); // Path to server QString path = "http://myurl.com/post.php"; // Build request QUrl serviceURL(path); QNetworkRequest request(serviceURL); // Post and connect mReply = mAccessManager->post(request, byteArrayObject); connect(mReply, SIGNAL(finished()), this, SLOT(onFinished())); Any help / suggestions would be greatly appreciated, thank you.
I finally got this figured out.
Missed me a few great lines:
// For your "Content-Length" header QByteArray postDataSize = QByteArray::number(body.size());
// Set Headers request.setHeader( QNetworkRequest::ContentTypeHeader,"application/json" ); request.setHeader( QNetworkRequest::ContentLengthHeader,QString(postDataSize).toUtf8() );
Here is a complete example.
// Network manager mAccessManager = new QNetworkAccessManager(); if (!mAccessManager) { qDebug() << "Unable to create QNetworkAccessManager!"; return; } // Handle SSL errors connect(mAccessManager, SIGNAL(sslErrors ( QNetworkReply * , const QList
& )), this, SLOT(onSslErrors ( QNetworkReply * , const QList & ))); // Convert to string QByteArray byteArrayObject; byteArrayObject.append("name1=value1"); // For your "Content-Length" header QByteArray postDataSize = QByteArray::number(body.size()); // Path to server QString path = "http://myurl.com/post.php"; // Build request QUrl serviceURL(path); QNetworkRequest request(serviceURL); // Set Headers request.setHeader( QNetworkRequest::ContentTypeHeader,"application/json" ); request.setHeader( QNetworkRequest::ContentLengthHeader,QString(postDataSize).toUtf8() ); // Post and connect mReply = mAccessManager->post(request, byteArrayObject); connect(mReply, SIGNAL(finished()), this, SLOT(onFinished())); -
How to post JSON using the Oracle Data Service remains
I use the regular (not NoSQL or something) oracle database with oracle rest data service. Now I need to post data / put wrote in the body of the request using some json/xml format, how to consume them using the rest data service, searching inside the express application? important: using pl/sql block
Also, I am on,
Data service Oracle rest 3.0
Oracle Application Express 4.2
Post edited by: Jacynthe
OK, I got the answer. At the express request, there is a link called body variable (: body in BLOB). but the BLOB data type. So, we have to convert that in other data, type what we in pl/sql. I've converted data type witch CLOB supports json.
-
Ask to post to the server data - origin of the Post?
Hey all
I have a very simple question for the most technical of users Eloqua there - whence the POST request on a processing step of the forms "Post data to the server", leave the browser of the client or server of Eloqua backend?
Hi Sam,
Repost is done by Eloqua of the system from sending the form Eloqua. See link to additional documents. Eloqua9: form processing steps
It might also be good idea to call Eloqua support with your web developer to set any additional details needed.
Thank you
Amit
-
Hello
I have tried unsuccessfully to write an AS3 script to post data to a server ASP page (which is scripted in ASP to insert data into a database. The ASP script does not return data for Flash.). It is set up so that it cannot receive the data and does not send the data back.
I wrote a script that follows, but I recover a trace of 'mistake' (see text), and when I check regardless of the DB, no new data that I am sending, is received. So, does not.
storeBtn.addEventListener(MouseEvent.CLICK,dbStore,false,0,true); function dbStore(event:MouseEvent):void{ var g2:String; if (selectGm == true){ g2 = "abc"; } if (selectGf == true){ g2 = "xyz"; } var scriptPage6:String ="https://mysite.com/ASPpage.asp"; var request6:URLRequest = new URLRequest(scriptPage6); request6.method = URLRequestMethod.POST; var variables6:URLVariables = new URLVariables(); variables6.aaa = data88; variables6.bbb = data99; variables6.name = name6;//carried over in the script from text input in an earlier frame: var name6:String = username_txt.text; variables6.ggg = g2; var loader6:URLLoader = new URLLoader(); loader6.dataFormat = URLLoaderDataFormat.VARIABLES; loader6.addEventListener(Event.COMPLETE, handleComplete6); loader6.load(request6); //request6.data = variables6; } var msg:String; function handleComplete6 (event:Event):void{ var msg = event.target.data; if(msg=="true"){ trace("Done!"); } else{ trace("Error: "+msg); } }
I must do something wrong and you'd be grateful for any help. I don't know how to send data when no data return is needed or requested?
The goal is simply to send 4 Articles to the ASP (aaa, bbb, name and ggg) page that can process and insert these into a DB.
Kind regards
Yes, it is necessary. that (affecting the data property of your urlrequest) is the only way to send variables/values to your ASP script.
After correcting that, remove your handleComplete6 function because you do not return anything of your ASP script or, better yet, have your asp script to return something when it is finished:
Response.Write "asp script complete."
Maybe you are looking for
-
Hello everyone, I use a NI 9361 module to measure the speed of rotation of a shaft that rotates through an electric motor. I am faced with loud noises because of this electric motor; When I run it, my meter directly measure frequencies up to 1 MHz, e
-
Update of security for XML Core Services (KB954430) has installed several times
Update Windows 7 installed KB954430 on 2010-03-23. He has been the installation of the update even several times a day since then (a total of 25 times). Control Panel > programs and features > installed updates does not show this update as being inst
-
HP DV7 1130: DV7 does not illuminate
My son just got this laptop which has been stored in a closet for an unknown duration. We tried to turn it on and turn it on no matter where.5 to 2 seconds. I was using a universal charger, but I don't know if that is the question. He said someone e
-
Optiarc DVD RW AD - 7560A ATA DEVICE cannot read the PC DVD - ROM.
I have sony vaio VGN-NR38S. It has a Optiarc DVD RW AD - 7560A ATA DEVICE. A few days ago I bought a DVD of driving test. I can't use this DVD in my laptop. I tried this DVD in other laptops and it works perfectly, but when I insert in my laptop, it
-
Music files in windows vista has the topics title, artist, composer, year, and genre. I want to enter info in some of these categories so that windows media player displays the correct information. The fields below these categories will be not open s