Using string to designate a subform for the instanceManager

var propOptSubformID     = "8011"
var propSubformName     = Concat("SubformPropOption",propOptSubformID,".instanceManager")      //since instanceManager is object
$.resolveNode(propSubformName).setInstances(1)
I get:
I can't seem to find a way to use the instanceManager and successfully reference a subform using a string. Any ideas?
I want to avoid using conditional statements or switch if possible. I have 35 different subforms eachl with 0 instances. I want to identify one of the subforms using a variable (string) and make it exist. There has to be a way to do this, right?
I may have to name all the subforms the same and use an index--but I would like to avoid that, Or, I suppose I could loop through the siblings and compare my string to the subform name--but I think this might end up having the same problem. It would be really good to know how to do it with a string and the instanceManager..
Thanks,
Stephen
PS, I also tried
var propSubformName     = Concat("SubformPropOption",propOptSubformID,".instanceManager.setInstances(1)")
$.resolveNode(propSubformName)
and...  Nothing happens? No error and no subform either?

Thanks Robert,
I might be missing something--I've never seen square brackets used in the way you suggest. Am I missing something?
The subform doesn't have an index[propOptSubformID]  It would have an index[0] when it actually does exist. This isn't really an index problem. That would be easy and I think I may have to go that way (i.e. name them alll the same and reference them by index) if I can't reference the object.instanceManager and use its method setInstances() with a string.
This might be a clue: the error message referred to setInstances() as a property--it is a method(). If it had recognized it as a method, then it the error would have said that the object doesen't have a method setInstances(). Also, it represented the ("1") as a string when it an integer parameter for setInstances().
Stephen

