Making Subform invisible or visible

Hi ,
I wanted to make a subform visible or invisible on selecting a radiobutton.
I tried using
<subformname>.presence = "invisible";
in the click event of radiobutton , but its not working.
Please suggest a solution.
Points will be rewarded.
Thanks.

Hello Thomas,
You can use the following pattern of the Scripting to hide subforms.
<formName>.<Subform Name>.presence = "hidden";
few important points to remember :
1. use scripting language as 'Java Script'
2. write the script under 'initialize' mode and the Run at option should be set to 'client'.
Hope, this helps in resolving your issue.
Regards,
Debasish

Similar Messages

  • Making an invisible window visible - problems

    How do I make a currently invisable window named "newwin" visable from the page that launched the window?
    Inside "index.html" I open a new window with the following code:
    var options = new air.NativeWindowInitOptions();
    options.systemChrome = "none";
    options.type = "normal";
    options.transparent = true;
    var windowBounds = new air.Rectangle(20,25,900,600);
    newwin = air.HTMLLoader.createRootWindow(true, options, true, windowBounds);
    newwin.load(new air.URLRequest("skin.html"));
    Inside "skin.html" (launched inside "newwin" window):
    window.nativeWindow.visible = false // works as expected - window becomes invisable
    Now inside "index.html" I have a command to make "newwin" visable again (which isn't working):
    I have tried:
    window.nativeWindow.visible = true (opens up the main application window)
    newwin.nativeWindow.visible = true (TypeError: Undefined value)
    newwin.visible = true (does nothing - no error but doesn't make newwin visable)
    newwin.options.visible = true (TypeError: Undefined value)
    newwin.nativeWindow.options.visible = true (TypeError: Undefined value)
    newwin.activate()  (TypeError: Value undefined does not allow function calls.)
    newwin.nativeWindow.activate() (TypeError: Undefined value)
    all come up with "TypeError: Undefined value"
    How do I make a currently invisable window named "newwin" visable?

    newwin is an HTMLLoader object. To get to the NativeWindow object you can use either newwin.window.nativeWindow or newwin.stage.nativeWindow.
    So:
    newwin.window.nativeWindow.visible = true;
    or:
    newwin.window.nativeWindow.activate();
    should work.

  • Making invisible folders visible

    How do i make invisible folders visible?

    Open the AppleScript Editor in the /Applications/Utilities/ folder and run the following exactly as written below:
    tell application "Finder" to quit
    do shell script "chflags nohidden " & quoted form of POSIX path of (choose folder with invisibles)
    delay 2
    tell application "Finder" to run
    To change the global setting instead of making single items visible, replace the second line with:
    do shell script "defaults write com.apple.finder AppleShowAllFiles 1"
    (89379)

  • I share a an apple id with my kids. We all use the same credit card for purchases.  Is it possible for only me to use the icloud online storage without making this available or visible to the kids?

    My kids and I all use the same credit card and password for app and music purchases.   I'm assuming we all use the same apple ID too. (not sure) We can share apps and music although we all have our own itunes libraries. Is it possible for only me to use the icloud online storage without making this available or visible to the kids or do we all have our own storage?

    I just checked and they have already sucked up all my online storage.  Ahhh techy teens!  I think I will just leave it at that and back my own stuff up on my computer. Less confusing
    Thanks for all the help!  I am definitely more educated now and I'm off to check that cc bill too.

  • 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.

  • Making Subform Instances Visible/Invisible

    Hello,
          I am trying to loop through the Subform Instances of the form and trying to make them visible/invisible on the click of a Check Box. The script seem to run just fine but the values nothing happens to the subforms. The script is written on the CLICK event of check box and is as below:-
    ----- HAP_DOCUMENT.APR.HAP_DOCUMENT.Positions.DATA.CHECK_BOX::click: - (JavaScript, both) ----------
    var
    nCount = APR.HAP_DOCUMENT.T_ELEMENTS.DATA.instanceManager.count;
    //var plan_value = this.parent.PLANS.rawValue;
    var
    plan_value = this.parent.parent.parent.Storage_Form.PLANS.rawValue;
    for (var nItem = 0; nItem < nCount; nItem++) { // Begin Loop T_ELEMENTS after the Instance is created
    var sub_Tele = "HAP_DOCUMENT.T_ELEMENTS.DATA["+ nItem +"]";
    var tName = "HAP_DOCUMENT.T_ELEMENTS.DATA["+ nItem +"].T_COLL_CELL.DATA";
    var sCount = xfa.resolveNode(tName).instanceManager.count;
    for (var sItem = 0; sItem < sCount; sItem++) { // Second Loop on T_COLL_CELL
    var fName = "HAP_DOCUMENT.T_ELEMENTS.DATA["+ nItem +"].T_COLL_CELL.DATA["+ sItem +"].T_FIELD.DATA";
    var tCount = xfa.resolveNode(fName).instanceManager.count;
    for (aItem = 0; aItem < tCount; aItem++){ // Third Loop on T_FIELD
    var gName = "HAP_DOCUMENT.T_ELEMENTS.DATA["+ nItem +"].T_COLL_CELL.DATA["+ sItem +"].T_FIELD.DATA["+ aItem +"].simpleField.VALUE_STRING";
    var lName = "HAP_DOCUMENT.T_ELEMENTS.DATA["+ nItem +"].T_COLL_CELL.DATA["+ sItem +"].T_FIELD.DATA["+ aItem +"].simpleField.CAPTION";
    var subName = "HAP_DOCUMENT.T_ELEMENTS.DATA["+ nItem +"].T_COLL_CELL.DATA["+ sItem +"].T_FIELD.DATA["+ aItem +"]";
    var aVal = xfa.resolveNode(gName).rawValue;
    var bVal = xfa.resolveNode(lName).rawValue;
    var subVal = xfa.resolveNode(subName).presence;
    if (bVal == "Position Number"){
    if (aVal == plan_value) {
    if ( this.rawValue == 1) {xfa.resolveNode(subName).presence
    = "visible";}
    else {xfa.resolveNode(subName).presence
    = "hidden"; }
    Is there any other way of addressing the properties of the Subform Instances? Could any please help me as to why there is no effect on the subforms?
    Regards,
    Shishir.P

    Is the form saved as dynamic? Are you getting any errors in the javascript console?
    Paul

  • Makeing subforms visible depending on what is selected from the dropdown

    Good day all;
    Looks like I am batting “0” today. For some reason I am not able to get a number of things to work today… Maybe I should just write this day off as a loss..;>))
    Any way; I am trying, without success to get sub forms to become visible depending on what is selected from a dropdown. I have tried using “switch” (see below) but I end up getting the famous “Syntax” error.
    I have also tried an “if” (see below) statement, but that did not seem to work either.
    What I would like to have happen is when a user selects 1 of 2 choices 1 of 2 sub forms becomes visible.
    As well, if the user has initially selected the wrong dropdown and they select now select the correct one, I would like the incorrect sub form to become invisible again.
    I would appreciate any help
    switch (this.rawValue)
        case "2":
        staffing_inter.presence = "visible";
    else
    staffing_inter.presence = "hidden";
        break;
    IF statement
    if(this.rawValue = 2 )
        staffing_inter.presence = "visible"
    else{
    staffing_inter.presence = "hidden";

    Thank you Jono and Niall;
    I was looking through the forum and found a post by Niall that appears to be working; I was wondering if this should be used or the one that Jono has posted...
    staffing_inter.presence = "hidden";
    staffing_inter.preAsence = "hidden";
    // Then show the appropriate one
    if (this.rawValue == "2") {
    staffing_inter.presence = "visible";
    else if (this.rawValue == "3") {
        staffing_exter.presence = "visible";

  • Making Multiple Panels invisible and visible

    So I have this problem, Im trying to make different panels visible and invisible by the means of a button. I believe my code is sound, but its not working. I would really appreciate it if someone were to look at my code and solve this problem. Basically my button isnt working.
    import java.awt.image.*;
    import java.awt.geom.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Scanner;
    public class panels extends JFrame
    private JPanel panel1, panel2, panel3, panel4;
    private JLabel title;
    private JButton test;
    public panels ()
    setSize (400,800);
    JButton test = new JButton ("test");
    title = new JLabel ("");
    JPanel panel1 = new JPanel();
    panel1.setPreferredSize(new Dimension(200,200));
    panel1.setLayout (new GridLayout(5,2));
    panel1.setBackground(Color.black);
    JPanel panel2 = new JPanel();
    panel2.setPreferredSize(new Dimension (200,200));
    panel2.setBackground(Color.red);
    JPanel panel3 = new JPanel();
    panel3.setPreferredSize (new Dimension (200,200));
    panel3.setBackground(Color.orange);
    JPanel panel4 = new JPanel();
    panel4.setPreferredSize(new Dimension (200,200));
    panel4.setBackground(Color.green);
    Container container = getContentPane ();
    container.setLayout (new GridLayout(4,1));
    container.setBackground (Color.white);
    container.add(panel1);
    panel1.add(test);
    container.add(panel2);
    container.add(panel3);
    container.add(panel4);
    ButtonHandler handler = new ButtonHandler ();
    test.addActionListener (handler);
    setVisible (true);
    public static void main (String args[])
    panels application = new panels ();
    private class ButtonHandler implements ActionListener
    public void actionPerformed (ActionEvent event)
    if (event.getSource () == test)
    panel1.setVisible(true);
    panel2.setVisible(false);
    panel3.setVisible(false);
    panel4.setVisible(false);
    }

    Take a look at this example and you will see that your code is missing a few things.
    http://www.javaprogrammingforums.com/java-swing-tutorials/278-how-add-actionlistener-jbutton-java-swing.html
    There are plenty of examles on the web of how to do that
    http://www.youtube.com/watch?v=GvTZ2Huo0T4

  • Problem with a script making subform visible

    Hello
    I have a form with 5 radio buttons. Two of the radio buttons, values 3 and 5 need to make a hidden subform visible. All other values leave the subform hidden. Here is my script:
    if (this.rawValue == '1') {
    page1.deliveryInformation.flowed.presence = "hidden";
    if (this.rawValue == '2') {
    page1.deliveryInformation.flowed.presence = "hidden";
    if (this.rawValue == '3') {
    page1.deliveryInformation.flowed.presence = "visible";
    if (this.rawValue == '4') {
    page1.deliveryInformation.flowed.presence = "hidden";
    if (this.rawValue == '5') {
    page1.deliveryInformation.flowed.presence = "visible";
    else {
    page1.deliveryInformation.flowed.presence = "hidden";
    Value 3 is not working. All other values work as expected. I've been looking at this script for over an hour and can't figure out why it isn't working. Any help would be appreciated.
    Thanks,
    MDawn

    The issue is with the last else part.
    Either place the conditions in
         if(){
         elseif(){
         else{
    OR
    use the switch case as below.
    switch (this.rawValue)
    case "1":
    page1.deliveryInformation.flowed.presence = "hidden";
    break;
    case "2":
    page1.deliveryInformation.flowed.presence = "hidden";
    break;
    case "3":
    page1.deliveryInformation.flowed.presence = "visible";
    break;
    case "4":
    page1.deliveryInformation.flowed.presence = "hidden";
    break;
    case "5":
    page1.deliveryInformation.flowed.presence = "visible";
    break;
    default:
    page1.deliveryInformation.flowed.presence = "hidden";
    Thanks
    Srini

  • Making the invisible visible!

    I have a 1925 Pol Roger champagne bottle - sadly empty - which was drunk in Paris a few days after its liberation in 1944.
    I was signed by all the leaders of the French Resistance who were there at a dinner on 4 Sept 1944, and is overprinted that it is only to be drunk by German officers.
    Sadly the overprinting is much light-faded and several of the signatures have faded beyond recognition though my childhood memory is that there were several more visible.
    I have had it professionally photographed, but do not have the skill myself to know if anything can be recovered by post-processing or by specialist photography - perhaps using a UV light source. I am told by a manuscript conservator at the Bodleian Library that there is no restorative work that can be done on the label itself.
    If anyone thinks it is useful I can post it on Flickr and i would also welcome any advice on where else I might post this plea (WinTel fora not excluded!).
    Cheers, Colin

    Thanks Glenn - I have posted it at http://www.flickr.com/photos/23197376@N00/?saved=1
    The RAW images are about 16Mb but as where I live ADSL is 50 kbps I have done a low-compression jpeg to 2Mb.
    If I get any offers of help I can upload the set from elsewhere.
    Cheers,
    Colin

  • CAT2 - making user defined feild visible in profile

    Hello ,
    am facing a issue ,
    I need to create a New profile in CAC1 [ done] by coping the already existing profile.
    IN already existing profile we have made DISPLAY settings to "CATS_ADDFI-FIELD1" - Additional field 1. This is defined as ACTIVITY DESCRIPTION. This is working fine for existing profile in CAT2 tim sheet booking. In CAC5 the Activity description is defined against YYACTVITY.fine.
    Now how to make Activity description column visible in DATA ENTRY AREA in CAT2 for my new defined view . Currently I am not able to see as its in invisible mode.
    Help me as its very urgent
    regards
    Msamba

    Hello ,
    Solution :
    I could solve the problem . In CAC2 , I have selected screens thru INFLUENCINg tab and selected the profile. But I have not set chnages in global template . Means when u go in CAC2 , there is a global template for data entry profile , This needs to be chnages first and then chnages in Influencing tab .
    Now my second questions:
    My client needs sowm shuffle in data entry area  for Eg: Work center should follow behind wage type. I have request them that create the changes and then save under new Varient . My client is not happy with VARIANT creation in CAT2 nor making it default as global.They dont wanna create any Varient but they wannt to fix the feild selection as they desired under BASIC SETTINGS.
    Can we do this ? Can we chnage the feild selection under BASIC SETTINGS.?? or is theer any configuration to assign the columns to our desired way in WORK LIST or DATA ENTRY AREA??
    Please advice.
    Edited by: msamba on Jul 26, 2011 9:11 AM

  • While making field invisible at runtime in FPM_FORM_UIBB that row is coming as blank

    Hi All,
    In one of the requirement we are making one of the fields indivisible at runtime in the method -  GET_DATA  of the class - CL_HRESS_PER_DETAIL.
    But row in which the filed is made invisible is coming as blank .
    Is there any way to change the row number of the fields at run time .
    Thanks
    Amol

    We don't have option for specifying the row / column options at runtime.
    In structure FPMGB_T_FIELDUSAGE We have only Mandatory/Visibility/Read-only/Enabled options to set for any field.

  • Making tabs invisible in FPM_OIF_COMPONENT does not work

    we have a requirement to hide some FPM tabs (main views) in the ESS talent profile iView.
    after making those tabs invisible in the FPM component configuration they still show up as visible. Any idea why?
    more precisely, we are making FPM tabs (main views) invisible In component configuration HRTMC_EP_OIF of component FPM_OIF_COMPONENT.
    Regards,
    Tiberiu

    Hi,
    I assume here that at design time you make them via the configuration invisible. At runtime if you see the tabs then i suspect that there are some Dynamic programming involved or other variants exists that you haven't changed yet.
    Go back to the application configuration and test it from there and if it is still not working then use the Debugger to see what happens and why your configuration is not working.

  • Making UI Invisible Issue

    Hi All,
    I am facing an issue in making the text field UI invisible.
    The issue is while making the text field UI invisible, only the text iniside is getting invisible, the text field remains same.
    Kindly help us in solving this issue.
    Thanks in Advance,
    Thanks & Regards,
    Chandran S

    Hi,
    Here is my scenario and also let me spceify clearly where was the problem.
    I have a set of table values, that has to displayed in the form not as table but as shown below
    I have maintained two subforms inside the Main subform Subform1_Objectives (flowed, Repeat subform..... properties  enabled)
    Subform1 (flowed, Repeat subform..... properties  enabled)
    Subform2_Objectives (positioned, Repeat subform..... properties  enabled)
    Here is the Script for the above for making Invisible
    // Getting the Objectives Count.
    var objectivesCount= data.Subform1_Objectives.Subform1.Subform2_Objectives.instanceManager.count;
    // Determining the Part Appraisal and Final Appraisal.
    for(var i=0;i<objectivesCount;i++)
        var notesVisibility = xfa.resolveNode("data.Subform1_Objectives.Subform1.Subform2_Objectives["i"].NOTES_VISIBLE").rawValue;
        if((notesVisibility !="VC"))
            xfa.resolveNode("data.Subform1_Objectives.Subform1.Subform2_Objectives["i"].WIEGHTING").presence="invisible";
            xfa.resolveNode("data.Subform1_Objectives.Subform1.Subform2_Objectives["i"].NOTES_VISIBLE").presence="invisible";
            xfa.resolveNode("data.Subform1_Objectives.Subform1.Subform2_Objectives["i"].PART_APPR_NOTES").presence="invisible";
            xfa.resolveNode("data.Subform1_Objectives.Subform1.Subform2_Objectives["i"].FINAL_APPR_NOTES").presence="invisible";
    I have a static input field in the same form , i tested making invsible, its fine and getting invisible.
    The same thing i try inside the subform, only the text gets invsisble, but the text box remains same.
    Best Regards,
    Chandran S

  • All invisible items visible now - What to do?

    Greetings everyone,
    All of a sudden all the invisible items at the root level of my HD have become visible, stuff like "bin", "sbin", "Volumes", "etc", "dev" and so on... are now visible, my guess is they are system files, and not to be tampered with...
    But how did they show up?
    How can I make them "invisible" again? do I have to reinstall OS X?
    Thousand thanks in advance,

    Hi, no you don't have to reinstall Mac OS X
    Just download the free OnyX and ther eis a option to turn supposed invisible items back to what they are supposed to be.
    The automation once a month can clean things up a bit too
    http://www.apple.com/downloads/macosx/systemdiskutilities/onyx.html
    Oh by the way I'm hoping your cloning that boot drive occassionally in addtion to backing up files
    http://homepage.mac.com/hogfish/Personal11.html

Maybe you are looking for

  • Price error message while creating production order- Urgent

    In past i was getting warning message of 'No price could be determined for material/batch and Plant" message no CK 465 at the time of saving the production order after creation but now it has stopped even though there is no price in material amster.

  • Supported platforms for FIN 9.2

    Where could i find the platform requirements for client and server operating systems for our new Peopelsoft Finance 9.2 Release and also platform requirements for Database ? Thank you, Rutvi

  • How to get filename with MMDDHHSS

    Hi How can I get file name with extension MMDDHHMM...I know time stamp is availabe but in the target system can only accept 10 characters. Example EL10020120 It there any way I can acheive the same. Regards

  • Edited PDF in photoshop and edit text in acrobat

    I am trying to edit an existing PDF that has a blue backround and text on it. I think it was made in photoshop. I had to fix a logo on it to so I brought the pdf to photoshop and edited the logo. But now I can't edit the text in acrobat professional!

  • Choppy payback

    i burned a dvd in idvd after making the video in final cut express HD, and every time i go to play it in a DVD player i get choppy video that looks like it is super compressed or something?