Same script for three scenarios
Need to run the same script for three scenarios. N+1, N+2, N+3 at the same time, every time. I dont wish to replicate into three scripts yet dont know how to combine into one script ! The volumes for each scenario is used to calculate dollarcost. The BUD scenario used in the script below is intentional ie if rate exists in budget, multiply by volumes of various scenarios.
Existing script
FIX(_SCENARIO_,"FY10","AUD")
fix(@IDESCENDANTS("DIV 1"),@IDESCENDANTS("DIV 2"))
"DollarCost1"
(IF("Rate1"->"BUD"->"AUD"-> "Division"-> "P13" > 0)
"DollarCost1" = "Rate1"->"BUD"->"AUD"->"Division"->"P13" * "Litres"->"*SCENARIO*";
ELSE "DollarCost1" = "ActCost1";
ENDIF;)
"DollarCost2"
(IF("Rate2"->"BUD"->"AUD"-> "Division"->"P13" > 0)
"DollarCost2" = "Rate2"->"BUD"->"AUD"->"Division"->"P13" * "Litres"->"*SCENARIO*";
ELSE "DollarCost2" = "ActCost2";
ENDIF;)
"DollarCost3"
(IF("Rate3"->"BUD"->"AUD"-> "Division"->"P13" > 0)
"DollarCost3" = "Rate3"->"BUD"->"AUD"->"Division"->"P13" * "Litres"->"*SCENARIO*";
ELSE "DollarCost3" = "ActCost3";
ENDIF;)
"DollarCost4"
(IF("Rate4"->"BUD"->"AUD"-> "Division" ->"P13" 0)
"DollarCost4" = "Rate4"->"BUD"->"AUD"->"Division ->"P13" * "Litres"->"*SCENARIO*";
ELSE "DollarCost4" = "ActCost4";
ENDIF;)
ENDFIX
May be lame but a possibility:
FIX(_N+1, N+2, N+3_,"FY10","AUD")
fix(@IDESCENDANTS("DIV 1"),@IDESCENDANTS("DIV 2"))
"DollarCost1"
(IF("Rate1"->"BUD"->"AUD"-> "Division"-> "P13" > 0)
"DollarCost1" -> N+1 = "Rate1"->"BUD"->"AUD"->"Division"->"P13" * "Litres"->"*N+1*";
"DollarCost1" -> N+2 = "Rate1"->"BUD"->"AUD"->"Division"->"P13" * "Litres"->"*N+2*";
"DollarCost1" -> N+3 = "Rate1"->"BUD"->"AUD"->"Division"->"P13" * "Litres"->"*N+3*";
ELSE "DollarCost1" -> N+1 = "ActCost1-> N+1";
"DollarCost1" -> N+2 = "ActCost1-> N+2;
"DollarCost1" -> N+3 = "ActCost1-> N+3;
ENDIF;)
Or is there a better way of doing this?
Similar Messages
-
How to use the same script for multiple buttons
Hi,
I've only just started using flash so any help would be great!
I'm creating a blockbusters type game, I have a grid of 20 buttons and I need them (individually) to turn blue on click and red on double click. I've managed to do it with the first one using this code;
var clicked:Boolean = false;
bn1.addEventListener(MouseEvent.CLICK, bn1click);
function bn1click(event:MouseEvent):void {
clicked = true;
var newColorTransform:ColorTransform = bn1.transform.colorTransform;
if(clicked){
newColorTransform.color = 0x064258;
bn1.transform.colorTransform = newColorTransform;
bn1.doubleClickEnabled = true;
var doubleclicked:Boolean = false;
bn1.addEventListener(MouseEvent.DOUBLE_CLICK, bn1dclick);
function bn1dclick(event:MouseEvent):void {
doubleclicked = true;
var newColorTransform:ColorTransform = bn1.transform.colorTransform;
if(clicked){
newColorTransform.color = 0xac1e23;
bn1.transform.colorTransform = newColorTransform;
Now I'm having trouble getting the same to work for the rest of the buttons, they are each named bn2, bn3 etc. They need to work individually and remain blue/red once clicked. I've tried listing them as addEventListener commands but not having a great deal of success!
Any help would be greatly appreciated, thanks!
TomoOne way to do this is to use arrays to keep track of the buttons and their properties.
var buttonList:Array = new Array(bn1,bn2,bn3);
var clickedList:Array = new Array();
var doubleClickedList:Array = new Array();
//then use a for loop to assign the functions and properties for each button:
var thisMany:int = buttonList.length; // this will give you the number of items in the buttonList array
for(var i:int = 0; i<thisMany; i++) {
buttonList[i].addEventListener(MouseEvent.CLICK,btnClick); // assign the click function to each button
buttonList[i].addEventListener(MouseEvent.DOUBLE_CLICK,btnDClick); // assign the double click function
clickedList.push(false); // add a false value for each button to this array
doubleClickedList.push(false);
buttonList[i].doubleClickEnabled = true; // set the double click property for each button
function btnClick(event:MouseEvent):void {
var thisButton:int = buttonList.indexOf(event.target); // figure out which button was clicked as an item in the array
clickedList[thisButton] = true; // change the value in the array
var newColorTransform:ColorTransform = buttonList[thisButton].transform.colorTransform;
if(clickedList[thisButton]){
newColorTransform.color = 0x064258;
buttonList[thisButton].transform.colorTransform = newColorTransform;
function btnDClick(event:MouseEvent):void {
var thisButton:int = buttonList.indexOf(event.target);
doubleClickedList[thisButton] = true;
var newColorTransform:ColorTransform = buttonList[thisButton].transform.colorTransform;
if(doubleClickedList[thisButton]){
newColorTransform.color = 0xac1e23;
buttonList[thisButton].transform.colorTransform = newColorTransform;
Now you can have any number of buttons, just add their instance names to the array at the top. -
Custom calculation script for checkboxs
Hello,
Can anyone help me out with custom calculation script for this? I have two mutually exclusive checkboxes that, when checked, I want to populate data into other text fields.
If Checkbox1 is checked:
Company1=Warehouse Alpha
Address1=1234 Any Street
City/State/Zip1= Los Angeles, CA 90020
Contact Name1= Mr. Nice Guy
Phone Number1= 213-854-8565
Email1=[email protected]
If Checkbox2 is checked:
Company2=Warehouse Beta
Address2= 5678 Awesome Blvd.
City/State/Zip2= San Bernardino, CA 96545
Contact Name2= Mr. Handsome
Phone Number2= 909-824-8265
Email2=[email protected]
Thanks,
BryanSo one has two check boxes and one wants them to be mutually exclusive. Name them the same and change the export value of the field. Try it and observe what happens as you check the different check boxes.
You have described what happens if either box is checked but what happens when a checked box Is unckecked?
One can place scripts in many locations. I would use a mouse up action for both the check boxes, use the same script for both check boxes.
I would assume you are using the following names for the fields to populate:
Company
Address
CityStateZip
ContactName
PhoneNumber
Email
// Mouse up action for both check boxes;
// initial value for the fields:
this.getField("Company"),value = "";
this.getField("CityStateZip"),value = "";
this.getField("ContactName"),value = "";
this.getField("PhoneNumber"),value = "";
this.getField("Email"),value = "";
// test for check box value for selected box;
if(event.value == 1) {
this.getField("Company"),value = "Warehouse Alpha";
this.getField("CityStateZip"),value = "1234 Any Street";
this.getField("ContactName"),value = "Los Angeles, CA 90020";
this.getField("PhoneNumber"),value = "213-854-8565";
this.getField("Email"),value = "[email protected]";
if(event.value == 2) {
this.getField("Company"),value = "Warehouse Beta";
this.getField("CityStateZip"),value = "5678 Awesome Blvd.";
this.getField("ContactName"),value = "San Bernardino, CA 96545";
this.getField("PhoneNumber"),value = "Mr. Handsome";
this.getField("Email"),value = "[email protected]";
// end Mouse up action for both check boxes; -
Hi,
I have written shell script for below scenarios, can you please guide me to write this as correct way, requirment is,
1. i need to connect the database which is on unix server , but before connecting the DB some of the files needs to be removed from \tmp directory.
2. once removed the script need to connect the database and call the sql file which is in \tmp directory.
3. the output files will be stored in \tmp directory start with DB name.
4. finally csv files needs to be transferred to local windows with help of FTP. please find below the script
#!/bin/sh
rm -f /tmp/dbmon/DB1*
CONNSTRING=username/PASSWORD@service
sqlplus -s $CONNSTRING @/tmp/STATS.sql << EOF
EXIT;
EOF
HOST='xxxxx'
USER='xxxxx'
PASSWD='xxxxxx'
FILE='E:\STATS\DB1.*'
cd /tmp/dbmon
ftp -n -v $HOST << EOT
user $USER $PASSWD
prompt
mput $FILE
bye
EOT
EXIT;
EOF
Thanks
Edited by: ASP on Nov 18, 2011 4:45 PMHi ASP
It's always a good idea to write entries to timestamped log file without which you will never know where the script went wrong or failed.
This is not tested but just a small example
#!/bin/sh
export LOG_DIR=/tmp/log
export LOGFILE=$LOG_DIR/`basename $0`_${TIMESTAMP}.log
if [ ! -d $LOG_DIR ]
then
mkdir $LOG_DIR
fi
echo "Removing the temporary files from /tmp/dbmon at `date +%Y%m%d_%H:%M:%S`" | tee -a $LOG_FILE
rm -f /tmp/dbmon/DB1*
CONNSTRING=username/PASSWORD@service
echo "Run SQLPlus file" | tee -a $LOG_FILE
sqlplus -s $CONNSTRING @/tmp/STATS.sql << EOF
EXIT;
EOF
echo "Now FTP the files to windows box " | tee -a $LOG_FILE
HOST='xxxxx'
USER='xxxxx'
PASSWD='xxxxxx'
cd /tmp/dbmon
ftp -vn $HOST <<EOF
quote USER $USER
quote PASS $PASSWD
ascii
cd E:\STATS
mput DB1.*
bye
EOF -
Is there an updatedcrossrefs script for InDesign CS6
Running Mac Pro/2.66 GHz—Quad-Core Intel Xeon/Snow Leopard/
OS/Mac OS X Version 10.6.2/2.66 GHz
I converted a CS3 InDesign that uses the script "updatedcrossrefs.js", to CS6 InDesign. This file uses hyperlinks on the TOC and Index.
I tried using the same script for CS3 InDesign in CS6 InDesign but it does not work.
This is the error message "Could not catch page. Check destination names and existence."
Is there an updated script for CS6?Sorry did not know I was using bold. My co-worker found this script however, she does not work here anymore. But here is the script. I know nothing about scripts except how to use them. Sorry.
// Updatecrossrefs.js
// Updates cross references made with hyperlinks
// the hyperlink destination is where the reference refers to
// the hyperlink sourcetext is the text that will be updated (like see xx)
// If a book is open, the book will be handled,
// if no book is open, the active document will be handled.
// Made by Teus de Jong, last version April 10, 2006
// Revisions by Dave Saunders January 22, 2006 and March 20, 2006
// Thanks Dave!
// Added unique naming mechanism for sources -- October, 2008
if (app.books.length == 0){
if (app.documents.length == 0){
errorExit('No documents are open');
} else {
nrofdocs = 1;
doc = app.activeDocument;
} else {
nrofdocs = app.books[0].bookContents.length;
for (i = nrofdocs - 1; i > -1; i--) {
if (app.books[0].bookContents[i].status != BookContentStatus.documentIsOpen)
app.open(File(app.books[0].bookContents[i].fullName));
doc = app.open(app.books[0].bookContents[0].fullName);
for (d = 1; d <= nrofdocs; d++){
for (i = 0; i < doc.hyperlinks.length; i++){
hyper = doc.hyperlinks[i];
// leave ID's own internal markers alone
if (hyper.name.substring(0, 1) == '.'){continue}
// leave hyperlinks to URLs alone
try {
if (hyper.destination.constructor.name == 'HyperlinkURLDestination'){continue}
} catch (e) {
hyper.showSource();
errorExit('Selected hyperlink has undefined destination');
s = hyper.source.name;
// added October, 2008
// sometimes ID's unique name mechanism for sources fails; make sure the source has
// the same name as the hyperlink + '_src'
if (s != hyper.name + '_src')
hyper.source.name = hyper.name + '_src';
if (hyper.destination.constructor.name == 'HyperlinkTextDestination'){
s = getParentPageName(hyper.destination.destinationText);
} else {
// try/catch added to allow for hyperlinks that have lost their destination -- Dave
try {
s = hyper.destination.destinationPage.name;
} catch (e) { continue }
if (s != ''){
// Check to see if update needed; saves a lot of time when processing large books -- Dave
if (hyper.source.sourceText.contents != s) {
hyper.source.sourceText.contents = s;
if (d >= nrofdocs){
break;
doc = app.open(app.books[0].bookContents[d].fullName);
function getParentPageName(txt){
try {
var myFrame = getParentTextFrame(txt);
var pag = myFrame.parent;
while (pag.constructor.name != 'Page'){
// in case the reference is in an inline, the parent of the frame is a character
if (pag.constructor.name == 'Character'){
pag = getParentTextFrame(pag);
// in case the chain goes sour, back out
if (pag.constructor.name == 'Application'){
throw 'Error';
pag = pag.parent;
return(pag.name);
catch (e) {
alert('Could not catch page.\nCheck destination names and existence.');
return('');
function getParentTextFrame(x){
if(app.version == 3){
return(x.parentTextFrame);
else {
return(x.parentTextFrames[0]);
function errorExit(s){
alert(s);
exit(); -
Scripts for exp and imp in linux
please give me some links for exp and imp tables peridical bactch script in oracle 10 R2 over RHEL 4.5.
user13653962 wrote:
please give me some links for exp and imp tables peridical bactch script in oracle 10 R2 over RHEL 4.5.try this.. change the same script for your environment
$ crontab -l
00 22 * * * sh /u01/db/scripts/testing_user1.sh
$ cat /u01/db/scripts/testing_user1.sh
. /home/oracle/TEST1.env
export ORACLE_SID=TEST1
export ORA_USER=dbdump
export ORA_PASSWORD=dbdump
export TNS_ALIAS=TEST1
expdp $ORA_USER/$ORA_PASSWORD@$TNS_ALIAS tables=YOUR_tables_NAMEs dumpfile=TEST_`date +'%Y-%m-%d`.dmp directory=YOUR_DUMPDIR logfile=TEST_`date +'%Y-%m-%d`.logif you need for original export change the exp command,
exp username/password tables=table_name1,table_name2,etc... file=your_file_name log=your_log_file_name -
Is there any upgrade checking script for PL upgrade
Dear Experts,
I know there are Pre-upgrade checking script to validate database integrity before an upgrade from 2005 to 2007.
However, is there any such similar scripts for an upgrade from 2007 PL12 to PL13? (Inter PL upgrade) or can I use the same script for the same purpose?
Much Thanks!
Warmest Regards,
ChinhoHi Gordon,
Thank you for your reply. Is it true that within inter-patch upgrades, there are no database structure change?
I asked this question because sometimes I get "DB is inconsistent" error after upgrade, and I don't know why?
Much Thanks for your Advice thus far!
Warmest Regards,
Chinho -
Script for Compare same table 'TAB1' structures in different schemas
Hello, i am having three schema and in all schema i have same table for example TAB1 and i want to Compare TAB1 table structures in all three schema but i don't know the script. the different should content at least DATA_TYPE,DATA_LENGTH,DECODE(DATA_PRECISION,NULL,NULL,DATA_PRECISION||','||DATA_SCALE) columns in query. Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi Thanks..
If you want a generic script use below function to get the difference.. Run the below script and let me know in case of any issues
CREATE OR REPLACE TYPE nt_username IS TABLE OF VARCHAR2(50);
CREATE OR REPLACE TYPE obj_struc IS OBJECT (user_name1 VARCHAR2(30),
user_name2 VARCHAR2(30),
column_name1 VARCHAR2(30),
column_name2 VARCHAR2(30),
data_type1 VARCHAR2(106),
data_type2 VARCHAR2(106),
data_length1 NUMBER(10),
data_length2 NUMBER(10),
data_precision1 VARCHAR2(50),
data_precision2 VARCHAR2(50),
column_id1 NUMBER(10),
column_id2 NUMBER(10)
CREATE OR REPLACE TYPE nt_struc IS TABLE OF obj_struc;
CREATE OR REPLACE FUNCTION tabstruc_script (p_tabnm VARCHAR2,
p_usernm nt_username
RETURN nt_struc
AS
v_nt_struc nt_struc := nt_struc();
v_ntusrnm nt_username := p_usernm;
TYPE rec_stru IS RECORD (column_name all_tab_columns.column_name%TYPE,
data_type all_tab_columns.data_type%TYPE,
data_length all_tab_columns.data_length%TYPE,
data_precision all_tab_columns.data_precision%TYPE,
data_scale all_tab_columns.data_scale%TYPE,
column_id all_tab_columns.column_id%TYPE
TYPE nt_stru IS TABLE OF rec_stru;
v_ntstru nt_stru := nt_stru();
v_columnname all_tab_columns.column_name%TYPE;
v_reccnt NUMBER;
v_cnt NUMBER;
v_precision1 VARCHAR2(50);
v_precision2 VARCHAR2(50);
BEGIN
FOR i IN 1..v_ntusrnm.COUNT
LOOP
SELECT COUNT(*) INTO v_reccnt
FROM all_tables
WHERE owner = v_ntusrnm(i)
AND table_name = p_tabnm;
IF v_reccnt >= 1 THEN
SELECT column_name,
data_type,
data_length,
data_precision,
data_scale,
column_id
BULK COLLECT INTO v_ntstru
FROM all_tab_columns
WHERE owner = v_ntusrnm(i)
AND table_name = p_tabnm;
FOR j IN i+1..v_ntusrnm.COUNT
LOOP
FOR k IN 1..v_ntstru.COUNT
LOOP
SELECT COUNT(*) INTO v_cnt
FROM all_tab_columns
WHERE owner = v_ntusrnm(j)
AND table_name = p_tabnm
AND column_name = v_ntstru(k).column_name;
IF v_cnt >= 1 THEN
FOR l IN (SELECT column_name,
data_type,
data_length,
data_precision,
data_scale,
column_id
FROM all_tab_columns
WHERE owner = v_ntusrnm(j)
AND table_name = p_tabnm
AND column_name = v_ntstru(k).column_name)
LOOP
IF ((v_ntstru(k).column_id <> l.column_id)
OR (v_ntstru(k).data_type <> l.data_type)
OR (NVL(v_ntstru(k).data_length,0) <> NVL(l.data_length,0))
OR (NVL(v_ntstru(k).data_precision,0) <> NVL(l.data_precision,0))
OR (NVL(v_ntstru(k).data_scale,0) <> NVL(l.data_scale,0))) THEN
v_nt_struc.EXTEND;
SELECT DECODE(v_ntstru(k).data_precision,NULL,NULL,v_ntstru(k).data_precision||','||v_ntstru(k).data_scale),
DECODE(l.data_precision,NULL,NULL,l.data_precision||','||l.data_scale)
INTO v_precision1,
v_precision2
FROM DUAL;
v_nt_struc(v_nt_struc.COUNT) := obj_struc(v_ntusrnm(i),
v_ntusrnm(j),
v_ntstru(k).column_name,
l.column_name,
v_ntstru(k).data_type,
l.data_type,
v_ntstru(k).data_length,
l.data_length,
v_precision1,
v_precision2,
v_ntstru(k).column_id,
l.column_id);
END IF;
END LOOP;
END IF;
END LOOP;
FOR m IN(SELECT column_name,
data_type,
data_length,
data_precision,
data_scale,
column_id
FROM all_tab_columns
WHERE owner = v_ntusrnm(i)
AND table_name = p_tabnm
AND column_name NOT IN(SELECT column_name
FROM all_tab_columns
WHERE owner = v_ntusrnm(j)
AND table_name = p_tabnm))
LOOP
v_nt_struc.EXTEND;
SELECT DECODE(m.data_precision,NULL,NULL,m.data_precision||','||m.data_scale)
INTO v_precision1
FROM DUAL;
v_nt_struc(v_nt_struc.COUNT) := obj_struc(v_ntusrnm(i),
v_ntusrnm(j),
m.column_name,
NULL,
m.data_type,
NULL,
m.data_length,
NULL,
v_precision1,
NULL,
m.column_id,
NULL);
END LOOP;
FOR n IN(SELECT column_name,
data_type,
data_length,
data_precision,
data_scale,
column_id
FROM all_tab_columns
WHERE owner = v_ntusrnm(j)
AND table_name = p_tabnm
AND column_name NOT IN(SELECT column_name
FROM all_tab_columns
WHERE owner = v_ntusrnm(i)
AND table_name = p_tabnm))
LOOP
v_nt_struc.EXTEND;
SELECT DECODE(n.data_precision,NULL,NULL,n.data_precision||','||n.data_scale)
INTO v_precision2
FROM DUAL;
v_nt_struc(v_nt_struc.COUNT) := obj_struc(v_ntusrnm(j),
v_ntusrnm(i),
n.column_name,
NULL,
n.data_type,
NULL,
n.data_length,
NULL,
v_precision2,
NULL,
n.column_id,
NULL);
END LOOP;
END LOOP;
END IF;
END LOOP;
RETURN v_nt_struc;
EXCEPTION
WHEN OTHERS THEN
RAISE;
END tabstruc_script;
SELECT * FROM TABLE(tabstruc_script(:tabnm,nt_username(:user1,:user2,:user3)));
You need to pass tablename and username to calling this function. Username is a nested table here so you can pass like nt_username(:user1,:user2,:user3) -
Same Portal To be established for Three companies
Hi Experts,
i have implement the same devloped portal for three different compaines can u tell what has to be done about the systems and all.
can u give me detailed procedure.
Regards,
PrajaktaHi Prajakta,
For such a scenario, to start with you will need to configure user store for portal. If these 3 companies have 3 different user stores, then multiple LDAP for UME can be done - http://wiki.sdn.sap.com/wiki/display/EP/SettingUpanLDAPforthePortal
Then you have 3 different themes, framework pages (including customized components - masthead, TLN etc), desktop created. In order to differentiate the companies probably go for url alias e.g. http://<host name>:<port>/irj/portal/<company1>
Master rule can be edited to provide access to these desktops based on the url alias.
Lastly the roles can be assigned based on the user group to have a clear distinction in the content provided to each company.
Ofcourse if you have some backend requirement, then portal systems need to configured.
Regards,
Mahesh
Edited by: Mahesh Krishnapillai on Jan 3, 2012 11:59 AM -
Error when executing multiple scenarios with same ProgramID for RFC-JDBC
Hi,
I am working on the RFC-JDBC scenario.
I see the following error in the dev_jrfc.trc file when I try to execute multiple scenarios which are using same program id (different communication channels).
RfcException:
message: Commit fault: com.sap.aii.af.rfc.afcommunication.RfcChannelMismatchException: Wrong Sender Agreement:The Sender agreement does not have channel CC_SAP_XXXXX configured for the functionmodule Z_XXXXX_SO_CREATE_CHANGE
Return code: RFC_CLOSED(6)
error group: 108
key: RFC_ERROR_INTERNAL
Can one program id be used for multiple scenarios? Or do we need to create a new ProgramId for each scenario.
Any response will be highly appreciated.
Thanks
ShyamHello Shyam,
>>>>>>>>Do you think that I still need to create a new Program Id for each of these processes.
You should not use same program ID for different RFC adapters. It is recommended by SAP (check FAQ's on RFC).
Although technically you can use but it gives you unpredictable behaviour based on connection pool. -
I have an older Macbook with OS/X. Tried to download iTunes 10 a few times now, but when installing I always get the same error message: Run Preinstall Script for Apple Mobile Device Support. What can I do to finalise the installation?
Thanks. Short of the sort of "generic" suggestions of restaring your system, if you haven't, and repairing disk permissions and verifying the disk, I don't have any advice right now. I'll do some research and see if I can come across anything. Meanwhile, someone else may have an idea.
Regards. -
Uccx script, que for three minutes and route offsite ?
Good afternoon,
i am trying, to get a call in que for three minutes to route somewhere, ultimately offsite...script editor seems way to input driven for a wait x and go to here step..is there a simple example, and i have googled to death the web, of a real script that has a current wait duration =x then go to off site number around out here?
it would be much appreciated.
thank youIt's unlikely that you will get exactly a three minute cut-off. The way most do this is to check the Current Wait Duration (in seconds) using the Get Reporting Statistics step every time you loop through your queued loop. Following the Get Reporting step you would use an If statement to evaluate if the variable is >= 180. In the True branch you would use a Dequeue and then a Call Redirect step. In the false branch you would continue your nomal queued logic.
Select Resource
-Selected
-Queued
--Label: QUEUED LOOP
--Get Reporting Statistic (Current Wait Duration)
--If contactWaitDuration >= 180
---True
----Dequeue
----Call Redirect
---False
----Nothing
--[normal queued prompt/MoH/etc]
--Goto: QUEUED LOOP -
I have always used the same laptop for all of my iPhones but awhile back this laptop had a virus so my husband wiped out the laptop and now when I sync my iPhone I no longer receive my entire music library (including purchased songs) on my iPhone. How do I fix this?
kimberlyfromtopeka wrote:
Ok,thanks but, I should be able to something so that I am able to sync the entire library again not just the purchased songs.
If the non purchased music is not on your computer, how can it Sync to your iPhone... -
Script for InDesign CS6 - create multiple, prenamed layers
I created a script for Illustrator CS6, in ExtendScript Toolkit, that will create multiple, prenamed layers...see below...
//Apply to myDoc the active document
var layerName = LayerOrderType;
var myDoc = app.activeDocument;
//define first character and how many layers do you need
var layerName
var numberOfLayers=0;
//Create the layers
for(var i=0; i<=numberOfLayers; i++)
{ var layerName = ":: GRADIENT"; var myLayer = myDoc.layers.add(); myLayer.name = layerName; }
{ var layerName = ":: STRIPES"; var myLayer = myDoc.layers.add(); myLayer.name = layerName; }
{ var layerName = ":: LEGAL"; var myLayer = myDoc.layers.add(); myLayer.name = layerName; }
{ var layerName = ":: BLK BAR"; var myLayer = myDoc.layers.add(); myLayer.name = layerName; }
{ var layerName = ":: FLAME"; var myLayer = myDoc.layers.add(); myLayer.name = layerName; }
{ var layerName = ":: LOGO/TYPE"; var myLayer = myDoc.layers.add(); myLayer.name = layerName; }
{ var layerName = ":: TRIM,ETC"; var myLayer = myDoc.layers.add(); myLayer.name = layerName; }
{ var layerName = ":: LOEC INFO"; var myLayer = myDoc.layers.add(); myLayer.name = layerName; }
// Moves the bottom layer to become the topmost layer
if (documents.length > 0) {
countOfLayers = activeDocument.layers.length;
if (countOfLayers > 1) {
bottomLayer = activeDocument.layers[countOfLayers-1];
bottomLayer.zOrder(ZOrderMethod.BRINGTOFRONT);
else {
alert("The active document only has only 1 layer")
I tried to use this exact code to replicate the same scenario in InDesign but it doesn't work.
Can anybody help me out!?
Thanks in advanceMarijan Tompa's scripts are very nice and useful, however, for this simple task you can try create your own wiht this code:
app.activeDocument.layers.add ({name: "GRADIENT", layerColor: UIColors.red});
app.activeDocument.layers.add ({name: "STRIPES", layerColor: UIColors.lightBlue});
app.activeDocument.layers.add ({name: "LEGAL", layerColor: UIColors.gray});
//merge existing document layer to bottom layer (in this case original layer will be merged to 'GRADIENT')
var myDocument = app.documents.item(0);
var myLayerA = myDocument.layers.item(2);
var myLayerB = myDocument.layers.item(3);
myLayerA.merge(myLayerB);
alert("Layers created!");
assume, your document has one layer.
Script creates three new layers, they appear in Scripts palette in this order:
LEGAL
STRIPES
GRADIENT
and merges 'old' layer to bottom layer of newly created set (GRADIENT).
sure, you can add as much layers as you need, just don't forget modify LayerA and LayerB numbers accordingly.
Or disable second part of the script at all, if you don't want anything to be merged. -
Does anybody have a WLST script for step-by-step cluster restart?
Does anybody have a WLST script for step-by-step "smart" cluster restart?
Dear SAM,
are you looking for exchange 2013 installation. Please follow below link. I have done the same scenario as yours
1. install first VM - 2012
2. Static IP / loopback as primary DNS
3. install ADDS /DNS (forwarder to ISP)
4. install second VM - Static IP again
5. DNS of second VM to be the IP of first VM
6. this will join the domain
7. installation of exchange will be simple, configuration from this link : http://www.techieshelp.com/exchange-2013-step-by-step-configuration/
MARK AS USEFUL/ANSWER IF IT DID
Thanks
Happiness Always
Jatin
Maybe you are looking for
-
Pages does not work properly if you choose to use ICloud in Settings in both the iphone 5 and Ipad 3. In fact when you click open, Pages opens momentarily and then Quits. If you de-activate use ICloud for pages in Settings then the program works but
-
TS1702 App:bright wood adventures not saving or updating game play status
Apple OS Version: 6.0 app: brightwood adventures i am highly upset with your game App it is loosing all my progress to these buildings sky tower, saw mill, cobbler, fairy ring, market I purchased gold my funds on my account and this is the 3rd time
-
In E-Business Tax - In which table the tax codes are stored?
Hi All, I am new to Financials. I have a requirement in which I need to list all the TAX CODES pertaining to AP and AR. Kindly let me know in which table the tax codes are stored in E-Business Tax module. Also let me know how the tax is associated wi
-
Embed a pdf into captivate and publish in LMS?
I am able to embed a .pdf into captivate 7. I have altered the imsmanifest and added the documents and when I test it, it works! BUT when I zip the file it will not work?
-
TS1368 I could not connect to iTunes and App Store after I downloaded ios6 in ipad2
I could not connect to iTunes and App Store after I downloaded ios6 in ipad2