Using sourcetext from another layer as an array - blowing up expression

Hey all, I am doing something that I assumed would be a quick and easy, and it is turning into quite a headache.
Here is what I am trying... (The following works btw)
stuff = thisComp.layer("textSource").text.sourceText;
stuff[2]
The problem is that if I try an index higher than 3, the expression blows up. The error is somewhat odd too...
property or method named '4' in Class 'TextProperty' is missing or does not exist. It may have been renamed, moved, deleted...
The source layer has not gone anywhere. The only thing that changes was the index.
I want to break down the sourceText into individual letters to feed something else and this was how I was going to go about it as I don't think the you can 'split' into letters. I figured I could get the length of the string and then scoop out each letter. Not so much eh'?
Update...
Tried it with split, and this also breaks it. What's odd is it seems to work for just a moment, so the script takes the index, displays the letter, waits a second, then freaks out. It does the work/breaking thing as long as the string has contains enough characters, as where a request for something that is not there immediately breaks it (which we would expect)
stuff = thisComp.layer("This").text.sourceText.split("");
stuff[15]

Hey Dan,
First, thanks for your reply. I found my error. My source text is keyframed. I found a long lost keyframe with 4 letters in it which was causing problems for everything else. I had checked through them several times. My eyes have gone goofy I suppose, because it was right there, clear as day. Any idea of how many iterations I tried to make something that already worked, work. Grrrr. It's usually the little things that get ya, eh'?

