Possible to use an expression for a property path?

Hello,
I've run into a problem.  I want to use SetNumElements on an array, for which I'd like to vary the first "array" parameter based on an iteration of a loop.   I want to increment the size of a different array for every iteration of a "for each" loop.  The array which the forEach loop is iterating over contains the names of the arrays contained in Parameters.  So I'm trying to use an expression to build the property path within the SetNumElements parameter, but it is complaining.  My expression is:
SetNumElements("Parameters." + Locals.CurrentElement, GetNumElements("Parameters." + Locals.CurrentElement) + 1)
I get "expected array, found string" syntax error.
Is it possible to "build" the property name string in this function?  I see the "evaluate" function, but that seems it will try to return the contents of the property, which I don't want.  I just want to build the array name itself.
Thanks for any input.
David Jenkinson

Hello David,
It looks like you are evaluating a specific element (in this case that element is a string).
Here is a simple example of what I believe your overall objective is:
Parameters.Random is an array of numerics with 10 elements 
Locals.String = "Random"
In my statement step I have:
SetNumElements(Evaluate("Parameters."+Locals.String), 1)
So essentially we must use evaluate when building an expression for the entire array, not just one element.
If the expression you want is contained in that array (ie if Parameters.StepTypesToSearchFor[1] = some string of the array ("locals.array") then you will need another Evaluate() function to evaluate that expression.
As an aside, this will only change the size at runtime, the variables (unless they are Station Globals) will return to the defaults when the execution is complete.
With warm regards,
David D.

Similar Messages

  • Using AP Express for Printing ONLY

    Hey Discussions,
    I want to purchase an Airport Express for the sole purpose (right now) of printing. Is it possible to use the Express without an Internet connection?
    Thanks,
    Mateo

    Yes, you can use it as a client to an existing wireless network for printing or streaming iTunes.
    AirPort Express Base Station (AX) - Client Mode Setup
    - Plug the AX into a power outlet.
    - On your computer, join the wireless network created by AX.
    - Open AirPort Admin Utility. (Mac users: Find it in /Applications/Utilities/. Windows users: On the Start menu, point to All Programs and click AirPort.)
    - After AirPort Admin Utility opens, the name of your AX appears in the list. Select it, then click Configure.
    - Enter the administrator password if prompted.
    - Click the AirPort tab.
    - Enter a name for your AX in the Name field. (This name is how it will appear in AirPort Admin Utility; it may be different from the AirTunes remote speaker name. (Note that AirPort Setup Assistant does not allow you to differentiate these names, but AirPort Admin Utility does.)
    - If your AX does not already have an administrator password, click the Change Password button to enter one. This password can be different from any network password, and is used for just changing settings on AX.
    - In the same pane, under the AirPort Network heading, change the Wireless Mode from "Create a Wireless Network (Home Router)" to "Join an Existing Wireless Network (Wireless Client)."
    - Type the name of the wireless network you want to join in the Network Name field. (Note: If you're using AirPort Admin Utility in Mac OS X, you may be able to choose the network from a pop-up menu. This is the name (or SSID) of your current wireless network with the Trendnet router.)
    - If the wireless network is password protected, you will need to enter the password. (Mac users: Click Security Options, choose the level of password encryption from the Wireless Security pop-up menu, then enter the password. When finished, click OK. Windows users: Click Wireless Security, choose the level of password encryption from the Wireless Security menu, then click "Set WEP Password" to enter the password. When finished, click OK.)
    - Click the Music tab to enter the name that will appear in iTunes as your AirTunes remote speakers. You can also enter a password to prevent others from streaming music to your speakers.
    - Finally, click Update to send your new settings to AX.
    Once the AX has had a minute or so to restart, it should join the existing wireless network, as indicated by its status light turning solid green.

  • Request some help, over procedure's performance uses regular expressions for its functinality

    Hi All,
            Below is the procedure, having functionalities of populating two tables. For first table, its a simple insertion process but for second table, we need to break the soruce record as per business requirement and then insert into the table. [Have used regular expressions for that]
            Procedure works fine but it takes around 23 mins for processing 1mm of rows.
            Since this procedure would be used, parallely by different ETL processes, so append hint is not recommended.
            Is there any ways to improve its performance, or any suggestion if my approach is not optimized?  Thanks for all help in advance.
    CREATE OR REPLACE PROCEDURE SONARDBO.PRC_PROCESS_EXCEPTIONS_LOGS_TT
         P_PROCESS_ID       IN        NUMBER, 
         P_FEED_ID          IN        NUMBER,
         P_TABLE_NAME       IN        VARCHAR2,
         P_FEED_RECORD      IN        VARCHAR2,
         P_EXCEPTION_RECORD IN        VARCHAR2
        IS
        PRAGMA AUTONOMOUS_TRANSACTION;
        V_EXCEPTION_LOG_ID     EXCEPTION_LOG.EXCEPTION_LOG_ID%TYPE;
        BEGIN
        V_EXCEPTION_LOG_ID :=EXCEPTION_LOG_SEQ.NEXTVAL;
             INSERT INTO SONARDBO.EXCEPTION_LOG
                 EXCEPTION_LOG_ID, PROCESS_DATE, PROCESS_ID,EXCEPTION_CODE,FEED_ID,SP_NAME
                ,ATTRIBUTE_NAME,TABLE_NAME,EXCEPTION_RECORD
                ,DATA_STRUCTURE
                ,CREATED_BY,CREATED_TS
             VALUES           
             (   V_EXCEPTION_LOG_ID
                ,TRUNC(SYSDATE)
                ,P_PROCESS_ID
                ,'N/A'
                ,P_FEED_ID
                ,NULL 
                ,NULL
                ,P_TABLE_NAME
                ,P_FEED_RECORD
                ,NULL
                ,USER
                ,SYSDATE  
            INSERT INTO EXCEPTION_ATTR_LOG
                EXCEPTION_ATTR_ID,EXCEPTION_LOG_ID,EXCEPTION_CODE,ATTRIBUTE_NAME,SP_NAME,TABLE_NAME,CREATED_BY,CREATED_TS,ATTRIBUTE_VALUE
            SELECT
                EXCEPTION_ATTR_LOG_SEQ.NEXTVAL          EXCEPTION_ATTR_ID
                ,V_EXCEPTION_LOG_ID                     EXCEPTION_LOG_ID
                ,REGEXP_SUBSTR(str,'[^|]*',1,1)         EXCEPTION_CODE
                ,REGEXP_SUBSTR(str,'[^|]+',1,2)         ATTRIBUTE_NAME
                ,'N/A'                                  SP_NAME    
                ,p_table_name
                ,USER
                ,SYSDATE
                ,REGEXP_SUBSTR(str,'[^|]+',1,3)         ATTRIBUTE_VALUE
            FROM
            SELECT
                 REGEXP_SUBSTR(P_EXCEPTION_RECORD, '([^^])+', 1,t2.COLUMN_VALUE) str
            FROM
                DUAL t1 CROSS JOIN
                        TABLE
                            CAST
                                MULTISET
                                    SELECT LEVEL
                                    FROM DUAL
                                    CONNECT BY LEVEL <= REGEXP_COUNT(P_EXCEPTION_RECORD, '([^^])+')
                                AS SYS.odciNumberList
                        ) t2
            WHERE REGEXP_SUBSTR(str,'[^|]*',1,1) IS NOT NULL
            COMMIT;
           EXCEPTION
             WHEN OTHERS THEN
             ROLLBACK;
             RAISE;
        END;
    Many Thanks,
    Arpit

    Regex's are known to be CPU intensive specially when dealing with large number of rows.
    If you have to reduce the processing time, you need to tune the Select statements.
    One suggested change could be to change the following query
    SELECT
                 REGEXP_SUBSTR(P_EXCEPTION_RECORD, '([^^])+', 1,t2.COLUMN_VALUE) str
            FROM
                DUAL t1 CROSS JOIN
                        TABLE
                            CAST
                                MULTISET
                                    SELECT LEVEL
                                    FROM DUAL
                                    CONNECT BY LEVEL <= REGEXP_COUNT(P_EXCEPTION_RECORD, '([^^])+')
                                AS SYS.odciNumberList
                        ) t2
    to
    SELECT REGEXP_SUBSTR(P_EXCEPTION_RECORD, '([^^])+', 1,level) str
    FROM DUAL
    CONNECT BY LEVEL <= REGEXP_COUNT(P_EXCEPTION_RECORD, '([^^])+')
    Before looking for any performance benefit, you need to ensure that this does not change your output.
    How many substrings are you expecting in the P_EXCEPTION_RECORD? If less than 5, it will be better to opt for SUBSTR and INSTR combination as it might work well with the number of records you are working with. Only trouble is, you will have to write different SUBSTR and INSTR statements for each column to be fetched.
    How are you calling this procedure? Is it not possible to work with Collections? Delimited strings are not a very good option as it requires splitting of the data every time you need to refer to.

  • Is it possible to use iCloud storage for videos

    Is it possible to use iCloud storage for videos. I ran out of 16 gig storage on my iPad.

    You can try cloud storage like Sugarsync, Dropbox or Box.com
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%203/b8e055e5cd15e01d23d aa6d55f1bea4b.jpg

  • Is there a way to turn the wireless capabilities off on an AirPort Express?  I have an AirPort Extreme as my main router and use the express to just extend it. I only really want to you use the express for hard ethernet connections

    Is there a way to turn the wireless capabilities off on an AirPort Express?  I have an AirPort Extreme as my main router and use the express to just extend it. I only really want to you use the express for hard ethernet connections. For whatever reason when I have my express extend my wifi at home the download speed from just the express is absolutely terrible, drops to about 1.5 mb compared to when it's on the extremes part of the network the speed goes up to 50-75mb. These terrible download speed really only affects the iPhones as my MacBook Pro usually gets the good speed no matter where it is. I don't believe there is anything wrong with my phone because if I am in the part of the house that uses just the extreme the download speeds on the iphone goes up to 50-75mb. As a note I have an AirPort Extreme on the top floor of my house (second floor) that's where my modem is located. On the first floor that's where one airport express is located. I also have another airport express in the basement that is accessed by my landlord. Any thoughts on how to fix this would be helpful.

    Is there a way to turn the wireless capabilities off on an AirPort Express?  I have an AirPort Extreme as my main router and use the express to just extend it. I only really want to you use the express for hard ethernet connections.
    It appears that your networking goals with the AirPort Express is to use it as a wireless Ethernet bridge instead of using it to extend the wireless range of your AirPort Extreme. The latter requires that the Express Wi-Fi radios be enabled.
    If you intended to use the Express as a wireless bridge, you just need to reconfigure it to "Join a wireless" network instead of "Extend a wireless network."
    For whatever reason when I have my express extend my wifi at home the download speed from just the express is absolutely terrible, drops to about 1.5 mb compared to when it's on the extremes part of the network the speed goes up to 50-75mb.
    In an extended network, the placement of the extending base station is critical as it can only extend the wireless network at the bandwidth at which it receives it.
    Please check out the following AirPort User Tip for details on optimal base station placement.

  • On my home PC, I operate with Windows XP and use Outlook Express for my email.  Can my Outlook Express address book be imported by my IPhone4

    On my home PC, I operate with Windows XP and use Outlet Express for my email.  Can my Outlook Express address list be imported to my IPhone4

    Not directly; OE is not supported by iTunes. You need full Outlook. Address Book in later versions of Windows is supported.

  • Using regular expressions for validation in i18n

    Can we use regular expressions for validation of inputs in a java application taking care of i18N aspects too. Zip code for different locales are different. Can we use regular expressions to validate zipcode inputs from different locales

    hi,
    For that shall i have to create individual patterns for matching the inputs from different locales or a single pattern will do in the case of validating phone nos. around the world, zip codes etc. In case different patterns are required, programmer should have a konwledge of difference in patters for different locales.
    regards
    sdas

  • Using Airport Express for External speakers and Apple TV.  When I'm on MAC computer adn using internet sound from Internet does not go through external speakers.  Instead it comes out of Mac computer speaker.  Why?

    Using Airport Express for External speakers and Apple TV.  When I'm on MAC computer adn using internet sound from Internet does not go through external speakers.  Instead it comes out of Mac computer speaker.  Why?

    As far as I know, the Airport Express only transmits sounds via Itunes. So every other sound (internet, but also incoming mail) will be coming out of your mac instead of your external speakers.

  • The Wifi storage options are interesting but it seems they only allow to read files from the device on the iPad but not transfer files to the storage device via WiFi.   I'm looking for a possibility to use the iPad for photography while traveling, without

    the Wifi storage options are interesting but it seems they only allow to read files from the device on the iPad but not transfer files to the storage device via WiFi.
    I'm looking for a possibility to use the iPad for photography while traveling, without the access to a computer.
    Shooting photo's in RAW format crates pretty big files that will fill up the iPad's memory pretty fast if you shoot a lot during a (let's say) month long trip.
    my idea was to use load the photo's to the iPad so i could view them and sort out any bad ones. then copy them over to the storage device so i can continue using my CF cards for shooting. I have an image thank for copying the photo's directly to the HDD but it would be so sweet to be able to check them on the iPad before hand.
    any suggestions?

    Check out pogo plug device, it allows you to upload camera roll via wifi.

  • I am using outlook express for my mail. When using internet explorer on PC I could set it up so I could simultaneously see all my inboxes, the mail details and a message preview. Can I do this  on my Mac?

    I am using outlook express for my mail. When using internet explorer on PC I could set it up so I could simultaneously see all my inboxes, the mail details and a message preview. Can I do this  on my Mac?

    About accessing using a browser: I can get in using Firefox or Safari, butI cant set the page up to see all my inboxes at the same time (so I can file emails appropriately) or get a preview to save opening every mail

  • Given filename or path contains Unicode or double-byte characters.Retry using ASCII characters for filename and path What does this mean? it happen when I publish an OAM

    Given file name or path contains Unicode or double-byte characters. Retry using ASCII characters for filename and path
    What does this mean? It is happening when I try to publish an OAM for Dreamweaver.
    Also: How can I specify the browser in Edge Animate? It is just going wherever. Are there no Preferences for Edge Animate?
    BTW. Just call it Edge. Seriously. Do you call it Illustrator Draw? Photoshop Retouching?

    No, my file name is mainContent.oam
    My project name is mainContent.an
    This error happens when I try to import into Dreamweaver. Sorry, I wasn't clear on that earlier.
    I thought maybe it was because I had saved my image as a png. So re-saved as a svg, still get the error.
    DO I have a setting is Dreamweaver CC that is wrong? Should I try this in Dreamweaver CS6? I might try that next.
    Why is this program so difficult? I know Flash. I know After Effects. I can work the timeline part just great. It's always in the export that I have problems.
    On a MacPro, 10.7.
    Are you an Adobe person or just a nice helper?

  • Regular expressions for matching file path

    Could someone give me idea that how can i compare a fixed path, with the paths user gives using regular expressions?
    My fixed path is : src\com\sample\demo\work\gui\.**
    and user may give like src\com\sample\demo\work\gui\test.jsp, src\com\sample\demo\work\gui\init.jsp etc.
    Any ideas are appreciated and thanks in advance.

    ...and if you insist on using regexes, you'll have to double-escape the backslashes: if ( userString.matches("src\\\\com\\\\sample\\\\demo\\\\work\\\\gui\\\\.*") ) { Whether you use regexes or not, you'll save yourself a lot of hassle by converting all backslashes to forward slashes before you do anything with the strings: userString = userString.replace('\\', '/');
    if ( userString.matches("src/com/sample/demo/work/gui/.*") ) {
    // or...
    if ( userString.startsWith("src/com/sample/demo/work/gui/") ) {

  • Using Airport Express for wireless printing and possibly streaming music

    I have had the toughest time figuring out this Airport Express. It seems there are so many different ways to set it up. I've tried to read forums but just can't seem to wrap my head around what I need to do. I tried awhile back to join my network wirelessly but was having problems.
    I don't really care about extending my current network. My internet service is through Verizon Fios and the router they provided works just fine and don't have any issues with connecting anywhere in the house. I bought the AE to be able to print wirelessly and stream music from my iMac in another room.
    So to print wirelessly obviously the printer has to be plugged in to the AE, but does the AE have to be plugged into my router? Or can I have the AE anywhere in the house wherever the printer is? When I print, am I using my existing network or do I have to disconnect a computer from the wireless network and access a 2nd network to be able to print?
    My first priority is to print wirelessly. If I can get it to work It'd be cool to stream music from my iMac. Obviously the AE needs to be where the speakers are, but again, does the AE have to plugged in to the router? And again, is this done through my existing network? Or do I have to stream music through a 2nd network? I apologize if i'm asking the same questions that have been asked in previous forums, I just haven't been successful thus far so wanted to see what response or tips I could get. Thanks.
    My existing network has "WPA Personal" security set up on it if you need to know that.

    but does the AE have to be plugged into my router? Or can I have the AE anywhere in the house wherever the printer is?
    If you configure the Express correctly to "join" your FIOS wireless network, you can position it anywhere that it will receive a good, strong wireless signal.
    The trick to setting the Express up to "join" is that you must choose exactly the same type of security for the Express as your main router is using. This is tricky when you are using devices from two different manufacturers because they often use different names for the same thing.
    For example, when you say that the FIOS is setup to WPA Personal, we really need more information. There's usually a TKIP or AES associated with WPA. You have two choices on the Express for WPA settings, WPA2 Personal or WPA/WPA2 Personal. We can only guess which one might be the correct match for your FIOS network and if you don't choose the right setting, the Express cannot join the network and you have to start the configuration all over again from scratch and try the other setting.
    Does your Fios have a setting for WPA2 Personal? Some manufacturers label this WPA2-PSK (AES). Or, maybe you find that your FIOS is using WPA-PSK (TKIP), which is the same thing as Apple WPA/WPA2 Personal. It's confusing. That's why we tell users to choose wireless gear from the same manufacturer. It's much easier when two devices talk the same language.
    When I print, am I using my existing network or do I have to disconnect a computer from the wireless network and access a 2nd network to be able to print?
    If you have a compatible printer plugged into the USB port on the AirPort Express and have "installed" the printer by setting it up, you will be able to print over your existing wireless network.
    First things first. You need to get the Express setup to "join" correctly and get a green light. Then, tackle the printer setup.

  • Is it possible to use Airport Express as a repeater and as an airplay device at the same time?

    Hi,
    I am using airplay with airport express stations in combination with conventional speakers for my home entertainment. Works great. Only thing is that I have a massive block of concrete in my flat. Is it possible to use one of my express stations as a repeater and at the same time as a streaming device for airplay? Thanks!

    Sure it works only with apple routers? Cause than I could stop trying.
    Yes, it's proprietary like everything else Apple. You could look at this:
    http://www.amazon.co.uk/dp/B006BBYXPA/?tag=hydra0b-21&hvadid=9550946469&ref=asc_ df_B006BBYXPA
    I have had great success installing these for BT Home Hubs and VM Superhubs.
    @JoeMY - If it is "joined" to the FritzBox then it won't work, it only works with Apple routers connected via Ethernet or as the main router.

  • [CS3 JS SDK] Possible to Use HTTP URLs for Links?

    I am attempting to use JavaScript to implement a connector from CS3 (InDesign/InCopy in my case) to our content management system. Our CMS provides an HTTP-based API. By using the HttpConnection object (from the Bridge code, see posts on "httpwebaccess library") I can access our repository using HTTP URLs and, for example, get an InDesign document or INX file (and the UI support in CS3 scripting makes it possible for me to build all the UI components I need without having to write a true plugin).
    However, what I *can't* seem to do is create Link objects that use a URL, rather than a File, to access resources.
    My goal is to be able to store in our repository InDesign documents that use URLs to other resources in the repository for links (e.g., to graphics and InCopy articles).
    However, as far as I can tell from the scripting documentation and my own experiments, the URL property on Link is read-only in JavaScript (even though the scripting API HTML indicates it's a read/write property) and Link instances can only be constructed using File objects.
    My question: have I missed some trick in the scripting API (or elsewhere) that would allow me to create links that use URLs instead of files (and having done so would InDesign resolve those URLs?)? Our repository does support WebDAV, so that might be an option, but it would depend on mounting WebDAV services in consistent places on client machines, which is dicey at best, given the weak nature of the WebDAV clients on both Windows and OS X).
    Or are my only options to either copy linked resources to the client's local file system (or a shared network drive) or implement a plugin that implements my desired behavior for links?
    And if the answer is a plugin, will that even work?
    This is in the context of CS3. Has the Link mechanism changed at all in CS4 such that I could do what I want in CS4 where I cannot in CS3?
    Thanks,
    Eliot

    Hi,
    It is not possible to use HTTP URLS in CS3. You will have to create a plug-in to use Custom Data Links.
    I think it is possible to use HTTP URLs in CS4 as per the User Guide.
    Regards,
    Anderson

Maybe you are looking for

  • Want To Have Flash Project Open In New Browser Window

    Hi, My project outputs and plays perfect to Flash (let default to Flash 7) but when viewing it (via a link from a web page) it opens in a "next" window and at the end, if you use the X (EXIT) button from the player control bar it wants to close the b

  • Assigning a type (domain) to an ALV Column

    Dear All, In my scenario I have an ALV Table with two columns. Column 1 : Reporting Variable Name Column 2 : Value for the lower limit I would like to be able to assign the data type for the cell in column 2 depending on the value of column 1. For ex

  • Can I find out dynamically the compilation data of an executbale ?

    I am tryhing to track the distribution of VIs to a lot of people. If I can uniquely identify an attribute (e.g. compilation date) I can compare it with the attribute of the current version (stored in a database that is accessed by the VI) and determi

  • [Help]Something Wired Going on with Apple TV

    Right, My Apple TV stays connected to the internet. it plays the radio fine. But when ever i try to play music from my iTunes libery on my mac for some reason after like 5-20 mins it's stop working and then i have to reselect the song for it play? (H

  • PDK Manuals

    Hi everybody Would you please advise me where I can find the best manuals about PDK? about my knowledge I am professional in PL/SQL and I want to know about the packages and the kind of function,procedures and packages I can create with PDK that is u