Need help with this find/replace Script.
Hi I got this script from Loic.Aigon. And I got it works for find/replace simple changes however I Cannon operate for several changes.
function cb5CallBack(target) { var findProps, changeProps; findProps = {findWhat:"Distributed by ",} changeProps = { changeTo:"Distributed by. ",} findProps = {findWhat:"Distribué par ",} changeProps = { changeTo:"Distribué par. ",} findProps = {findWhat:"Distribuido por ",} changeProps = { changeTo:"Distribuido por. ",}, RTXT(target, findProps, changeProps); }
function RTXT(target, findProps, changeProps) { app.findChangeTextOptions.caseSensitive = true; app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing; app.findTextPreferences.properties = findProps; app.changeTextPreferences.properties = changeProps; app.changeTextPreferences.properties = changeProps; target.changeText(); }
You must call the function RTXT repeatedly as well:
var findProps, changeProps;
findProps = { findWhat:"Distributed by "};
changeProps = { changeTo:"Distributed by. "};
RTXT(target, findProps, changeProps);
findProps = { findWhat:"Distribué par "};
changeProps = { changeTo:"Distribué par. "};
RTXT(target, findProps, changeProps);
findProps = { findWhat:"Distribuido por "};
changeProps = { changeTo:"Distribuido por. "};
RTXT(target, findProps, changeProps);
Tags: InDesign
Similar Questions
-
[Error number: 0x8024400A] Need help with this error... I reinstalled XP SP1 and I can't get an automatic update that's simple to install, just get this error at each time HHHHEEEELLLPPPPP! Thank you
I had the same problem. But finally found a solution. If your listing is similar to mine, then keep. XP Media Center Edition 2005 (sp2). AMD Athlon 64 x 2 Dual-Core, HP a1630n desktop computer.
Go to the HP website, search for sp37394-XP sp3 Upgrade utility Microsoft for systems equipped with AMD processors.
I had the same 0 x 80240036, 0x8024400a error, but realize my problem was really get manually downloaded sp3 and installed without continue loop crashing and not error messages.
-
Is there a default value for the color management in PSE10? Beautiful photos from iPhoto, but blur with elements. I need help with this before as I consider that the upgrade to PSE13 and beyond.
Printing which forms an angle seems ok, but one that is horizontally seems faded, incomplete.
I was wondering if I saved a layer somewhere and set it as a default value.
If you group the layers, you will be left with a single layer, thus spreading your concern.
Suggest that you do the following:
- Make sure you have the latest drivers for your printers
- Reset the default preferences.
Hold the Alt, Ctrl + Shift keys when you click the icon to open the items. When asked if you want to delete the settings file, say Yes.
Items nearby and let regenerate the file.
-
Need help with this gallery of xml!
I have build a gallery but its very simple... There are pictures of the xml file.
I have attached all the zip files.
I just want two things if anyone can help.
first of all when I press the next button, he's going to the next image, but without effect. It just displays the following image... I want to incorporate the effect of dragging when the image is changed to another.
and secondly, I want to use the AutoPlay feature.
Once swf starts images came one by one with a vertical drop of a few seconds.
Thanks in advance... I really need help with this..!
For the look of sliding effect using the actionscript class Tween. Allows you to create motion tweens using the code. The example below will be tween property _x of the instance named anObject from 0 to 300 in 3 seconds...
import classes before using
Import mx.transitions.Tween;
Import mx.transitions.easing.Regular;TW var = new Tween (anObject, "_x", Regular.easeIn, 0, 300, 3, true);
To implement an enforcement function auto you need to import all the images first, in the order, then you will need to use form any controlled timer, such as setInterval (with clearInterval not to need) in order to have things turn on automatically by some part-time
-
Need help with a basic host script?
You can limit the virtual machines, you receive chaining cmdlets Get-VmHost and Get - Vm together like this
$hostlist = (get-vmhost -Name (get-content c:\hosts.txt) | select Name) #Get VMs for each host foreach ($esx in $hostlist) { $VMs = Get-VMHost $esx | Get-VM foreach ($vm in $VMs) { Write-host $vm.Name Write-host $vm.MemoryMB Write-host $vm.numcpu Write-host $vm.Guest } }
-
Flash beginner needs help with Movie Clips/Action script
HI -.
I'm having a problem with my video clips playing simultaneously and cannot, for the life of me, know what I did wrong. I'm new to flash so I can I have created something wrong but this is what I have so far:
11 layers, total: 1 layer with 10 buttons, each button with the following actionscript code:
on (release) {}
gotoAndPlay (85);
}
When the number changes with regard to keyframes, the next film is about.
I have 10 films, total, but they are only video clips, mainly photo slideshow with audio, does everything in the library.
The problem occurs when I click on the second or third button. Not only the movie I selected starts to play, but all previous clips are as well, he has completely blurred all the sounds. I don't know what Miss me in action script, as my Action layer has a stop command to this topic at each keyframe where there is a new clip to play.
I tried to add a stopAllSounds command, but I'm afraid that does nothing because it is not an "audio file" in itself playing in the timeline panel.
I'm at the end of my rope and really need help to understand this one. My project is hanging in the balance on this point, I wrote everything correctly and it works beautifully.
Help, please!
Thank you
CarolineStart your sounds in frame 2 and place stopAllSounds() on each keyframe where begins a movieclip.
-
Need help with this problem please
Hi all
I have 2 tables and I am runnig the following query against it:
and get the following dataset:select t1.ID_NBR, t1.START_DATE,t1.END_DATE,t1.SAMPLE_ID,t2.END_INTV_TIME,t2.CIN_DATA_ID from sample t1,weekend t2 where t1.SAMPLE_ID=t2.SAMPLE_ID_1 and t1.WEEKEND_FLAG='Y' and t1.SITE_ID_NBR='000097117011'
What I wanted was to add 2 columns to all data above, the reason is the dataset above has 72 files, one file per hour for 3 days from Friday 01:00 and ending the Sunday i 2400, but all have in all of the above data is just the date of beginning and end, so I created the following query to add the columns :ID_NBR START_DATE END_DATE SAMPLE_ID END_INTV_TIME CIN_DATA_ID 97117011 91908 92108 143493 100 131834 97117011 91908 92108 143493 200 131835 97117011 91908 92108 143493 300 131836 97117011 91908 92108 143493 400 131837 97117011 91908 92108 143493 500 131838 97117011 91908 92108 143493 600 131839 97117011 91908 92108 143493 700 131840 97117011 91908 92108 143493 800 131841 97117011 91908 92108 143493 900 131842 97117011 91908 92108 143493 1000 131843 97117011 91908 92108 143493 1100 131844 97117011 91908 92108 143493 1200 131845 97117011 91908 92108 143493 1300 131846 97117011 91908 92108 143493 1400 131847 97117011 91908 92108 143493 1500 131848 97117011 91908 92108 143493 1600 131849 97117011 91908 92108 143493 1700 131850 97117011 91908 92108 143493 1800 131851 97117011 91908 92108 143493 1900 131852 97117011 91908 92108 143493 2000 131853 97117011 91908 92108 143493 2100 131854 97117011 91908 92108 143493 2200 131855 97117011 91908 92108 143493 2300 131856 97117011 91908 92108 143493 2400 131857 97117011 91908 92108 143493 100 131858 97117011 91908 92108 143493 200 131859 97117011 91908 92108 143493 300 131860 97117011 91908 92108 143493 400 131861 97117011 91908 92108 143493 500 131862 97117011 91908 92108 143493 600 131863 97117011 91908 92108 143493 700 131864 97117011 91908 92108 143493 800 131865 97117011 91908 92108 143493 900 131866 97117011 91908 92108 143493 1000 131867 97117011 91908 92108 143493 1100 131868 97117011 91908 92108 143493 1200 131869 97117011 91908 92108 143493 1300 131870 97117011 91908 92108 143493 1400 131871 97117011 91908 92108 143493 1500 131872 97117011 91908 92108 143493 1600 131873 97117011 91908 92108 143493 1700 131874 97117011 91908 92108 143493 1800 131875 97117011 91908 92108 143493 1900 131876 97117011 91908 92108 143493 2000 131877 97117011 91908 92108 143493 2100 131878 97117011 91908 92108 143493 2200 131879 97117011 91908 92108 143493 2300 131880 97117011 91908 92108 143493 2400 131881 97117011 91908 92108 143493 100 131882 97117011 91908 92108 143493 200 131883 97117011 91908 92108 143493 300 131884 97117011 91908 92108 143493 400 131885 97117011 91908 92108 143493 500 131886 97117011 91908 92108 143493 600 131887 97117011 91908 92108 143493 700 131888 97117011 91908 92108 143493 800 131889 97117011 91908 92108 143493 900 131890 97117011 91908 92108 143493 1000 131891 97117011 91908 92108 143493 1100 131892 97117011 91908 92108 143493 1200 131893 97117011 91908 92108 143493 1300 131894 97117011 91908 92108 143493 1400 131895 97117011 91908 92108 143493 1500 131896 97117011 91908 92108 143493 1600 131897 97117011 91908 92108 143493 1700 131898 97117011 91908 92108 143493 1800 131899 97117011 91908 92108 143493 1900 131900 97117011 91908 92108 143493 2000 131901 97117011 91908 92108 143493 2100 131902 97117011 91908 92108 143493 2200 131903 97117011 91908 92108 143493 2300 131904 97117011 91908 92108 143493 2400 131905
And the problem I have now is instead of 72 for 3 days I get only 71 and time 2400 is paased on the next day, I tried to use CEIL instead and ended up getting 48 reocrds instead, the following dataset is when I used the above querySELECT * FROM (SELECT t.*, TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24), 'Day' ) AS weekday, TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24), 'mmddyy' ) AS next_date FROM (SELECT t1.id_nbr, t1.start_date, TO_CHAR (TO_DATE (t1.start_date, 'mm/dd/yy'), 'fmDay' ) AS start_day, t1.end_date, TO_CHAR (TO_DATE (t1.end_date, 'mm/dd/yy'), 'fmDay' ) AS end_day, t2.sample_id_1, t2.cin_data_id, t2.end_intv_time, ROW_NUMBER () OVER (PARTITION BY t2.sample_id_1 ORDER BY t2.cin_data_id) AS rn, COUNT (t2.cin_data_id) OVER (PARTITION BY t2.sample_id_1) AS cnt, t1.weekend_flag FROM sample t1, weekend t2 WHERE t1.sample_id = t2.sample_id_1 AND t1.weekend_flag = 'Y') t) WHERE TRIM (weekday) IN ('Friday', 'Saturday', 'Sunday') AND nbr = '000097117011'
Need help please.ID_NBR START_DATE START_DAY NEXT_DATE WEEKDAY END_DATE END_DAY SAMPLE_ID CIN_DATA_ID END_INTV_TIME 97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131848 1500 97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131849 1600 97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131850 1700 97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131851 1800 97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131852 1900 97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131853 2000 97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131854 2100 97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131855 2200 97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131856 2300 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131857 2400 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131858 100 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131859 200 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131860 300 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131861 400 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131862 500 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131863 600 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131864 700 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131865 800 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131866 900 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131867 1000 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131868 1100 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131869 1200 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131870 1300 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131871 1400 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131872 1500 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131873 1600 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131874 1700 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131875 1800 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131876 1900 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131877 2000 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131878 2100 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131879 2200 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131880 2300 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131881 2400 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131882 100 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131883 200 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131884 300 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131885 400 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131886 500 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131887 600 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131888 700 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131889 800 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131890 900 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131891 1000 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131892 1100 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131893 1200 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131894 1300 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131895 1400 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131896 1500 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131897 1600 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131898 1700 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131899 1800 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131900 1900 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131901 2000 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131902 2100 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131903 2200 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131904 2300
Thank youHello
Hours in a range of 0 to 23 hours day after midnight. You count from 1, not 0, so the 24th hour (from Friday) is actually from 00:00 on Saturday, and the 72nd hour is 00:00 Monday, that you are not counting in the WHERE clause.
Maybe when you calculate tn, you might simply subtract 1:
SELECT * FROM (SELECT t.*, TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24), 'Day' ) AS weekday, TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24), 'mmddyy' ) AS next_date FROM (SELECT t1.id_nbr, t1.start_date, TO_CHAR (TO_DATE (t1.start_date, 'mm/dd/yy'), 'fmDay' ) AS start_day, t1.end_date, TO_CHAR (TO_DATE (t1.end_date, 'mm/dd/yy'), 'fmDay' ) AS end_day, t2.sample_id_1, t2.cin_data_id, t2.end_intv_time, ROW_NUMBER () OVER (PARTITION BY t2.sample_id_1 ORDER BY t2.cin_data_id) - 1 -- Added AS rn, COUNT (t2.cin_data_id) OVER (PARTITION BY t2.sample_id_1) AS cnt, t1.weekend_flag FROM sample t1, weekend t2 WHERE t1.sample_id = t2.sample_id_1 AND t1.weekend_flag = 'Y') t) WHERE TRIM (weekday) IN ('Friday', 'Saturday', 'Sunday') AND nbr = '000097117011'
To view the actual end time, add one hour before posting.
What happens if you are missing a row for some reason any? Just using ROW_NUMBER won't take the missing line into account. It would be preferable to derive the time of the end_intc_timecolumn. Of course, it would be even better to store the date and time ending in a DATE column all the way.
I hope that answers your question.
If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all tables and also post the results desired from these data.
Explain, using specific examples, how you get these results from these data.
You must not post a lot of data: 6 hours, ending at midnight Monday, should be enough to show the problem and its solution.Always tell what version of Oracle you are using.
-
Hi, my problem is that my PC stops on its own, it is worse when cold and runs 3 - 4 times on first boot before loading the same windows. When windows starts, as soon as I start to play or download internet video, the pc stops again. Also at random when times navigation he will die too. There is no overheating btw.
The error in the event viewer is
Nvgts error, event ID:4
0000: 00 00 00 00 01 00 54 00... T. 0008: 00 00 00 00 04 00 04 c0... To 0010: 00 00 00 00 00 00 c0 c2... A... AT 0018: 00 00 00 00 00 00 00 00... 0020: 00 00 00 00 00 00 00 00I changed the power supply and the display drivers re-installed (for Nvidia 6100 nforce 405), but without success. It's really bugging me now because its been more than 2 weeks and it seems to deteriorate.
Any help greatly appreciated, thank you.From my experience, random and immediate judgments are usually caused by overheating or problems with the RAM. You seem to have eliminated overheating as a cause. The next most likely cause is your RAM. Try to remove your RAM modules and put back them in their media. If you're lucky, that might solve your problem. If you have more than one RAM module, you could try to remove one module at a time and see if the problem is improving (indicating the wrong module). Microsoft also has an audit of program memory which can help:
"Microsoft Memory Diagnostic"
<>http://oca.Microsoft.com/en/windiag.asp >HTH,
JW -
Need help with this code to update the user interface example
I'm triying to understand the differences between the three methods to manage UI interactions.
I'm really confused with these three terms when triying them figure out in a real case.
Basically, I know that I should use invokeLater, invokeAndWat, or getEventLock() to avoid
This exception: java.lang.illegalStateException: engine access UI without holding the lock on the eventThe code below illustrates the function of the invokeAndWait method, but if I replace it with
invokeLater or getEventLock() the program will work exactly the same way.
Could you please change the code to show the differences between the three
methods of updating the user interface?/ public final class HelloWorldMainScreen extends form {}
private LabelField labelField;
public HelloWorldMainScreen() {}
labelField = new LabelField ("Hello World");
Add (labelField);
Thread MainScreenUpdaterThread = new MainScreenUpdaterThread (this);
thread. Start();
}{} public void appendLabelText (String text)
labelField.setText(labelField.getText()+"\n"+text);
}}
SerializableAttribute public class MainScreenUpdaterThread extends Thread {}
HelloWorldMainScreen screen;public MainScreenUpdaterThread (screen HelloWorldMainScreen) {}
this.mainScreen = screen;
}public void run() {}
for (int i = 0; i)< 10;="" i++)="">
try {}
Thread.Sleep (5000);
} catch (InterruptedException ex) {};
UiApplication.getUiApplication () .invokeAndWait (new Runnable() {}
public void run() {}
mainScreen.appendLabelText ("Update");
}
});}
}
}These three concepts are very confusing for a lot from people so all explanatory source code
describing their functions will be highly useful for everyone, I think.Thanks in advance!
With respect to the effect, there is no difference between methods. The difference is the way in which the result is achieved. So we can't change the code to show you the difference.
As we are unable to demonstrate the difference, you have to do with an explanation. To understand the explanation, you'll need to understand the thread of events, so if you have not already, please consider this:
http://supportforums.BlackBerry.com/T5/Java-development/what-is-the-event-thread/Ta-p/446865
If the three options are differentiated by the processing order:
(a) invokeLater executes the update on the thread of events. The transformation takes place at a later stage and the code which is in order after the invokeLater will actually run before the code within the invokeLater.
(b) invokeAndWait also manages the update on the thread of events, which means that all other events that await on the thread of events will be run before this code. But any code after the invokeAndWait will not be executed.
(c) the synchronized option, like invokeAndWait, runs the update of the UI before moving on to the following code. The difference is that the code to run on the event Thread is not executed before code in the synchronized block.
If this is meaningless, so that probably does not matter too much. in general, you should use invokeLater, except if you need to update the user interface occur in the order with your background processing. If so, use invokeAndWait. It has synced are very few occasions where you must use the block, and it should be very small updates to the user interface and you should understand the implications this could have on the wire events.
-
4 problems simultaneously on an operating system of Windows 7 need help with this now!
(1) problem when I try to open a picture using Windows Photo Viewer I get the following Message: Windows Photo Viewer cannot open this picture because you don't have permission to access the location of the file.
Problem (2) when I open Microsoft LifeCam VX-5000, instead of getting a video, I get a small box that says: LifeCam cannot find LifeCam files folder or save a file in there. For more information, see "Troubleshooting and Support" in aid of LifeCam.
Problem (3) when I open CCleaner and try to clean and remove old unnecessary files from Windows appears and tells Me that Windows has detected a problem and needs to close.
(4) problem I uninstalled CCleaner and Microsoft LifeCam VX-5000 and I have tried to reinstalled the problem. When you try to download the software it fails or I tells me it cannot be downloaded.
Please if there is anyone here who has any registry Fix for these problems I'd really appreciate thank you!
Good new everyone after the announcement here for the third and last time I could get help including the journal and Yahoo Answers, Forum Windows 7 me AT & T ConnecTech and this time the Tech added registry keys and values in the Scriptures that completely solve all problems!
-
I looked at all the sites help - remade several times links:
Here is the link to the page that does not work and it's links down in the order your copy now in red section. The links are all in place... Please explain what is happening - looking code in Dreamweaver is a bit of a chore too. This site needs to go live in two weeks, so your help is urgent. Thank you! KJA
www.kjakreations.com/TCS/Books.html
Are you referring to three links in this block? They seem to work correctly? If this isn't what you want to say can you provide more details?
On a side note: usually when users have a problem with the links not being is not active it is because there is an invisible element or overlapping on the page on the link.
-
need help with first vsphere powercli script
Greetings,
Asked me to write a script to iterate over all the virtual machines in a given folder and to stop. The name of the folder is blue (and is deep in several files).
So far, I have:
$svr = Connect-VIServer-Server svr-protocol https-user--password...
$fldr = get-file-server $svr - blue name
I don't know what to do next. I would like to somehow get a picture of the VMS in the Blue folder, and then run:
{foreach ($vm to $vmlist)
Get - VM $vm | Stop-VMGuest
}
How can I do this? Ideally, it should be wrapped in a function that I could pass the name of the file, because I really need to stop the virtual machines in the blue folder and a few others, too.
Any help would be greatly appreciated.
Thank you
-John
You can specify the file on the location of the Get-VM cmdlet parameter.
Something like that
foreach( $vm in (Get-Vm -Location (Get-Folder Blue)) { $vm | Shutdown-VMGuest }
In PowerShell and PowerCLI, there is of course more then a way to get there.
It should work as well
Get-Folder Blue | Get-VM | %{ Shutdown-VMGuest -VM $_ }
____________
Blog: LucD notes
Twitter: lucd22
-
so I did some coding in flash develop for a flash app im building and during the test, I get this error message when running and I don't know what it is and how to fix it heres I get the error message:
ArgumentError: Error #2173: cannot read the object in the stream. The flex.messaging.io.ArrayCollection of the class does not implement flash.utils.IExternalizable but has an alias to an externalizable class.
And here's the code I did
package { import flash.display.MovieClip; import flash.display.Sprite; import flash.events.MouseEvent; import flash.net.NetConnection; import flash.net.registerClassAlias; import flash.net.Responder; import flash.text.TextField; //import com.demonsters.debugger.MonsterDebugger; //import mx.Collections.ArrayCollection; //registerClassAlias("flex.messaging.io.ArrayCollection", ArrayCollection); /** * ... * @author DAR */ public class Main extends MovieClip { private var conn:NetConnection; public var name1:TextField public var name2:TextField; public var name3:TextField; public var name4:TextField; public var rating1:TextField; public var rating2:TextField; public var rating3:TextField; public var rating4:TextField; public var comments1:TextField; public var comments2:TextField; public var comments3:TextField; public var comments4:TextField; public var inputName:TextField; public var inputComment:TextField; public var inputRating:TextField; public var submitReviewBtn:Sprite; public function Main() { //MonsterDebugger.initialize(this); trace ("document class running"); setupConnection(); setupInputArea(); getReviews(); } private function setupInputArea() { submitReviewBtn.addEventListener(MouseEvent.CLICK, addNewReview); } private function addNewReview(e:MouseEvent):void { //Add review to database var resAddReview:Responder = new Responder(onAddReviewSuccess, onAddReviewFail); conn.call("yomo_films.addReview", resAddReview, inputName, inputRating, inputComment); gotoAndPlay(5); } private function addUserReview():void { var resAddReview:Responder = new Responder(onAddReviewSuccess, onAddReviewFail); conn.call("yomo_films.addReview", resAddReview, "Amanda", 5 , "Really good movie"); } private function onAddReviewFail(o:Object):void { } private function onAddReviewSuccess(o:Object):void { //Refresh all Reviews getReviews(); } private function getReviews():void { //Create a responder object var res:Responder = new Responder(onResult, onFail); //Run a call to our service conn.call("yomo_films.getReviews", res); } private function onResult(o:Object):void { trace("Success"); //MonsterDebugger.trace("onResult", o); //Populate our reviews table for (var i:int = 0; i < 5; i++) { //get our current name / rating / comments object var item:Object = [i]; var nameTxt:TextField = getChildByName("name" + (i + 1)) as TextField; var ratingTxt:TextField = getChildByName("ratings" + (i + 1)) as TextField; var commentTxt:TextField = getChildByName("comments" + (i + 1)) as TextField; //test if we have a name if (item.name) { nameTxt.text = item.name; ratingTxt.text = item.ratings; commentTxt.text = item.comments; } } } private function onFail(o:Object):void { trace("Failed"); //MonsterDebugger.trace("onFail", o); } private function setupConnection():void { trace("Setting up gateway connection"); //Create a new net connection conn = new NetConnection(); //Connect to the net connection conn.connect("http://localhost/amfphp/gateway.php"); } } }
the error, I guessed it was something to do with flex, but I do not use flex so I don't know what to do. I was looking for them to know how to fix this error for more than a week now and still no luck. I need a fast and quick help and intelligence on this help please!
Finally it sorted! It had something to do with the collection in the mx.collections ArrayCollection will not be related to ACE where the error. Heres so what I've done:
Import mx.collections.ArrayCollection;
import flash.net.registerClassAlias;
registerClassAlias ("flex.messaging.io.ArrayCollection", collection ArrayCollection);
I imported the ArrayCollection class collection and the registerClassAlias in the AS class I used and then registered the alias, then voila! the error is gone!
-
Need help with simple if/then script
I'm trying to replicate a simple if/then statement excel in a PDF form. Have tried several things, but am just not a scripter Java. The hope that I could get help from the community.
I have three boxes that contain information on costs. They are labeled LaborCost, MaterialCost & EquipmentCost. Later, in the form, I have two boxes of different output for the sum out of my first three boxes. If it's a positive number and the other is a negative number. In Excel forumla language, that's what each of the boxes would read as:
For the 1st result if it is a positive number: @if (+ LaborCost + MaterialCost + EquipmentCost > 0, + LaborCost + MaterialCost + EquipmentCost, 0)
For the 2nd result if it is a negative number: @if (+ LaborCost + MaterialCost + EquipmentCost < 0, + LaborCost + MaterialCost + EquipmentCost, 0)
I think that this should be a simple thing to write, but I'm not familiar with the games of the appropriate language.
Your colletive help is VERY appreciated.
Steven
Try following the calculation script customized:
// Sum the field values, as numbers var sum = +getField("LaborCost").value; sum += +getField("MaterialCost").value; sum += +getField("EquipmentCost").value; // Set this field value event.value = sum > 0 ? sum : 0;
For others, change the last line:
Event.Value = sum< 0="" sum="" :="">
-
Need help with this calculation
Hi members,
Im trying to do some logical columns for calculations. It is a very simple calculation, but I can't seem to make it work in the repository.
The data upon which I make eyes of calculation as follows.
Issue Nr. | Question | Meet Nr. | Response | Answers (number of responses)
1. | Job satisfaction | 1. | Very good | 8
1. | Job satisfaction | 2 | Good | 2
1. | Job satisfaction | 3 | Bad | 5
1. | Job satisfaction | 4 | Very bad. 0
It is an example of the data. Now, I want to make a logical column to calculate the 'happiness factor '. The formula looks like:
(Very good + good) / (very good + good + good + bad) * 100 = happiness
So it would be 10 / 15 * 100 = 66.66.
Very simple, but I have no idea on how to accomplish this formula in the repository. What I was aiming for in my head, it was something like:
Select the answers where [answer] Nr. (3,4) / select responses where [answer]. Nr in (1,2) * 100 = :)
Does anyone know how to do this in the repositroy? It would be highly appreciated.
Erik.Hello
This happens when we don't know all the facts and we create our scenarios and responses only what we know...
Now you can do if you do not use 'no opinion' or 'Empty response' in our 'answers' but again to tuition assistance box...
'All answers worth calculation' = case when answer in ('list of what answers I want to aggregate', ((Very) Happy... (Very) Unhappy)) then 'my new All answers' else 'answers I need to ignore' end
and our dimmnesion should look like:
'Type of survey' -> 'Question' -> 'All answers worth calculation' -> Happiness -> Answer
in this case the levels should be no to the 'Question' but to our new "answers a calculation value..."
So, for an issue with 21 responses it is only 6 entries ((very) happy, (very) unfortunate, Blank, do not know)
A separate account solves your problem...In addition, in your last post I don't understand how you can sum UP non-numerical data (Happy/headaches)
No aggregate data not digital (Happy/headaches)
you aggregate your fact group by happiness(Happy/Upset)sum ('Table'.) ("' #Answers" by BOX WHEN in Answer (' very good ',' good ') THEN ELSE 'Evils' END 'Happy' *) *.
I think you've got the ideea of how play with several groups on the same Assembly and how to manipulate BI...
All you have to do is to play with your data to add or exclude what you need
If the data is not there you want you allways can create a view in the database or in physical layer so it can help you more.
On another thing... There is a way to filter data at the logical level at the source of the logical table, the content tab, where clause. Don't say you use here, just give it a shotBest regards and fun of it
Nicolae
Maybe you are looking for
-
error - not on your list - message every time at startup
This message appeared right after Firefox updated recently and after having rid of Delta research. It appears each time after Windows starts. An exception occurred while trying to run ""C:\Documents and Settings\Colin\Application Data\BabSolution\Sha
-
I use Virtual PC 2007 on windows XP. I have set up and have several machines, but the line remains grey "install or update additions '. What else do I need to do to use them?
-
Problem of resizing the photos scanned on a Photosmart HP 7520 e-all-in-one
I try to print a page full of pictures of pocket of a scanned photo of 4 x 6 on my 7520 as I used to on my C7280 before he fell. I can't do that with any ease. It seems that my only option is to scan the photo to my computer and print it with the s
-
Hi guys,. My x 230 is only equipped with HARD drive. Is it possible to add a disk to cache msata? Can I do it by myself? Concerning
-
Disabled option to create new VD - PERC H710
I have 5 x 1 TB SATA RAID-5, works very well. My goal is to add new SAS drive 2 x 3 TB RAID-0 having. Two issues I found. 1 - new record added shown State as foreign menu PD Mgmt. 2 - the 'Create new VD' option is disabled or grayed out. Why?. Thank