How do you make columns invisible/visible or hidden with checkbox?

Hi , i'm trying to make a column in a table either visible or invisible when i click a checkbox or button.
i have a single row table with mutiple columns of text objects within, i have set the "repeat data for each row item" to min 4, so i have four diplayed on page.
i have set the checkbox with the following script but it only makes the first row of "Received" visible when i click on the checkbox. and not the other
3 "Received" textobjects.
example:
form1.purchaseOrder.ProductHeader.Receivedchkbox::click - (JavaScript, client)
if (this.rawValue == "1") {       
    form1.purchaseOrder.Productdetails.detail.received.presence = "visible";
    form1.purchaseOrder.Productdetails.detailHeader.StaticReceived.presence = "visible";
else
    form1.purchaseOrder.Productdetails.detail.received.presence = "invisible";
    form1.purchaseOrder.Productdetails.detailHeader.StaticReceived.presence = "invisible"
So what i'm trying to acheive is for the form to make the "Received" textobject "invisible or hidden" at default.
Then when the form filler clicks the checkbox it become visible and vice versa.
So How do i apply a script like this to hide all 4 "Received" instances and  also the new ones i add by addinstance script?
I have attached the form, if someone could give me some help in working it out?
Thanks!!!

Hi,
It does help to see the form!
Basically you need to loop through all of the instances of the detail row and change the presence of the received object individually.
First the script would calculate the number of rows:
var vRows = Productdetails._detail.count;
The use of _ before the repeating detail is shorthand for instanceManager.
Then the if statement would change slightly, with the insertion of a for statement which works through all four rows.
if (Receivedchkbox.rawValue == true) {     
     form1.purchaseOrder.Productdetails.detailHeader.StaticReceived.presence = "visible";
     for(var i=0; i<vRows; i++) {
          xfa.resolveNode("form1.purchaseOrder.Productdetails.detail[" + i + "]").receivedSubform.presence = "visible";
else ...
Form attached.
Good luck,
Niall

Similar Messages

  • How do you make sure internet is switched off with the new iso7. In iso6 you pressed the centre button twice and it allowed you to close down open tabs I want to do the same....or go back to is06

    How do you close down the internet in ISO7

    You do the same thing, but now your open apps are displayed in a window view. Swipe left/right to find the app you want to stop, then swipe the app up to remove it. By the way, this doesn't turn off the internet. It only removes the app from memory that may be accessing the internet.

  • How do you make the layer mode take effect with no background in Elements?

    I have a picture of water splashing over a black background (like this:
    although this isn't the exact one). By turning the blending mode to "screen", I get the effect I want: it basically looks like the water is splashing over my image. The thing is, I need to save it as a .png file with part of the water "dripping" off the edge of my photo onto a transparent background (background must be transparent). The problem I have is as soon as the image hits the transparent background, the black comes back.
    I need a way to either remove all the black from the photo or, more ideally, find a way to make the image I see in "normal" blending mode the same as the image I see in "screen" mode. Any ideas? (I have Photoshop Elements 7.0, btw)
    Thanks!

    I don't understand how you're using "screen" blending mode on a single image, but is this the effect you're trying to get (I used a blue colour to show the transparent area at the bottom of the image):
    I used the free KillWhite plug-in (http://mikes3d.com/extra/scripting-plugins/killwhite/) with your image:
    Converted the image to RGB.  (Image...Mode...RGB Color)
    Duplicated the background layer (Ctrl+J).
    Inverted the colours on that duplicated layer (Ctrl+I), so that the black background becomes white.
    Used KillWhite to...well...kill the white on that layer.
    Inverted the colours again.
    Used Enhance...Lighting...Brightness/Contrast as well as Levels to darken the water splash.
    Added my flower image below the water splash layer and raised the bottom edge of the flower image to leave a transparent area.
    My layers wound up looking like this:
    Ken

  • How would you make an effect like this?

    Hi! I'm new to the forums, but hopefully it's ok if I start this new discussion. I'm very new to Photoshop as well (newbie).
    Here is the image: http://sffbookreview.files.wordpress.com/2012/10/life-of-pi-banner.png
    How would you make the image on the right - with the watercolor painting crop effect of the tiger? Also, how would you make the font on the left gradually turn to orange?
    Thanks! Your help is much appreciated.

    Hi there,
    Here's a really quick tutorial on how to add the mask and gradient text over the image of a tiger.
    Masking the Image
    1) Open your image of the tiger. There should be two layers in your layers panel: the image and a white background.
    2) With the tiger layer selected, click on the icon marked below in the layers panel to create a layer mask.
    3) Being sure you have the mask you just created selected, paint with black using the brush tool to mask out the image. In your layers panel, if you look at the mask icon, you will see the areas where you were painting (on the canvas) change to black. Use a variety of brushes to recreate the effect in your example image.
    Creating Text with a Gradient Effect
    1) Use the Type Tool to create your basic text and reposition it on the page with the Move Tool.
    2) In the layers panel, control click on the type layer and select Blending Options.
    3) In the dialog box that opens, check the Gradient Overlay box and click on the "gradient overlay" text to move to the gradient options. Adjust the angle of the gradient, then click on the colored bar to select the colors you want. Click OK on each dialog to close them.
    Final result:
    I hope this helps, and please let me know if you need any more assistance.

  • How do you make invisible folders visible

    how do you make invisible folders visible? My hard drive icon will not show up? I did not set-up this computer.

    The instructions I provided have nothing to do with Time Machine. Did you try what I suggested? If you select the "alias" file then CTRL- or RIGHT-click and select Show Original in the context menu.
    Maybe it would be helpful if you were to provide a more complete description of this issue.

  • /Volumes is now visible. How do I make it invisible????

    Simple question...
    /Volumes is now visible. I don't understand why. But anyway...
    How do I make it invisible????
    Thanks

    This has happened many times before and a poster, Kappy, gave a great answer. I like saving particularly good/important posts for references later on.
    This one was given by Kappy and I take no credit for the good advice. If he posts here and it has solved your problem please give him the "answered" post.
    Here it is:
    Open your Terminal app (Utilities folder) and at the prompt enter the following lines pressing return at the end of each line. Comments will be indented:
    prompt> cd /
    prompt> sudo pico .hidden
    You will be asked to enter your admin password. It will not be echoed.
    The editor will open the .hidden file for editing. Enter the filename or foldername of each item you want hidden - one entry per line. When you are finished press CONTROL-X. You will be asked if you want to save the file. Enter "y" (Yes) and press return. You will be asked for the filename to save or use .hidden. Simply press return to save the file and exit the editor. You will be returned to the prompt.
    prompt> cat .hidden
    Will list the contents of the file to the Terminal window. This will verify that what you did worked correctly.
    You can now quit the Terminal. On your next restart the offending files and folders will now be hidden as they should be.
    The .hidden file contains no pathnames, just the file or folder. For example, mine reads as follows:
    SDKDesktop:/ skapplin$ cat .hidden
    etc
    tmp
    var
    SDKDesktop:/ skapplin$

  • In windows 8 how do you make the bookmarks column "flexible"? I used to be able to make it narrower.

    Windows 8 how do you make the bookmarks column "flexible"?

    Is the problem with the Bookmarks Sidebar -- the one you can open and close by pressing Ctrl+b? It does seem to have a minimum width and won't get narrower than that, but I'm not sure whether you are running into that limitation or whether for some reason you are not getting the resizing arrow when you mouse over the thin border between the sidebar and the page.

  • HT4642 how do i make columns wider on ipad numbers app

    how do you make the columns wider in numbers for the ipad

    I found the answer here.  http://www.dummies.com/how-to/content/how-to-adjust-columns-and-rows-in-the-numb ers-app-.html

  • How do you make your data into a chart?

    How do you make your data into a chart?

    Dick,
    Your table should look like this:
    You're looking at 1 Header Row and 1 Header Column. Headers are shaded by default. Adding a shading to a regular column doesn't make it a header. Use the Table Inspector.
    When you Select the data and Insert a Table, you will get this:
    Got it?
    Jerry

  • How do you make a web browser?

    I would like to make a Web Browser of my own but how did you make FireFox?

    Read this:
    http://thepattysite.com/window_sizes1.cfm
    You don't want to try to launch your site to full screen,
    honest, as you'd
    drive your (potential) visitors away.
    Jo
    "Steve Zavodny" <[email protected]> wrote in
    message
    news:escrfa$s7$[email protected]..
    > How do you make a web browser launch your site to a
    specific size or even
    > full screen?
    > Thanks...

  • How do you make superscripts and mathematics in Preview's text annotation?

    When adding text annotations that include scientific notations, how do you make superscripts, e.g. "3.2 × 10^{-23}"?
    Searching Help for 'superscript' turns up nothing, suggesting the command does not exist, as it does under Baseline etc. in iWork. Please tell me this is not the case! If it is, has the situation been improved in the new operating system?
    A related issue: I wish to include other mathematics -- is there a way to include mathematics similar to LaTeX? Might Preview incorporate using latex code in the future, so I can easily type "\exp{-\lambda t}" etc and have the math appear?
    I'm adding text annotations to PDF lecture notes in Preview, basically filling in blanks the instructor has left so students will pay attention in class, and these annotations include superscripts; I wish to format properly.
    Thank you!

    Once you have the circle shape displayed, long press on the border of the circle. Once it is highlighted, drag horizontally or vertically. This should allow you to distort the circle into an ellipse (or the square into a rectangle).
    Hope that helps,
    Frank
    Sketch Engineering

  • How can you make one button preform different actions in Xcode?

    How can you make one button "preform a click" and "orderfront"? Is that possible? Because what I am doing is making a welcome window to my application for Mac OS X 10.6, and I have two buttons in that window, one says "Connect" which connects a a WebView to a url and the other button opens up the main window. So how can I a make a button do multiple things at once??

    Ah - If you are just using bindings between various objects from Interface Builder, you can reduce your application code a bit (sometimes quite a bit), but there is only so far you can go. Typically variables and routines are defined in your application that Interface Builder hooks into, so that your application code (usually Objective-C, but can be others) can use these variables and routines to determine what is happening in the user interface.
    I'm not sure how up-to-date the project code is (or what programming code you are familiar with), but you can take a look at Apple's Cocoa Application Tutorial to see what is (usually) involved in creating an application.

  • How can you make the iPod tell the diff between a movie and music video

    Greetings!
    How can you make iPod tell the difference between a Music Video and Movie? Everything I put up on the iPod falls into Movie. So is it something I have to do in iTunes?
    Thanks for the help!

    Rightclick the video in iTUnes, hit Get info then the "Options" tab. Beside kind you can set it to movie. music video. or TV show

  • How do you make the sentences you input in a drop down list wrap to the next line?

    How do you make the sentences that you input in a drop down list to wrap to the next line?

    You can't.
    see this thread for more info:  Can you set drop down list as multi-line???

  • HT204053 I have multiple devices used by family members, how do you make sure the kids don't see Moms messages from Dad and visa versa?

    I have multiple devices used by family members, how do you make sure the kids don't see Moms messages from Dad and visa versa?

    Hi Roger:
    Thanks for the reply.  I think I figured out the problem.  Apple has confused (at least in my mind) the different IDs that people can have.  In the iCloud settings, they use the term Apple ID and not iCloud ID.  I guess there really is no such thing as an iCloud ID.  There are Apple IDs with various attributes.  This is not clearly explained or easy to see (how could I look up to see if my Apple ID is associated with iTunes for example?).
    I created, what I thought were iCloud IDs for each family member, but we all use my Apple ID for iTunes.
    One other question - why does the syncing of Notes using iCloud require an @me.com email account.  That makes no sense to me.
    Thanks for your help!
    AO

Maybe you are looking for