One script to make multiple cells call one function or vice versa

Please help.
I need one script to make multiple cells reference one function or one cell reference multiple functions.
Goal: On the enter event of cell c1, I want to make cells (this, Header.c1, Example.c1, rLabel) highlighted, and this would be for every other cell that is entered into, their corresponding column header and row header will be highlighted.
I've tried combining cells: eg
colourControls.hdfieldLoseFocus(this, HeaderRow.c1, Example.c1, rLabel);
and I've also tried combining some scripts in the function:
fieldObj.ui.oneOfChild.border.fill.color.value = "255,255,200";
  HeaderRow.fieldObj.ui.oneOfChild.border.fill.color.value = "255,255,200";
  ExampleRow.fieldObj.ui.oneOfChild.border.fill.color.value = "255,255,200";
But they dont work. See the link to my form.
http://www.winstonanddavid.com/example.com
I tried testing the function with the cell 'c1' but it doesnt work.
Also, I want to get rid of the multiple lines of script in every other cell.
How can I do this?

I played around with the ExtendScript Toolkit and cutted and pasted the previous script from here until I managed to get a script that actually works like I was thinking. I then added a code from the CS4 Reference Manual to move Layer1 to the top (just to see if it worked).
I have no idea yet if the the code includes something that does not belong, but at least I get no errors. The current code is like this now:
//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 = "Background";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
{ var layerName = "Picture";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
{ var layerName = "Text";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
{ var layerName = "Guides";  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")

Similar Messages

  • How do I apply one same transition to multiple slides in one go?

    How do I apply one same transition to multiple slides in one go?

    After you have done either of the previous options to get the transition on the current slides, you can add the transition to the Master Slide so all your new slides will default to the same transition.

  • Can a PL/SQL code of timesten be called in oracle or vice versa

    Hi
    In IMDB cache setup with AWT cache group , the pl/sql code or procedure that is written in oracleDB can it be called in TimesTen and vice versa
    example: In a stored procedure the DML's that are performed will be updating the cache tables and log table in oracleDB.
    Will there be any performance impact.
    Regards
    Siva Kumar

    A PL/SQL procedure can exist in Oracle DB, in TimesTen, or in both. You control that by where you create the procedure. Procedures that exist in Oracle can really only be called in Oracle and can only access data in Oracle. Procedures that exist in TimesTen can only be called in TimesTen and can only access data in TimesTen. There is a limited capability, using the TimesTen PassThrough capability to call PL/SQL procedures located in Oracle, from Timesten, and for Timesten PL/SQL procedures to access data in Oracle. Using PassThrough does have some overhead.
    Chris

  • Do I make multiple videos in one project or make multiple projects??

    I am going to make at least three music videos for a local band for their web site. Do I make all three in one project and can i encode them for YouTube separately or do i do all three in totally separate projects??? It seems like once i have all the footage and audio loaded in a project and do one video to upload to YouTube then to do another video i have to load all that raw footage and audio all over again for the next video and then for the third video.... seems like once all that is loaded into a project i could just separate the videos for a few seconds and do another and then another, but how then to send them to YouTube separately???
    Or if i do all three in separate projects how can i combine them into one project to export in DVD quality for the band to use for promo???

    Personally, I would break the Project into three, discrete Projects, but you do have a point about the Importing of the Assets.
    You can certainly do this with one Project, and then Export/Share segments of it with the WAB (Work Area Bar). Here is a look at the WAB from an earlier version of PrE:
    As I do not upload to YouTube, I cannot tell you if you can use the WAB, when you do the direct Export/Upload. You may have to do an Export/Share for the individual segments, and then manually Upload each. Others can shed more light on this aspect.
    Good luck,
    Hunt

  • I cannot make outgoing cell calls because Skype takes over. How to fix?

    I have an Android Samsung run 2.3.  Whenever I try to make an outgoing call on my cell phone, it brings up skype and says that I don't have enough money to make a call.  I NEVER want to make outgoing calls with skype.  How do I turn this off and set it back to using my cell carrier to make the call? This is absolutely horrible that Skype has taking over my phone.  Do I have to uninstall it?

    Hi Guys, Ultimate solution if you have messedup (scroll to the bottom if you are really annoyed)http://tipsbag.com/whenever-i-try-to-call-the-skype-application-starts/#more-450. It also says other 3 basic solutions.Solution 1.Settings->Application Manager>All Applications->Scroll down until you get to Skype->Choose ‘clear defaults’. if still no difference.TrySolution 2.Downgrade the Skype apk to an older version. if no luck.Solution 3.always  sign out/ exit other VoIP apps. If issue is still there, even after trying all these methods please find the answer below which really worked for me.Please find below URL for comprehensive details.http://tipsbag.com/whenever-i-try-to-call-the-skype-application-starts/#more-450hope you will find the solution there.

  • How to make more cells in one table by DataGridView

    Hello,
    I have a question, Firstly I'm using VB
    How can I make invoice by datagridview I'm trying to type customer information in the Textbox and Inventory Items in datagridview but the problem is datagrid give me one cell and I can type one inventory item only,  I want to put a lot of items for
    one customer. And I bind the datagridview to access db table.
    For more explain , How can I make Invoice and use datagridview for put items into it and save to access database table?
    For example " create invoice in Quick books " something like that Every customer have a gridview and it's have item he taken it.

    The problem with the datagridview is that it can only show one table.
    For more tables 3th party datagrid's are better. 
    Although you can start with using the old datagrid. Despite what is written on MSDN is it a complete different control then the datagridview. You can add in to your toolbox by right clicking on it and then add it.
    The datasource of a DataGrid can be a complete dataset which is showed with all its relations.
    Success
    Cor

  • How can I make multiple computers share one iBooks library?

    I have several computers with which I sync my iPad.  I loaded a bunch of PDFs into iBooks onto my iPad from one of them *but* the PDFs do not show up in the iBooks library on the other computers.  If I click on "Sync Books" on one of hte others it asks me if I want to remove all the existing books on the iPad which I most certainly do not.  How can I keep the iBooks library in sync on these multiple computers?

    Books and pdfs aren't synced.  Bookmarks, highlights and collections can be synced across devices. pdfs downloaded onto an iPad can be transferred to a computer when connected using the USB cable.
    iTunes Store: Transfer purchases from your iOS device or iPod to a computer

  • How can I make multiple quizzes within one Captivate project?

    Hi guys! Really liking Captivate 5.5, especially the way random question slides can lift questions out of a question pool...very elegant!
    Sadly though, I've come up against a bit of a wall. In my project, I want to have 3 separate quizzes that all use the same question pool; a 10, 30 and 50 question-long quiz. Each one needs to have its own results page.
    It's easy enough to see what I mean by looking at the screenshot below:
    The idea was to have about 105 slides in total, with slides 10 - 20 being the 10 quiz slide, 21 - 51 being the 30 question quiz and 52 - 102 being the 50 question quiz.
    There are three invisible buttons placed over those 10, 30, 50 text boxes. In the picture, the '10 question' button would jump to slide 10, the '30 question' button would jump to slide 21, and the '50 question' button would jump to slide 52, jumping the user to the start of their designated tests.
    Though I can create the 10 random question "block" easy enough, when it comes to adding the 30 question "block" it just adds the new random questions to the existing random questions. I want three separate quizzes, each with their own results screens please. (I don't want to daisy-chain to external projects, because the results of each test need to be used within the homepage.)
    It just adds them on to the existing block!! Argh!!
    Little bit ticked off with Adobe...the reason their products are so incredible is because they put no constraints on the user, and you can use their tools to create things even the developers never dreamed of. Like in Photoshop for example, I bet when the dropshadow fx was created, the developers never realised that it would be used to give a metallic 'stamped' look to text by turning it to white and applying it just inside the text.
    Captivate, though amazing most of the time, has a nasty habit of stomping on my toes. You can't set grade boundaries and have quizzes give out grades A+ to F- for example. You can only have 'pass' and 'fail', thus making it rather pointless for use in schools, contrary to how the program is advertised. Another example would be when I wanted to create a replay button. I thought that a button that jumped to the slide it was on would be a simple, no-BS replay button, but for some reason you can't make a button jump to its current slide. I downloaded a widget that worked in the end, but I wish Adobe would get off my back and let me do what I want!
    Anyway, if you could help me out here it would be grand

    I must say I have a little sympathy for the Captivate developers on this occasion.  As you say, they've created an application that does so much, that when you eventually run into a hard boundary of some kind, the effect is somewhat jarring.  However, every application, no matter how good, has limits.  I'm probably one of the worst offenders when it comes to asking the Adobe Captivate Development Team for enhancements (I think I've logged over 70 enhancement requests for Captivate 6 alone).
    In your case, you want to have three different quizzes in one project file, each with it's own separate Quiz Results page.  Lilybiri's blog explains how to set up your own faux Quiz Results pages using system variables and custom user variables, but you're going to find this to be quite a lot of trouble.  Even if YOU want to consider these as three separate quizzes, as far as Captivate is concerned they're just one big quiz with 50 questions.  So Captivate will calculate it's internal results based on a 50 question quiz, even if your users select the 10 question version.  So achieving a final Pass/Fail result is going to be problematic at best.
    As Lilybiri suggested, your better strategy would be to break this up into separate modules so that you can get your three separate quiz results (all done in standard Captivate) as well as correct results based on the actual number of questions done by the user.
    As far as grades A-F is concerned, there's nothing to stop you from using Advanced Actions and User Variables to calculate the user's score as a grade.  You need a user variable that stores the user's grade (e.g. var_Grade). And you need a fairly complex Conditional Advanced Action (e.g. caa_CalculateGrade) with several clauses each of which goes something like:
    If
    cpQuizInfoPointsscored is lesser or equal to [highest score for a particular grade]
    AND
    greater or equal to [lowest score for a particular grade]
    Actions
    Assign var_Grade with [the appropriate grade for that range of scores]
    Your conditional action will need one of these clauses for each separate grade.  Once your variable has been assigned a grade based on the user's score, you can display it in a text caption somewhere on the quiz results page or on a slide thereafter with suitable commendations/ commiserations.

  • Script error - Inserting multiple rows in one SQL statement.

    Hi,
    Tried using INSERT ALL INTO command inside Script. But getting below error.
    Oracle <> error message for operation <OCIStmExecute>: <ORA-00928: missing SELECT keyword>.
    Same query with single insert statement runs fine without any issues.
    Oracle eg:
    INSERT ALL
        INTO item (title) VALUES ('title5')
        INTO item (title) VALUES ('title6')
        INTO item (title) VALUES ('title7')
    SELECT * FROM dual;
    Appreciate your suggestions.
    Thx

    Hi,
    Actual syntax is as below:
    INSERT ALL
      INTO suppliers (supplier_id, supplier_name) VALUES (1000, 'IBM')
      INTO suppliers (supplier_id, supplier_name) VALUES (2000, 'Microsoft')
      INTO suppliers (supplier_id, supplier_name) VALUES (3000, 'Google')
    SELECT * FROM dual;
    Now in your non working query, you have applied comma after first INTO statement.
    Please remove it.
    Thanks,
    Swapnil

  • How do I make multiple videos on one slide play in full screen when selected?

    I want to put four short videos per slide and have each play in full screen when I click on them. How can I do this? Thanks

    I've figured out to hyperlink to the video in a different presentation, which works. BUT how do I end back on my original slide?

  • Make multiple clips from one music track

    How do I trim my music track so that I can edit out parts in the middle--not just the ends?

    do the following:
    1. create the two different instrument tracks, let's say instr1 and instr2
    2. got to the environment window and search these two tracks and drag them a bit aside
    3. choose New/Transformer
    4. drag the Transformer object in the neighberhood of the two instrument tracks
    5. cable the output of instr1 to the input of the transformer object
    6. cable the output of the transformer object to the input of the instr2 track
    7. go back to the arrange window
    8. select instr1 and enjoy!

  • How to i write a script that makes multiple selections in a pdf and exports them to excel?

    I have a large number of PDFs
    Not all the PDFs contain information we need. We want to be able to automate a script that extracts certain info from the PDFs and opens them in a certain format in excel.
    Acrobat allows me to make a single selection and export as excel.
    How do i export multiple parts to excel from the pdfs and ensure that the resulting excel is in a format that i can use without much fixing needed (e.g. merged cells)?

    This type of process can't really be done using JavaScript. You would need to read the contents of the file, word by word, decide (based on some logic) what data to extract, and then collect it and at the end export to a plain-text file. Not a simple process...

  • Linking multiple images to one rollover hotspot.  Multiple hotspots on one slide.

    Does anyone know if there is a widget or work around or something that will allow me to do this? My job depends on it
    Thanks!

    As long as you're not worried about output to HTML5, the Event Handler widget is probably your best bet:
    http://www.infosemantics.com.au/adobe-captivate-widgets/event-handler-interactive
    I think what you're probably trying to do is have multiple images appear or disappear when a user mouses over a given hot spot. Is that correct?  If so, then all you really need is a single Event Handler widget attached to a highlight box set to 0% Alpha (to make it act as a transparent hotspot).  You can execute one Advanced Action to SHOW the images via the On Success event set to Roll Over, and a different Advanced Action set to the Roll Out even on the Failure side of the widget to HIDE all the same images.  Set the widget preference to Reset Success Fail Criteria on Action so that you can perform the mouseover and mouseout actions repeatedly.
    You can even stack multiple widgets onto a single object, each widget can be set to listen for a different mouse event and do something different depending on what the user does.

  • One to Many with multiple tables on One side and one table on Many side

    Sorry for the confusion in the title. Here is my question. In my program, I have 2 different tables which store 2 different type of entities. Each one of entities has a list of attachments which I stored in a common attachment table. There is a one-to-many relationship between entity tables and attachment table.
    ENTITY_ONE (
    ID
    NAME
    ENTITY_TWO (
    ID
    NAME
    ATTACHMENTS (
    ID
    ENTITY_ID
    ATTACHMENT_NAME
    ENTITY_ID in ATTACHMENTS table is used to link attachments to either entity one or entity two. All IDs are generated by one sequence. So they are always unique. My question is how I could map this relationship into EntityOne, EntityTwo and Attachment JAVA class?

    For EntityOne and EntityTwo you can just define a normal OneToMany mapping using the foreign key.
    Are you using JPA, or the TopLink API? JPA requires a mappedBy for the OneToMany, so this may be more difficult. You should be able to just add a JoinColumn on the OneToMany and make the column insertable/updateable=false.
    For the attachment, you could either map the foreign key as a Basic (DirectToFieldMapping) and maintain it in your model, or use a VariableOneToOne mapping in TopLink (this will require the entities share a common interface).
    James : http://www.eclipselink.org : http://en.wikibooks.org/wiki/Java_Persistence

  • Credit check with one payer attached with multiple payers agnst one sold pa

    Dear Experts,
    We have the following Sales Structure in our Company.
    Dealer and Direct Customers serviced through the Dealer.
    Dealer pays a local Cheque/DD on be-half of the direct customers to the Company to take the goods.
    This amount is booked as advance in the Dealer account who serves a few Direct Customers.
    Sales Invoice is raised on the Direct customer. At this stage SAP should check the Credit limit of the Dealer and not at each of the direct customer level.
    If overall credit limit of the dealer exists, then dispatch/billing can be made to any of the direct customer under this dealer.
    After some days the Direct Customer pays the Company for the earlier Invoice raised. This payment has to be adjusted with the Invoice.
    The Dealer earlier payment shall either be returned to him or adjusted against his Invoice (Goods are also supplied to the Dealer for his own sales)
    We have tried to configure this as Payer and Sold-to-party in SAP. But we are unable to generate a Statement of Account u2013 Direct Customer wise, as the entire financial documents (Invoices) are booked against the Payer and not under the sold to party.
    Can we manage this structure in SAP where individual statement of account get generated at each of the direct Customer level and also a consolidated Statement of Account at the Dealer level.
    Our main requirement is Credit Check at the Dealer level while raising an Sales Order/Invoice, but accounting has to happen at the direct Customer level
    Can any one give me some light, how to handle the above in SAP

    Hi Sai,
       Please kindly consider the following parameter of the billing type:
    Branch/head office relationship
    The indicator controls which partner functions of the billing document can be forwarded to Financial Accounting
    initial :
    If the payer is different to the sold-to party, the payer is transferred to Financial Accounting as the customer and the sold-to party as the branch. Any branch/head office relationship stored in FI is ignored.
    A :
    The sold-to party is forwarded as the customer. Any branch/head office relationship stored in FI for this customer is taken into account.
    B :
    The payer is forwarded as the customer. Any branch/head office relationship stored in FI for this customer is taken into account.
    Note:
    If the credit limit check is active, the system always reacts as described in the entry 'initial', regardless of the setting.
    Thank you and best regards.

Maybe you are looking for

  • Can i connect my canon 7d to my iPad air

    Can I connect my Canon EOS 7D camera to my iPad Air with or without a cable for picture download or remote shooting.

  • Lightroom Profiles for Lumix GX7?

    I'm trying out various programs for RAW processing using my new Lumix GX7. I quite like DXO Optics Pro 9 due to the camera and lens profiles for my equipment. However, it has limited functionality compared to Lightroom 5.6 which I'm also trying. I no

  • How to call a subvi to run in background?

    i have a timed loop which is gathering data and storing it in an array.  when the array reaches a certain size, i would like to store it to a file while continuing to process new data into the array quickly.  how can i pass the array to a file storag

  • Mac mini freezes after software update install in leopard

    hello, ever since i purchased my mac mini 8 months ago, it freezes when installing a software update that requires a restart. it seems to get through the whole process, but then freezes with the default galaxy desktop (even though that is no longer m

  • Equalizer on the 2010, 160GB iPod Classic

    A friend recently showed me how to make custom equalizer settings in iTunes and now that I have tweaked a couple things and found what works for me, I want to move that equalizer preset to my iPod. Is this possible? Because I have fiddled around and