Script to spell the state abbreviations
Is there a script to make explicit the state abbreviations? For example, to change that in California and so on.
The link in this thread is broken. Try it live:
http://www.InDesignSecrets.com/downloads/forcedl/stateAbbreviations.jsx
Tags: InDesign
Similar Questions
-
Capitalized auto of the state abbreviations in the text field?
I work in an address field in a form I did a layout automatically capitalized the first letter of each word listed (this form is transferred to the iPads of our sellers, so they don't have to worry about formatting while they are on the ground with a client). I have a validation script reads:
Event.Value = event.value.toLowerCase () replace (/ \b\w/g, function (match) {return match.toUpperCase () ;});})
It would make an input value:
"Mr. client man .
false address 123
baltimore, md 21227.
post automatically to:
"Mr. customer man .
false address 123
Baltimore, Md 21227"
The only downside is with this script is the abbreviation of the State should be capitalized (in this case "Md" should appear "MD" - even when entered as "md"). I'm not competent enough to write a script to do this, and I don't know yet if it is possible - but is it possible that a field can automatically recognize a state abbreviation?
Also far that go for solutions to this problem, I can add or change the script, but I can't add a separate field with its own rules, so I hope someone might have a plausible solution.
Thanks for any idea that you can provide!
I think that your best option is to use a set of commands like this:
Event.Value = event.value.replace (/ md /ig, "MD");
-
Hi all and
LucD The champion!
I'm looking for a power-cli script to verify the State of VM-tools of all the virtual machines in the cluster multi environment. Could you please help me on this. It would be really appreciated.
Thank you. in advance.
Concerning
Nauman
Try like this
$report = @)
{foreach ($cluster Get-cluster)
foreach ($rp in Get-ResourcePool-location $cluster) {}
foreach ($vm in (Get-VM-location the $rp)) {}
$report += get-disk hard - VM $vm |
Select @{N = "Cluster"; E = {$cluster. Name}},
@{N = "ResourcePool"; E = {$rp. Name}},
@{N = "VM"; E = {$vm. Name}},
@{N = 'Tools status'; E = {$vm. ExtensionData.Guest.ToolsStatus}},
@{N = 'HD'; E={$_. Name}},
@{N = "Datastore"; E={($_. Filename.Split(']') [0]). TrimStart('[')}},
@{N = 'Filename'; E={($_. Filename.Split('_') [1]). "Split('/') [0]}},"
@{N = 'Path VMDK'; E={$_. File name}}.
@{N = "Format"; E={$_. StorageFormat}},
@{N = ' Type'; E={$_. DiskType}},
@{N = "CapacityGB"; E={$_. CapacityGB}}
}
}
}
$report | Export Csv C:\temp\report.csv - NoTypeInformation - UseCulture
-
FDMEE: Unable to capture the State of the successful import flag in the afterimport script
Hello Experts,
I am facing a problem in the import successful FDMEE shot.
I have an obligation to send e-mail notifications on import successful and unsuccessful import mentioning status.
I tried to use variables:
1 set objProcessStatus = objFDMAPI.API.MaintenanceMgr.fProcessStatus (strLoc, strCat, strPer, strRulID)
objProcessStatus.blnImp
The objProcessStatus.blnImp value is always returned as 'false' regardless of the State of importation (successful & unsuccessful both cases)
2. I tried with objProcessStatus.lngStatus,
Here also, the returned value is always '0', regardless of the status of the import.
3. I tried to capture the "PROCESSIMP" of TLOGPROCESS and the value of PROCESSIMP is always 0 even on successful importation.
While the fish turns Orange Import indicating a successful import.
Need help in an effective way to capture the flag of the State of import successful.
Sample code I use to capture the State:
Dim lngStateCheck
Dim objProcessStatus
Dim stat
strLoc = objFDMAPI.API.State.LocName
strLocKey = objFDMAPI.API.State.LocKey
strCat = objFDMAPI.API.State.CatName
strCatKey = objFDMAPI.API.State.CatKey
strPer = objFDMAPI.API.State.PeriodKey
strRulID = objFDMAPI.API.State.RuleID
WScript.Echo "key location" & strLocKey
WScript.Echo "ID of the rule" & strRulID
WScript.Echo "Partition key" & strLocKey
WScript.Echo strPeriodKey & "period"
"The value of object process status indicator.
Set objProcessStatus = objFDMAPI.API.MaintenanceMgr.fProcessStatus (strLoc, strCat, strPer, strRulID)
Set FSO = CreateObject ("Scripting.FileSystemObject")
Set FSO = writefile. OpenTextFile("E:\FDMEE\data\scripts\debug.txt",8)
«I am here and my value is» WriteFile.WriteLine
WriteFile.WriteLine objProcessStatus.blnImp
WriteFile.WriteLine objProcessStatus.lngStatus
WriteFile.Close
'Destroy objects '.
objFDMAPI.Dispose
Set objFDMAPI = Nothing
********************************
Save file entry of PROCESSIMP: (the following query is in the log file indicating that PROCESSIMP is updated as 0)
2015-09-01 11:15:08, 008 [AIF] DEBUG:
UPDATE TLOGPROCESS
SET PROCESSENDTIME = CURRENT_TIMESTAMP
PROCESSSTATUS = 0
PROCESSIMP = 0
PROCESSVAL = 0
PROCESSEXP = 0
PROCESSENTLOAD = 0
PROCESSENTVAL = 0
BLNWCDIRTY = 0
BLNLOGICDIRTY = 0
BLNVALDIRTY = 0
PROCESSIMPNOTE = NULL
PROCESSVALNOTE = NULL
PROCESSEXPNOTE = NULL
PROCESSENTLOADNOTE = NULL
PROCESSENTVALNOTE = NULL
WHERE PARTITIONKEY = 37 AND CATKEY = 1 AND PERIODKEY = ' 2017-01-31' AND RULE_ID = 56
I tried to print the values of IMPSTATUS in afterimport & befValidate script.
The value of AfterImport is = 0
While in BefValidate = 1
This proves that the value of the indicator of State for IMPSTATUS is changed after the afterimport of script is executed.
Thanks for your time and your help.
-
Scripts to get information about the State of health
Does anyone have examples of scripts that queries an ESXi 4 host for the info on the State of health or the tabs of the condition of the equipment? I'm looking for something simple (ideally less lines of code) so even if it returns some info about the CPU of the host who would be perfect.
Thank you.
The following script displays the status of the sensors of an ESX Server:
$VMHostName = "YourEsxServerName" $HostView = Get-VMHost -Name $VMHostName | Get-View $HealthStatusSystem = Get-View $HostView.ConfigManager.HealthStatusSystem $SystemHealthInfo = $HealthStatusSystem.Runtime.SystemHealthInfo ForEach ($Sensor in $SystemHealthInfo.NumericSensorInfo) { $Report = "" | Select-Object VMHost,Sensor,Status $Report.VMHost = $VMHostName $Report.Sensor = $Sensor.Name $Report.Status = $Sensor.HealthState.Key $Report }
-
Script to make the button stay on State hit until the other is clicked!
Hello
Got a little problem that I can't solve.
I have a line of 5 buttons including each links to a different page. These buttons are currently in a clip.
However, I would like to create an effect where when a user clicks on it remains highlighted. that is still on the State of success, until the user clicks one of the buttons.
I would have thought it would be somethink that I could find online, but carnt seem to find anywhere.
I found the code to make a point to stay on when you click on it, but it works on its own in the entire movie clip, so it has no effect when you click on other buttons on!
Have tried the script below, but I'm sure that this will not work because it is not a link to the other buttons at all.
on {(press)
if (this ._currentframe == 1) {}this.gotoAndStop (2);{ } else {}this.gotoAndStop (1);}}Thanks for any help!You are welcome. Here is a slightly condensed version of the same thing...
var lastBtnUsed;
Btn1.onRelease = btn2.onRelease = btn3.onRelease = btn4.onRelease = function() {}
processBtns (this);
}function processBtns (newBtn) {}
If (lastBtnUsed! = null & lastBtnUsed! = newBtn) {}
lastBtnUsed.gotoAndStop (1);
}
lastBtnUsed = newBtn;
newBtn.gotoAndStop (2);
} -
Script to insert the date of a certain range of periods
This is my situation. There is a call from thing in convention in Oracle EBS capital proportion.
I have to make a rule of prorated on a daily basis.
The first date starts at the year 1942. I can do it manually, but continually press TAB on my keyboard it'll take more than 4 hours to complete all the data until 2015.
That's why I need a script to enter in the
START_DATE
END_DATE
PRORATE_DATE
Ex
1 JANUARY 1949 START_DATE END_DATE 1 JANUARY 1949 PRORATE_DATE 1 JANUARY 1949
JANUARY 2, 1949 START_DATE END_DATE 2 JANUARY 1949 PRORATE_DATE JANUARY 2, 1949
JANUARY 3, 1949 START_DATE END_DATE 3 JANUARY 1949 PRORATE_DATE JANUARY 3, 1949
'
'
'
31 DECEMBER 2015 START_DATE END_DATE DECEMBER 31, 2015 PRORATE_DATE 31 DECEMBER 2015
Hello
Here's a way
INSERT INTO table_x (start_date, end_date, prorate_date)
WITH params AS
(
SELECT DATE ' 1942-01-01' first_date - OR 1949, or something else
, DATE '' 2015-12-31 AS last_date
OF the double
)
all_dts AS
(
SELECT the LEVEL - 1 AS dt + first_date
OF params
CONNECT BY LEVEL<= 1="" +="" last_date="" -="">=>
)
SELECT dt, dt, dt
Of all_dts
;
I hope that answers your question.
If this isn't the case, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data. After all right on this site, without the parts attached.
If you ask a DML statement, such as INSERT, INSERT statements, you post (as applicable) will be the content of the or the tables before the DML, and the results will be the State of the or a modified tables when it's all over.
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum:Re: 2. How can I ask a question on the forums?
-
Hi people,
Need help, the example requires that the value of packet data 'g_var' must be updated in the session/s connected everywhere without the session/s to be disconnected and reconnected.
Here's the scenario:I created a table my_table having the pair name / value.
A variable with global package "g_var' in his body and a get accessor method to access g_var variable from the outside world.
This variable g_var is initialized within the block of the entry into force of the package and retrieves the current value of the variable from my_table.
When I update the value in the table a trigger on my_table would reset the State of the package and therefore g_var to the most recent value in the same session
All is well so far since the change in value is reflected in the current session, but if I've already connected session/s
and I'm trying to retrieve the value of "g_var", it is not updated in already connected sessions and remains the same before the update.
Can U help please how can I update this value in a session/s connected without having to disconnect and reconnect.
because if I disconnect and reconect the existing sessions, it seems to show the updated value.Thanks in advance.
Kind regards
Gaurav RajputHere are the Scripts:
drop table my_table;
create table my_table
(
my_variable_name varchar2 (100),
number of my_variable_value
);create or replace package my_package as
Function get_g_var return number;
end my_package;
/create or replace package body my_package as
number of g_var;
Function get_g_var return number is
Start
Return g_var;
exception
while others then
lift;
end get_g_var;
procedure init (my_passed_name varchar2) is
Start
Select my_variable_value in the g_var from my_table where my_variable_name = my_passed_name;
exception
while others then
raise_application_error (-20004, "I got an error during Init");
end init;Start
init ('$'); -This is a call to time when the package is loaded into the memory of session
exception
while others then
raise_application_error (-20003, 'Error in my_package');
end my_pACkage;/
create or replace TRIGGER my_trigger
BEFORE DELETE OR UPDATE
ON my_table
FOR EACH LINE
declare
number of my_ret;
Start
DBMS_SESSION.modify_package_state (DBMS_SESSION. RESET);
exception
while others then
lift;
end my_trigger;/
-It is initially set to null
insert into my_table values ('DOLLAR', 62);
commit;-test value for first time to package loading (62 views)
Select * from my_table;Set serveroutput on
declare
my_variable varchar2 (100);
BEGIN
my_variable: = my_package.get_g_var;
dbms_output.put_line ($my_var);
END;-run the same block of end to start in another session it shows 62. All is well so far
-check if the value after the update in the same session (shows 38), also check in another before the connected session as well (shows 62 and not 38)
Update my_table set my_variable_value = 38 where my_variable_name = "DOLLAR";
commit;Select * from my_table;
Set serveroutput on
-It displays 38 in this session, but there in an already connected session 62 and only after you log out shows 38
declare
my_variable varchar2 (100);
BEGIN
-my_variable: = my_package.g_var;
my_variable: = my_package.get_g_var;
dbms_output.put_line ($my_var);
END;Package variables are stored in the private memory (PGA). The value is not visible in the session. A package variable is therefore not approach appropriate to your problem. You can look at in the context of the Application, as Solomon has said.
http://docs.Oracle.com/CD/B28359_01/network.111/B28531/app_context.htm#CIHFJHCG
-
Trying to figure out if I can implement a conditional script based on the size of the font of a text layer.
For example, if the font is 10 pt then _, 12 pt then _, 14 pt then___.
Is it feasible with scripts?
Thank you
Tim
If you use more than one if else statements, you can do it. You can either have a range with each if statement or a cascade range.
var doc = activeDocument; var dL = doc.activelayer; var textSize = dL.textItem.size; //using range if:
-
script to change the data type of column
Hi gurus of the oracle.
I have 190 tables in my database.
I have the column type CHAR of all these tables data.
I need to change the data type of CHAR in VARCHAR2 for all these tables...
There the script to change the data type of all tables at once?
Please help me in this regard.
Thanks in advance
Concerning
REDA
Hello
There is nothing built-in to Oracle SQL to do. Maybe your front-end has certain characteristics.
You can write dynamic SQL statements to do. In other words, you can write a query that the output is a SQL script like this:
ALTER TABLE TABLE_A CHANGE (A_TXT1 VARCHAR2 (5))
A_TXT2 VARCHAR2 (10));
ALTER TABLE TABLE_B CHANGE (B_TXT1 VARCHAR2 (5));
with one row for each column of type CHAR. Notice how the first line of output for each table begins with ALTER TABLE... but the later lines at the same table. Similarly, the last line of a table (which will be the same as the first row, if the table has only one column of type CHAR) to end with a semicolon, but other lines are not.
Here's a way to generate and execute such a dynamic script in SQL * more:
-Disable the features that make the output easy to read, but hinder the execution
SET FEEDBACK OFF
SET LINESIZE 500
SET PAGESIZE 0-Create fix_char.sql
COIL c:\some_pathename\fix_char.sqlSELECT THE CHECK BOX
WHEN ROW_NUMBER () OVER (PARTITION BY table_name
ORDER BY column_name
) = 1
THEN 'ALTER TABLE ' | table-name
|| "CHANGE (").
ELSE «»
END
|| column_name
|| "VARCHAR2 (').
|| DATA_LENGTH
|| ')'
|| CASE
WHEN ROW_NUMBER () OVER (PARTITION BY table_name
ORDER BY column_name DESC
) = 1
THEN '); "
Output END AS
Of user_tab_columns
WHERE data_type = "CHAR".
ORDER BY table_name
column_name
;SPOOL OFF
-Turn on the features that make the output easy to read, but hinder the execution
SET FEEDBACK ON
SET LINESIZE 80
SET PAGESIZE 50-Fix_char.sql performance
@c:\some_pathname\fix_charIt's good to change all the CHARIOT of VARCHAR2 columns. The CHAR data type is nothing trouble.
-
Form - enter the names of the State/province drop-down list
Hello again,
I use Acrobat Pro DC using a MC Pro and I want to create a list drop-down States and provinces on my form. After clicking Properties and then Options, is there a way to enter all state names at the same time instead of adding one by one? I know there are scripts out there, but I thought that I could create the list that I needed from the List of States - 50 AMERICAN States - Canadian Provinces - Australian States - Mexican States - Brazilian - States ListStates.co... and copy and paste them.
I read on the drop-down lists, but I don't see that he offered to DC Pro. Please correct me if I'm wrong.
Thank you.
Yes, it's possible, but it takes using a script.
The basic format of this script is:
this.getField("DropDownName").setItems (["Alaska", "Alabama",...]);
If you have the items in a text file or a spreadsheet and want to import at the same time you can use a tool like this, I developed, which can be purchased here: Scripts custom Adobe: Acrobat - items import from a text file to a combo box or a list box
I also offer a free sample with all 50 US States file field drop-down list that you can copy and use in your own file.
-
rename several virtual machines based on the State of food &; VM name
I'm looking for a powershell script to rename the virtual machine based on the state name and vm power. For example, I have several virtual machines with a - temp at the end of the name of the server. Some are turned on and some are turned off. I am wanting to rename only those who is off
Thank you
tjw82
Assuming that - temp is part of the name
Get - vm | where {$_.powerstate - eq "poweredoff"} | foreach {Set-machine virtual - VM $_ - name (($_.name).)} Replace ("temp", "delete"))}
-
Retrieve the State of the power supply
Hello
I am currently using the wonderful listVMByFolder script (http://communities.vmware.com/docs/DOC-10059), and I would like to know how I can retrieve the State of each virtual machine supply, I have the list. I've been using the Perl SDK for about 2 days (Yes, there is not a lot), and while I understand how I would 'normally', I don't do not understand how to retrieve this information while being in such a statement:
If ($child_view-> isa ("VirtualMachine"))
{
# Some code here
}How can I retrieve this information because I don't really work on a VM object, that I would find in any tutorial out there, like something like this:
My $vms = Vim::find_entity_views (view_type = > 'VirtualMachine');
foreach (@$vms)
{
Print "VM:". "." $_-> config-> name. ", powerstate:". "." $_-> performance - > powerState-> val. "\n";
}
I thank you and have a nice day!
Was just when I saw that you caught the misspelling
-
Unable to display the State of the material.
Hi all
Using esxi 4.1 with vcenter 5.0, but when I click on each host and go to the State of the material I couldn't see anything. the message I get there
"No new available given host. Data will be updated in 5 minutes"
even after 5 minutes, nothing happens, I refreshed this page, clicked on update nothing happens.
After searching on Google, I came to the link below. What status you must have the permissions. But here, I have the full privileges, am the vcenter administrator and host.
One fell on it, please help in this regard, I need to monitor and check the hardware of the server also know if any material questions.
Concerning
Riadh Gunnal
Guys, I found the solution. At least it works for me. I don't remember the website, but it was half correct, it lacked a single step.
1 stop the vCenter inventory service
2 - remove all the contents of C:\Program Files\VMware\Infrastructure\Inventory Service\data
3 - go to C:\Program Files\VMware\Infrastructure\Inventory Service\scripts\ and run createDB.bat
4 - run register.bat with your server name. FQDN Register.bat 443
5 start the vCenter inventory service.
And that's all!
My environment: VCenter 5 update vCenter 4.1. Same host, same name.
-
I pasted the statement in my form and it had no more syntax errors, but now he is not actually create the code. I type the name and a phone number, but nothing happens?
If you need more info ask please. I don't know what else to post for help.
Form1. #subform [0]. CustCode:initialize - (FormCalc, client)
Here, you see what is the initialize event, and you can change the event on any field of the form
In looking from the top of the script editor, you can see there is Show: with a DropDownList on the side, you can choose all events from there, choose so calculate and make sure you are in formcalc
Maybe you are looking for
-
Function key does not work do not
Recently I bought HP 15R laptop 036TU. Function keys do not work correctly. As if, press F2 it adjusts the brightness rather than change the name of the folder. PL suggest what parameter changes are required. Thanks, Nitin.
-
How to scan a document
-
Strange behavior of the run LabVIEW VI 2013 LabVIEW 7.1
I'm trying to extract some data hardcoded from old code LabVIEW 7.1 and decided to write a small program in 2013 of LabVIEW. The program opens a reference to a VI 7.1, search enums and call it with reference to all combinations of enums. Actually qui
-
Computer is automatically loged off as he loged in. does not work in SafeMode as well.
Have you tried safe mode and other options window advance but could not cross.
-
HP Pavilion 15-p027TX: upgrade the memory for computer laptop HP Pavilion 15-p027TX
Hi all I want to improve my latop memeory. The current installation shows 4 GB. When you browse through the documents I can see that you have 2 slots. But in some sites, that it is shown that the 2 slots are used. How will I know if the two slots are