Replication Script to create a copy of Objects
I need help in writing PL/SQL Replication script so it can create copy of all objects stored in specific schema at the remote site in local schema.
And that script will only replicate objects which are owned by specific user.
I need starting point so any suggestions will be really apprciated.
Here is the good starting point for replication.
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14226/toc.htm
Similar Messages
-
How & where to use Java script to create new button in object detail page
Hi All,
I want to create "New/Add button" in object detail page. If i am not wrong i need to use java script for that but could you please let me know how & where to use Java script to create new button in object detail page in CRMOD.
Thanks in advance.
Regards,
ManishAny related object on the detail page should have an "Add" or "New" or both buttons by default - This is vanilla functionality and will do the required action.
If you want to modify this behaviour and do something tricky you will potentially have to go for javascript. You should add the javascript on a custom web tab on that Object.
Admin --> Application Customization --> Contact -->Contact Web Applet
Now, add your javascript in the code area, after you select the type = HTML for this web applet, expose this web applet on the Contact detail layout and your javascript will be invoked whenever this page is loaded.
Check this online document to see how javascript can be embedded in CRM on Demand http://helponmyproject.com/TTOCOD/
Cheers!
Royston -
Pshell script to create then copy to every desktop profile on PC
Here's what I have so far.
Seems to work in local user context...but this script is going to be running within a SCCM pkg, in local SYSTEM context and doesn't distribute to all desktops like I need it to.
$NDws = New-Object -comObject WScript.Shell
$NDDt = $NDws.SpecialFolders.Item("AllUsersDesktop")
$NDURL = $NDws.CreateShortcut($NDDt + "\NetDocuments.lnk")
$NDURL.TargetPath = https://test.url
$NDURL.IconLocation = "C:\JLtools\utilities\NDicon.ico"
$NDURL.Save()
any ideas?
TIA.Ended up answering my own question.
$NDws = New-Object -comObject WScript.Shell
$NDDt = $NDws.SpecialFolders.Item("AllUsersDesktop")
$NDURL = $NDws.CreateShortcut($NDDt + "\NetDocuments.lnk")
$NDURL.TargetPath = "https://vault.netvoyage.com/neWeb2/docCent.aspx"
$NDURL.IconLocation = "C:\JLtools\utilities\NDicon.ico"
$NDURL.Save() | Copy-Item -Destination "C:\Users\Public\Desktop"
Group Policy would be an alternative, but that's not used within my environment, nor was it what was asked here. -
Running a SQL Script to Create an Object Type
When I do Database Development with JDeveloper and fellow the instruction at
http://www.oracle.com/technology/obe/obe1013jdev/dbdevelopment/obe_%20dbasedevmt.htm
and try to Running a SQL Script to Create an Object Type by Right-clicking emp_rec.sql in the editor and
choose Run in SQL*Plus > hrconn, the new Obuect type can not created. The screen flashs and I only got the
message
"Invoking SQL*Plus...
D:\oracle\product\10.2.0\db_1\BIN\cemutls.exe
hr@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=ORCL)))
@emp_rec.sql" and nothing else (No error like JBO-XXXXX).
Can anybody Help Me? Thanks a lot!
SID: ORCLHi Simon,
Having had a closer look at your original message it seems that rather than selecting the SQL*Plus executable in the directory you have managed to select the file 'D:\oracle\product\10.2.0\db_1\BIN\cemutls.exe'.
If you go to 'Tools | Preferences' and select the 'Database Connections' node and alter the 'SQL*Plus Executable' field to 'D:\oracle\product\10.2.0\db_1\BIN\sqlplus.exe' and then try again, this should then work.
Regards,
Lisa -
Dear Colleagues,
I am failry new to ABAP,as I have mainly functional MM/SD/WM/
I need to be creating a fileld such as the one seen below( ZZLOOM).This is already showing on the transactions CO02/CO03(production orders).
Can you please therefore give me step by step rough guide how to create this field and assign it to the program and the table/structure?To which program needs this to be assigned on SE38? Is it the screen data program SAPLXCO1 or the field desciption for batch input program SAPLCOKO1-please see below.
Can I create the new (ZRAL) object by copying from the above (ZZLOOM) and on which Tcode I can do this?The program SAPLCOK01 is used(according to se38) on programs,ckasses and BSP applications.
Program Name SAPLXCO1
Screen number 0100
Program Name SAPLCOCU
Status VVKOPF
Table Name ZWRK_CI_AUFK
Field Name ZZLOOM
Data Element ZZLOOM
DE Supplement 0
Screen Field ZWRK_CI_AUFK-ZZLOOM
Program Name SAPLCOKO1
Screen Number 0115
All help appreciated,
PAPJ1.Hi Archana,
I'm simply trying to add a field such as the existing ones showing up on the customer screen tab of CO02/CO03,so I copied ZZNESTNO (shown as NEST below) into a new field called ZZRALNO.
Mec MBW Start 18.05.2011
End 18.05.2011
Ele SS Start 23.05.2011
End 23.05.2011
Nest 17c
CoilNest
Pipe 16/05
Loom
COIL WIP
COIL DATE
Through F1,I found out the field details of ZZNESTNO,shown below:
Program Name SAPLXCO1
Screen number 0100
Program Name SAPLCOCU
Status VVKOPF
Table Name ZWRK_CI_AUFK
Field Name ZZNESTNO
Data Element ZZNESTNO
DE Supplement 0
Screen Field ZWRK_CI_AUFK-ZZNESTNO
Program Name SAPLCOKO1
Screen Number 0115
This is what I am trying to achieve-Is this any clearer?
Thanks a million for your help.
PAPJ1.
Edited by: PAPJ1 on Jun 8, 2011 4:37 PM -
With PS 7
create new
Place two objects on the new file
then you may cut copy and paste
Cs2
create new
place two object on the new file
Cut is not available how does one cut and paste in new fileIf your using File>Place then photoshop cs2 creates what's known as Smart Objects, which photoshop 7 didn't have.
In photoshop cs2 you can rasterize the smart objects and that should make the Cut function available.
Select both placed layers, right click on the area to the right of the tumbnail and select Rasterize Layers.
If in photoshop cs2 you to Help>Photoshop Help and look under Layers>Smart Objects, that should give you a good overview of what smart objects are. -
Transactional Replication: Non-Clustered Indexes not copying.
Hello,
I set up replication on our servers at work to streamline some procedures we run daily/weekly on them.
This copies around 15 articles from two databases on the "Master" server to another server used for execution purposes. For the most part it was a pretty straight forward task and it seemed to work nicely; but I realised after some investigation that the
non-clustered indexes weren't copying over to the child server.
I set the non-clustered indexes property in the properties of the publishing articles to "True" and generated a new snapshot, this seemed to work, but I've come into work this morning to find the property has reset to "False" and I have no indexes on the
table again. Why is this happening and is there any way I can resolve the matter so the indexes are copied over concurrently?
Thanks in advance for your advice.
JBI actually solved this.
You can use a post-replication SQL script to create the indexes. Whatever articles you're publishing open up the indexes drop down list of the article in object explorer, right-click on an index and hover over Script Index as, then Create-to, then click
New Query Window editor.
Up will pop up a new query window with the resulting index. Work your way through all the indexes on all the articles of the publication, copy and pasting just the create index line and below of each script, pull them all together into one query window.
Once you're done find a safe folder somewhere on your harddrive and save the SQL query as an .sql file with a sensible name.
Right click on the publication and goto properties. Click on the "Snapshot" tab, in there; there should be a section saying "Run additional scripts". Choose the browse button next to "After applying the Snapshot; execute this script:"
Navigate to your script file and choose it. Once done click ok and it'll prompt you that something has changed and if you'd like to generate a new snapshot, make sure you do or it won't work.
That's it, you'll find once the publication has bulk copied over the the subscriptions successfully there are non clustered indexes on the tables. Pretty simple! -
Create a copy of active database using T-SQL.
I have a requirement to create a copy of existing active (currently in use) database through code.
I need to copy all objects which include tables, stored procs, triggers, functions, foreign keys, constraints, primary keys, etc... from source DB to new DB.
Both databases can be in different servers where I have access to both the servers. I also need to copy data for some tables....
It is exactly what copy database wizard is doing... but I want to do it through T-SQL code.....
is it possible?This doesn't sound like too easy task. I tried to search, but the best I found so far was Freeware SQL Script Generate utility
I do have a blog to generate all stored procedures
How to script all stored procedures in a database
but this is only a small part of the task. Brad Schulz has a blog to generate table creation/insert statements. I don't remember seeing the complete free T-SQL solution for all SQL Server database objects.
Premature optimization is the root of all evil in programming. (c) by Donald Knuth
Naomi Nosonovsky, Sr. Programmer-Analyst
My blog -
Database copy dropped objects in source schema
I was seeking out a quick way to copy an entire schema from one db to another and I was happy when I found the "database copy" feature. I checked the documentation and found that all I needed to do was select the source connection, the target connection, and choose either create, truncate, or drop objects. Well I had some objects in the source db from a previous failed attempt at copying all the objects via script. To remedy that the drop objects option, according to the documentation " Drops any existing table with the same name, and then creates and loads it from the source." Ok, great. The summary shows up with a bunch of entries which I didn't pay too much attention too. Fine, continue...running....progress...so far so good..and the log shows up. I see drops, I see moving data, and I see a whole bunch of errors with no useful information with them. Check the target schema...nothings there, all objects are dropped. Ok, lets have a look at the source and see whats going on. Refresh tables...nothing...refresh...refresh...nothing. The source schema has all its objects GONE too! One lonely type is saved in the source schema, that's it. Am I a total moron and misinterpreting how database copy works? Can anyone shed some light on this? Anyway to recover my source objects? As the source db is not production I am out of luck as there is no recent backup.
Source: 9i
Target: 11g
sql developer v 2.1.1.64.45
-jOK the problem was that my target connection was inadvertently pointing to the source. It was set properly before but stuff went bad and i switched the connection from TNS to basic, then back to TNS. Apparently when switching back to TNS the wrong entry was selected. Not sure if I chose it or it was selected from a different connection. In any case, very stupid of me.
thanks K.
Edited by: [email protected] on Jun 17, 2010 6:45 AM -
DCpromo blocked on "Creating the NTDS Settings object"
Hi,
I'm trying to configure a second DC on a domain.
The opetation is performed on Azure VM (A2)
Domain has successfully been created on one VM.
Network is operationnal.
I tried the steps detailed here : https://support.microsoft.com/en-us/kb/2737935?wa=wsignin1.0 with no effect.
I tried to delete the VM and recreate it.
Local admin account is different from domain administrator.
Is there anything more I can try ?
Thanks.
R.Hi,
I tried the netsh command line to open WMI ports anf got the same error.
Here is the content of my dcpromo.log
04/28/2015 13:08:28 [INFO] Promotion request for replica domain controller
04/28/2015 13:08:28 [INFO] DnsDomainName rd.contoso.com
04/28/2015 13:08:28 [INFO] ReplicaPartner DC1.rd.contoso.com
04/28/2015 13:08:28 [INFO] SiteName Default-First-Site-Name
04/28/2015 13:08:28 [INFO] DsDatabasePath F:\Windows\NTDS, DsLogPath F:\Windows\NTDS
04/28/2015 13:08:28 [INFO] SystemVolumeRootPath F:\Windows\SYSVOL
04/28/2015 13:08:28 [INFO] Account rd.contoso.com\contosoadmin
04/28/2015 13:08:28 [INFO] Options 1179840
04/28/2015 13:08:28 [INFO] Validate supplied paths
04/28/2015 13:08:28 [INFO] Validating path F:\Windows\NTDS.
04/28/2015 13:08:28 [INFO] Path is a directory
04/28/2015 13:08:28 [INFO] Path is on a fixed disk drive.
04/28/2015 13:08:28 [INFO] Validating path F:\Windows\NTDS.
04/28/2015 13:08:28 [INFO] Path is a directory
04/28/2015 13:08:28 [INFO] Path is on a fixed disk drive.
04/28/2015 13:08:28 [INFO] Validating path F:\Windows\SYSVOL.
04/28/2015 13:08:28 [INFO] Path is on a fixed disk drive.
04/28/2015 13:08:28 [INFO] Path is on an NTFS volume
04/28/2015 13:08:28 [INFO] Start the worker task
04/28/2015 13:08:28 [INFO] Request for promotion returning 0
04/28/2015 13:08:28 [INFO] Forcing time sync
04/28/2015 13:08:28 [INFO] Forcing a time sync with DC1.rd.contoso.com
04/28/2015 13:08:28 [INFO] Searching for a domain controller for the domain rd.contoso.com that contains the account DC2$
04/28/2015 13:08:49 [INFO] Located domain controller DC1.rd.contoso.com for domain rd.contoso.com
04/28/2015 13:08:49 [INFO] Directing kerberos authentication to DC1.rd.contoso.com returns 0
04/28/2015 13:08:49 [INFO] DsRolepFlushKerberosTicketCache() successfully flushed the Kerberos ticket cache
04/28/2015 13:08:49 [INFO] Using site Default-First-Site-Name for server DC1.rd.contoso.com
04/28/2015 13:08:49 [INFO] Stopping service NETLOGON
04/28/2015 13:08:49 [INFO] Stopping service NETLOGON
04/28/2015 13:08:49 [INFO] ControlService(STOP) on NETLOGON returned 1(gle=0)
04/28/2015 13:08:49 [INFO] Exiting service-stop loop after service NETLOGON entered STOPPED state
04/28/2015 13:08:49 [INFO] StopService on NETLOGON returned 0
04/28/2015 13:08:49 [INFO] Configuring service NETLOGON to 1 returned 0
04/28/2015 13:08:49 [INFO] Stopped NETLOGON
04/28/2015 13:08:49 [INFO] Deleting current sysvol path F:\Windows\SYSVOL
04/28/2015 13:08:50 [INFO] Created system volume path
04/28/2015 13:08:50 [INFO] Copying initial Directory Service database file C:\Windows\system32\ntds.dit to F:\Windows\NTDS\ntds.dit
04/28/2015 13:08:51 [INFO] Installing the Directory Service
04/28/2015 13:08:51 [INFO] Calling NtdsInstall for rd.contoso.com
04/28/2015 13:08:52 [INFO] Starting Active Directory Domain Services installation
04/28/2015 13:08:52 [INFO] Validating user supplied options
04/28/2015 13:08:52 [INFO] Determining a site in which to install
04/28/2015 13:08:52 [INFO] Examining an existing forest...
04/28/2015 13:08:52 [INFO] Configuring the local computer to host Active Directory Domain Services
04/28/2015 13:08:52 [INFO] EVENTLOG (Informational): NTDS General / Service Control : 1094
Software write caching for the following disk drive has been disabled to prevent possible data loss during system failures such as power outages or hardware component failures that can cause a sudden shutdown of the system. The disk drive that stores Active
Directory Domain Services log files is the only drive affected by this change.
Disk drive:
f:
04/28/2015 13:09:03 [INFO] EVENTLOG (Informational): NTDS General / Internal Configuration : 2120
This Active Directory Domain Services server does not support the Recycle Bin. Deleted objects may be undeleted, however, when an object is undeleted, some attributes of that object may be lost. Additionally, attributes of other objects that refer to
the object being undeleted may also be lost.
04/28/2015 13:09:03 [INFO] EVENTLOG (Informational): NTDS General / Internal Configuration : 2405
This Active Directory Domain Services server does not support the "Recycle Bin Feature" optional feature.
04/28/2015 13:09:05 [INFO] Creating the NTDS Settings object for this Active Directory Domain Controller on the remote AD DC DC1.rd.contoso.com...
04/28/2015 13:09:26 [INFO] EVENTLOG (Error): NTDS Replication / DS RPC Client : 1962
Internal event: The local directory service received an exception from a remote procedure call (RPC) connection. Extended error information is not available.
directory service:
DC1.rd.contoso.com
Additional Data
Error value:
The RPC server is unavailable. (1722)
04/28/2015 13:09:47 [INFO] EVENTLOG (Informational): NTDS General / Internal Processing : 2041
Duplicate event log entries were suppressed.
See the previous event log entry for details. An entry is considered a duplicate if
the event code and all of its insertion parameters are identical. The time period for
this run of duplicates is from the time of the previous event to the time of this event.
Event Code:
c00007aa
Number of duplicate entries:
1
04/28/2015 13:09:47 [INFO] EVENTLOG (Error): NTDS Replication / Setup : 1125
The Active Directory Domain Services Installation Wizard (Dcpromo) was unable to establish connection with the following domain controller.
Domain controller:
DC1.rd.contoso.com
Additional Data
Error value:
1722 The RPC server is unavailable.
04/28/2015 13:10:16 [INFO] EVENTLOG (Error): NTDS Replication / DS RPC Client : 1962
Internal event: The local directory service received an exception from a remote procedure call (RPC) connection. Extended error information is not available.
directory service:
DC1.rd.contoso.com
Additional Data
Error value:
The RPC server is unavailable. (1722)
04/28/2015 13:10:37 [INFO] EVENTLOG (Informational): NTDS General / Internal Processing : 2041
Duplicate event log entries were suppressed.
See the previous event log entry for details. An entry is considered a duplicate if
the event code and all of its insertion parameters are identical. The time period for
this run of duplicates is from the time of the previous event to the time of this event.
Event Code:
c00007aa
Number of duplicate entries:
1
04/28/2015 13:10:37 [INFO] EVENTLOG (Error): NTDS Replication / Setup : 1125
The Active Directory Domain Services Installation Wizard (Dcpromo) was unable to establish connection with the following domain controller.
Domain controller:
DC1.rd.contoso.com
Additional Data
Error value:
1722 The RPC server is unavailable.
04/28/2015 13:11:14 [INFO] EVENTLOG (Error): NTDS Replication / DS RPC Client : 1962
Internal event: The local directory service received an exception from a remote procedure call (RPC) connection. Extended error information is not available.
directory service:
DC1.rd.contoso.com
Additional Data
Error value:
The RPC server is unavailable. (1722)
04/28/2015 13:11:35 [INFO] EVENTLOG (Informational): NTDS General / Internal Processing : 2041
Duplicate event log entries were suppressed.
See the previous event log entry for details. An entry is considered a duplicate if
the event code and all of its insertion parameters are identical. The time period for
this run of duplicates is from the time of the previous event to the time of this event.
Event Code:
c00007aa
Number of duplicate entries:
1
04/28/2015 13:11:35 [INFO] EVENTLOG (Error): NTDS Replication / Setup : 1125
The Active Directory Domain Services Installation Wizard (Dcpromo) was unable to establish connection with the following domain controller.
Domain controller:
DC1.rd.contoso.com
Additional Data
Error value:
1722 The RPC server is unavailable.
04/28/2015 13:12:28 [INFO] EVENTLOG (Error): NTDS Replication / DS RPC Client : 1962
Internal event: The local directory service received an exception from a remote procedure call (RPC) connection. Extended error information is not available.
directory service:
DC1.rd.contoso.com
Additional Data
Error value:
The RPC server is unavailable. (1722)
04/28/2015 13:12:49 [INFO] EVENTLOG (Informational): NTDS General / Internal Processing : 2041
Duplicate event log entries were suppressed.
See the previous event log entry for details. An entry is considered a duplicate if
the event code and all of its insertion parameters are identical. The time period for
this run of duplicates is from the time of the previous event to the time of this event.
Event Code:
c00007aa
Number of duplicate entries:
1
04/28/2015 13:12:49 [INFO] EVENTLOG (Error): NTDS Replication / Setup : 1125
The Active Directory Domain Services Installation Wizard (Dcpromo) was unable to establish connection with the following domain controller.
Domain controller:
DC1.rd.contoso.com
Additional Data
Error value:
1722 The RPC server is unavailable.
04/28/2015 13:14:14 [INFO] EVENTLOG (Error): NTDS Replication / DS RPC Client : 1962
Internal event: The local directory service received an exception from a remote procedure call (RPC) connection. Extended error information is not available.
directory service:
DC1.rd.contoso.com
Additional Data
Error value:
The RPC server is unavailable. (1722)
04/28/2015 13:14:35 [INFO] EVENTLOG (Informational): NTDS General / Internal Processing : 2041
Duplicate event log entries were suppressed.
See the previous event log entry for details. An entry is considered a duplicate if
the event code and all of its insertion parameters are identical. The time period for
this run of duplicates is from the time of the previous event to the time of this event.
Event Code:
c00007aa
Number of duplicate entries:
1
04/28/2015 13:14:35 [INFO] EVENTLOG (Error): NTDS Replication / Setup : 1125
The Active Directory Domain Services Installation Wizard (Dcpromo) was unable to establish connection with the following domain controller.
Domain controller:
DC1.rd.contoso.com
Additional Data
Error value:
1722 The RPC server is unavailable.
04/28/2015 13:17:04 [INFO] EVENTLOG (Error): NTDS Replication / DS RPC Client : 1962
Internal event: The local directory service received an exception from a remote procedure call (RPC) connection. Extended error information is not available.
directory service:
DC1.rd.contoso.com
Additional Data
Error value:
The RPC server is unavailable. (1722)
04/28/2015 13:17:25 [INFO] EVENTLOG (Informational): NTDS General / Internal Processing : 2041
Duplicate event log entries were suppressed.
See the previous event log entry for details. An entry is considered a duplicate if
the event code and all of its insertion parameters are identical. The time period for
this run of duplicates is from the time of the previous event to the time of this event.
Event Code:
c00007aa
Number of duplicate entries:
1
04/28/2015 13:17:25 [INFO] EVENTLOG (Error): NTDS Replication / Setup : 1125
The Active Directory Domain Services Installation Wizard (Dcpromo) was unable to establish connection with the following domain controller.
Domain controller:
DC1.rd.contoso.com
Additional Data
Error value:
1722 The RPC server is unavailable.
04/28/2015 13:22:02 [INFO] EVENTLOG (Error): NTDS Replication / DS RPC Client : 1962
Internal event: The local directory service received an exception from a remote procedure call (RPC) connection. Extended error information is not available.
directory service:
DC1.rd.contoso.com
Additional Data
Error value:
The RPC server is unavailable. (1722)
04/28/2015 13:22:23 [INFO] EVENTLOG (Informational): NTDS General / Internal Processing : 2041
Duplicate event log entries were suppressed.
See the previous event log entry for details. An entry is considered a duplicate if
the event code and all of its insertion parameters are identical. The time period for
this run of duplicates is from the time of the previous event to the time of this event.
Event Code:
c00007aa
Number of duplicate entries:
1
04/28/2015 13:22:23 [INFO] EVENTLOG (Error): NTDS Replication / Setup : 1125
The Active Directory Domain Services Installation Wizard (Dcpromo) was unable to establish connection with the following domain controller.
Domain controller:
DC1.rd.contoso.com
Additional Data
Error value:
1722 The RPC server is unavailable.
04/28/2015 13:31:16 [INFO] EVENTLOG (Error): NTDS Replication / DS RPC Client : 1962
Internal event: The local directory service received an exception from a remote procedure call (RPC) connection. Extended error information is not available.
directory service:
DC1.rd.contoso.com
Additional Data
Error value:
The RPC server is unavailable. (1722)
04/28/2015 13:31:37 [INFO] EVENTLOG (Informational): NTDS General / Internal Processing : 2041
Duplicate event log entries were suppressed.
See the previous event log entry for details. An entry is considered a duplicate if
the event code and all of its insertion parameters are identical. The time period for
this run of duplicates is from the time of the previous event to the time of this event.
Event Code:
c00007aa
Number of duplicate entries:
1
04/28/2015 13:31:37 [INFO] EVENTLOG (Error): NTDS Replication / Setup : 1125
The Active Directory Domain Services Installation Wizard (Dcpromo) was unable to establish connection with the following domain controller.
Domain controller:
DC1.rd.contoso.com
Additional Data
Error value:
1722 The RPC server is unavailable.
04/28/2015 13:39:26 [INFO] Promotion request for replica domain controller
04/28/2015 13:39:26 [INFO] DnsDomainName rd.contoso.com
04/28/2015 13:39:26 [INFO] ReplicaPartner DC1.rd.contoso.com
04/28/2015 13:39:26 [INFO] SiteName Default-First-Site-Name
04/28/2015 13:39:26 [INFO] DsDatabasePath F:\Windows\NTDS, DsLogPath F:\Windows\NTDS
04/28/2015 13:39:26 [INFO] SystemVolumeRootPath F:\Windows\SYSVOL
04/28/2015 13:39:26 [INFO] Account rd.contoso.com\contosoadmin
04/28/2015 13:39:26 [INFO] Options 1179840
04/28/2015 13:39:26 [INFO] Validate supplied paths
04/28/2015 13:39:26 [INFO] Validating path F:\Windows\NTDS.
04/28/2015 13:39:26 [INFO] Path is a directory
04/28/2015 13:39:26 [INFO] Path is on a fixed disk drive.
04/28/2015 13:39:26 [INFO] Validating path F:\Windows\NTDS.
04/28/2015 13:39:26 [INFO] Path is a directory
04/28/2015 13:39:26 [INFO] Path is on a fixed disk drive.
04/28/2015 13:39:26 [INFO] Validating path F:\Windows\SYSVOL.
04/28/2015 13:39:26 [INFO] Path is on a fixed disk drive.
04/28/2015 13:39:26 [INFO] Path is on an NTFS volume
04/28/2015 13:39:26 [INFO] Start the worker task
04/28/2015 13:39:26 [INFO] Request for promotion returning 0
04/28/2015 13:39:26 [INFO] Forcing time sync
04/28/2015 13:39:26 [INFO] Forcing a time sync with DC1.rd.contoso.com
04/28/2015 13:39:25 [INFO] Searching for a domain controller for the domain rd.contoso.com that contains the account DC2$
04/28/2015 13:39:25 [INFO] Located domain controller DC1.rd.contoso.com for domain rd.contoso.com
04/28/2015 13:39:25 [INFO] Directing kerberos authentication to DC1.rd.contoso.com returns 0
04/28/2015 13:39:25 [INFO] DsRolepFlushKerberosTicketCache() successfully flushed the Kerberos ticket cache
04/28/2015 13:39:25 [INFO] Using site Default-First-Site-Name for server DC1.rd.contoso.com
04/28/2015 13:39:26 [INFO] Stopping service NETLOGON
04/28/2015 13:39:26 [INFO] Stopping service NETLOGON
04/28/2015 13:39:26 [INFO] ControlService(STOP) on NETLOGON returned 1(gle=0)
04/28/2015 13:39:26 [INFO] DsRolepWaitForService: waiting for NETLOGON to enter one of 7 states
04/28/2015 13:39:26 [INFO] DsRolepWaitForService: QueryServiceStatus on NETLOGON returned 1 (gle=0), SvcStatus.dwCS=3
04/28/2015 13:39:27 [INFO] DsRolepWaitForService: QueryServiceStatus on NETLOGON returned 1 (gle=0), SvcStatus.dwCS=1
04/28/2015 13:39:27 [INFO] DsRolepWaitForService: exiting because NETLOGON entered STOPPED state
04/28/2015 13:39:27 [INFO] DsRolepWaitForService(for any end state) on NETLOGON service returned 0
04/28/2015 13:39:27 [INFO] ControlService(STOP) on NETLOGON returned 0(gle=1062)
04/28/2015 13:39:27 [INFO] Exiting service-stop loop after service NETLOGON entered STOPPED state
04/28/2015 13:39:27 [INFO] StopService on NETLOGON returned 0
04/28/2015 13:39:27 [INFO] Configuring service NETLOGON to 1 returned 0
04/28/2015 13:39:27 [INFO] Stopped NETLOGON
04/28/2015 13:39:27 [INFO] Deleting current sysvol path F:\Windows\SYSVOL
04/28/2015 13:39:27 [INFO] Created system volume path
04/28/2015 13:39:27 [INFO] Copying initial Directory Service database file C:\Windows\system32\ntds.dit to F:\Windows\NTDS\ntds.dit
04/28/2015 13:39:28 [INFO] Installing the Directory Service
04/28/2015 13:39:28 [INFO] Calling NtdsInstall for rd.contoso.com
04/28/2015 13:39:28 [INFO] Starting Active Directory Domain Services installation
04/28/2015 13:39:28 [INFO] Validating user supplied options
04/28/2015 13:39:28 [INFO] Determining a site in which to install
04/28/2015 13:39:28 [INFO] Examining an existing forest...
04/28/2015 13:39:28 [INFO] Configuring the local computer to host Active Directory Domain Services
04/28/2015 13:39:35 [INFO] EVENTLOG (Error): NTDS Database / Backup : 2542
The Directory Server detected that the database has been replaced. This is an
unsafe and unsupported operation. The service will stop until the problem is
corrected.
User Action:
Restore the previous copy of the database that was in use on this machine.
In the future, the user is strongly encouraged to use the backup and
restore facility to rollback the database.
This error can be suppressed and the database repaired by removing the following registry key.
Additional Data
Registry key:
System\CurrentControlSet\Services\NTDS\Parameters
Registry value:
DSA Database Epoch
04/28/2015 13:39:35 [INFO] EVENTLOG (Informational): NTDS General / Service Control : 1004
Active Directory Domain Services was shut down successfully.
04/28/2015 13:39:36 [INFO] Error - An unknown error occurred while installing Active Directory Domain Services. (8200)
04/28/2015 13:39:36 [INFO] Active Directory Domain Services is attempting to recursively delete the \Registry\Machine\System\CurrentControlSet\Services\NTDS registry key (DeleteRoot=0).
04/28/2015 13:39:36 [INFO] Active Directory Domain Services is attempting to recursively delete the \Registry\Machine\System\CurrentControlSet\Services\NTDS\Diagnostics registry key (DeleteRoot=1).
04/28/2015 13:39:36 [INFO] Active Directory Domain Services successfully deleted the \Registry\Machine\System\CurrentControlSet\Services\NTDS\Diagnostics registry key (DeleteRoot=1).
04/28/2015 13:39:36 [INFO] Active Directory Domain Services is attempting to recursively delete the \Registry\Machine\System\CurrentControlSet\Services\NTDS\Parameters registry key (DeleteRoot=1).
04/28/2015 13:39:36 [INFO] Active Directory Domain Services successfully deleted the \Registry\Machine\System\CurrentControlSet\Services\NTDS\Parameters registry key (DeleteRoot=1).
04/28/2015 13:39:36 [INFO] Active Directory Domain Services is attempting to recursively delete the \Registry\Machine\System\CurrentControlSet\Services\NTDS\Performance registry key (DeleteRoot=1).
04/28/2015 13:39:36 [INFO] Active Directory Domain Services successfully deleted the \Registry\Machine\System\CurrentControlSet\Services\NTDS\Performance registry key (DeleteRoot=1).
04/28/2015 13:39:36 [INFO] Active Directory Domain Services is attempting to recursively delete the \Registry\Machine\System\CurrentControlSet\Services\NTDS\RID Values registry key (DeleteRoot=1).
04/28/2015 13:39:36 [INFO] Active Directory Domain Services successfully deleted the \Registry\Machine\System\CurrentControlSet\Services\NTDS\RID Values registry key (DeleteRoot=1).
04/28/2015 13:39:36 [INFO] Active Directory Domain Services is attempting to recursively delete the \Registry\Machine\System\CurrentControlSet\Services\NTDS\Security registry key (DeleteRoot=1).
04/28/2015 13:39:36 [INFO] Active Directory Domain Services successfully deleted the \Registry\Machine\System\CurrentControlSet\Services\NTDS\Security registry key (DeleteRoot=1).
04/28/2015 13:39:36 [INFO] Active Directory Domain Services successfully deleted the \Registry\Machine\System\CurrentControlSet\Services\NTDS registry key (DeleteRoot=0).
04/28/2015 13:39:36 [INFO] NtdsInstall for rd.contoso.com returned 8200
04/28/2015 13:39:36 [INFO] DsRolepInstallDs returned 8200
04/28/2015 13:39:36 [ERROR] Failed to install to Directory Service (8200)
04/28/2015 13:39:36 [ERROR] DsRolepFinishSysVolPropagation (Abort Promote) failed with 8001
04/28/2015 13:39:36 [WARNING] Failed to abort system volume installation (8001)
04/28/2015 13:39:36 [INFO] Starting service NETLOGON
04/28/2015 13:39:36 [INFO] Configuring service NETLOGON to 2 returned 0
04/28/2015 13:39:36 [INFO] The attempted domain controller operation has completed
04/28/2015 13:39:36 [INFO] Updating service status to 4
04/28/2015 13:39:36 [INFO] DsRolepSetOperationDone returned 0
04/28/2015 16:38:27 [INFO] Promotion request for replica domain controller
04/28/2015 16:38:27 [INFO] DnsDomainName rd.contoso.com
04/28/2015 16:38:27 [INFO] ReplicaPartner DC1.rd.contoso.com
04/28/2015 16:38:27 [INFO] SiteName Default-First-Site-Name
04/28/2015 16:38:27 [INFO] DsDatabasePath F:\Windows\NTDS, DsLogPath F:\Windows\NTDS
04/28/2015 16:38:27 [INFO] SystemVolumeRootPath F:\Windows\SYSVOL
04/28/2015 16:38:27 [INFO] Account rd.contoso.com\contosoadmin
04/28/2015 16:38:27 [INFO] Options 1179840
04/28/2015 16:38:27 [INFO] Validate supplied paths
04/28/2015 16:38:27 [INFO] Validating path F:\Windows\NTDS.
04/28/2015 16:38:27 [INFO] Path is a directory
04/28/2015 16:38:27 [INFO] Path is on a fixed disk drive.
04/28/2015 16:38:27 [INFO] Validating path F:\Windows\NTDS.
04/28/2015 16:38:27 [INFO] Path is a directory
04/28/2015 16:38:27 [INFO] Path is on a fixed disk drive.
04/28/2015 16:38:27 [INFO] Validating path F:\Windows\SYSVOL.
04/28/2015 16:38:27 [INFO] Path is on a fixed disk drive.
04/28/2015 16:38:27 [INFO] Path is on an NTFS volume
04/28/2015 16:38:27 [INFO] Start the worker task
04/28/2015 16:38:27 [INFO] Request for promotion returning 0
04/28/2015 16:38:27 [INFO] Forcing time sync
04/28/2015 16:38:27 [INFO] Forcing a time sync with DC1.rd.contoso.com
04/28/2015 16:38:26 [INFO] Searching for a domain controller for the domain rd.contoso.com that contains the account DC2$
04/28/2015 16:38:26 [INFO] Located domain controller DC1.rd.contoso.com for domain rd.contoso.com
04/28/2015 16:38:26 [INFO] Directing kerberos authentication to DC1.rd.contoso.com returns 0
04/28/2015 16:38:26 [INFO] DsRolepFlushKerberosTicketCache() successfully flushed the Kerberos ticket cache
04/28/2015 16:38:26 [INFO] Using site Default-First-Site-Name for server DC1.rd.contoso.com
04/28/2015 16:38:26 [INFO] Stopping service NETLOGON
04/28/2015 16:38:26 [INFO] Stopping service NETLOGON
04/28/2015 16:38:26 [INFO] ControlService(STOP) on NETLOGON returned 1(gle=0)
04/28/2015 16:38:26 [INFO] DsRolepWaitForService: waiting for NETLOGON to enter one of 7 states
04/28/2015 16:38:26 [INFO] DsRolepWaitForService: QueryServiceStatus on NETLOGON returned 1 (gle=0), SvcStatus.dwCS=3
04/28/2015 16:38:27 [INFO] DsRolepWaitForService: QueryServiceStatus on NETLOGON returned 1 (gle=0), SvcStatus.dwCS=1
04/28/2015 16:38:27 [INFO] DsRolepWaitForService: exiting because NETLOGON entered STOPPED state
04/28/2015 16:38:27 [INFO] DsRolepWaitForService(for any end state) on NETLOGON service returned 0
04/28/2015 16:38:27 [INFO] ControlService(STOP) on NETLOGON returned 0(gle=1062)
04/28/2015 16:38:27 [INFO] Exiting service-stop loop after service NETLOGON entered STOPPED state
04/28/2015 16:38:27 [INFO] StopService on NETLOGON returned 0
04/28/2015 16:38:27 [INFO] Configuring service NETLOGON to 1 returned 0
04/28/2015 16:38:27 [INFO] Stopped NETLOGON
04/28/2015 16:38:27 [INFO] Deleting current sysvol path F:\Windows\SYSVOL
04/28/2015 16:38:28 [INFO] Created system volume path
04/28/2015 16:38:28 [INFO] Copying initial Directory Service database file C:\Windows\system32\ntds.dit to F:\Windows\NTDS\ntds.dit
04/28/2015 16:38:28 [INFO] Installing the Directory Service
04/28/2015 16:38:28 [INFO] Calling NtdsInstall for rd.contoso.com
04/28/2015 16:38:28 [INFO] Starting Active Directory Domain Services installation
04/28/2015 16:38:28 [INFO] Validating user supplied options
04/28/2015 16:38:28 [INFO] Determining a site in which to install
04/28/2015 16:38:28 [INFO] Examining an existing forest...
04/28/2015 16:38:28 [INFO] Configuring the local computer to host Active Directory Domain Services
04/28/2015 16:38:40 [INFO] EVENTLOG (Informational): NTDS General / Internal Configuration : 2120
This Active Directory Domain Services server does not support the Recycle Bin. Deleted objects may be undeleted, however, when an object is undeleted, some attributes of that object may be lost. Additionally, attributes of other objects that refer to
the object being undeleted may also be lost.
04/28/2015 16:38:40 [INFO] EVENTLOG (Informational): NTDS General / Internal Configuration : 2405
This Active Directory Domain Services server does not support the "Recycle Bin Feature" optional feature.
04/28/2015 16:38:43 [INFO] Creating the NTDS Settings object for this Active Directory Domain Controller on the remote AD DC DC1.rd.contoso.com...
04/28/2015 16:39:05 [INFO] EVENTLOG (Error): NTDS Replication / DS RPC Client : 1962
Internal event: The local directory service received an exception from a remote procedure call (RPC) connection. Extended error information is not available.
directory service:
DC1.rd.contoso.com
Additional Data
Error value:
The RPC server is unavailable. (1722)
04/28/2015 16:39:26 [INFO] EVENTLOG (Informational): NTDS General / Internal Processing : 2041
Duplicate event log entries were suppressed.
See the previous event log entry for details. An entry is considered a duplicate if
the event code and all of its insertion parameters are identical. The time period for
this run of duplicates is from the time of the previous event to the time of this event.
Event Code:
c00007aa
Number of duplicate entries:
1
04/28/2015 16:39:26 [INFO] EVENTLOG (Error): NTDS Replication / Setup : 1125
The Active Directory Domain Services Installation Wizard (Dcpromo) was unable to establish connection with the following domain controller.
Domain controller:
DC1.rd.contoso.com
Additional Data
Error value:
1722 The RPC server is unavailable.
04/28/2015 16:39:55 [INFO] EVENTLOG (Error): NTDS Replication / DS RPC Client : 1962
Internal event: The local directory service received an exception from a remote procedure call (RPC) connection. Extended error information is not available.
directory service:
DC1.rd.contoso.com
Additional Data
Error value:
The RPC server is unavailable. (1722)
04/28/2015 16:40:16 [INFO] EVENTLOG (Informational): NTDS General / Internal Processing : 2041
Duplicate event log entries were suppressed.
See the previous event log entry for details. An entry is considered a duplicate if
the event code and all of its insertion parameters are identical. The time period for
this run of duplicates is from the time of the previous event to the time of this event.
Event Code:
c00007aa
Number of duplicate entries:
1
04/28/2015 16:40:16 [INFO] EVENTLOG (Error): NTDS Replication / Setup : 1125
The Active Directory Domain Services Installation Wizard (Dcpromo) was unable to establish connection with the following domain controller.
Domain controller:
DC1.rd.contoso.com
Additional Data
Error value:
1722 The RPC server is unavailable.
R. -
Illustrator script to create symbols from images in folder
Time to give back to the community...
Here is a script I recently devised to bulk create symbols from images in a folder. Tested with Illustrator CC 2014.
// Import Folder's Files as Symbols - Illustrator CC script
// Description: Creates symbols from images in the designated folder into current document
// Author : Oscar Rines (oscarrines (at) gmail.com)
// Version : 1.0.0 on 2014-09-21
// Reused code from "Import Folder's Files as Layers - Illustrator CS3 script"
// by Nathaniel V. KELSO ([email protected])
#target illustrator
function getFolder() {
return Folder.selectDialog('Please select the folder to be imported:', Folder('~'));
function symbolExists(seekInDoc, seekSymbol) {
for (var j=0; j < seekInDoc.symbols.length; j++) {
if (seekInDoc.symbols[j].name == seekSymbol) {
return true;
return false;
function importFolderContents(selectedFolder) {
var activeDoc = app.activeDocument; //Active object reference
// if a folder was selected continue with action, otherwise quit
if (selectedFolder) {
var newsymbol; //Symbol object reference
var placedart; //PlacedItem object reference
var fname; //File name
var sname; //Symbol name
var symbolcount = 0; //Number of symbols added
var templayer = activeDoc.layers.add(); //Create a new temporary layer
templayer.name = "Temporary layer"
var imageList = selectedFolder.getFiles(); //retrieve files in the folder
// Create a palette-type window (a modeless or floating dialog),
var win = new Window("palette", "SnpCreateProgressBar", {x:100, y:100, width:750, height:310});
win.pnl = win.add("panel", [10, 10, 740, 255], "Progress"); //add a panel to contain the components
win.pnl.currentTaskLabel = win.pnl.add("statictext", [10, 18, 620, 33], "Examining: -"); //label indicating current file being examined
win.pnl.progBarLabel = win.pnl.add("statictext", [620, 18, 720, 33], "0/0"); //progress bar label
win.pnl.progBarLabel.justify = 'right';
win.pnl.progBar = win.pnl.add("progressbar", [10, 35, 720, 60], 0, imageList.length-1); //progress bar
win.pnl.symbolCount = win.pnl.add("statictext", [10, 70, 710, 85], "Symbols added: 0"); //label indicating number of symbols created
win.pnl.symbolLabel = win.pnl.add("statictext", [10, 85, 710, 100], "Last added symbol: -"); //label indicating name of the symbol created
win.pnl.errorListLabel = win.pnl.add("statictext", [10, 110, 720, 125], "Error log:"); //progress bar label
win.pnl.errorList = win.pnl.add ("edittext", [10, 125, 720, 225], "", {multiline: true, scrolling: true}); //errorlist
//win.pnl.errorList.graphics.font = ScriptUI.newFont ("Arial", "REGULAR", 7);
//win.pnl.errorList.graphics.foregroundColor = win.pnl.errorList.graphics.newPen(ScriptUIGraphics.PenType.SOLID_COLOR, [1, 0, 0, 1], 1);
win.doneButton = win.add("button", [640, 265, 740, 295], "OK"); //button to dispose the panel
win.doneButton.onClick = function () //define behavior for the "Done" button
win.close();
win.center();
win.show();
//Iterate images
for (var i = 0; i < imageList.length; i++) {
win.pnl.currentTaskLabel.text = 'Examining: ' + imageList[i].name; //update current file indicator
win.pnl.progBarLabel.text = i+1 + '/' + imageList.length; //update file count
win.pnl.progBar.value = i+1; //update progress bar
if (imageList[i] instanceof File) {
fname = imageList[i].name.toLowerCase(); //convert file name to lowercase to check for supported formats
if( (fname.indexOf('.eps') == -1) &&
(fname.indexOf('.png') == -1)) {
win.pnl.errorList.text += 'Skipping ' + imageList[i].name + '. Not a supported type.\r'; //log error
continue; // skip unsupported formats
else {
sname = imageList[i].name.substring(0, imageList[i].name.lastIndexOf(".") ); //discard file extension
// Check for duplicate symbol name;
if (symbolExists(activeDoc, sname)) {
win.pnl.errorList.text += 'Skipping ' + imageList[i].name + '. Duplicate symbol for name: ' + sname + '\r'; //log error
else {
placedart = activeDoc.placedItems.add(); //get a reference to a new placedItem object
placedart.file = imageList[i]; //link the object to the image on disk
placedart.name = sname; //give the placed item a name
placedart.embed(); //make this a RasterItem
placedart = activeDoc.rasterItems.getByName(sname); //get a reference to the newly created raster item
newsymbol = activeDoc.symbols.add(placedart); //add the raster item to the symbols
newsymbol.name = sname; //name the symbol
symbolcount++; //update the count of symbols created
placedart.remove(); //remove the raster item from the canvas
win.pnl.symbolCount.text = 'Symbols added: ' + symbolcount; //update created number of symbols indicator
win.pnl.symbolLabel.text = 'Last added symbol: ' + sname; //update created symbol indicator
else {
win.pnl.errorList.text += 'Skipping ' + imageList[i].name + '. Not a regular file.\r'; //log error
win.update(); //required so pop-up window content updates are shown
win.pnl.currentTaskLabel.text = ''; //clear current file indicator
// Final verdict
if (symbolcount >0) {
win.pnl.symbolLabel.text = 'Symbol library changed. Do not forget to save your work';
else {
win.pnl.symbolLabel.text = 'No new symbols added to the library';
win.update(); //update window contents
templayer.remove(); //remove the temporary layer
else {
alert("Action cancelled by user");
if ( app.documents.length > 0 ) {
importFolderContents( getFolder() );
else{
Window.alert("You must open at least one document.");Thank you, nice job & I am looking forward to trying it out!
-
Error While running WLST script to create SOA Domain in Clustered Environme
Hi,
I am trying to run WLST script to create SOA Domain in clustered environment.The script is as follows.
import sys
print "@@@ Starting the script ..."
global props
from wlstModule import *#@UnusedWildImport
from java.io import FileInputStream
from java.io import File
#=======================================================================================
# Create Boot Properties File
#=======================================================================================
def createBootPropertiesFile(directoryPath, username, password):
adminserverDir = File(directoryPath)
bool = adminserverDir.mkdirs()
fileNew=open(directoryPath + '/boot.properties', 'w')
fileNew.write('username=%s\n' % username)
fileNew.write('password=%s\n' % password)
fileNew.flush()
fileNew.close()
def createNodeManagerPropertiesFile(directoryPath, username, password):
adminserverDir = File(directoryPath)
bool = adminserverDir.mkdirs()
fileNew=open(directoryPath + '/nm_password.properties', 'w')
fileNew.write('username=%s\n' % username)
fileNew.write('password=%s\n' % password)
fileNew.flush()
fileNew.close()
def createAdminStartupPropertiesFile(directoryPath, args):
adminserverDir = File(directoryPath)
bool = adminserverDir.mkdirs()
fileNew=open(directoryPath + '/startup.properties', 'w')
args=args.replace(':','\\:')
args=args.replace('=','\\=')
fileNew.write('Arguments=%s\n' % args)
fileNew.flush()
fileNew.close()
I am getting the error :
Problem invoking WLST - Traceback (innermost last):
(no code object) at line 0
File "D:\Oracle\Middleware\Oracle_SOA1\bin\SOADomainScript.py", line 11
adminserverDir = File(directoryPath)
^
SyntaxError: invalid syntax
Do i need to set any jar in the classpath? Already jython.jar is available in the classapath.
Thanks in advance.
Regards,
SubhaHi,
I am trying to run WLST script to create SOA Domain in clustered environment.The script is as follows.
import sys
print "@@@ Starting the script ..."
global props
from wlstModule import *#@UnusedWildImport
from java.io import FileInputStream
from java.io import File
#=======================================================================================
# Create Boot Properties File
#=======================================================================================
def createBootPropertiesFile(directoryPath, username, password):
adminserverDir = File(directoryPath)
bool = adminserverDir.mkdirs()
fileNew=open(directoryPath + '/boot.properties', 'w')
fileNew.write('username=%s\n' % username)
fileNew.write('password=%s\n' % password)
fileNew.flush()
fileNew.close()
def createNodeManagerPropertiesFile(directoryPath, username, password):
adminserverDir = File(directoryPath)
bool = adminserverDir.mkdirs()
fileNew=open(directoryPath + '/nm_password.properties', 'w')
fileNew.write('username=%s\n' % username)
fileNew.write('password=%s\n' % password)
fileNew.flush()
fileNew.close()
def createAdminStartupPropertiesFile(directoryPath, args):
adminserverDir = File(directoryPath)
bool = adminserverDir.mkdirs()
fileNew=open(directoryPath + '/startup.properties', 'w')
args=args.replace(':','\\:')
args=args.replace('=','\\=')
fileNew.write('Arguments=%s\n' % args)
fileNew.flush()
fileNew.close()
I am getting the error :
Problem invoking WLST - Traceback (innermost last):
(no code object) at line 0
File "D:\Oracle\Middleware\Oracle_SOA1\bin\SOADomainScript.py", line 11
adminserverDir = File(directoryPath)
^
SyntaxError: invalid syntax
Do i need to set any jar in the classpath? Already jython.jar is available in the classapath.
Thanks in advance.
Regards,
Subha -
Using XML file in Java script to create Google Map
Hello,
I work for a non-profit in San Diego as a GIS Specialist. I have had to teach myself about some scripting to create some dynamic maps, but I am still very limited in my skills, so I have had to explore the internet in order to discover various tutorials and examples that have led me on a positive path.
Right now I am working on a Google Mash-Up that will incorporate over 14,000 records, which will appear as separate markers that will have pop-up info bubbles with additional info inside (using html), once the marker is clicked.
Here is the XML script example that is used in the tutorial I am following:
<markers>
<marker lat="43.65654" lng="-79.90138" html="Some stuff to display in the<br>First Info Window"
label="Marker One" />
<marker lat="43.91892" lng="-78.89231" html="Some stuff to display in the<br>Second Info Window"
label="Marker Two" />
<marker lat="43.82589" lng="-79.10040" html="Some stuff to display in the<br>Third Info Window"
label="Marker Three" />
</markers>
...and this is how it looks when the file is retrieved by the java script and mapped: http://econym.googlepages.com/example_map3.htm
This is the java script that creates the Google Map. I have emboldened the section of the script that retrieves the data and parses it to create the markers:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Google Maps</title>
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA6GoL8P5zqjQlG5A5uM1ETBSUPozAscB0cY3RG8xEGnZyeom4axRySak889rVpvHYRsV4f9OZZzbboA"
type="text/javascript"></script>
</head>
<body onunload="GUnload()">
<!-- you can use tables or divs for the overall layout -->
<table border=1>
<tr>
<td>
<div id="map" style="width: 800px; height: 1200px"></div>
</td>
<td width = 200 valign="top" style="text-decoration: underline; color: #4444ff;">
<div id="side_bar"></div>
</td>
</tr>
</table>
<noscript><b>JavaScript must be enabled in order for you to use Google Maps.</b>
However, it seems JavaScript is either disabled or not supported by your browser.
To view Google Maps, enable JavaScript by changing your browser options, and then
try again.
</noscript>
<script type="text/javascript">
//<![CDATA[
if (GBrowserIsCompatible()) {
// this variable will collect the html which will eventualkly be placed in the side_bar
var side_bar_html = "";
// arrays to hold copies of the markers used by the side_bar
// because the function closure trick doesnt work there
var gmarkers = [];
var i = 0;
// A function to create the marker and set up the event window
function createMarker(point,name,html) {
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(html);
// save the info we need to use later for the side_bar
gmarkers[i] = marker;
// add a line to the side_bar html
side_bar_html += '<a href="javascript:myclick(' + i + ')">' + name + '</a><br>';
i++;
return marker;
// This function picks up the click and opens the corresponding info window
function myclick(i) {
GEvent.trigger(gmarkers, "click");
// create the map
var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng( 37.251699,-119.604315), 7);
*// Read the data from testXML2blackpoolformat.xml*
var request = GXmlHttp.create();
request.open("GET", "testXML2blackpoolformat.xml", true);
*request.onreadystatechange = function() {*
*if (request.readyState == 4) {*
var xmlDoc = GXml.parse(request.responseText);
*// obtain the array of markers and loop through it*
var markers = xmlDoc.documentElement.getElementsByTagName("ConnectoryRecord");
*for (var i = 0; i < markers.length; i++) {*
*// obtain the attribues of each marker*
*var lat = parseFloat(markers[i].getAttribute("lat"));*
*var lng = parseFloat(markers[i].getAttribute("lng"));*
var point = new GLatLng(lat,lng);
*var html = markers[i].getAttribute("html");*
*var label = markers[i].getAttribute("label");*
*// create the marker*
var marker = createMarker(point,label,html);
map.addOverlay(marker);
// put the assembled side_bar_html contents into the side_bar div
document.getElementById("side_bar").innerHTML = side_bar_html;
request.send(null);
else {
alert("Sorry, the Google Maps API is not compatible with this browser");
// This Javascript is based on code provided by the
// Blackpool Community Church Javascript Team
// http://www.commchurch.freeserve.co.uk/
// http://econym.googlepages.com/index.htm
//]]>
</script>
</body>
</html>
Here is my delima--
This is the xml format that I need to use because it can accept the rest of my excel file and loop it through the 14,000+ records to create a functioning xml file. This is just a sample (2 records) of the larger file:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<ConnectoryAug2008>
<ConnectoryRecord>
<lng>-117.03683</lng>
<lat>32.944505</lat>
<ConnectoryID>1</ConnectoryID>
<Name>$2.95 Guys</Name>
<StreetAddress>13750 Stowe Drive</StreetAddress>
<City>Poway</City>
<State>CA</State>
<Zip>92064</Zip>
<Marker>White</Marker>
<IndustryGroup>Technical Services</IndustryGroup>
<ConnectoryProfileLink>http://connectory.com/search/profile_view.aspx?connectoryId=1</ConnectoryProfileLink>
</ConnectoryRecord>
<ConnectoryRecord>
<lng>-117.272843</lng>
<lat>33.13337</lat>
<ConnectoryID>2</ConnectoryID>
<Name>(GLDS) Great Lakes Data Systems</Name>
<StreetAddress>5954 Priestly Drive</StreetAddress>
<City>Carlsbad</City>
<State>CA</State>
<Zip>92008</Zip>
<Marker>Orange</Marker>
<IndustryGroup>Technology</IndustryGroup>
<ConnectoryProfileLink>http://connectory.com/search/profile_view.aspx?connectoryId=2</ConnectoryProfileLink>
</ConnectoryRecord>
</ConnectoryAug2008>
This is the tutorial where I found the formatting techniques to successfully create the large xml file that will format/convert my excel file properly: http://www.mrexcel.com/tip064.shtml
These variables should appear as html in the info bubble:
<ConnectoryID>2</ConnectoryID>
<Name>(GLDS) Great Lakes Data Systems</Name>
<StreetAddress>5954 Priestly Drive</StreetAddress>
<City>Carlsbad</City>
<State>CA</State>
<Zip>92008</Zip>
<IndustryGroup>Technology</IndustryGroup>
<ConnectoryProfileLink>http://connectory.com/search/profile_view.aspx?connectoryId=2</ConnectoryProfileLink>
The "Marker" variable instructs Google Maps to label the marker with a particular color. I will be so grateful to the person(s) that helps me get through this wall that I have been hitting for a long time. It's very difficult without having the luxury of peers who know about these types of issues.
Thank you!!Here is the relationship: They both contain geographic coordinates that produce a point on a map. I will use the rest of the information in the second xml file (company name, address, link, etc.) to produce the information for the bubble that will pop up once the marker is clicked.
My problem is that I need to try to keep the second xml file in a relatively similar format, so the rest of my records will still be accepted. If I had a smaller amount of records I could place them directly into the javascript, but because there are so many records, I need to use an xml file that can be retrieved by the java script. I chose to use the second type of xml file because I can easily copy and past the 14,000+ records that are now in excel document.
After the xml issue is corrected I need to rework the javascript that is now emboldened so that it will read the new xml file correctly. I included the first xml file so that the readers will understand what type of xml format is currently being used to produce the markers in the tutorial map. -
Powershell Script to create "custom" Document Library
I have a powershell script which creates a Document Library for every user in AD.
This works, but rather than using the default Document Library I want it use a custom Document Library. However this isnt working.
My script to create the default Document Library is this...
[System.Reflection.Assembly]::Load("Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c")
$site = new-object Microsoft.SharePoint.SPSite("http://servername/sitename");
$siteweb = $site.OpenWeb();
$webs = $siteweb.Webs;
$strFilter = "(&(objectCategory=User)(name=accountname))"
$objDomain = New-Object System.DirectoryServices.DirectoryEntry
$objSearcher = New-Object System.DirectoryServices.DirectorySearcher
$objSearcher.SearchRoot = $objDomain
$objSearcher.PageSize = 1000
$objSearcher.Filter = $strFilter
$objSearcher.SearchScope = "Subtree"
$colProplist = "samaccountname"
foreach ($i in $colPropList){$objSearcher.PropertiesToLoad.Add($i)}
$colResults = $objSearcher.FindAll()
foreach ($objResult in $colResults)
$objItem = $objResult.Properties; $objItem.samaccountname
$listTemplate = [Microsoft.SharePoint.SPListTemplateType]::DocumentLibrary
$listId = $siteweb.Lists.Add($objItem.samaccountname, "", $listtemplate);
$list = $siteweb.Lists.GetList($listId, $true);
$roleDef = $siteweb.RoleDefinitions.GetByType("Contributor");
$user = "domain\" + $objItem.samaccountname;
$rolAssign = new-object Microsoft.SharePoint.SPRoleAssignment($user, "email", "name", "notes");
$rolAssign.RoleDefinitionBindings.Add($roleDef);
if(!$list.HasUniqueRoleAssignments)
{$list.BreakRoleInheritance($true);}
for ($i = $list.roleAssignments.Count - 1; $i -gt -1; $i--)
{ $list.RoleAssignments.Remove($i) }
$list.RoleAssignments.Add($rolAssign);
$list.Update();
Now I have a custom Document Library named "TESTLIB" so if I substitute the line:
$listTemplate = [Microsoft.SharePoint.SPListTemplateType]::DocumentLibrary
with
$listTemplate = [Microsoft.SharePoint.SPListTemplateType]::TESTLIB
Then it errors with this...
How can I script powershell to create a "custom" Document Library?
ThanksThe below link should help you in creating custom document library using powershell
http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/23/use-powershell-cmdlets-to-manage-sharepoint-document-libraries.aspx
Vinod H
Thanks for the link but I cant see anything to assist creating a custom library? Was there something in paticular you saw? -
[JS, CS3] Creating a new boolean object. Is it possible?
Hello,
I am wondering if I can create a new boolean object in InDesign that I can use in a script I am working on. What I am doing is selecting some text and then manipulating other aspects of the selection's paragraph. I want to be able to determine if certain characters are selected, so the new boolean object would be, let's say "selected." If a character within the paragraph is selected, it's value would be "true," while other characters in the paragraph that are not selected would remain "false." Is this possible? I am also thinking that I could use an already existing boolean value, such as strikeThrough and then turn it off at the end of the script. But this is not elegant if the text were to REALLY need strikeThrough (not very likely, but just sayin'). Thanks for any advice.
Regards,
Len SwierskiLen,
Your current approach is the only feasible one. You can't create new properties for Indesign's objects. In some cases it's easy: text frames, for instance, can have their label set to a certain value, as can several other objects (cells, the application, etc.).
But characters don't have the label property, so you have to use an existing property, as you did with overstrike. If you don't like using that particular one, have a look through the OMV under "Character" and see if there's a property that suits your needs better than overstrike.
What you can use use this: in a script you can assign a character (text, word, etc.) an underline colour without setting underline. In the interface you'd have to enable underline, then set a colour, then disable underline. In a script enabling and disabling underline isn't necessary: just set myCharacter.underlineColor to some value ('Black' for "yes", 'White' for "no" or something like that).
So though you can't add new properties to characters, they have so many already that you're sure to find one you can exploit.
Peter
Maybe you are looking for
-
How do I add more memory to my Imac, I only have 1GB of memory and need 2GB to download Yosemite?
-
How to Populate Values in Report for Fields
Hi Experts, I have a Report requirement where in I need to Populate values for FROM Period & TO Period based on the user i/p for Quarter variable. For Eg; Fiscal year : 2009 Quarter : 3 Mat Year From period ToPeriod QTY A
-
Macbook air 13 inch gets warm but fan doesn't turn on
I'm using a 13-inch Macbook Air Mid 2013, Two weeks ago someone broke into my parents house and stole my laptop. it's been a week that I got my laptop from police department and I feel like it gets warm but the fan does not turn on at all. I tried to
-
Export a PDF with Imposition and wraparound
Hi everybody, I'm a relative newbie here, and I apologize for that. I'm looking for some help in CS5 with imposition. Specifically: I created a 28 page booklet, 8.5x11, for a client that has 28 pages. Same booklet as last year. However, this year
-
RTX 4088 Access over router/network?
I recently bought the RTX 4088 Skype cordless phone. On initial setup, everything went fine, connected to skype and the router, placed calls, did the firmware upgrade, everything went smoothly. However... I went to re-register the handset to the b