How come the same script only works in one form?

I made a checkbox that when checked it makes another subform visible. The script works perfect in one pdf. When I used the same script in another pdf (except I changed the variables of course) it doesn't work??????
It's set the same in both scripts. The subform name is exactly "CR" in uppercase. In the Events its set to click*, javascript at the client. Here is the script. Please let me know what's wrong????
if (this.rawValue == 1)
CR.presence = "visible";
else
CR.presence = "hidden";

You have to have the object referenced correctly and that can include subform and section information.

Similar Messages

  • How come the numeric keypad only works in log-in and not in normal progs?

    I've searched this forum for all things numeric keypad related and come up blank on this problem so I'm putting this question out there for anyone else who knows the answer.
    The numeric keypad on my iMacs only work it seems in typing in numbers in the password box at log-in, but in any other program, including Safari, I get nothing when I push those keys. Why is this and how can it be easily corrected with or preferably without the use of strange hacks if this is not some kind of missed setting? This one really bothers me. Why have a keypad at all if it isn't useful the majority of the time? I find the same problem on the Aluminum and plastic, wired, and wireless versions of the keyboard. If Apple didn't intend us to use the keypad in substitute for the number keys whenever we feel like it, wouldn't it make more sense to downsize the keyboards and sell them without one? The keypad only seems to work when set for use as a mouse-substitute, and nothing else.

    It's strange that it doesn't work on my desktops, but it works fine on my MacBook (but of course I have to use the f(x) key to make it work on that because it isn't really a separate keypad).
    Does anyone have any idea what settings under Tiger could cause the keypad not to function? It seems the problem is Tiger-related as the Leopard desktops don't exhibit the same problem.. Which keyboard is connected and by what method does not seem to make a difference.

  • Same script..works in one form but in another keep getting "Date is not a constructor" error.

    Using this javascript in one of my forms to timestamp it, (just a simple protected text field.)
    form1.MainPage.DateTimeStamp::docReady - (JavaScript, client)
    if (form1.MainPage.DateTimeStamp.rawValue == null) {
            var now = new Date();
            form1.MainPage.DateTimeStamp.rawValue = nowtoDateString() + now.toTimeString();
    This timestamps the form as it should.  The problem is on another form I'm building I'm using the identical script, (with different absolute paths of course,) and I keep getting a javascript error about date not being a constructor.  I've type the script in ten bajillion times and I'm at a loss for what is causing this.
    All I want is a simpel javascrip where I can display the time/date from the users system in a text field.

    Hi,
    You are missing a . inbetween "now" and "toDateString()"
    Also you can simplify the script as it is in the docReady of the textfield:
    if (this.rawValue == null)
         var now = new Date();
         this.rawValue = now.toDateString() + " " + now.toTimeString();
    Hope tht helps,
    Niall
    Assure Dynamics

  • My new iPhone 4s and my iPad 1 have the same problem: While working on one of them, the screen goes black and the right back to home screen. I've tried resetting the iPad with no chages to this problem. Need help, this is anoying.

    My new iPhone 4s and my iPad 1 have the same problem: While working on one of them, the screen goes black and the right back to home screen. I've tried resetting the iPad with no chages to this problem. Need help, this is anoying.

    I just did a reset all settings on both.
    Will see where this gets me.
    Thank you for your helpfull input.

  • How come the same apps that are available for my iPhone and my iPad are not the same as the apps in the app store on my mac

    I want some of the same apps available on my iphone and ipad2 to be available on my macbook pro app store and to be able to link them through icloud. Is this not possible? If not, why not?

    The Mac uses Mac OS X and iDevices use iOS. These are two different operating systems and the apps must be written for each operating system specifically, even when the apps go by the same name, such as the iWork apps, they are two ifferent versions of the same app for the two different platforms.
    So, as an example, Safari has been written for three different operating systems, Mac OS X, iOS and Windows. And the Safari apps, as similar as they are visually, are not interchangeable for the different platforms.

  • How come the backgrounds don't work in photobooth?

    I tried using the backgrounds for photo booth, and my picture always turns out really distorted, what should I do?

    What exactly is happening? Does the background work, then disappears as soon as you get in frame or is removes the wrong parts of the image, or is it something else?
    Because if it's that (which is a problem some people have had), I think it could be the auto exposure on the camera screwing up the background. All it's doing is comparing the pixels before and after, and if the exposure changes on the iSight camera (also if the background and foreground images are too similar), it will ruin the effect (which is why all the demos of backgrounds were done in professionally-lit environments).
    If that's not what the problem was, I'm not really sure.
    Message was edited by: Tyler Dykstra1

  • THE SAME EXE FILE WORKS IN ONE COMPUTER NICELY BUT WHEN I TRY TO COPY TO OTHER COMPUTER & RUN IT,IT CLOSES BY GIVING ERROR.ERROR IS IN LVRT.DLL FILE MOSTLY.ASKS ME TO REPORT TO MICROSOFT FOR THAT ERROR.

    I WOULD BE GLAD IF SOMEBODY COULD HELP ME OUT SETTING THIS FILE UP IN OTHER COMPUTERS.

    The login issue may be related to priveleges that your colleague has and that you don't. There may be some folder that you need read or write access to. However, without seeing the source code, it's impossible to know what folder this might be. You can try setting all NI folders for read/write access to everyone and see if that fixes anything.
    The serial port issue may be that the VISA run-time engine is not installed. It could also be a problem with VISA aliases. The actual VISA resource name for com port 1 is ASRL1::INSTR. Com1 is a VISA alias. Simply installing the VISA run-time does not install the alias name. The alias can be installed by editing visaconf.ini or the program should be modified to use the actual VISA resource name.

  • Problem: Bookmark sync only works in one direction

    I have 2 computer, computer A has vista and computer B is a netbook with XP. The problem is that the bookmark sycn only works in one direction.
    For example: both my computer has the same book marks (previously sync with X-mark which is now disabled). I decided to do some clean up on computer B. If Y sync computer A, nothing happens, but when I sync computer B, all the cleanup I made has been undone since computer A override all the changes I made to B.
    In other words, the changes I made to B can never be applied to A.

    When you're doing a "clean-up" like that you need to use '''Reset Sync''' in Tools > Options > Sync - Current Account = Manage Account and use the ''' ''Replace all other devices with this computer's data'' ''' option. See the attached screenshot - use the third option.

  • User should only work on created Form

    Hi all!
    Here is my problem.
    A user is working in B1. For example:With a double_klick on a Textfield and a user created Form will be shown.
    No the User should only work with this Form until its closed! There should be no possibility to open an other form or so.
    Like if you get a MessageBox, there is no other "normal" way to work on until you close this Messagebox.
    May it is possible to let the Form act like such a Messagebox.
    Thanks for replies..
    Matthias

    The Sample you speak of show the hack/workaround (Not true modal functionality).
    From the sample:
        Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            ' Don't let the user to move to other forms
            Dim EventEnum As SAPbouiCOM.BoEventTypes
            EventEnum = pVal.EventType
            If bModal And FormUID <> "Modal" Then
                oForm.Select() ' Select the modal form
                BubbleEvent = False
            End If
            ' If the modal from is closed...
            If FormUID = "Modal" And (EventEnum = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE) And bModal Then
                bModal = False
            End If
        End Sub
    In the sample the bModal bool set to true when opening the form block all events by selecting the modal form on each event and setting bubbleevent to false.. the EventEnum = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE set the bModal to false so events can continue
    Biggest problem with this is if you use a eventfilter (which you should do)... here you need to remove the event filter along with setting the BModal (not in the sample), and reapply it after form close.
    <i>Kind Regards
    Rasmus Wulff Jensen | http://www.b1up.net</i>

  • Headphones only work in one ear...WHY?

    I have an ipod touch and the head phones only work in one ear.... Have tried them in my iphone and the headphones work fine
    Any ideas
    Thanks

    - Insert and remove the headphone plug a dozen times or so
    - Restore the iPod. Try to factory defaults/new iPod too.
    - If still problem then you have a hardware problem. Like the headphone jack is bad.
    Apple will only exchange your iPod for this price:
    Apple - Support - iPod - Repair pricing
    A third-party place is less expensive. Here is one place:
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • How to make the same code that works only?

    how to make the same code that works only?
    code:
    Form2.Close = Me.Enabled = true
    effect such as this code

    I have this code:
    Public Class Form1
    Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
    Form2.Show()
    Me.Enabled = False
    End Sub
    Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
    Form3.Show()
    Me.Enabled = False
    End Sub
    End Class
    he wants to after closing Form2 and Form3 unblocked the whole form1
    it means that:
    when I click the button, displays the himself form2 and blocks himself form1" and after closing Form2 , unlocks himself Form1"
    the same with Form3

  • I have problem with my wifi in 4 S, i cant connect to any wifi itried resetting network setting and reset all setting but the result was the same, its only keeps searching for wifi and cant find any, itried to use OTHER but also didnt work.please help me

    i have problem with my wifi in 4 S, i cant connect to any wifi itried resetting network setting and reset all setting but the result was the same, its only keeps searching for wifi and cant find any, itried to use OTHER but also didnt work.please help me???

    If Join was on then your home wi-fi must be set to Non-Broadcast.  If you did not set this up (maybe your provider did) then you will need to find the Network Name they used, and any password they used.  The SSID is Security Set ID and to see more try http://en.wikipedia.org/wiki/SSID .  Basically it is the name used to identify your router/network.  A lot of times the installer will leave it set as LinkSys, or Broadcom or whatever the manufacturer set it as for default.  Your best bet is to get whoever installed it to walk you through how they set it up, giving you id's and passwords so you can get in.  HOWEVER, if you are not comfortable with this (if you set security wrong, etc.) you would be well ahead of the game to hire a local computer tech (networking) to get this working for you.  You can also contact the vendor of your router and get help (if it is still in warranty), or at least get copies of the manuals as pdf files.  Sorry I can't give you more help, I hope this gives you an idea where to go from here to find more.

  • HT204053 I cannot use the password to update apps on my second IPhone.  It only works on one of the phones. They both have the same Apple ID and password.

    I cannot use the password to update apps on my second IPhone.  It only works on one of the phones. They both have the same Apple ID and password.

    If it really does not work, change your password here https://appleid.apple.com (Manage account) and try to add the account again. I hope it helps.

  • Working with my 2 FireWire HD i had a crash. the only way to start was a safe start. then id maged to start from a DVD and install a MAC OS 10.3 wich ran 4 some time then the same problem only safeMode. kernel panic inserted the tech tool DVD

    working with my 2 FireWire HD i had a crash. the only way to start was a safe start. then id maged to start from a DVD and install a MAC OS 10.3 wich ran 4 some time then the same problem only safeMode. kernel panic by inserting the tech tool DVD, wich produces the following highligted text:
    panic(cpu 0 caller =xffff0003): 0x300 - Data access
    latest stack backtrace for CPU 0:
    Backtrace:
    0x0009CC88 0x00D63C 0x00029DAO  0x000BOA10 0x000B4270
    proceeding back via exception chain:
    Exception state (sv=0x26acd700)
    PC=0x2717E900; MSR=0x00009030; DAR=0x00000000; DSISR=0x40000000; LR=0x2717EBE4; R1=0x26AD3AE0; XCP=0x0000000C (0x300 - Data access)
    Backtrace:
    0x27178B0 0x00344ACB 0x00345970 0x2717EC08 0x2718458 0x00340590
    0x003496EC 0x0034B59C 0x0034A6BC 0x000B1DD4
    Kernel Loadable modules in backtrace (with dependencies):
    com.apple.driver.AppleFWDHC1(3.9.5)00x2717c000->0x271aafff
    dependency: com.apple.iokit.10PCIFamily(2.6)00x1e840000
    dependency: com.apple.iokit.I0FireWireFamily(3.4.7)00x270dd000
    Exception state (sv=0x26abd280)
    PC=0x00000000; MSR=0x0000D030; DAR=0x00000000; DSISR=0x00000000; LR=0x00000000;R1=0x00000000; XCP=0x00000000 (unknown)
    BSD process name corresponding to current thread: kernel_task
    so what
    greetings from berlin

    Greetings,
    It appears to be a FW problem, possibly flaky case, or drive problem.
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or some USB or Firewire device, or 3rd party add-on, Check System Preferences>Accounts (Users & Groups in later OSX versions)>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons

  • How can i view excel on my iPhone 5s, with my ipad4 and the same ios7 viewing works without  3rd party App

    How can i view excel on my iPhone 5s ?
    with my ipad4 and the same ios7, viewing works without  3rd party App

    Dude or hot-spur,
    Not fishy at all!!!! You really think I would have taken any more of my time to post a bogus rant? We'll no, it is unfortunately all true. I want to hear from anyone who is experiencing such problems not anyone else that wants to put there two cents in. I really don't need anymore hate or negativity. Just people's experiences because I feel like I am the only one having so many problems. Thank you
    Yes, I have had some unfortunate bad luck to have so many problems at the same time, but some of them are just things you cannot do on the new OS.
    Thank you again

Maybe you are looking for

  • 10.6.8 Server Update Broke WebDAV

    I've searched on this and seen nothing. I upgraded my SLS to 10.6.8 a couple of days ago and everything seemed to go well. However I started getting authentication problems with WebDAV. This WebDAV server has been working faultlessly for months, imme

  • Confused - how to get my 10gR2 SE safe in terms of standyby or failover?

    Hello and thank you for your attention! I set up some 10g Databases in our sites, all ist working fine. Since we only registered all versions as standard edition licences, I learned, that the data guard feature is not available but in enterprise vers

  • How do i get spyware off my iCloud?

    How do I remove spyware from my iCloud?

  • New Notes deleted  when synced to iCloud

    When I add a new note on my Macbook Pro, the note is deleted as soon as it has synced with iCloud. Adding the note again results in duplicates on my iPhone.

  • 10.7.2 update cannot be saved?

    Anyone know how to solve this when updating to 10.7.2? "The update "Mac OS X Update" can't be saved.  The update could not be verified. It may have been corrupted during downloading. The update will be downloaded and checked again the next time that