Read file, search file for duplicate addresses

Hi - i have no teacher to ask, nor do i know any java programmers to ask this question, so your guidance would be appreciated.
I have created an "Insurance Project " for myself� but I do not know how to proceed,I have a file that contains 30,000 records in the format:
Policy1 ccyy mm dd NameOfInsured StreetOfInsured CityOfInsured
Policy2 ccyy mm dd NameOfInsured StreetOfInsured CityOfInsured
Policy3 ccyy mm dd NameOfInsured StreetOfInsured CityOfInsured
Policy4 ccyy mm dd NameOfInsured StreetOfInsured CityOfInsured
Policy5 ccyy mm dd NameOfInsured StreetOfInsured CityOfInsured
Policy6 ccyy mm dd NameOfInsured StreetOfInsured CityOfInsured
In a nutshell: I want to check to see if any one household holds more than 1 policy. If a household does have more than 1 policy then I want to be able to offer those households "package deals".
My problem: how do I read in the file for comparasons? And how do i handle the comparasons?
Do I create a duplicate file and compare record 1 in fileA to each record in fileB, and if so, after the first search of fileB it will reach EOF, how do I get the pc to compare fileA record2 with the start of fileB?
Or Do I move record1 into a holding-area & compare each record against record1, problem again, eventually I will reach EOF, how do I let pc know: get record2 go to first record in file & compare each file?
Open file insured.dat
Read in file insured.dat
thisPolicy = policyNumber //move policy number(address)you are searching for
getNextPolicy
//compare thisPolicy to nextRecord in file
if nextRecord = NUL //then go to the top of the file,
//again to search with next record
else
if thisPolicy-Address is the same as nextRecord-Address
move nextRecord to pkgDealFile.dat
getNextPolicy
Kinda stumped,
Thank you

Make very simple Access.DB
Go to your control panel and look for 'ODBC data souces' go to System DSN and add the name of your database. (Go to the help files)
You can test your connection with this programme. Drag and drop it to notepad and run it from the command line./*
Dear Friends,  This program will detect whether jdbc driver is properly installed in ur system or not.
This will helps you in ur jdbc applications.
If anyone having any pblms, please feel free to contact me at [email protected]
I will be delighted to help you.
Thank you very much.
import java.sql.*;
import java.util.*;
public class MyConnection
     Connection con;
     MyConnection()
          try
// ******************************Connected To Jdbc-Odbc Type - 1 Driver
               Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
               con = DriverManager.getConnection("Jdbc:Odbc:dsnname","userid","password");
               con = DriverManager.getConnection("jdbc:odbc:Driver={SQL Server};Server=servername;Database=pubs","userid","password");
// ******************************Connected To Ms-Access JDBC ODBC Driver .
               Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
               con = DriverManager.getConnection("Jdbc:Odbc:dsnname","","");
               con = DriverManager.getConnection("jdbc:odbc:Driver={MicroSoft Access Driver (*.mdb)};DBQ=G:/admin.mdb","","");
// ******************************Connected To Ms-Access Type-3 Driver.
               Class.forName ("acs.jdbc.Driver");
               String url = "jdbc:atinav:servername:5000:C:\\admin.mdb";
               String username="Admin";
               String password="";
               Connection con = DriverManager.getConnection(url,username,password);
// ******************************Connected To Microsoft SQL.
               Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
               con = DriverManager.getConnection("jdbc:microsoft:sqlserver://servername:1433","userid","password");
// ******************************Connected To Merant.
               Class.forName("com.merant.datadirect.jdbc.sqlserver.SQLServerDriver");
               con = DriverManager.getConnection("jdbc:merant:sqlserver://servername:1433;User=userid;Password=password");
// ******************************Connected To Atinav SqlServer.
               Class.forName ("net.avenir.jdbc2.Driver");
               con= DriverManager.getConnection("jdbc: AvenirDriver://servername:1433/pubs","userid","password");
// ******************************Connected To J-Turbo.
               String server="servername";
               String database="pubs";
               String user="userid";
               String password="password";
               Class.forName("com.ashna.jturbo.driver.Driver");
               con= DriverManager.getConnection("jdbc:JTurbo://"+server+"/"+database,user,password);
// ******************************Connected To jk Jdbc Driver.
               String url= "jdbc:jk:server@pubs:1433";
               Properties prop = new Properties();
               prop.put("user","userid");//Set the user name
               prop.put("password","password");//Set the password
               Class.forName ("com.jk.jdbc.Driver").newInstance();
               con = DriverManager.getConnection (url, prop);*/