Similar Messages

  • Resizing an image in a layer using values from another layer

    After resizing an image on a layer, is it possible to easily copy the resized width & height (pixel) values to images on other layers?  If so, then how?  I'm guessing there's an easy way, but it eludes me.  Copying the values manually is okay with just a couple of layers, but rather tedious for changing many layers.

    You could record an action to resize the layers. You could use the action only
    on one layer at a time.
    1. Pick the layer you want to have the other layers resized to and find the pixel dimensions
       of the layer i.e w 422 x h 830.
    2. Pick the layer you want to resize and make it active.
    3. Start recording the action following the steps below:
       (the menu commands are in red)
    4. When you get to the image size dialog, set as below with your own
        pixel dimensions. Don't change anything in the document size from
        how it's set when the dialog opens.
    5. After you record the action set the image size dialog so it opens
       whenever you run the action so you can change the pixel dimensions.
      Click in the box to the right of the checkmark (highlighted above in red)
    More info on recording actions
    http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7451a.h tml
    You can align or distribute layers with the move tool
    more info
    http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-78c2a.h tml
    http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-78c1a.h tml
    MTSTUNER

  • Can we use Result from another query in Webi using Bex uery universe?

    Hi,
    Can we use Result from another query filter option in Webi to create a report using a Bex Query universe?
    I need to create a report using two universes, one is Bex Query Universe and the other is Orcle universe. I have two queries, one is using Oracle universe; the other using Bex Query universe. I need to pass the Oracle data from the Oracle query to the Bex Query query to get the matched data from SAP Bex query.
    I used Result from another query in the query filter panel for the query using Bex query universe. But I got an error saying that 'A filter contains a wrong value. you cannot run this query. (Error: WIS 00007). The data used in the filter on both sides are the same. they are char.
    I have tested by using two queries from the same Bex query universe to see if the Result from another query filter option works. And I got the same error.
    Has anyone run into the same issue and if this is possible and what should be the solution?
    Thanks in advance!
    Edited by: BO_Haiyan on Oct 6, 2010 3:47 PM

    In that situation:
    Create two queries : Oracle and BW query.
    @ Report:
    As you have to see result set from both the Dataproviders, correct? To achieve thise one must have common dimension objects to merge them at report and use Objects those are coming from both queries to use them in single Table/Report.
    Unless you don't use Merge Dimensions, you don't get a chane to use both queries objects in single Table/Report. (It will give tooltip saying: You can't drop here -- Incompatable Objects)
    In case, if you don't have common dimensions, change object definitions to Detail objects, for those required.
    Hope it helps you.
    Thank You!!

  • Using data from another View

    Is it possible to create a new Grid in the same analysis where calculated/Grand Totals columns/rows may be used?
    I understand there is a feature use results from another analysis but wonder if it can be used in the same. Thanks.
    Adi

    Hi,
    Say you have a report for retrieving Sales by Products for a company and showing up grand total of sales for all products too in the same report. So, how about a case where you would like to see each product's contribution to the whole sales numbers? For this, a new column could be something like
    Measures.Sales*1.0/SUM(Measures.Sales)
    Here Measures.Sales is the sales for each product and SUM(Measures.Sales) is nothing but the total sales ie grand total.
    Hope this helps.
    Thank you,
    Dhar

  • JBO-33035: Row currency has changed; Using snapshots from another DB

    I receive this error due to a snapshot performing a complete refresh. It is not due to the user hitting the Back button in the browser. How can you get around this scenario. The page has been rendered, the user navigates somewhere else via some link, and the jbo-29000 and 33035 errors get thrown because of the snapshot having refreshed. It's not an option to stop using the snapshot. I have already tested setting 'Enable Token Validation' to false on the object. Still get the error. Any suggestions?

    Hi,
    I assume you use JavaServer Faces, correct ? In this case go to the starting page's pagedef file and opn the Structure Window
    - select the "bindings" node and create an "action" that you bind to the ViewObject execute() operation (If you use EJB or POJO, crate a methd binding)
    - in the "executables" section create an "invokeAction" pointing to the action created before
    - under refresh conditions, add #{!adfFacesContext.postback} so the iterator is refreshed when you navigate back from another page.
    This should solve the problem
    Frank

  • Using EJB from another connection pool in WLPI

    Hi All,
    I've deployed an entity bean (CMP) which used the connection pool other than the
    one used by WLPI. When I execute the business operation I've defined for this
    bean, the following exception is encountered:
    "Couldn't get connection: java.sql.SQLException: Connection has already been created
    in this tx context for pool named wlpiPool. Illegal attempt to create connection
    from another pool: oraclePool"
    Is there any other alternative for me to use the entity bean in WLPI?
    Thanks,
    Fred

    Instead of using mulitiple connection pool,we are using single connection pool.
    Our one application, accessing remote db also, for that we are using simple jdbc
    connection. No pool.
    We also tried OracleXAdriver. In that case, at the time of startup we are getting
    weird error.
    Thanks
    JIgnesh Patel
    "Fred" <[email protected]> wrote:
    >
    I simply turned all my CMP to BMP and get the connection from another
    connection
    pool. But that was not what I want. Is there any method that allows a
    CMP to use
    connection pool other than the wlpiPool pool in WLPI?
    Thanks
    "jignesh" <[email protected]> wrote:
    Hi Fred,
    We are also getting same error. How did you resolve this error ?
    I'd appreciate,if you can post resolution of this error.
    Thanks
    Jignesh Patel
    "Fred" <[email protected]> wrote:
    Hi All,
    I've deployed an entity bean (CMP) which used the connection pool other
    than the
    one used by WLPI. When I execute the business operation I've defined
    for this
    bean, the following exception is encountered:
    "Couldn't get connection: java.sql.SQLException: Connection has already
    been created
    in this tx context for pool named wlpiPool. Illegal attempt to create
    connection
    from another pool: oraclePool"
    Is there any other alternative for me to use the entity bean in WLPI?
    Thanks,
    Fred

  • Using methods from another Form C#

    Hello!
    I'm having some trouble using methods from one Form in another one. Here's the deal:
    This is a snippet from my 'main' form:
    public partial class PRINCIPAL : Form
    //some variables here
    Form2 Config = new Form2();
    Form3 Cadastro = new Form3();
    public PRINCIPAL()
    InitializeComponent();
    //code goes on and on
    //Here's the method I want to call on the other forms (Form2 and Form3)
    public void salva_banco()
    this.Validate();
    this.projetoBindingSource.EndEdit();
    this.modulosBindingSource.EndEdit();
    this.funcaoBindingSource.EndEdit();
    this.estadosBindingSource.EndEdit();
    this.tableAdapterManager.UpdateAll(this.database1DataSet);
    //And here is where I show Form3
    private void projetoDataGridView_CellDoubleClick_1(object sender, DataGridViewCellEventArgs e)
    Cadastro.ShowDialog();
    //And here is where I show Form2
    private void funcaoDataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
    Config.ShowDialog();
    }// And the code keeps on going}
    And this is a snippet from Form3:
    public partial class Form3 : Form
    public Form3()
    InitializeComponent();
    private void Form3_Load(object sender, EventArgs e)
    this.projetoTableAdapter.Fill(this.database1DataSet.Projeto);
    this.modulosTableAdapter.Fill(this.database1DataSet.Modulos);
    private void btnOK_Click(object sender, EventArgs e)
    if (projetoTextBox.Text == "")
    MessageBox.Show("some text here");
    else
    ////// HERE IS THE PLACE WHERE I WANT TO CALL THE METHOD! "salva_banco()"
    I've read lots of suggestions but none satisfied my condition.
    I appreciate any help.
    Thanks.

    You need to find the instance of the PRINCIPAL form to call the method on.  If you know there will always be exactly one open you can use:
    var principalForm = Application.OpenForms.OfType<PRINCIPAL>().Single();
    principalForm.salva_banco();
    David
    David http://blogs.msdn.com/b/dbrowne/

  • I am going to a Veterans Home, if I delete fire fox icon, will I be able to use it from another IP?

    if i sell my computer and delete the firefox icon, can i gain access to my bookmarks and passwords from another computer and different IP address?

    See:
    http://kb.mozillazine.org/Profile_backup and [[Backing up your information]]
    http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    You can upload that data using the Firefox Sync extension to access it on another computer.
    See:
    [[What is Firefox Sync]]
    [[How to sync Firefox settings between computers]]

  • Calling a bounded task flow (that uses fragments) from another application

    Hello,
    I'm currently having difficulties calling a task flow located inside another application.
    I have application Console which is my main application in which I would like to run other applications within. Inside this Console I have it divided into splitter windows and inside them I have regions. My goal is to be able to call a task flow from another application inside one of these regions but so far I'm having no luck.
    My first problem occurred when I created a 'local' task flow to make a call to another application's task flow. When I set the properties to the task flow call, it gave me an error that it could not find the .XML file for that task flow when I ran the Console application. I then proceeded to copy that .XML from the remote application into the Console's WEB-INF directory and I seemed to get a bit farther. The error I get now is saying that I cannot run a task-flow that uses fragments. It's essentially trying to run that task flow as an entirely new page instead of inside the region that it's bound to. It's NOT a dynamic region (although that's the end goal here). So I then changed the other application's task flow to simply display an entire page rather than fragments inside a region and voila, it works..... kind of.
    To recap how I was able to call another application's task flow inside the Console:
    - I had to manually copy the task flow xml file into the Console WEB-INF directory
    - I had to change the task flow so that it didn't use fragments
    - I have called the task flow but I lose my console page entirely, no more regions or splitters so I'm back to square one.
    If anybody has any suggestions, hints, tips or anything, send them this way and I will be forever greateful.
    Thanks,
    Mark

    Thanks for your response Frank.
    Unfortunately the problem seems to be greater than that. I've been able to package task-flows into a jar library and tried importing them that way with no luck.
    I'm simple trying to call an external task-flow to run inside a region which is inside a splitter panel that I call my console.
    Any other ideas ?

  • Sales using plan from another company code

    Hello Gurus,
        will you please provide some detail about customizing " inter-company sales processing", mainly about how to get plant from another company code?
    thanks very much!

    Hi
    explaining you in brief, the basic requirments for intercompany sales is,
    Both the company codes should belong to the same company
    The material should be existing in both the company codes
    Configuration Settings :
    1. The material should be extended to the Ordering company and while extending the plant and storage location should be maintained same(that of Delivering)
    2. An Internal Customer should be created in the Delivering Company Code. Use the Delivering Company code and ordering sales area.
    3. In the path IMG - Sales and Distribution - Billing - Intercomapny Billing -
        1. Define Order types for Intercompany Billing - where you have to assign the Billing type IV to the sales Order types.
        2. Assign Organisational units by plant - where you have to assign the Delivering plant to the ordering sales area
       3.Define Internal Customer number by Sales Organisation - where you have to assign the Internal Customer number to the ordering sales organisation
    In addition to this you have to define the plant as the Delivering Plant by maintaining the assignment of plant to Sales Organisation and Distribution Channel (of Ordering in enterprise structure)
    Now you can create an order and in that you have to change the plant manually and save.
    Thanks,
    Ravi

  • Unicode String Issue while Using Results from Another Query

    Hi All,
    In a webi report i have 2 queries say Sales Out and Investment. I need to have only those chains which are in Investement in Sales Out.
    So in Sales Out query i am using the option Results from another Query. The Chain values are in Unicode format.
    Though in universe i have Set Parameter Unicode_String ='Yes', this does not get applied when using option Results from another Query.
    Is there any solution to resolve this problem.
    Thanks
    Madhura

    leonhardtk wrote:
    I need to take values from the column of one table that meets certain critera, and create inserts into another table that includes this data.
    For example...
    {code}
    select emp_last_name from emp where emp_first_name like 'B%';
    Duncan
    Fitzgerald
    Johnson
    Smith
    {code}
    I then want to insert these values into another table:
    {code}
    insert into My_table values (
    sequence.nextval,99,99,[last_name]);
    {code}
    In the example above, I need it to insert a new row into My_table for where the "last_name" is each of the names from the select statement above (Duncan, Fitzgerald,Johnson,Smith).
    Based on other similar forum questions it looks like I should be doing something like:
    {code}
    INSERT INTO MY_TABLE
    (SELECT sequence.nextval,
                    99,
                    99,
                   (select EMP_LAST_NAME
                    FROM EMP
                    WHERE EMP_FIRST_NAME LIKE 'B%')
    {code}
    But this (obviously) doesn't work!
    Appreciate any assistance on this!
    KSL.
    Hi,
    Created this test data
    create table plch_test (name varchar2(50));
    insert into plch_test values('AKSHAY');
    insert into plch_test values('RAHUL');
    insert into plch_test values('APARNA');
    output
    1    AKSHAY
    2    RAHUL
    3    APARNA
    created another destnation table(in your case "my table")
    create table plch_test_1 (id number,name varchar2(50));
    created another sequence to generate employee ids
    create sequence test_seq;
    Now populated the desination table
    insert into plch_test_1(select test_seq.nextval,name from plch_test);
    verify the destination table
    select * from plch_test_1
    1    AKSHAY
    2    RAHUL
    3    APARNA
    Hope this helps
    Regards,
    Achyut Kotekal

  • Use Apex from another machine

    Dear experts
    Is it possible to use APEX for XE from another machine i.e. in the browser address bar can i type http://192.168.0.12:8080/APEX? It does not work for me. would really appreciate any pointers on this
    Thanks a lot
    Manish Sawjiani

    Sure, this is what XE is supposed to support :).
    You find some more in information here: Re: how can i  publish my application on the internet.
    ~Dietmar.

  • RAC uses lun from both EVA and XP array

    Hi,
    i Have created a RAC database on EVA array raw volume. Now i am trying to create a new tablespace for the same RAC database on XP raw volume but it hangs.
    Is it possible to configure the database to use lun from different different array say EVA and Xp.Single database uses lun from different arrays?

    TMR wrote:
    Is it possible to configure the database to use lun from different different array say EVA and Xp.Single database uses lun from different arrays?To answer this question alone - yes. Oracle does not care whether the disk you use is local, remote, SAN, storage array, SATA, SCSI or whatever.
    Why? Because the kernel does not expose different I/O routines depending on whether the device is a LUN, local SATA drive, local SCSI drive, remote network drive, etc. It exposes a single set of I/O routines that are device agnostic.
    Oracle calls these standard kernel I/O routines to create a data file, read data and write data. If these work, no problem. Oracle is not concerned about the exact device used by the kernel to perform that I/O. Nor does it know the type of device being written to. E.g. a LUN on the storage array is typically exposed as a SCSI device by the kernel - s/w using that device will be oblivious to the fact that it is actually a LUN on a storage array.
    PS. Just note that the right devices and combination of devices must be used to optimise performance. It will be not so bright to create an ASM striped diskgroup on 3 devices where 1 is a different device type all together and a lot slower than the other 2.

  • How to use Results from Another Query for SAP BW universes

    Hi Everyone,
    I have two SAP BI universes.In my First universe I have Sales Doc no (dimension) and Orderqty (Measure) and in my second universe I have Sales Doc no(Dimension) and BillQty (Measure).
    Here in my first dataprovider I have 1200 rows of data and in second dataprovider I have 75,000 rows. The report should fetch only the BillQty details that matches to corresponding  Sales doc no in first data provider.
    I want to place all these fileds into a single report like as shown.
    (Datarpovider1)                (Datarpovider1)                    (Datarpovider2)
    *Sales Doc No*               Orderqty                           BillQty
    Here I am able to generate single report using merge dimension but it is leading to performance issues. I want to restrict the values at query level by passing the First dataprovider Sales doc no to second Data provider Sales doc number using Results from Anothery Query feature so that It can fetch only the matching records.
    I tried it but it was giving the follwing error:
    A filter contains a wrong value. You cannot run this query. (Error: WIS 00007)
    How Can I get rid of this error. Can we use Results from Anothery Query option for OLAP universe. Are there any limitation on it.
    All this I am doing in Webi Rich Client.
    Appreciate your help
    Thanks &in Advance
    Kiran Saka

    Hi Kiran,
    I think the filter has a wrong operand. For example, a filter with an empty constant, or a filter that deals with numeric values is defined with an alphanumeric value.Check out for this.
    Regards,
    Neeraj

  • Can I use Apps from another apple ID?

    I bought my son an IPOD touch last christmas and didnt set up a new apple id. He is using my apple id as he was too young for an email at the time.
    Now he wants his own apple id as he wants to send messages etc. Can I set him up with a new apple id and be able to transfer his purchased apps and music onto this new apple id?
    Hope this makes sense

    - Go to settings>Store and sign out and sign into his new account.
    Also  go to settings>Messages>Send and Receive and Settings>FaceTime, and Settings>iCloud sign out of yur account and into the new one.
    - Apps are locked to the account that purchased them. They can't be transfered to another account
    - To update apps you have to sign into the account that purchased the apps. If you have apps that need updating purchased from more than one account you have to update them one at a time until the remaining apps were purchased from one account.

Maybe you are looking for

  • Runtime tab canvas does not look the same as designed in layout editor.

    I created a tab canvas with the following physical properties: Corner Style - Chamfered Width Style - Variable Active Style - Bold The canvas looks nice in the layout editor, with the above properties. However, at runtime, the tab canvas seems to ign

  • View the anchor in the object navigator

    Is it possible to list/see all the created anchor in the object navigator ?

  • From 6Mbps to 47Kbps in a heartbeat

    This is not a rant because frankly I don't have the energy for it. I have now been a BT customer for 14 days and I wont even bother going into the utter mess BT made of getting me online after giving them over a months notice of moving into our new h

  • DBA Reports large number of inactive sessions with 11.1.1.1

    All, We have installed System 11.1.1.1 on some 32 bit windows test machines running Windows Server 2003. Everything seems to be working fine, but recently the DBA is reporting that there are a large number of inactive sessions throwing alarms that we

  • How can I reorder my songs (track numbers)

    I've downloaded 2 songs, they say that they are track number 3 & 9; but they appear in the album from 9 to 3. This happened before with other albums, the order of the song are like 2, 12, 3, 5, 11, 1, 7, 6, 8, 4, 10 & 9. What can I do?