Similar Messages

  • How can I use two single-dimensional arrays-one for the titles and array

    I want to Use two single-dimensional arrays-one for the titles and one for the ID
    Could everyone help me how can i write the code for it?
    Flower
    public class Video
    public static void main(String[] args) throws Exception
    int[][] ID =
    { {145,147,148},
    {146,149, 150} };
    String[][] Titles=
    { {"Barney","True Grit","The night before Christmas"},
    {"Lalla", "Jacke Chan", "Metal"} };
    int x, y;
    int r, c;
    System.out.println("List before Sort");
    for(c =0; c< 3; ++c)
    for(r=0; r< 3; ++ r)
    System.out.println("ID:" + ID[c][r]+ "\tTitle: " + Titles[c][r]);
    System.out.println("\nAfter Sort:");
    for(c =0; c< 3; ++c)
    for(r=0; r< 3; ++ r)
    System.out.println("ID:" + ID[c][r]+ "\tTitle: " + Titles[c][r]);

    This is one of the most bizarre questions I have seen here:
    public class Video
    public static void main(String[] args) throws Exception
    int[] ID = {145,147,148, 146,149, 150};
    String[] Titles= {"Barney","True Grit","The night before Christmas", "Lalla", "Jacke Chan", "Metal"};
    System.out.println("List before Sort");
    for(int i = 0; i < Titles.length; i++)
       System.out.println("ID:" + ID[i]+ "\tTitle: " + Titles);
    System.out.println("\nAfter Sort:");
    for(int i = 0; c < Titles.length; i++)
    System.out.println("ID:" + ID[i]+ "\tTitle: " + Titles[i]);
    Generally you don't use prefix (++c) operators in you for loop. Use postfix (c++).
    Prefix means that it will increment the variable before the loop body is executed. Postfix will cause it to increment after.

  • Error in SQL Query The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query

    hi Experts,
    while running SQL Query i am getting an error as
    The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    T2.LineText
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,T2.LineText
    how to resolve the issue

    Dear Meghanath,
    Please use the following query, Hope your purpose will serve.
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    CAST(T2.LineText as nvarchar (MAX))[LineText]
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry --where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,CAST(T2.LineText as nvarchar (MAX))
    Regards,
    Amit

  • I have 2 iCloud accounts. Can I delete one account so I can make use of additional space I purchased for the secondary account? Also iPhoto seems to only connect to the primary account? How do I send files to the secondary account?

    I have 2 iCloud accounts. Can I delete one account so I can make use of additional space I purchased for the secondary account? Also iPhoto seems to only connect to the primary account? How do I send files to the secondary account?

    Both accounts are completely independent from each other. In order to use the space that you have purchased for your secondary account, you must change it to become your primary account. Yes, as you said, services like photo stream only work with the primary account. Unfortunately, there is no comfortable way to just transfer data from one account to another one, but you can do it via a third party application e.g. via Dropbox: e.g. for photos: photos stored with your current primary account > manual transfer to dropbox > after you made your secondary account to the primary account,  transfer the photos back to your new primary account etc.

  • I have a hard drive for CD storage that needs to connect to the Ethernet router. sInce my router is not in this room, and in another room, I want to use my Mac as a router for the drive, and share the wifi. Ho do I do this

    I have a hard drive for CD storage that needs to connect to the Ethernet router. sInce my router is not in this room, and in another room, I want to use my Mac as a router for the drive, and share the wifi. Ho do I do this? I gace tried the System Preferences -> Sharing, shared internet to Ethernet, but can't se ethe device on Finder

    Djembe wrote:
    UEFI (unified extensible firmware interface) boot requires Global unique identifier Partition Table (GPT) as opposed to the older Master Boot Record (MBR). If your existing drive is formatted in MBR, you will need to adjust BIOS settings to enable legacy boot in order for it to work properly.
    Is there a performance difference between GPT and MBR? If GPT is better, I do not mind formatting the drive with it.
    5. No special drivers are needed.
    Thanks. What about the thunderbolt port?
    7. I think Lenovo estimates 6 hours.
    Lenovo says 6 hours with the 6-cell battery on its website.
    BrendaEM wrote:
    Hi,
    There was a serious BIOS/UEFI problem with that SSD . Perhaps this thread will save you some headaches. Someone is recomending shutting off Rapid Boot in the setup, which would probable mean little with a SSD, anyway.
    I read through this, and it looks like the problem was fixed in a BIOS update, which I plan to do. However, it also seems like Intel Rapid Start is not even worth it in the first place, as sleep consumes almost no power at all.
    W540: i7-4700mq, K2100m, 8 GB DDR3L, 512 GB SSD
    T510: i7-620m, NVS 3100m, 8 GB DDR3, 512 GB SSD

  • I have a late 2011 mac book pro and I'm wondering if it uses SATA II or SATA III for the hard drive? Which eventually I'm going to replace with a SSD.

    I was wondering if the late 2011 macbook pro uses SATA II or SATA III for the hard drive. The reseason I'm asking this is because some day I'm going to replace the Hard drive for a SSD drive down the road and would like to use all the performance of the SATA controler.

    SATA III.

  • My iPhone is about 6 months old now and I would say I don't use it that much. Yet for the last month or so the battery life has been going down and today after having charged it to 100% this morning, it was at 5% at 4 pm this aft. help!!

    my iPhone is about 6 months old now and I would say I don't use it that much. Yet for the last month or so the battery life has been going down and today after having charged it to 100% this morning, it was at 5% at 4 pm this aft. help!!

    Ok Fellas, let me give you a clue:  Games, particularly those that make heavy use of graphics and sound are notoriously power hungry.  In fact, when I was in the Navy many years ago, the folks working on the NTDS (Navy Tactical Data System)  computers used a version of Space Invaders to load test the AN/UYK-43 computers.
    I have also noticed that all of my laptops (I have a brand new Toshiba dual core, an older Toshiba single core, plus 2 Dell dual core machines) have significantly shorter battery life when I play Company of Heroes than when I am just reading e-mail or surfing the 'Net.  I have also noticed the same behavior when I play games on my 4th gen Touch and my iPhone 4.
    The fact is, iOS 5 did make some major improvements as well as adding some nice functionality like iMessage, wireless synch, and such, but the down side is that depending on how you use the device battery life can be shorter that what you may have experienced with pervious versions of iOS.  Its just the nature of the beast...
    We now return you to our regularly scheduled programming.....
    Oh John....  Oh Marsha.....

  • Hello everyone I have a question I use my Apple ID for iMessage but I want to know if I can use my friends Apple ID just for the App Store, can I do that ????

    Hello everyone I have a question I use my Apple ID for iMessage but I want to know if I can use my friends Apple ID just for the App Store, can I do that ????

    First on a computer try editing your ID to change the payment method to None.
    How do I change my Apple ID Name or personal information?
    You can change your Apple ID Name at My Apple ID. Click on Manage your Apple ID and sign in with your Apple ID name and password. Click Edit and enter the new information, then click Save Changes. Changes take effect immediately. You can also use My Apple ID to change your personal information, such as your mailing address or email address. See Changing the name you use for your Apple ID if you'd like more information.
    If problems see:
    Why can’t I select None when I edit my payment information?
    Last:
    Create a NEW account using these instructions. You have to use an email address not used with Apple before.
    Create a NEW account using these instructions. Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card

  • Executed as user: ADMIN\abc-SQLServer. Linked servers cannot be used under impersonation without a mapping for the impersonated login. [SQLSTATE 42000] (Error 7437). The step failed.

    Hi All, 
    We have verified permissions on both sides,current server and linked server, the user has sysadmin.
    Another key piece of information is that this is happening when executing a SQL Job.
    Thanks.

    Related:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/328616e9-42cb-40d7-a4b1-671d6a492d8f/linked-servers-cannot-be-used-under-impersonation-without-a-mapping-for-the-impersonated-login?forum=sqldatabaseengine
    https://support.microsoft.com/kb/2492477?wa=wsignin1.0
    http://sshakespeareblog.co.uk/2013/07/31/sql-linked-server-and-sql-server-agent/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Can I use my parent's credit card for the billing information under my name?

    Can I use my parent's credit card for the billing information under my name?

    You can use whatever nickname that you want to use in the game center. You can change it as well. It shouldn't matter what nickname you use if that's what you are asking. Other people playing games are not going to know that you or your parents or whoever is the card holder. That name identifies you for social games and notifications, achievements and that sort of thing.

  • Hi, I've used four different Groups when emailing for the past few years, and suddenly they have stopped working. I've tried creating new Groups but that doesn't work either. I haven't changed or done anything different and it is driving me mad......

    Hi, I've used four different Groups when emailing for the past few years, and suddenly they have stopped working. I've tried creating new Groups but that doesn't work either. I haven't changed or done anything different and it is driving me mad......can anyone help, please?!

    Thanks for that information!
    I'm sure I will be calling AppleCare, but the problem is, they charge for the phone calls don't they? Because I don't have money to be spending to be on the phone with a support service.
    In other things, it seemed like the only time my MacBook was working was when I had Snow Leopard without the 10.6.8 update download that was supposed to be done to prepare for OS X Lion.
    When I look at the information of my HD it says that I have 10.6.8 but that was the install that it claimed to have failed and caused me to restart resulting in all of the repeated problems.
    Also, because my computer is currently down, and I've lost all files how would that effect the use of my iPhone? Because if it doesn't get fixed by the time OS 5 is released, how would I be able to upgrade?!

  • How do I use my AT&T SIM card for the unlocked Verizon iPhone 5s?

    So I am planning on getting an unlocked verizon iPhone 5s but the thing is my carrier is AT&amp;T. So how do I use my AT&amp;T SIM card for the unlocked Verizon iPhone 5s?

    If you plan on using AT&T, why on earth would you purchase a Verizon iPhone? Doesn't make any sense. Yea, it will work on AT&T's network, but you won't get LTE, only 3G. LTE requires using a Verizon sim.
    This is an extremely poor idea. Purchaase an officially unlocked iPhone, from Apple, if you want to use AT&T's network.

  • How can I connect multiple devices to Mac mini display port? I need to connect a Canon 5D to my Mac and display the result on a VGA video projector. I am using mini hdmi to mini display for the camera. Can I connect the VGA to any other port?

    Hi there I am connecting a Canon 5D to my laptop trying to use it as a webcam trough camtwist.
    At the same time I need to output the streaming to a videoprojector.
    The cam is connected to the mini display port do there is no port available for the VGA cable anymore.
    Do I need to use a different port for the projector? Should I buy a video card?
    Can't connect the camera via USB as that is too slow and it will freeze.
    Many thanks for all your help
    Best
    Faeve

    You might do better on a forum other than this one, which is "Using iPhone"

  • I have two apple ID passwords and two devices when I try to use my account/password it asks for the other account that I don't have the password to. Can update or buy anything. Can you help ?

    I have one computer and one iTunes library and two devices hooked up to it. But I have to apple IDs a different one for each of the two devices. When I try to buy or update something using my account and password it asks for the other account password so I can buy or update anything. I can log into this website using my accountant it recagnizes me but i still can't get it to work on the App Store . I don't know I'f this matters but I just updated to iOS 6 and then tried it and it wouldn't work. Before I updated it , when I would try to get an app or something it would still  ask me for the other password , but if I pushed cancel then it would ask me do mine and then it would work , but it doesn't do that anymore. If I push cancel it just cancels and does nothing. I hope you can give me some suggestions, I really need your help:)

    Check the AppleCare number for your country here:
    http://support.apple.com/kb/HE57
    Call them up, and let them know you would like to be transferred to the Account Security Team.

  • I need to use an older version of FireFox for the Mac (3.0) to be compatible with another program; how can I get it?

    My company uses SalesForce CRM and recently changed wholesale to Macs. Unfortunately, certain functions in SalesForce are not compatible with the current version of Safari or any version of FireFox newer than 3.0 and we need to be able to use those functions. How can I download that version for the Mac?

    There is also a portable Firefox 3.0 version via this link:
    http://prdownloads.sourceforge.net/osxportableapps/PortableFirefox_3.0_en-US-OSX_r4.0u.dmg?download
    It can take some time before the download starts.

Maybe you are looking for

  • Can I use Bridge to export image data into a .txt file?

    I have a folder of images and I would like to export the File Name, Resolution, Dimensions and Color Mode for each file into one text file. Can I use Bridge to export image data into a .txt file?

  • I can't print a pdf.

    When I click to print, I'm asked to save pdf. It's already saved. It will not print. What's wrong?

  • Email endpoints and attachments with localized characters

    Hi all, Just a short description of my process: People send emails with pdf's that need to be Reader Extended to an email endpoint (gmail), the process is simple it just picks up the attachment of the email and does the Reader Extension. However the

  • Is there a scaled down version of Illustrator?

    Is there a scaled down version of Illustrator similar to Elements for Photoshop? I'd like to be able to get a scaled down version of the software because I'm not a serious designer, so I wouldn't use most of the more complex functions.

  • Bluetooth Prefs on Intel Mac

    I recently upgraded from a PwrBk to a Intel Core 2D iMac 2.3/2GB/10.4.8. I was using a Palm device with the PwrBk and had no troubles using iSync and no troubles with Sys Prefs. I've been able to get the Palm syncing on the Intel Mac, but run into an