// ******************************Connected To jNetDirect Type - 4 Driver
               String sConnect = "jdbc:JSQLConnect://127.0.0.1/database=pubs&user=userid&password=password";
               Class.forName ("com.jnetdirect.jsql.JSQLDriver").newInstance();     
               Connection con= DriverManager.getConnection(sConnect);
// ******************************Connected To AvenirDriver Type - 4 Driver
               String url= "jdbc: AvenirDriver: //servername:1433/pubs";
               java.util.Properties prop = new java.util.Properties ();
               prop.put("user","userid");
               prop.put("password","password");
               Class.forName ("net.avenir.jdbc2.Driver");     
               System.out.println(" Connected To AvenirDriver Type - 4 Driver");
               con= DriverManager.getConnection("jdbc: AvenirDriver://servername:1433/pubs","userid","password");
// ******************************Connected To iNet Sprinta2000 Type - 4 Driver
               String url="jdbc:inetdae7:servername:1433";
               String login="userid";
               String password="password";
               Class.forName("com.inet.tds.TdsDriver");
               System.out.println(" Connected To iNet Sprinta2000 Type - 4 Driver");
               con=DriverManager.getConnection(url,login,password);
// ******************************Connected To iNet Opta2000 Type - 4 Driver
               String url="jdbc:inetdae7:servername:1433";
               String login="sagar";
               String password="sagar";
               Class.forName("com.inet.tds.TdsDriver").newInstance();
               System.out.println(" Connected To iNet Opta2000 Type - 4 Driver");
               con=DriverManager.getConnection(url,login,password);
               DatabaseMetaData md = con.getMetaData();
               System.out.println("Driver Name            " + md.getDriverName());
               System.out.println("Driver Version         " + md.getDriverVersion());
               System.out.println("Database URL is        " + md.getURL());
               System.out.println("Database UserName is   " + md.getUserName());
               System.out.println("Connection Name        " + md.getConnection());
               System.out.println("Database Name          " + md.getDatabaseProductName());
               System.out.println("Database Version       " + md.getDatabaseProductVersion());
               System.out.println("Database ReadOnly Type " + md.isReadOnly());
               System.out.println("MaxColumnNameLength    " + md.getMaxColumnNameLength());
               System.out.println("MaxConnections         " + md.getMaxConnections());
               System.out.println("");
          catch(ClassNotFoundException cnfe)
               System.out.println(cnfe.getException());
               System.out.println("The Specified Driver Does not Exist....");
          catch(SQLException sqle)
               if(sqle.getErrorCode() == 0)
                    System.out.println("No Suitable Driver Found..");
               else if(sqle.getErrorCode() == 1017)
                    System.out.println("Wrong UserName Or Password..");
               else if(sqle.getErrorCode() == 1034)
                    System.out.println("Database not Started..");
                    System.out.println(sqle.getErrorCode());
                    System.out.println(sqle.getSQLState());
                    System.out.println(sqle);
     public static void main (String args[])
          new MyConnection();
}It will tell you if you have done it (JDBC.ODBC) correctly or not. If - well when you have, you can then use java to run queries and write data etc.
You'll also need a PWS to test it, but you can do your writing and queries from the MSDOS shell for now. (then use servlets.)
Good luck!

