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.
Tags: Dreamweaver
Similar Questions
-
Need help with the data storage store, local array and network connections
Need help with my ESXi 4.1 installation
My hardware:
I built a server with an Asus P6T whitebox, i7 920, 12 Gig RAM, NIC, Intel Pro1000 PT Quad, 3ware 9650SE-12ML with 8 1.5 TB SATA green in a raid 6 array gives me about 8 + TB with a spare drive all housed within a NORCO RPC-4220 4U Rackmount Server chassis. I also have a 500 GB SATA drive which will hold the ESXi and virtual machines.
The network includes a firewall, Netgear Prosafe FVS336G, GS724Tv of Netgear ProSafe 24 port Gigabit Managed Switch on a dhcp cable modem internet service provider.
I also have 2 old NetGear SC101T NAS disks (4to) I want to connect to the system how some - at a later date have... data on them and want to transfer to the new storage array. I always looking into the question of whether they will work with ESXi 4.1, or I might have to only access it through Windows XP.
My Situation:
I have already installed ESXi 4.1 and vsphere client with no problems and it is connected to a dhcp cable internet service. I've set up host via a dynamic DNS service name give me a static hostname on the internet. I installed three machines to virtual OS successfully at the moment and now want to first start by creating a multimedia storage server which will use some of this new 8 TB array, then separate data storage for use with a web server small overhead storage and a backup. It is a domestic installation.
Help with the data store and network:
I was doing some reading, because I'm new to this, and it looks like I'll probably want to set up my table via ESXi as a nfs disk format. Now, the data store is usually in another physical box from what I understand, but I put my readers and ESXi all in the same box. I'm not sure that the best way to put in place with grouped network cards, but I want to make this work.
I understand that in ESXi 4.1 using iSCSi LUN must be less than 2 TB, but nfs - I should be able to add a bigger partition then 2 TB (for my multimedia) in nfs, right? or should I still add it separately as a separate 2 TB drives and then extend them to get the biggest space.
Any suggestions or direct resources showing examples on how to actually add some parts of the table as data warehouses separate nfs. I know that to go to the configuration tab, and then select Add to storage, and then select nfs. I have not my picture, but it's here that I don't know what to do because ESXi 4.1 system already has an address, should I put the same thing to the new data store array also (will it work?), and what should I use for the name of the folder and the store of data... just do something to the top. I thought to later install Openfiler (for a multimedia storage using this table server) as a virtual machine, use the table with esxi so that I can access the same storage space with widows and linux-based systems.
I also know I have to find a way to better use my quad nic card... put in place of virtual switches, grouping, etc HELP?
Any direction, assistance, similar facilities to sample, suggestions or resources that would help would be great. I did a lot of hunting, but still a little confused on how to best to put in place.
You must think of VMDK files of large databases with records of random size guest go read some data (a DLL or an INI file), maybe write some data back, then go read other data. Some files are tiny, but certain DLLs are several megabytes. It's random i/o all and heavy on the search time. IO Opsys is small random operations that are often sequential (go read data, write data, go read other data,...) so that deadlines are critical to the overall performance. That's why people say OPS are / s of reference and forget the MBs flow. The only time where you bulk transfers are when you read media (ISO files).
Well, now forget all this. Actually the disk activity will depend on the specific applications (database? mail server? machines compiler?), but the above is true for boots, and whenever applications are idle. You should see the profile to know.
RAID 10 is faster (and often more reliable) than RAID 5 or RAID-6 except in certain specific cases. In General RAID 10 is ideal for many random writes, since the calculation of parity for RAID-5 and - 6 adds to the overall latency between command and response - latency is cumulative if a little slow here and a little slow it adds up to a lot of overall slow synchronous especially with e/s on a network. OTOH RAID-5 and -6 can produce faster readings due to the number of heads, so you can use it for virtual machines that transfer bulk. Test. You may find that you need several different types subdashboards for best results.
You said 3ware, they have some good grades on their site, but don't believe it. With my 9650 that I found myself with only a couple of their recommendations-, I put the (simple) table for allocation size 256 k, nr_requests at 2 x the queue_depth and use the planner date limit. I had the habit for the Ext4 file system formatted with stride and stripe-width synced to the table and used the options large_files with fewer inodes (do not use the huge_files option unless you plan to have single VMDK files in the terabyte range). Use a cache of great reading in advance.
Virtual machines use VMDK files in all cases except raw iSCSI LUN that they treat native disks. VMDK is easier to manage - you can make a backup by copying the file, you can move it to a PC and load it into another flavour of VMware, etc. There could be some features iSCSI to your San as a transparent migration but nothing for me. NFS has less chatter of Protocol if latency lower times to complete an operation. NFS is good to read and write a block of data, that's all it boils down to.
UPS is good, but it won't help if something inside the machine explodes (UPS does nothing if the PC power supply goes down). If the RAID card has an option for a battery backup module, so it can contain some writings in memory and may end up the disk i/o after replacing the power supply. 3ware also limits the types of caching available if help is not installed, and you get just the right numbers with the module.
-
Let's say I want to create an effect of post-processing, such as changing the pixels of the screen in a color a little more red (AFTER this drawing), or do a screen wavey distortion.
I thought that my layout as follows:
final class MyPaintScreen extends FullScreen{ // //... stuff here // public void paint(Graphics g){ //all kinds of draw commands here, then //the post processing method is called PostProcesser.modify(g); } } final class PostProcesser{ final static void modify(Graphics g){ //here lies the problem. } }
Ideally, the modify method would use the Graphics object as a parameter, and it would get her a bitmap or an array of bytes/int with the data drawn. Then she do all that the pixel values and then crush them to the Graphics object. Or maybe it would do all this without copying it in a bitmap/picture and just edit a graphic field directly.
I thought that it would be a way to get an article / a region which was drawn (I want my post method only affect an area of the screen), but there is no method to return the screen stretched somehow, it seems. There is no Bitmap field in class Graphics to mess with. No table with the pixel values. No getBitmap/getRegion method.
After thinking long and hard, I thought to use a sort of buffer to the screen. Have a Bitmap of the size of the screen and instead draw things on the screen, draw them on the Bitmap object, and then apply the post treatment methods he and then draws the Bitmap over together on the Graphics object... but it seems so memory intensive. Moreover, I have to use the thingies setARGB awful and messy the bitmap instead of the methods of the Graphics class Drawing.
Any advice on that? Comments? Help? Suggestions?
Just to confirm the approach of the buffer, you can create a bitmap image in the desired size, create a Graphics using the bitmap object, and then you can call 'paint' provide your own Bitmap, rather than the image of the screen image.
You can also get it current graph of the screen using
. getGraphics(). Not sure this helps. Good luck.
-
Help with dynamic action and the selection list item
G ' Day Apex gurus.
I have problems trying to achieve to trigger the Help window from an element automatically select. A Help window is triggered when it is clicked on the label of an item, but my customer wants to be triguered automatically as soon as the user clicks to view the options in the select list.
I think I should be able to do with dynamic actions but I can't function.
I know when someone clicks on the label of the item selection list trigger this JavaScript
JavaScript:popupFieldHelp('277938589795252851','1545903379570909')
So I want to trigger the javascript also when the user click on the item selection list and pull down the options and for that I think that the dynamic action is the way to go, but I can't do things.
That's what I have to do:
I created a dynamic option as follows:
Name: test
Sequence: 30
Even: click
Selection type: product (s)
Article (s): P1_RATING <-a selection list item
Condtion: - no requirement.
Real Actions
Sequence: 10
Action: Run the JavaScript Code
Fires when the result of the event is: true
Fire on loading the page: checked
Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
Thank you anyone who can tell me what I'm doing wrong here or bring a solution to my problem to trigger the Help window from an element automatically select.
Kind regards
CarlosHi Carlos,
I've set up a test case of exactly in the same way and it worked fine for me. I've created a page element called P1_DA_DEMO and added some values of the static selection list, then added a help text. I used the settings are lower, I suggest you try again, but also make sure that you have no other Javascript errors on the page. Use a tool like firebug to check.
Name: Action Dynamics demo
Sequence: 10
Even: click
Selection type: product (s)
Product (s): P1_DA_DEMO<- a="" selection="" list="">->
Condtion: - no requirement.Real Actions
Sequence: 10
Action: Run the JavaScript Code
Fires when the result of the event is: true
Fire on loading the page: unchecked
Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')Scope of the event set a Bind s.
Thank you
Paul
-
Hi all
need your spiritual help once more!
I have a table 'product' as below:
create table product)
product_id number (2),
product_info varchar (4000));
Select * from product:
product_id product_info
1 < ticketing > < product = 'TV' > < productservice = "shipping" > < / productservice > < / product = 'TV' > < / ticket >
I need to get the column product_info information in a new table with 2 columns product and productservice product_details. as in: -.
Select * from product_details:
product_id product productservice
1 expedition TV
any suggestions on how to do it.
PS-> for a product it can be several services and there may be several products for a ticket.Your XML file is not well formed at all (so many errors in there).
However, if you had a valid XML code, you could do something like that...
SQL> ed Wrote file afiedt.buf 1 with t as (select 1 as product_id, '
' as product_info from dual union all 2 select 2, ' ' from dual) 3 -- 4 -- end of test data 5 -- 6 select t.product_id, x.* 7 from t 8 ,xmltable('/ticketing/product' 9 passing xmltype(t.product_info) 10 columns product varchar2(10) path '/product/@name' 11 ,service varchar2(15) path '/product/productservice/@name' 12* ) x SQL> / PRODUCT_ID PRODUCT SERVICE ---------- ---------- --------------- 1 TV shipping 2 VCR delivered -
Having problems reading CLOB data > 32000 and thought that maybe I can load the data into 3 separate columns less than 32000 k each.
I tried to substring of a part of it first to see if it worked.
DDL
CREATE TABLE 'E406702 '. "" DSR3 ".
(
"RECORDNO' CHAR (8 BYTES),
'DOCUMENTUNIVERSALID' CHAR (32 BYTES),
"CREATIONDATE" TANK (30 BYTES),
VARCHAR2 (250 BYTE) "ETL_STATUS."
VARCHAR2 (4000 BYTE) "DSRDESCRIPTION."
VARCHAR2 (4000 BYTE) "FORM."
'REQUESTID' VARCHAR2 (4000 BYTE)
)
CONTROL FILE
DOWNLOAD THE DATA
INFILE 'DSR2DATA.txt' ' str "\r '"
ADD
IN THE DSR3 TABLE
FIELDS TERMINATED BY ' <: s: >.
(RecordNo CHAR (8),
DocumentUniversalID TANK (32),
CreationDate CHAR (30),
CHAR ETL_STATUS (250).
DSRDescription TANK (32700) "substr(:DSRDescription,1,32)."
SHAPE TANK (4000).
RequestId TANK (4000))
Doing this, that I was able to load half of my files.
Check the newspaper and saw
SQL * Loader: release 11.2.0.1.0 - Production on sea Feb 19 09:40:40 2014Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Control file: c:\mytest7\DSR3CONTROL.txt
Data file: DSR2DATA.txt
Chain of the treatment of the files option: ' str "\r '"
Bad leadership: c:\mytest7\DSR3CONTROL.bad
Discard File: none is specified
(Allow all releases)Number of loading: ALL
Number of jump: 0
Authorized errors: 50
Link table: 64 lines, maximum of 256000 bytes
Continuation of the debate: none is specified
Path used: classicsTable DSR3, loaded from every logical record.
Insert the option in effect for this table: APPENDColumn Position Len term Encl. Datatype name
------------------------------ ---------- ----- ---- ---- ---------------------
RECORDNO FIRST 8 CHARACTERS
String endpoint of: "<: s: > '"
DOCUMENTUNIVERSALID THEN 32 CHARACTERS
String endpoint of: "<: s: > '"
CREATIONDATE THEN 30 CHARACTERS
String endpoint of: "<: s: > '"
ETL_STATUS THEN 250 CHARACTERS
String endpoint of: "<: s: > '"
DSRDESCRIPTION CHARACTER THEN 32700
String endpoint of: "<: s: > '"
The SQL string for the column: 'substr(:DSRDescription,1,32) '.
TRAIN THEN 4000 CHARACTERS
String endpoint of: "<: s: > '"
REQUESTID THEN 4000 CHARACTERS
String endpoint of: "<: s: > '"value used for the parameter LINES increased from 64 to 6
Record 79: Rejected - error on the DSR3 table.
ORA-01461: can bind to a LONG value only for insert into a LONG columnRecord 82: Rejected - error on the DSR3 table.
ORA-01461: can bind to a LONG value only for insert into a LONG columnRecord 94: Rejected - error on the DSR3 table.
ORA-01461: can bind to a LONG value only for insert into a LONG columnRecording 160: Rejected - error on the DSR3 table.
What is the problem that. My goal was to make it work and then try to perform the following operations:
Change the ddl to
'DSRDESCRIPTION' CLOB,
'DSRDESCRIPTION1' CLOB,
'DSRDESCRIPTION2' CLOB,
Change the control for this file.
DSRDescription TANK (32700) "substr(:DSRDescription,1,32700)."
DSRDescription2 TANK (32700) "substr(:DSRDescription,32701,65401)."
DSRDescription3 TANK (15000) "substr(:DSRDescription,65402,80000)."
Is - this bad way to go on this subject?
If you can load data without any problem and read-only is a problem then you can use SUBSTR and concate (|) to read the entire string. Something like this:
Select substr (DSRDescription, 1, 32000) | substr (DSRDescription, 32001, 64000) | dsr3 substr(DSRDescription,64001);
or
with the data as
(
Select substr (DSRDescription, 1, 32000) in the DSRDescription of dsr3
Union of all the
Select substr (DSRDescription, 32001, 64000) in the DSRDescription1 of dsr3
Union of all the
Select substr(DSRDescription,64001) in the DSRDescription2 of dsr3
)
Select * from data;
Onkar
-
Hello
I have a date format that is varchar2 and value is as on 2009-03 - 31.i need to convert to date and it must be as on 31 March 09
I get as error 0RA-01981... Please help me in thisSQL> select to_date('2009-03-31','yyyy-mm-dd') xc from dual ; XC ------------------------------ 31-MAR-09
For your http://ora-01981.ora-code.com/ error
SS
-
What is the 'Live' page and need help with the data merge
Hello
Im very new to indesign naked with me. Im trying to merge data (need to create a fusion template?) and what I understand is that I need to be on the page 'Live '. Someone on the forum suggested this...
There are two ways to set up the model of fusion. You can put your placholders on the master page or on the live page. If the placehlders are on the master page, only the frame (s) with placeholders, as well as other grouped objects, will be duplicated. On the live page, ID will try to duplictate EVERYTHING on the page, so you must be very careful about installation and sizing of objects.
I want to be on the LIVE page... How can I do this? Got any other sort but can't get several records for the life of me to come.
Thank you for your help adavance
It is the opposite of multiple records per page. Make x copies of a single record on a page, put x sets of organized placeholders as you want on the page. A good way to do it is with Edit > step and repeat after you set up the left superior set. Now merge as one record per page.
-
Open the page with the data you have selected to another page
Hello
I think this might be a simple question, but everything I have tried does not seem to work.
I am trying to open a second page in a list, with a value selected, to another list from another page. However, I tried all unique combinations of the tutorial but nothing works I don't know how to explain it so I have attached a diagram.
the FilterDataContainer.qml and the FilterAlphaContainer.qml are identical except for the data query.
I tried:
-ControlDelegate with NavigationTab [AKA save the Green layer, FilteredDataContainer.qml like NavigationTab-> it turns out that white.] Is it because the list itself is inside a .qml file which is then within another container?
-ComponentDefinition (documentation speaks to add it to the container, but I would like to create a new page;
What would be the easiest way to make this work?
Thank you!
That didn't work either.
I found the solution: http://supportforums.blackberry.com/t5/Native-Development/How-to-change-a-variable-of-an-attached-ob...
Basically, I left my original code intact and in fact reloaded data :
onQueryChanged { datasource.load() }
Very weird roundabout and seems to have nothing to do with the IDs/types, etc., I thought it was!
-
Need help pulling information data store multiple vCenters VM
Thanks to the magic of Google and trial and error, I was able to develop the script below. The metric of the final I want to put the name of the data store the virtual computer is on and I can't for the life of understand me how do.
$myCol = @)
$TimeStamp = get-Date-format YYYY - MM - DD
Game-PowerCLIConfiguration - multiple DefaultVIServerMode - confirm: $true | Out-Null
$vcenters = @)
"Server1."
"Server2."
"server3"
"server4.
);
Connect-VIServer-Server $vcenters - username username-password password
ForEach ($Cluster Get-cluster)
{
ForEach ($vmhost in ($cluster |)) Get - VM))
{
$VMView = $VMhost | Get-View
$VMSummary = "" | Select Date VMName, NOMCLUSTER, MemorySizeGB, LogicalCPUs, ProvisionedSpaceGB, ResourcePool, DataStore
$VMSummary.Date = $timestamp
$VMSummary.VMName = $VMhost.Name
$VMSummary.ClusterName = $Cluster.Name
$VMSummary.MemorySizeGB = [math]: round ($VMHost.memorymb/1024, 2)
$VMSummary.LogicalCPUs = $VMHost.numcpu
$VMSummary.ResourcePool = $VMHost.ResourcePool
$VMSummary.ProvisionedSpaceGB = [math]: round ($vmhost. ProvisionedSpaceGB, 2)
$myCol += $VMSummary
}
}
$myCol | Sort VMName | Export-CSV C:\VM-$timestamp.csv
Any help would be appreciated.
Thank you!
Looks like you may be using an old PowerCLI version.
Make one
Get-PowerCliVersion
What did he say?
Upgrade to 5.5 R1
-
Help with the data store migration script
Hey everybody,
I am currently responsible for the migration of disks in new storage. Each virtual computer might have multiple disks on different data warehouses. The script I'm working on that will check the VM for the disks located on a certain store of data, then if necessary to migrate the disk to the new data store. However, I'm lost. I hope I'm at least on the right track. Any help is very appreciated.
Thank you!
$csv = import-Csv-Path "e:\scripts\hunter\vantage_qadev.csv".
foreach ($ent in ($csv))
{
$ds = get-Datastore ' QADEV_OS_HUS127 * ' | Sort descending FreeSpaceGB | Select-Object - 1 first
$vmname = get-VM-name $ent.vmnames
$vmds = $vmname | Get-hard drive | Select file name
If ($vmds - eq "* QADEVOS_VSP986 *") {Get - VM $ent.vmnames |} Get-hard drive | Moving-hard drive - Datastore $ds}
Else {Write-Host "Migration without any preconditions"}
}
That's what I did to make it work. The fact it's supposed to I would say...
$csv = Import-Csv -way "e:\scripts\hunter\vantage_prod.csv".
foreach ($ent in ($csv))
{
$ds = Get-Datastore ' DST_PROD_OS_HUS127 * ' | Sorting FreeSpaceGB -down | Select-Object -First 1
Foreach ($HardDisk in (Get-VM -name $ent.vmnames |)) (( Get - hard drive))
{
$vm = Get-VM -name $ent.vmnames
$hds = Get - hard drive -VM $vm
$lunname = Get-VM -name $ent.vmnames | Get - hard drive | Select-Object -Property @{N = "Datastore"; E = {$harddisk. FileName.Split("]") [0]. TrimStart("[")}}
If ($lunname - like "* DM_PROD_OS_VSP986 *") {Get-VM -name $ent.vmnames |} Get - hard drive | Moving - hard drive { -Data store $ds -confirm: $false}
else {Write-Host $ent.vmnames ' not migrated '}
}
}
What is a better way to do it?
-
Help with this sql. Only select employees in a separate Org?
Hi guys, simple query.
As you can see, emp_id 111 appears on different Org (0 and 1). I need to calculate the balance, but the requirement says that I need to get employees appearing only in 1 body. It won't matter what org is selected (business rules provide balance will be the same), as long as if an employee is in the multiple org, this employee is selected only once for an org. So my result will be something like:create table balancetest(emp_id number, balance_id number, balance number, org number); insert into balancetest values (111, 1, 1, 0); insert into balancetest values (111, 1, 1, 0); insert into balancetest values (111, 2, 1, 1); insert into balancetest values (222, 1, 2, 1); insert into balancetest values (333, 3, 4, 3); insert into balancetest values (333, 3, 4, 2); commit; SQL> select * from balancetest; EMP_ID BALANCE_ID BALANCE ORG ---------- ---------- ---------- ---------- 111 1 1 0 111 1 1 0 111 2 1 1 222 1 2 1 333 3 4 3 333 3 4 2 6 rows selected.
or,EMP_ID BALANCE_ID BALANCE ORG ---------- ---------- ---------- ---------- 111 1 1 0 111 1 1 0 222 1 2 1 333 3 4 3 333 3 4 2
In other words, an employee should appear only in 1 org my result.EMP_ID BALANCE_ID BALANCE ORG ---------- ---------- ---------- ---------- 111 2 1 1 222 1 2 1 333 3 4 3 333 3 4 2
any ideas? I tried:
But I guess that's not as simple as that!select * from balancetest bal1 where not exists ( select bal2.emp_id from balancetest bal2 where bal2.emp_id = bal1.emp_id and bal2.org <> bal1.org );
Hello
You can find the smallest number org for each employee like this:
SELECT emp_id , MIN (org) AS min_org FROM balancetest GROUP BY emp_id;
You can get the desired results by selecting only the lines in balancetest that corresponds to a line in that the result above. There are several ways to do so, as a join:
WITH g AS ( SELECT emp_id , MIN (org) AS min_org FROM balancetest GROUP BY emp_id ) SELECT b.* FROM balancetest b JOIN g ON b.emp_id = g.emp_id AND b.org = g.min_org;
-
Hi all
I have a requirement where my table contains the values key1, Key2, and timestamp (example 24 January 2013 06:45:45)
Now I have several values for the same key1, key2, and date with different stamps. I need to keep records only 2 with less output and max timestamp for key1 and key2.
Can you please indicate how this can be done?
Like this
SQL > create table k (key1, key2 whole integer, date of ts);
Table created.
SQL > insert into k
2. Select 1, 1, trunc (sysdate) + numtodsinterval (level, 'time')
3 double
4. connect by level<=>=>10 rows created.
SQL > alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS ";
Modified session.
SQL > select * from k;
CLE1 KEY2 TS
---------- ---------- --------------------
1 1 31 JANUARY 2014 01:00
1 1 31 JANUARY 2014 02:00
1 1 31 JANUARY 2014 03:00
1 1 31 JANUARY 2014 04:00
1 1 31 JANUARY 2014 05:00
1 1 31 JANUARY 2014 06:00
1 1 31 JANUARY 2014 07:00
1 1 31 JANUARY 2014 08:00
1 1 31 JANUARY 2014 09:00
1 1 31 JANUARY 2014 10:0010 selected lines.
SQL > select key1
2, key2
3, ts
4 of)
5. Select k.*
6, min (ts) over (partition by key1, key2, trunc (ts)) min_ts
7, max (ts) over (partition by key1, key2, trunc (ts)) max_ts
8 k
9 )
10 where ts = ts or min_ts = max_ts;CLE1 KEY2 TS
---------- ---------- --------------------
1 1 31 JANUARY 2014 01:00
1 1 31 JANUARY 2014 10:00SQL >
-
Sorry if this is a repeat. I was interrupted and found that my browser crashed when I'm new so I don't know if the question arises.
I need a script for a date (mm/dd/yyyy) field where the user can fill only a date that is between 12/31/1899 and the current date (no matter what the date when the form is open). I'm getting to write this but I could not with this one. Any help would be greatly appreciated.
Thank you!
I have a feeling that I already answered this question some time ago... Anyway, you can use this code as a script custom validation of the field:
var minDate = util.scand("mm/dd/yyyy", "12/31/1899"); var maxDate = new Date(); event.rc = true; if (event.value) { var d = util.scand("mm/dd/yyyy", event.value); if (d
maxDate) { app.alert("Error! The entered date must be between " + util.printd("mm/dd/yyyy", minDate) + " and " + util.printd("mm/dd/yyyy", maxDate)); event.rc = false; } } -
Hi all
CREATE TABLE INV (INV_DATE DATE , QTY NUMBER)
I need result like this (I have total amount per month)Insert into INV (INV_DATE,QTY) values (to_date('01/01/13','DD/MM/RR'),2); Insert into INV (INV_DATE,QTY) values (to_date('02/01/13','DD/MM/RR'),1); Insert into INV (INV_DATE,QTY) values (to_date('01/02/13','DD/MM/RR'),5); Insert into INV (INV_DATE,QTY) values (to_date('10/02/13','DD/MM/RR'),6); Insert into INV (INV_DATE,QTY) values (to_date('03/03/13','DD/MM/RR'),1); Insert into INV (INV_DATE,QTY) values (to_date('04/03/13','DD/MM/RR'),77);
inv_date qty 1 3 2 11 3 78
Analytical use.
John post in a hurry lolselect to_number(TO_CHAR (inv_date, 'MM')) inv_date, sum(QTY) from INV group by to_number(TO_CHAR (inv_date, 'MM'))
Maybe you are looking for
-
How can I fix error COOD1199
-
Acer E5 573G - problem with the front audio Panel
Hey,. I recently bought a new Acer E5 - 573 notebook computer G and when I connect my helmet on the front panel - nothing happens. I installed the latest drivers from Realtek HD Audio. 10 Windows does not see my helmet that works very well on my desk
-
Hello I have configured the mediahub NMH4xx with my media library and my different PC can play everything fine. I then added several files avi on the disk by connecting a USB hard drive in the hub via the USB port. Used the Linksys GUI to copy the f
-
The video card on my computer came out and the laptop must be sent repair. I have another laptop, but I need to get my files off the damaged before you send it. How can I do this with/without see the damaged screen on the laptop?
-
I'm actually trying to get a snippet of my application in the windows but QML Previewer is does not work... I need to how to solve this problem see this Image and well know http://snag.gy/zp6Bc.jpg hate this for two days