What's the simplest method of adding a date field in a form in DW(CS3)?
I'm creating a form that among other things has a date field where the user will need to input a date. I'd like to make it a standard date field where as soon as the user clicks on the field they get a pop-up of a mini calendar to select a date from. Anybody knows the simplest way to achieve this in DW? I should mention that I still use DW CS3. Possibly a known free widget of some sort?
I should add that if possible I'd like to make this a mandatory field - much like Spry Validation works with the common components of a form (e.g. text field or checkbox). Would that be possible to do if the code supplied for date field was external (as at seems DW doesn't have a date field feature internally)?
Thanks again. There's one other thing I wanted to achieve here. I need the date format to be displayed like "dd/mm/yyyy" and not like it's doing by default at the moment (i.e. mm/dd/yyyy)
I don't have any knowledge of jQuery but had a go anyway at trying to fix this using this link http://api.jqueryui.com/datepicker/ as aid to try adjust my code. Obviously I couldn't get it to work so far... So I'm looking for a little bit of help from anyone who knows a bit of jQuery.
Here's the original default code (just the stuff that goes in the 'head' of the page):
<script>
$(function() {
$( "#datepicker" ).datepicker();
</script>
And here's what I tried adding to make it work:
<script>
$(function() {
$( "#datepicker" ).datepicker();
$.datepicker.formatDate( "dd/mm/yyyy" );
</script>
Obviously I tried other combinations including .parseDate instead of .formatDate etc etc none of which worked.
I'm wondering whether the extra code should perhaps go inside where the XXs are - $( "#datepicker" ).datepicker(XX)
Anyway, if somebody could help me out that would be great. Cheers!
Similar Messages
-
Purchasing a new iMac (27 i5), what is the best method to transfer programs/files,documents from a 24" iMac?
What is the best method to remove personal data from the 24" iMac?Use setup assistant which is offered when you setup your new Mac. It will transfer information from a Time Machine backup, Clone or another Mac.
It's best to do this during setup to avoid issues with duplicate IDs.
Regards -
What is the best method for adding non-domain contacts into the Lync address book without Exchange
Hi All,
I have a large number of standards based video endpoints who we can route calls to form Lync via a third party application/infrastructure device (oh the day when Microsoft offer this bridge facility out of the box - but that's another story). They are not in
Active Directory (although I suppose I could add them as 'Contacts'), but wondered if there is a more preferred way to do this?
Many Thanks
ChrisHi Swinster,
You should add them as Contacts to AD. All the information in Lync Address Book come from AD.
The Address Book Server uses data provided by User Replicator to update the information that it initially obtains from the global address list (GAL). User Replicator writes the Active
Directory Domain Services attributes for each user, contact, and group into the AbUserEntry table in the database and the Address Book Server syncs the user data from the database into files in the Address Book Server file store and into the Address Book database
RTCab.
Best regards,
Eric -
I'm using booleon control boxes for 'source' ports - to be connected to 'customers' ports. Am not sure of choosing between arrays, clusters, case, etc.
Thanks, however, I simply meant my boolean 'ports' to mean a 'yes/no' control box of a 'data source', which, when selected, would signify a 'source' that could then be connected to a 'customer' port or 'receiving box'. Perhaps instead of port, I should have said input/output box.
My main question is simply about a data switch matrix of 20 inputs and 20 outputs. Should I attempt to manage the switching of data lines via cases, for loops, sequence, or what! I believe I will need to set up arrays, but controlling the matrix is ???. Thanks. -
What is the Transparent Table for PO Delivery Date field
Hii All,
Does anyone know the Transparent table where the delivery date is stored for the PO line item. It's not in EKPO. Where is it?
Thanks in advanceUnfortunatly there is no diagram anywhere for the table relation.
I usually help myself by F4 search in SE11
You know e.g. table EKKO. So enter just EK* and press F4 to see all other tables starting this way.
But in most cases when I search for tables that belong somehow together I use DB15 transaction.
This gives me all tables that belong to the same archiving object.
You can start there by entering a table name and search for the archving object.
then you do it reverse and you get all tables for this object.
(Unfortunatly SAP does not have archiving objects for any table) -
What is the simplest way to make a movie from BufferedImages?
I have a 3d rendered animation from which I can grab BufferedImages of each frame. What is the simplest way I can create a movie from these images?
I've seen the JpegImagesToMovie.java file and not only is it suprisingly overcomplicated, it requires me to change the code so that I can get images from memory rather than from files.
Is there some simple way of creating a movie which requires a few statements? I'm also prepared to use QuickTime for Java. I don't care about the format, since I can just use any video converter to convert it to my desired video format.I recently came up with a simplified JpegImagesToMovie program. It generates QuickTime movies with a single video track output as a file. Input is a series of jpegs (currently as a list of file names, but easily modified to a take any form of jpeg data.) Since the compression used by the movie is JPEG, if you have an uncompressed image buffer, you'll need to convert that into jpeg data bytes with some quality setting. (Since its a movie file, go with something low if you have a lot of similar images.) This will even run without a full install of jmf--no native code is called (as far as I could tell..)
Here is the source code, sorry about the formatting!
import java.awt.Dimension;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.net.URL;
import java.util.Vector;
import javax.media.Buffer;
import javax.media.Format;
import javax.media.MediaLocator;
import javax.media.format.VideoFormat;
import javax.media.protocol.ContentDescriptor;
import javax.media.protocol.FileTypeDescriptor;
import com.sun.media.multiplexer.video.QuicktimeMux;
* This program takes a list of JPEG image files and converts them into a
* QuickTime movie.
* This was based on Sun's JMF Sample Code JpegImagesToMovie.java 1.3 01/03/13
* This code is an attempt to reduce the complexity to demonstrate a very basic
* JPEG file list to movie generator. It does not use a Manager or Processor
* class, so it doesn't need to implement any event listening classes. One
* advantage of this simplified class is that you can just link it with the
* jvm.jar file. (you might also need to track down the com.ms.security library
* stubs, use google. You'll need PermissionID.java and PolicyEngine.java.)
* I tried to get it to generate AVI files without success.
* These output files are could use further compression.
* A Vector of jpeg image paths was one way to do this--the appropriate
* methods can be overwritten to grab images from another source
* --zip file, http, etc.
* - Brad Lowe; Custom7; NuSpectra; 2/10/2005
* The existing Copyright from Sun follows.
* Copyright (c) 1999-2001 Sun Microsystems, Inc. All Rights Reserved.
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
* modify and redistribute this software in source and binary code form,
* provided that i) this copyright notice and license appear on all copies of
* the software; and ii) Licensee does not utilize the software in a manner
* which is disparaging to Sun.
* This software is provided "AS IS," without a warranty of any kind. ALL
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGES.
* This software is not designed or intended for use in on-line control of
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
* the design, construction, operation or maintenance of any nuclear facility.
* Licensee represents and warrants that it will not use or redistribute the
* Software for such purposes.
public class SimpleMovie
Vector images; // jpeg image file path list
VideoFormat format; // format of movie to be created..
// Sample code.
public static void main(String args[])
try
// change imageDir to the location of a directory
// of images to convert to a movie;
String imageDir = "images";
File d = new File(imageDir);
SimpleMovie imageToMovie = new SimpleMovie();
// change width, height, and framerate!
// Excercise: Read width and height of first image and use that.
imageToMovie.init(320, 240, 10.0f);
imageToMovie.setFiles(d);
File dest = new File("simple.mov");
imageToMovie.createMovie(dest);
System.err.println("Created movie " + dest.getAbsolutePath() + " "
+ dest.length() + " bytes.");
} catch (Exception e)
System.out.println(e.toString());
e.printStackTrace();
// return jpeg image bytes of image zIndex (zero-based index)
public byte[] getImageBytes(int zIndex) throws IOException
if (images == null)
return null;
if (zIndex >= images.size())
return null;
String imageFile = (String) images.elementAt(zIndex);
// Open a random access file for the next image.
RandomAccessFile raFile = new RandomAccessFile(imageFile, "r");
byte data[] = new byte[(int) raFile.length()];
raFile.readFully(data);
raFile.close();
return data;
// Call this before converting a movie;
// Use movie width, height;
public void init(int width, int height, float frameRate)
format = new VideoFormat(VideoFormat.JPEG,
new Dimension(width, height), Format.NOT_SPECIFIED,
Format.byteArray, frameRate);
// Set up the files to process
public void setFiles(Vector inFiles)
images = inFiles;
// point converter to jpeg directory. Only does one level,
// but could recurse, but then sorting would be interesting..
public void setFiles(File dir) throws Exception
if (dir.isDirectory())
if (images == null)
images = new Vector();
String l[] = dir.list();
for (int x = 0; x < l.length; x++)
if (l[x].toLowerCase().endsWith(".jpg"))
File f = new File(dir, l[x]);
images.addElement(f.getAbsolutePath());
// Crank out the movie file.
public void createMovie(File out) throws Exception
if (format == null)
throw new Exception("Call init() first.");
String name = out.getAbsolutePath();
QuicktimeMux mux = null; // AVI not working, otherwise would use
// BasicMux
if (out.getPath().endsWith(".mov"))
mux = new QuicktimeMux();
mux.setContentDescriptor(new ContentDescriptor(
FileTypeDescriptor.QUICKTIME));
} else
throw new Exception(
"bad movie file extension. Only .mov supported.");
// create dest file media locator.
// This sample assumes writing a QT movie to a file.
MediaLocator ml = new MediaLocator(new URL("file:"
+ out.getAbsolutePath()));
com.sun.media.datasink.file.Handler dataSink = new com.sun.media.datasink.file.Handler();
dataSink.setSource(mux.getDataOutput()); // associate file with mux
dataSink.setOutputLocator(ml);
dataSink.open();
dataSink.start();
// video only in this sample.
mux.setNumTracks(1);
// JPEGFormat was the only kind I got working.
mux.setInputFormat(format, 0);
mux.open();
// Each jpeg goes in a Buffer.
// When done, buffer must contain EOM flag (and zero length data?).
Buffer buffer = new Buffer();
for (int x = 0;; x++)
read(x, buffer); // read in next file. x is zero index
mux.doProcess(buffer, 0);
if (buffer.isEOM())
break;
mux.close();
// close it up
dataSink.close();
// Read jpeg image into Buffer
// id is zero based index of file to get.
// Always starts at zero and increments by 1
// Buffer is a jmf structure
public void read(int id, Buffer buf) throws IOException
byte b[] = getImageBytes(id);
if (b == null)
System.err.println("Done reading all images.");
// We are done. Set EndOfMedia.
buf.setEOM(true);
buf.setOffset(0);
buf.setLength(0);
} else
buf.setData(b);
buf.setOffset(0);
buf.setLength(b.length);
buf.setFormat(format);
buf.setFlags(buf.getFlags() | Buffer.FLAG_KEY_FRAME);
} -
What are the avlble methods to Measure Quality of Customer Service in SAP
Hi
We are in Retail business, and I would like to know what are the available methods to measure the Quality of Customer service in SAP CRM. Help us to get the required information?
Best regardsVenkat,
there are two aspects to this :
1. The overall philosophy ( for want of a better word ) of QOS for any service - there is a lot of thought that has gone into measuring QOS for a service - hence I would say that QOS is more related to the specific service than the entire domain.
2. Measuring the quality of service in terms of what ? - there are a lot of KPIs for the same some of them could be :
Average time taken to service a customer
Does the customer get all that they want in the store or only some of the items ( partial fill)
Are the products neatly arranged and easy to access
average time taken for the customer to get what h/she needs
customer facilities like parking / childern play area etc
Availability of attendants / helpers for the customer
home delivery
credit options... etc etc and the list could go on endlessly ... as you can see it is very specific to the service being provided and accordingly you will get KPIs for the same.
As for measauring the same - there are umpteen ways to do the samedepending on the place it gets recorded - you can have surveys / web surveys / POS details etc etc - what is it that you are looking for specifically ?
Arun
Hope it helps....
Message was edited by:
Arun Varadarajan -
What are the different methods to find the user-exit for any requirement?
Hi Everybody,
What are the different methods to follow to find the user-exit for any requirement?
Thanks & Regards,
Nagaraju MaddiThe following program search all the user exits involved with a T-code:
Selection Text: P_TCODE: Transaction Code to Search
Text Symbols: 001 - Enter the Transaction Code that you want to search through for a User Exit
REPORT z_find_userexit NO STANDARD PAGE HEADING.
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP® User Exits exists.
*& Tables
TABLES : tstc, "SAP® Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP® Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
*& Variables
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
*& Selection Screen Parameters
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
*& Start of main program
START-OF-SELECTION.
* Validate Transaction Code
SELECT SINGLE * FROM tstc
WHERE tcode EQ p_tcode.
* Find Repository Objects for transaction code
IF sy-subrc EQ 0.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'PROG'
AND obj_name = tstc-pgmna.
MOVE : tadir-devclass TO v_devclass.
IF sy-subrc NE 0.
SELECT SINGLE * FROM trdir
WHERE name = tstc-pgmna.
IF trdir-subc EQ 'F'.
SELECT SINGLE * FROM tfdir
WHERE pname = tstc-pgmna.
SELECT SINGLE * FROM enlfdir
WHERE funcname = tfdir-funcname.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'FUGR'
AND obj_name = enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
* Find SAP® Modifications
SELECT * FROM tadir
INTO TABLE jtab
WHERE pgmid = 'R3TR'
AND object = 'SMOD'
AND devclass = v_devclass.
SELECT SINGLE * FROM tstct
WHERE sprsl EQ sy-langu
AND tcode EQ p_tcode.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
SKIP.
IF NOT jtab[] IS INITIAL.
WRITE:/(95) sy-uline.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
WRITE:/(95) sy-uline.
LOOP AT jtab.
SELECT SINGLE * FROM modsapt
WHERE sprsl = sy-langu AND
name = jtab-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/1 sy-vline,
2 jtab-obj_name HOTSPOT ON,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
ENDLOOP.
WRITE:/(95) sy-uline.
DESCRIBE TABLE jtab.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No of Exits:' , sy-tfill.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'No User Exit exists'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.
* Take the user to SMOD for the Exit that was selected.
AT LINE-SELECTION.
GET CURSOR FIELD field1.
CHECK field1(4) EQ 'JTAB'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN. -
What is the simplest way to get a xml-file from 10g R2 -database ?
Hi,
I'm new in xml, there are so many tools to work with xml:
what is the simplest way to get a xml-file from 10g R2 -database ?
I have : 10g R2 and a xsd.file to describe the xml-structure
thank you
NorbertThere is no automatic way to generate XML documents from an arbitary set of relational tables using the information contained in an XML Schema. Typically the easiest way to generate XML from relational data is to use the SQL/XML operators (XMLElement, XMLAGG, XMLAttribtues, XMLForest). There are many examples of using these operators in the forums You can validate the generated XML against the XML Schema by registering the XML Schema with XML DB and then using the XMLType.SchemaValidate() method
-
I'm moving to an imac from a PC. I want to move my itunes library from the PC to my new imac. What is the best method and where can I find instructions?
Move iTunes from PC to MAC, http://www.macworld.com/article/146958/2010/03/move_itunes_windows_mac.html
-
What is the best method or service for backing up my digital files (catalog) in the Organizer from Photoshop Elements 12. Since there no longer is the automatic Elements sync available I do not know what to choose. I have tried to back this up using my external drive, but I cannot find the digital images per se. I see the entire program but not the catalog of pictures. Also, I have a windows operating system and Adobe Revel offers no edit capabilities with this OS.
I'm in a similar situation including movies I've purchased from iTunes...
Here's my setup:
I have all my iTunes data (music, movies, etc.) as well as about 10 GB of photos stored on a nework storage device that uses RAID-5 with SATA disks. This is basically a little toaster-sized NAS machine with four hard drives in it (www.infrant.com). If one of these drives dies, I get alerted and can insert a new one without missing a beat since the data is stored redundantly across all drives. I can also just yank out any one of the four drives while the thing is running and my data is still safe (I tried this after I bought it as a test).
That's how I prevent problems with a single disk... Redundancy
Now onto "backups"...
Nightly, my little RAID toaster automatically backs itself up to an attached 250GB USB drive. However, these backups are only of my critical data... documents, photos and home movies... I don't bother backing up my "Hollywood" movies since I can live without them in a disaster.
... I actually don't permanently store anything I care about on a laptop or a desktop. It all goes on the NAS box (Network Sttached Storage) and then my other computers use it as a network drive. It's attached via Gigbait to my main computer and via wireless to most everything else.
My achilles heel is that I don't store anything outside of my house yet. If I was smart, I'd alternate two USB drives attached to my NAS box and always keep one of them somewhere else (Safe Deposit Box?).
...and that's just one way to do it.
-Brian -
What is the best method to store session variables
As the title says, what is the best method to store session
variables in a Production environment?
I have been reading the posts on sessions and have been
getting different ideas on where to store session variables, in a
db, registery, cookies etc etc
Can someone clarify possible best practice on this matter?
MatrixFrom my experience, db is the best to store client variable
data. Registry will cause you trouble in future (when data gets
overloaded) and cookies will not serve the purpose for a few % of
your users. -
What is the best method for moving iTune Libraries from Old to New Computer
Hello,
Thanks in advance for any assistance you may offer.
My Sony Vaio Desktop recently died and untimely death, so I just purchased an HP Notebook. I was trying to wait out the release of the possible update of the Macbook line. However the old computer didn't agree. This HP will tie me over till a new release.
I've been doing weekly backups for over 3 years with a backup drive from Western Digital. At this point I just want to transfer my music in iTunes and applications from the App store that are loaded on to my iPod Touch into the new computer and then reauthorize and sync.
My question is what's the best method. Oh another problem I'm having includes the latest iPhone & iPod Touch software problem of 3rd party apps not working along with the vanishing of my music on the Touch.
Any guidance would be much appreciated.Open up a fresh copy of iTunes. Point iTunes in the direction of your Western Digital Harddrive. Import Folders.
1. New Copy
2. Edit -> Preferences -> Advanced -> General -> Change -> <the address of the iTunes library on WD>
3. File -> Add Folder to Library -> <Select iTunes folder on WD>
Always keep a backup of your iTunes Library file and the iTunes XML Document. If you have those, then it might be just as simple as copying those to your iTunes file folder. If you are not sure where they are, then do a search for iTunes.xml. -
What is the best method to backup an Iphone 3G and then install newer ios without losing any data in the phone?
How to BackUp > http://support.apple.com/kb/ht1766
Key2Paradice wrote:
What is the best method to backup an Iphone 3G ...
Note:
The iPhone 3G can only update as far as iOS 4.2.1
Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
If an Update Appears Install it... if not... you are up to date for your particular Device...
See the Using iTunes Section Here...
How to update your iPhone, iPad, or iPod touch -
What is the best method to provide an option to select "All" for LOV ?
Some posts sugest that you should "UNION" the origional select with something like (select "all" from dual ) this works as a seperate query but if you want to use and existintg query this is not very clean as viewlinks are not taken into account. We could also pass back an array list and include the all option in the list but that gets away from having the client use the iterator in the pagedef for other requirments of the page.
Whats the best way to approach this with the new features in 11g?How to BackUp > http://support.apple.com/kb/ht1766
Key2Paradice wrote:
What is the best method to backup an Iphone 3G ...
Note:
The iPhone 3G can only update as far as iOS 4.2.1
Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
If an Update Appears Install it... if not... you are up to date for your particular Device...
See the Using iTunes Section Here...
How to update your iPhone, iPad, or iPod touch
Maybe you are looking for
-
Change Assignment Field in the Line Item
I'm trying to change manually the Assignment field in the Line item of a FI Document but the field is not open for entry. In the SPRO -> Document Change Rules, Line Item settings are correct and should allow change of the field. Do you have any ideas
-
Call RFC and receive a java.lang.NullPointerException ...
Hello, I develop a RFC adaptative project. When i execute the application, i obtain the following exception: java.lang.NullPointerException at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.createNewBaseTypeDescriptor(AiiModelClass.ja
-
Trying to understand text encodings between windows clients and oracle DB
I am focusing on a "maybe bad configured" oracle windows xp client connecting into a well configured oracle db server (10g for example). Instead of just keep the correct client settings to make it work I would prefer to understand what is really doin
-
Hi, I frequently video chat with two users at the same time. I am in the US, another in Mexico and another in France. They both have macbooks with intel. I have a G4 with OS 10 and iChat 3. I recently changed ISP from Comcast to Bellsouth (Att DSL) a
-
Regional Settings differences between 2008 and 2012
Hi There, Can anyone explain why some of the regional setting details have changed with Win 2012? Example: Dutch (Belgium) - nl-BE The 'Digital Grouping Symbol' has changed from a DOT to a WHITESPACE. 2008 - €1.000,00 whereas 2012 - €1 000,00 If the