Similar Messages

  • Where is the data file for the address book located, I need to restore mine from backup but don't know where it is.

    Where is the data file for the address book located, I need to restore mine from backup but don't know where it is to do so.  Putting my Mac Pro onto icloud synching contacts resulted in duplicate and triplicates of the same cards.  I have a few THOUSAND contacts and the last time this happened was on mobile me.  that had a function where you could replace info on the mobile me server with info on the computer.  I see no way to do that on the new cloud.

    In the stupidly hidden user's Library->/Application Support/AddressBook/ labeled as AddressBook-v22.abcddb
    For TM restores, see Pondini's TM FAQs for starters, since I don't use TM.

  • Stop reading file for user prompt

    Reading from file and writing to binary tree, I need to implement input check. Say if word in the file is not in the tree, I want to prompt user to correct or skip this input.
    The problem is that I'm using GUI (frame with couple of buttons and text field) and I want user to click one of the buttons in order to respond to the request, and stop reading from file unless response is received.... Any ideas how to do this?

    Check out the javadocs on BufferedReader. You should be able to read in a line at a time store it in a buffer and search it for whatever your looking for.There is also a mark method which will let you store your current offset in the file and return to it. Then you can use JOptionPane to display a Yes/No dialog box to prompt the user if the word can be skipped. BufferedReader also has a skip method that will allow you to specify how many chars to skip.
    Hope this helps
    Justin

  • Searching bookmarks for duplicates?

    I am wondering if there is a utility that will allow me to search my favorites/bookmarks etc for duplicates and alllow me to trim them down. IE in OS9 holds a lot of them but I have a similar problem in other programs. Thanks

    Hi, Glen -
    Don't know about other apps, but in IE you can use IE's built-in search function in its Favorites to manually check.
    To do that, the Favorites (bookmarks) window must be frontmost - select Organize Favorites from the Favorites menu (the Organize Favorites item itself - not any of its submenus). This will open the Favorites window and bring it to the front (I leave it open all the time in the background).
    Then just press Command-F - a standard search box will come up. Enter your search string and click the Find button. Command-G can be used to do additional finds using the same search string.

  • Incorrect search help for Delivery address in SRM User Settings

    Hi experts,
    We use SRM 7.0. When i want to change Users Attribute Delivery address (in SRM User Settings) and call search help for this, than  i get list with 3  identical  addresses.
    For example:
    Value                          Label
    111                         usa/Ny/1
    111                         usa/Ny/1
    111                         usa/Ny/1
    222                         usa/Sf/2
    222                         usa/Sf/2
    222                         usa/Sf/2
    333                         france/P/3
    333                         france/P/3
    333                         france/P/3
    How can I delete undue entries?
    Thanks a lot

    Hi
    Are all adreess numbers Unique ?
    every ship to address has unique . can you check data base level ?
    Muthu

  • How to erase data files for ical &  address book

    I have Palm Treo 700P, am a .mac subscriber and on syncing have had problems with multiple entries and re-entries from my .mac account or MacBook or the Treo. AND, conflict resolver has hundreds of conflicts.
    Will the following work, and, how do I do it.
    -Back up iCal and Address book.
    -Delete whatever files I need to to erase the existing program database on Treo/address book/ iCal
    -Re-sync with .mac to get "one" copy of my databases on all 3 hardwares.
    If not, how should I do it?
    Thanks,
    Ross
    Message was edited by: Ross Smith

    Hi,
    There's a dedicated forum for Server customers.
    Good luck,
    S.

  • Format of WCS template file for mac-address filtering

    I am looking for the format of the template file used for WCS Mac-address filtering.
    I need to know how the fields are delimited within the file.

    Sample csv file :
    #MAC Address,Profile Name,Interface,Description
    22:22:22:22:22:22,profile8,management,cisco
    00:00:00:00:00:01,myprofile,int1,First filter
    00:00:00:00:00:02,,management,Second filter
    00:00:00:00:00:03,,,Third filter
    Note: "MAC Address" and "Description" are mandatory fields

  • Read file for Compression

    Hi all,
    Had an idea on a homebrew compression routine and have been trying to test the results. But can't find any basic info on how to do the following.
    1. Read any type of file and convert it to its basic numericl value
    2. convert the numerical version back to its original state.
    This may be completly wrong and would appreciate any imput on the matter, but this is how Ive tackled the problem so far.
    I convert each byte into an unsigned intand then dump it to a StringBuffer, apply my compression and save it out.
    Doing the reverse, I read the compressed file back in and end up with the original unsigned numbers I started with. But I cant figure how to convert them back to a byte so I can write them out.
    // This is what im using to convert the bytes to and unsigned int and then to a String.
    for(int i=0;i<bytes.length; i++){
    unsignedbyte = bytes;
    unsignedbyte = unsignedbyte & 0x000000FF;
    // holdkeys.append(unsignedbyte); // This is the problem I think
    // os.write(unsignedbyte); // test values
    Any pointers or a link to an idiots guide to data compression would be welcome.
    Robin

    Use the code button to wrap your code in [code][[i]code] tags, please.
    // This is what im using to convert the bytes to and
    unsigned int and then to a String.
    for( int i = 0; i < bytes.length; i++ )
            unsignedbyte = bytes;
    unsignedbyte = unsignedbyte & 0x000000FF;
    holdkeys.append(unsignedbyte); // This is the problem I think
    os.write(unsignedbyte); // test values
    Hmmm. Why not just apply the compression algorithm to your array of bytes?
    Also, is unsignedbyte an integer (really 32 bits)? If so, are you aware that the String representation of the integer is appended? This means that you can have values from 0 to 255. How, when you are reversing the process, will you know, at any given index, whether the next byte is represented by 1, 2, or 3 characters? AFAICS, the only time you will know, is when the next character is a zero, making it a one character number, since that is the only number that has a zero as the first character. Of course, if you made a mistake on a previous character, you could be wrong. If the next start character is >2, you might have a 1 or 2 character number, but not a 3 character number.
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Excel Sheet Upload: Program reads file for a long time

    Hi All,
    I'm using the function modules GUI_UPLOAD and TEXT_CONVERT_XLS_TO_SAP to upload data from an excelsheet on the presentation server into a table in SAP. The call to the TEXT_CONVERT_XLS_TO_SAP function takes too long. The task bar says "Converting Line 1" and the number continues to increase to more than 50,000 when I just end the transaction. My input file has less than 2000 rows and 8 columns. Has anyone encountered such a problem with this function module, or does anyone know what to do in such cases?
    Thanks.

    Hi,
    I wrote program using <b>FM ALSM_EXCEL_TO_INTERNAL_TABL</b>
    Have look on sample program:
    REPORT  yload_allocation_pattern                .
    TABLES : zfibnr_alloc_pat.
    TYPES t_itab1 TYPE alsmex_tabline.
    DATA: it_itab1 TYPE STANDARD TABLE OF t_itab1 WITH HEADER LINE.
    DATA :BEGIN OF it_allocation OCCURS 0,
          ibnr_aloc_patid LIKE zfibnr_alloc_pat-ibnr_aloc_patid,
          rel_loss_year LIKE zfibnr_alloc_pat-rel_loss_year,
          kind_loss LIKE zfibnr_alloc_pat-kind_loss,
          prem_alloc_pcnt LIKE zfibnr_alloc_pat-prem_alloc_pcnt,
          claim_paid_pcnt  LIKE zfibnr_alloc_pat-claim_paid_pcnt,
          claim_ostd_pcnt LIKE zfibnr_alloc_pat-claim_ostd_pcnt,
          claim_rep_pcnt LIKE  zfibnr_alloc_pat-claim_rep_pcnt,
          res_segid LIKE zfibnr_alloc_pat-res_segid,
         valid_from LIKE zfibnr_alloc_pat-valid_from,
         valid_to LIKE zfibnr_alloc_pat-valid_to,
         END OF it_allocation.
    DATA  : it_alloc_pat LIKE zfibnr_alloc_pat OCCURS 0 WITH HEADER LINE.
    DATA : wa_allocation TYPE zfibnr_alloc_pat.
    FIELD-SYMBOLS : <fs>.
    DATA : v_index TYPE i.
    S E L E C T I O N S C R E E N
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-012.
    *SELECTION-SCREEN SKIP 1.
    *SELECTION-SCREEN BEGIN OF LINE.
    *SELECTION-SCREEN COMMENT  1(18) text-013.
    *SELECTION-SCREEN POSITION 19.
    PARAMETERS: p_file TYPE rlgrap-filename OBLIGATORY, " File name
    *>>Insertion by Chetan --Row and Column in Excel.
               p_row type I default 1000,
               p_col type I default 50.
    *<< end of Insertion.
    *SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b1.
    A T S E L E C T I O N S C R E E N
    AT SELECTION-SCREEN.
      IF NOT p_file IS INITIAL.
    **-----validating the file path & file name
       PERFORM VALID_FILE USING P_PC_CHK P_FILE.
      ENDIF.
    *----Gettting the local file with f4 button
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      PERFORM get_local_file_name USING p_file.
    START-OF-SELECTION.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                = p_file
          i_begin_col             = 1
          i_begin_row             = 1
          i_end_col               = p_col
          i_end_row               = p_row
        TABLES
          intern                  = it_itab1
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF it_itab1[] IS INITIAL.
        MESSAGE s003(zz) WITH 'No Data Uploaded'.
        EXIT.
      ELSE.
        SORT it_itab1 BY row col.
        LOOP AT it_itab1.
          MOVE : it_itab1-col TO v_index.
          ASSIGN COMPONENT v_index OF STRUCTURE it_allocation TO  <fs>.
          MOVE : it_itab1-value TO <fs>.
          AT END OF row.
            it_alloc_pat-entry_date = sy-datum.
            MOVE-CORRESPONDING it_allocation TO it_alloc_pat.
            APPEND it_alloc_pat.
            CLEAR it_alloc_pat.
            CLEAR  it_allocation.
          ENDAT.
        ENDLOOP.
      ENDIF.
      LOOP AT it_alloc_pat INTO wa_allocation.
        MODIFY zfibnr_alloc_pat FROM  wa_allocation.
        CLEAR wa_allocation.
      ENDLOOP.
    *&      Form  GET_LOCAL_FILE_NAME
          text
         -->P_P_FILE  text
    FORM get_local_file_name  USING    p_p_file.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        CHANGING
          file_name = p_file.
      IF sy-subrc <> 0.
        MESSAGE i000(zmur) WITH  'Error in getting filename'(014).
        STOP.
      ENDIF.
    ENDFORM.                    " GET_LOCAL_FILE_NAME
    Thanks,
    Pramod

  • Surface RT will read files for a period of time. After closing the files and reopening later, they're corrupted or Windows says it can't open the file format.

    File formats include jpeg, Word and Excel documents, and PDFs. Documents have come from downloads, email attachments, and documents created locally. Performed a full scan today which found no results. Performed a system refresh and no improvement. These
    are documents I've opened, edited, saved, sometimes reopened and used, and later, they randomly aren't working.
    Currently saving all documents on the MicroSD card to keep the SSD drive as free as possible on the Surface.
    Downloading a firmware update as I type this.
    Thanks in advance.

    Hi,
    For the issue,please  open these files using other computer to see if we can open them normally.
    Meanwhile,try saving all documents on your SSD to test it.
    Regards,
    Kelvin hsu
    TechNet Community Support

  • Match Codes / Search Helps for Duplicate Check Vendor are missing

    Hi Guys,
    I'm trying to enable the Duplicate Check for the Vendor solution we have here and I couldn't help, but notice that when I'm setting up the DB Search in "Define Search Application", the out of the box values for existing search helps are already preconfigured and the values are the following:
    BP MC_BP_ADDRESS Address Data
    BP MC_BP_BANK_DETAIL Bank Details
    BP MC_BP_GENERAL General Data
    BP MC_BP_ID_NUMBER Identification Numbers
    BP MC_BP_ROLES BP Roles
    Unfortunately, when I check in SE11 - those search helps do not exist in the system. How can I get them deployed? Are they part of a Business Set that I missed to install and activate?
    Thanks in advance,
    Boris

    Hi Boris
    Please check that the following is set in your system:
    Configure Duplicate check for entity types - BP need the following:
    Assign search object connector template to object types - BP need the following:
    Ensure that "Business Partner template for MDG" connector is created in ESH_COCKPIT
    Regards
    Danie

  • Check for Duplicate address

    Hi,
    Can anyone help me, I have a problem where the address for 2 plants is same , so while replicating the two plants from R/3 to SRM the one plant is getting replicated and otherone is not getting replicated.
    I hope there is a check for this in SPRO for this duplicate entry.
    Can any one help me where exactly falls in SPRO?
    Best Regards,
    sairam.

    Hi
    Seems like data issue. Which SRM version are you using ?
    <b>Please try this -></b>
    (I approach) Try to delete the 2 locations in SRM then replicate the 2 from the backend again
    (II Approach)
    1- You can try to first delete the location in SRM, then replicate it again;
    the deletion can be done via FM BBP_BUPA_EVENT_DELE2 with the partner number as input.
    2- Then you can check in table BBP_LOCMAP that the deletion was correctly done.
    3- Run again the BBP_LOCATIONS_GET_SELECTED for your plant;
    4- Update your PPOMA
    To delete the Old Plant entry use SE37 transaction with BBP_BUPA_EVENT_DELE2 and input Plant number say ' 0000000241' then execute.The entries is deleted correctly in table bbp_locmap ! Please check that your BP you input comes from bbp_locmap : field PARTNER_NO
    Similar related links ->
    Need to update Plant Address in SRM - User Attributes still show old Plant
    How the BBP_ATTR_VALUE_T  table is updated?
    Re: How to get change of Plant  address replicated to SRM
    How to delete a user in the Organizational structure
    Hope this will help.
    Regards
    - Atul

  • Search help for delivery addresses

    We have created several "ship-to" addresses using the Web side (SRM ADMIN role).
    During creation of a shopping cart, when the user clicks on to search for other than the default (maintained in PPOMA) address, a window pops up stating "No values exist".
    An address has been maintained in the ADDR_SHIPT in the org model.
    What could be the problem ?
    -Bakulesh

    Hi,
      Can you please explain how it was resolved?
    MJ

  • How to combine both DAQ AI signal, write and read file in single VI

    Hi
     I am the new user of LabVIEW version 7.1 for testing automation application. I have to measure 33 signals ( mostly analog like temp, pressure, etc...) from NI USB 6210 DAQ system and write in master file for future verfication.From real data or from master file back up have to write  one more file if only the signal reaches steady state , which will used for analysis and same signals to be read from this file parallely & make a waveform and/or table display format.
    Pl. help me to shortout this problem 
    note: I have plan to ugrade labVIEW version 2011 shortly, so let me know doing parrel acquistion write and read file for data analysis in same VI in version 7.1...... 

    Parallel operations in LabVIEW are very simple.  Just code it in parallel and it will work.
    Try taking a look at some of the examples in the NI Example Finder (Help > Find Examples).  There you will find example for writing to and reading from files, as well as data acquistion in parallel with other operations.
    You might need a producer/consumer architecture is you are acquiring data very quickly.
    Chris
    Certified LabVIEW Architect
    Certified TestStand Architect

  • Adobe Widget browser "Google Map" Search box for address

    First of all I would like to thank Zizzer Zazzer for this google map. I ts really very helpful for the website. I was wondering if this is possible to add text search box for the address in google map? I was trying my self and tried with geocode with no success.If any one of you know about this then plz let me know. Here is my code
    <input type="text" id="search_address" value="" size="98"/>
    <button onclick="search();">Search</button>
      <div id="mapCanvas" style="width:100%; height:100%; min-width:300px; min-height:300px"></div>
    <script type="text/javascript">
    // initialize the google Maps 
         function initializeGoogleMap() {
      // set latitude and longitude to center the map around
      var latlng = new google.maps.LatLng(37.77,
               -122.4);
      // set up the default options
      var myOptions = {
        zoom: 8,
        center: latlng,
        navigationControl: true,
        navigationControlOptions:
         {style: google.maps.NavigationControlStyle.DEFAULT,
        position: google.maps.ControlPosition.TOP_LEFT },
        mapTypeControl: true,
        mapTypeControlOptions:
         {style: google.maps.MapTypeControlStyle.DEFAULT,
        position: google.maps.ControlPosition.TOP_RIGHT },
        scaleControl: true,
         scaleControlOptions: {
              position: google.maps.ControlPosition.BOTTOM_LEFT
        mapTypeId: google.maps.MapTypeId.ROADMAP,
        draggable: true,
        disableDoubleClickZoom: false,
        keyboardShortcuts: true
      var map = new google.maps.Map(document.getElementById("mapCanvas"), myOptions);
      if (true) {
       var trafficLayer = new google.maps.TrafficLayer();
       trafficLayer.setMap(map);
      if (true) {
       var bikeLayer = new google.maps.BicyclingLayer();
       bikeLayer.setMap(map);
      if (true) {
       addMarker(map,37.7715,-122.4,"We are here");
       window.onload = initializeGoogleMap();
      // Add a marker to the map at specified latitude and longitude with tooltip
      function addMarker(map,lat,long,titleText) {
        var markerLatlng = new google.maps.LatLng(lat,long);
       var marker = new google.maps.Marker({
            position: markerLatlng,
            map: map,
            title:"We are here",
       icon: ""});  
      var addressField = document.getElementById('search_address');
    var geocoder = new google.maps.Geocoder();
    function search() {
        geocoder.geocode(
            {'address': addressField.value}, 
            function(results, status) { 
                if (status == google.maps.GeocoderStatus.OK) { 
                    var loc = results[0].geometry.location;
                    // use loc.lat(), loc.lng()
                else {
                    alert("Not found: " + status); 

    Come on guys....!!Any one here to answer or any one knows about it?

Maybe you are looking for

  • Open project cancelled or unable to load database...

    I have been running version 9 sucessfully and moving projects around with no errors.  Today, I cannot load any of my projects. I have been through the threads and deleted the .cpj, moved the project to the root of my hard drive, etc. Something else i

  • Unable to capture condition type in delivery document

    There are deliveries in production server, for the same destination zone, in which, for some deliveries, the condition Z52L is not determined and for some other deliveries, the condition Z52L is determined although the condition record for its plant

  • ISync won't even start up

    At first, I used isync to sync my Sony Clie, but then it turns out that Palm Desktop actually works better. Now Palm Desktops will not sync. So I decided to do a backup with Isync and it wont even start, it quits out on me. I try to Reopen, but it st

  • New features as a firmware update?

    According to the press release the new Airport Extreme: Apple also announced that its popular AirPort Extreme 802.11n Wi-Fi Base Station and Time Capsule® now feature simultaneous 2.4 GHz and 5 GHz dual-band networking for optimal performance, range

  • Mount TC using AFP on Linux

    Hi there, Can anyone tell me if it's possible to [auto]mount my newly purchased TC on Linux (any RedHat based system) using AFP? I can mount the using samba like this: +mount.cifs //10.0.11.10/Data /your-mount-point -o password=YourPassWord+ but I ra