Advanced DataGrid - you click columns to hide/show based on the level of the child

I have a Flex application that displays an Advanced DataGrid with three levels in the tree. The default view displays a single column of data. When a child on the floor of the tree is opened, two additional columns are displayed. I want these columns to stay open as long as any kid on the floor is open. I can't find a way to make it work - I can get the columns to be displayed when the user clicks on the 2nd child of level, but I can't find a away from keep them visible until the last child at this level is closed (see my attached code). Is it possible to loop through all the items in the Collection of data to see which ones is open and access data associated to each?

Attached code (a few pieces that are not connected have been omitted).

Help, please.

Thank you.

Found my answer on my own. I basically loop in the table in the ADG openItems, save the reference that corresponds to the lowest level that is open, then set visibility of each column based on this criterion.

Tags: Flex

Similar Questions

  • Tabluar form hide/show items on the loading of the page

    Hi all

    Apex 4.1

    I use JS to display or hide fields, based on the values of other fields, cela in a tabular presentation. So it is used as a work-around as dynamic actions are not able to do out of the box on tabular forms (that I know of).
    The code I use is something like this:

    In the page header:

    function test (pThis) {}
    get the index of line curren on changes
    var currIndex = $('select[name="'+pThis.name+'"]').index ($x (pThis.id));
    If (pThis.value < 0) {}
    . style.display $('input[name="f06"]') [currIndex] = 'block ';
    }
    else {}
    . style.display $('input[name="f06"]') [currIndex] = 'none ';
    }
    }

    In the attributes of the item in the column 'source '.
    OnChange = "JavaScript:test (this); »

    This fires that when the source column is changed, but not working when you load at the start page when it is filled with already stored reports. So it works only when a field is changed to the hand.

    How can I force this action shot the loading of the page so the rule (hide fields) also gets applied to existing records?

    Concerning
    Bottom

    Down de Klerk wrote:
    Hi all

    Thanks for the comments.
    So far I m unable to make it work. Fire code (debug using alert messages, and these show upwards), but the suggested procedure does not work.

    I tried all kinds of entry points, as for example the test via dynamic when a button is clicked, tried action on loading the page, and also via the $(document) .ready (function
    The function is executed and nothing happends, no error does not code so should be ok.
    I'll investigate further and let you know what happends. Don't know if the class type of the associated field f06 might have something to do with it, but one is LOV/Select list type

    This code is looking for input i.e. text, checkbox etc and will not find a slelect list.

    You must change the jquery like this selector

     $(document).ready(function () {
          jQuery.each($('select[name="f06"]'), function () {
               hide_field(this);
          });
     alert("function executed");
     });
    
  • Hide/show agrregates in the PivotTable based on click of a button

    Hello

    I have a PivotTable in which I view aggregates.

    Is there a way to hide/show the aggregated based on click of a button.

    Thank you

    Anil

    It worked:

    To remove totals:

    cubicEditor.removeLayer (DataDirector.ROW_EDGE, 0);

    Def LayerDefinition = new LayerDefinition("OrganizationCode");

    cubicEditor.addLayer (DataDirector.ROW_EDGE, 0, def);

    To show totals:

    cubicEditor.removeLayer (DataDirector.ROW_EDGE, 1);

    cubicEditor.removeLayer (DataDirector.ROW_EDGE, 0);

    LayerDefinition layerDef = new LayerDefinition ("OrganizationCode");

    TotalDefinition td = new TotalDefinition (AggType.SUM, "OrganizationCode", AggLocation.BEFORE);

    layerDef.setTotalDefinition (td);

    cubicEditor.addLayer (DataDirector.ROW_EDGE, 0, layerDef);

    layerDef = new LayerDefinition ("ItemName");

    cubicEditor.addLayer (DataDirector.ROW_EDGE, 1, layerDef);

  • When you click on a buttonfield shows the menu options

    When I click in a ButtonField, options menu (see the keybord, application Switch, Close) shows where I clicked.

    How can I stop it?

    Add the CONSUME_CLICK style to your button.

  • Show/hide fields based on the user's selection

    I know little of Javascript, but my first attempts to integrate it in Acrobat are bothersome. I have created a simple form where the user via a check box the number of people that he or she must register, then the form shows that several fields to complete. I tried to make it work with a single field, before I add more.

    In this example, I'm trying just to get the second hidden registered field if the user checks only 1 person to register. (I already know that I have issues when it comes to hide several fields).

    If (event.target.value == "0") {}

    this.getField("Registrant2").display = display.hide;

    }

    Given that I do not know what is the value of exports, try this:

    If (event.target.value! == 'Off') {}

    this.getField("Registrant2").display = display.hidden;

    }

    You can add an else clause so that the field is displayed when the check box is not selected:

    If (event.target.value! == 'Off') {}

    this.getField("Registrant2").display = display.hidden;

    } else {}

    this.getField("Registrant2").display = display.visible;

    }

    If this does ' t work, you don't maybe not the correct domain name. Verify that the console (Ctrl + J) to see all JavaScript errors are reported.

  • Show/hide menu based on the logged in user

    Hello

    12.1.3 Jdev

    I want to show/hide some menu items based on the logged in user.

    I will explain the current design:

    In my application, I created a menu as below. (It is created using 'Create or Update ADF Menu' file adfc_config).

    ibis_menu. XML

    <?xml version="1.0" encoding="windows-1252" ?>
    <menu xmlns="http://myfaces.apache.org/trinidad/menu">
      <itemNode id="itemNode_home" label="Home" action="goHome" focusViewId="/home"/>
      <itemNode id="itemNode_transaction" label="Transaction" action="goTransaction" focusViewId="/transaction"/>
      <itemNode id="itemNode_customer" label="Customer" action="goCustomer" focusViewId="/customer"/>
      <itemNode id="itemNode_upload" label="Upload" action="goUpload" focusViewId="/upload"/>
      <itemNode id="itemNode_profile" label="Profile" action="goProfile" focusViewId="/profile"/>
      <itemNode id="itemNode_serviceRequest" label="Service Request" action="goServiceRequest"
                focusViewId="/serviceRequest"/>
      <itemNode id="itemNode_report" label="Report" action="goReport" focusViewId="/report"/>
    </menu>
    

    I have a navigation pane in my Pages that use this menu as below:

    <af:navigationPane hint="bar" id="np1" value="#{ibis_menu}" var="menuInfo">
                            <f:facet name="nodeStamp">
                                <af:commandNavigationItem id="ni1" text="#{menuInfo.label}"
                                                          destination="#{menuInfo.destination}"
                                                          action="#{menuInfo.doAction}"/>
                            </f:facet>
                        </af:navigationPane>
    

    Now, I want to hide some items on the menu, depending on the Type of user loggedIn. I have the userType stored in the managed bean.

    How can I get this feature.

    An approach which I think is as below:

    Define a variable for each itemNode in a managedbean(session scope) and who associate with the property ' visible ' / ' rendering ' of the itemNode in the Menu xml.

    Please let me know is a good way to do it or is there another solution better?

    See you soon

    AJ

    So, maybe this can help:

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/48-sitemenu-protection-169190.PDF

  • Fields hide APEX 4.1 show based on the value of the checkbox/radio

    I'm trying successfully, hide and show fields based on the value of a selected checkbox.  I use a dynamic action, but it does not work.

    I followed the example in the is Oracle Apex 4 enable the following AJAX features? (IE without the written Javascript dev) - stack overflow

    I even tried an option button, but it did not work.  I can not uncheck the option button.  What I am doing wrong?  Thanks for any help you can provide.

    Hello

    For example, the point of view refer Packaged application > application sample database > page 11

    Kind regards.

    GO

  • How to show/hide div based on the value of mysql

    I have a dataset that contains a 'locked' column, which is a Boolean value that I want to use to remove a button on a form.  The idea is that it will be fixed to 1 after a period of time, thus eliminating the buttun that connects to an update form and prevent the data being edited.  Currently I have the field bound to a checkbox at the top of the table.  How can I use this to hide the button (or any other html element) when the value 1 and show the item when the value 0?  I understand that I need to create a php mysql boolean variable and then use a loop if/else statement to hide/show the html code but I don't know how impliment that?  Thanks for any help.

    Here is the code:

    <? php require_once('Connections/testmypms.php');? >

    <? PHP

    $currentPage = $_SERVER ['PHP_SELF'];

    $maxRows_spec_rx = 10;

    $pageNum_spec_rx = 0;

    If (isset($_GET['pageNum_spec_rx'])) {}

    $pageNum_spec_rx = $_GET ['pageNum_spec_rx'];

    }

    $startRow_spec_rx = $pageNum_spec_rx * $maxRows_spec_rx;

    $colname_spec_rx = "1";

    If (isset($_GET['pxID'])) {}

    $colname_spec_rx = (get_magic_quotes_gpc())? $_GET ['pxID']: addslashes($_GET['pxID']);

    }

    @mysql_select_db ($database_testmypms, $testmypms);

    $query_spec_rx = sprintf ("SELECT spec_rx.spec_rx_id, spec_rx. FK_px_id, DATE_FORMAT (spec_rx.spec_rx_date, ' % d-% m-% Y') as formatted_rx_date, spec_rx. FK_user_id, spec_rx.spec_rx_rsph, spec_rx.spec_rx_rcyl, spec_rx.spec_rx_raxis, spec_rx.spec_rx_rhprism, spec_rx.spec_rx_rhprismbase, spec_rx.spec_rx_rvprism, spec_rx.spec_rx_rvprismbase, spec_rx.spec_rx_rnadd, spec_rx.spec_rx_rnhprism, spec_rx.spec_rx_rnhprismbase, spec_rx.spec_rx_rnvprism, spec_rx.spec_rx_rnvprismbase, spec_rx.spec_rx_rintadd, spec_rx.spec_rx_rinthprism, spec_rx.spec_rx_rinthprismbase spec_rx.spec_rx_rintvprism, spec_rx.spec_rx_rintvprismbase, spec_rx.spec_rx_lsph, spec_rx.spec_rx_lcyl, spec_rx.spec_rx_laxis, spec_rx.spec_rx_lhprism, spec_rx.spec_rx_lhprismbase, spec_rx.spec_rx_lvprism, spec_rx.spec_rx_lvprismbase, spec_rx.spec_rx_lintadd, spec_rx.spec_rx_linthprism, spec_rx.spec_rx_linthprismbase, spec_rx.spec_rx_lintvprism, spec_rx.spec_rx_lintvprismbase, spec_rx.spec_rx_lnadd, spec_rx.spec_rx_lnhprism spec_rx.spec_rx_lnhprismbase, spec_rx.spec_rx_lnvprism, spec_rx.spec_rx_lnvprismbase, spec_rx.locked, users.user_id, users.user_firstname, users.user_surname FROM spec_rx, users WHERE %s = spec_rx. FK_px_id AND spec_rx. (FK_user_id = users.user_id ORDER BY spec_rx.spec_rx_date DESC, spec_rx.spec_rx_id DESC', $colname_spec_rx);

    $query_limit_spec_rx = sprintf ("%s LIMIT %d, %d", $query_spec_rx, $startRow_spec_rx, $maxRows_spec_rx);

    $spec_rx = mysql_query ($query_limit_spec_rx, $testmypms) or die (mysql_error ());

    $row_spec_rx = mysql_fetch_assoc ($spec_rx);

    If (isset($_GET['totalRows_spec_rx'])) {}

    $totalRows_spec_rx = $_GET ['totalRows_spec_rx'];

    } else {}

    $all_spec_rx = mysql_query ($query_spec_rx);

    $totalRows_spec_rx = mysql_num_rows ($all_spec_rx);

    }

    $totalPages_spec_rx = ceil($totalRows_spec_rx/$maxRows_spec_rx)-1;

    $colname_demographics = "1";

    If (isset($_GET['pxID'])) {}

    $colname_demographics = (get_magic_quotes_gpc())? $_GET ['pxID']: addslashes($_GET['pxID']);

    }

    @mysql_select_db ($database_testmypms, $testmypms);

    $query_demographics = sprintf ("SELECT demographics.px_id, demography. FK_title_id, demographics.firstname, demographics.surname, DATE_FORMAT (demographics.dob, ' % d-% m-% Y') as formatted_dob, title.title_id, title.title FROM demographics, title WHERE %s = demographics.px_id AND demography. (FK_title_id = title.title_id", $colname_demographics);

    $demographics = mysql_query ($query_demographics, $testmypms) or die (mysql_error ());

    $row_demographics = mysql_fetch_assoc ($demographics);

    $totalRows_demographics = mysql_num_rows ($demographics);

    $queryString_spec_rx = "";

    If (! empty($_SERVER['QUERY_STRING'])) {}

    $params = explode ("&", $_SERVER ['QUERY_STRING']);

    $newParams = array();

    {foreach ($params as $param)

    If (stristr ($param, "pageNum_spec_rx") == false & &)

    stristr ($param, "totalRows_spec_rx") == false) {}

    return ($newParams, $param);

    }

    }

    If (count ($newParams)! = 0) {}

    $queryString_spec_rx = '& '. htmlentities (implode ("&", $newParams));

    }

    }

    $queryString_spec_rx = sprintf ("& totalRows_spec_rx = %d %s", $totalRows_spec_rx, $queryString_spec_rx);

    ? >

    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    < html >

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 ">"

    < title > Spec Rx3 < /title >

    < script language = "JavaScript" type = "text/JavaScript" >

    <!--

    function MM_goToURL() {//v3.0

    var i, args is MM_goToURL.arguments; document. MM_returnValue = false;

    for (i = 0; i <(args.length-1); I += 2) eval(args[i]+".location='"+args[i+1]+"'");

    }

    ->

    < /script >

    < / head >

    < body >

    Rx Spec < p > < /p >

    < p > <? PHP echo $row_demographics ["px_id"];? > < / p >

    < p > <? PHP echo $row_demographics ['title'];? > <? PHP echo $row_demographics ["FirstName"];? > <? PHP echo $row_demographics ['name'];? > <? PHP echo $row_demographics ["formatted_dob"];? > < / p >

    < p >

    < input name = "Add_spec_rx" type = "button" id = "Add_spec_rx" onClick = "MM_goToURL ('parent', 'add_spec_rx.php'); return document. MM_returnValue' value = 'New Rx' >

    < /p >

    < p > < a href = "<?" PHP printf ("%s? (pageNum_spec_rx = %d %s", $currentPage, max (0, $pageNum_spec_rx - 1), $queryString_spec_rx);? > "> previous < /a > < a href =" <? PHP printf ("%s? (pageNum_spec_rx = %d %s", $currentPage, min ($totalPages_spec_rx, $pageNum_spec_rx + 1), $queryString_spec_rx);? > "> Next < /a > < /p >"

    <? PHP {? >}

    < table border = "1" cellspacing = "1" cellpadding = "5" >

    < b >

    < td > < table >

    < td > <? PHP echo $row_spec_rx ["formatted_rx_date"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_id"];? > < table >

    < td > locked:

    < input <? PHP if (!) ((strcmp($row_spec_rx['locked'],1)))) {echo 'checked' ;}? > name = 'locked' type = "checkbox" id = "locked" value = "1" > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < table >

    SPH < td > < table >

    Cyl < td > < table >

    Axis of < td > < table >

    HPrism < td > < table >

    HPrismBase < td > < table >

    VPrism < td > < table >

    VPrismBase < td > < table >

    NrAdd < td > < table >

    NrHPrism < td > < table >

    NrHPrismBase < td > < table >

    NrVPrism < td > < table >

    NrVPrismBase < td > < table >

    IntAdd < td > < table >

    IntHPrism < td > < table >

    IntHPrismBase < td > < table >

    IntVPrism < td > < table >

    IntVPrismBase < td > < table >

    < /tr >

    < b >

    < td > < table > R

    < td > <? PHP echo ($row_spec_rx ['spec_rx_rsph'] <>null)? sprintf ("%+4.2f", $row_spec_rx ['spec_rx_rsph']): null;? > < table >

    < td > <? PHP echo ($row_spec_rx ['spec_rx_rcyl'] <>null)? sprintf ("%+4.2f", $row_spec_rx ['spec_rx_rcyl']): null;? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_raxis"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rhprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rhprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rvprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rvprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rnadd"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rnhprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rnhprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rnvprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rnvprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rintadd"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rinthprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rinthprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rintvprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rintvprismbase"];? > < table >

    < /tr >

    < b >

    < td > < table > L

    < td > <? PHP echo ($row_spec_rx ['spec_rx_lsph'] <>null)? sprintf ("%+4.2f", $row_spec_rx ['spec_rx_lsph']): null;? > < table >

    < td > <? PHP echo ($row_spec_rx ['spec_rx_lcyl'] <>null)? sprintf ("%+4.2f", $row_spec_rx ['spec_rx_lcyl']): null;? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_laxis"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lhprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lhprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lvprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lvprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lnadd"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lnhprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lnhprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lnvprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lnvprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lintadd"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_linthprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_linthprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lintvprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lintvprismbase"];? > < table >

    < /tr >

    < b >

    < td > < table >

    < td > user ID <? PHP echo $row_spec_rx ['user_id'];? > < table >

    < td > <? PHP echo $row_spec_rx ['user_firstname'];? > < table >

    < td > <? PHP echo $row_spec_rx ["user_surname"];? > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < /tr >

    < /table >

    < p > < / p >

    <? PHP} while ($row_spec_rx = mysql_fetch_assoc ($spec_rx));? >

    < p > < / p >

    < p > < / p >

    < p > < / p >

    < / body >

    < / html >

    <? PHP

    mysql_free_result ($spec_rx);

    mysql_free_result ($Demographics);

    ? >

    barrydocks wrote:

    I don't know there must be a more elegant way to do it!

    <>

    If ($row_spec_rx ['locked'] == 1) {}

    echo 'button html goes here ";

    }

    else {}

    echo "something else";

    }

    ?>

  • How to set ' hide / show ' regions during the loading of the Page mode 'hide '.

    How to 'Hide' under regions on a page on the loading of the page, but don't show the region above in mode 'show' on a page?

    I have multiple regions, one under the other on a Page. All models on those who are assigned to the regions 'Hide and Show '. When the initial page loading - my goal is-displays only the Top more Region in "Show" mode, while setting all the other (regions to 'Hide' in low mode).

    Can someone please suggest ideas on how to achieve this? Dynamic action? or other approaches? Examples/steps please would be greatly appreciated.

    My request for a theme is set to 23 Crimson. Apex 4.1.x

    Thank you.

    VSKumar

    Hello

    What needs to be done is:
    Set up the STATIC ID for all regions with the exception of the first region.

    For example:
    REGIONTWO
    REGIONTHREE
    REGIONFOUR
    REGION 5

    Then go to the properties of the Page to the section head and footer. In the footer section, add the following:

    
    

    You can for example see http://apex.oracle.com/pls/apex/f?p=60428:5

    P.S. If you switch to another topic you should check if the classes are the same. Otherwise it will not work.

    Kind regards
    Aljaz

    Published by: Aljaz on 6.3.2012 0:04

  • How to show/hide point based on the value of Radiogroup

    Hello

    I'm having a Radiogroup with a yes/no value.
    I have something else to say... P1_TEXT1

    I want to show / hide point P1_TEXT1 based on the value selected in the radiogroup.
    If I select Yes - agenda should be displayed
    If I select non - element should be hidden

    I don't want to send the page.


    Thank you
    Deepak

    on your page go to edit page under the attribute of the HTML body of the Page then you need to put the following text:

    onload="MyFunction;"
    

    You must have tobe your function name Myfunction. Pass the item to your function in your code?

    Could you post your code js here and we could have a look for you?

  • show/hide fields based on the drop-down list of choices

    I have a field from the drop-down list with three choices. Based on the selection, I need a specific text form field to appear and the others to stay hidden. (Or if it makes the code cleaner, the resulting field could be a drop-down list, too, with the selected choice.) I don't know Java well enough to extrapolate the code from the examples online and it fit my forms. I can provide an example of form. Thanks in advance for your help.

    There are ways to run this.  the easiest for you would be to add this script to the event (calculation of the Properties tab) to calculate the field that must be hidden.  Take notes, all "/ /" is some tips for you to understand the code.  You will need to put this script in all the areas you want to replicate the behavior, change the value depending on what you want to accomplish.  the word 'event' means myself to make you understand.

    If (this.getField("dropdown").value == 'put value here') {//replace "drop down" with the name of the drops}

    Event.Target.Display = display.visible;

    }

    else {}

    Event.Target.Display = display.hidden;

    }

    This works if you have a small amount of fields.  If you manage to have a large number of similar fields, let me know because there are other, faster ways.

  • Show/hide subform based on the value of digital field

    Hi all


    I created my first form in LiveCycle Designer, but jammed with coding. Any help would be greatly appreciated.

    In the attached form, based on the value of field digital "number Total points" (calculated from the user of entry), I want two things to happen.

    The 'field' text should display different text depending on the points,

    • Less than 10 points is "beginner."
    • 10-14 is "intermediate."

    and just like that...

    If the total number of points is less than 10, 'Course for beginners' and 'Language' DropDownList must appear.

    Is there a way to do this? I tried posting 'If' 'else' statement, but it does not work. I looked in the previous discussions, but cannot find that anything will be based on the numeric value.

    You are looking for assistance.
    R

    The joint responds to your needs. The JavaScript on the TextField1 calculate event anime.

    Form1. #subform [0]. TextField1::calculate - (JavaScript, client)

    If (NumericField1.rawValue! = 0) {}
    If (NumericField1.rawValue< 10)="">
    DropDownList1.presence = "visible";
    DropDownList2.presence = "visible";
    this.rawValue = "beginner."
    }
    else {}
    DropDownList1.presence = 'hidden ';
    DropDownList2.presence = 'hidden ';
    If (NumericField1.rawValue< 15)="">
    this.rawValue = "middle";
    }
    else {}
    this.rawValue = "";
    }
    }
    }

    Steve

  • hide fields based on the value

    I have a script that I use to hide and show some areas according to what is entered in a certain area. The script looks like this:

    T1 var = this.getField ("text1");
    var t2 = this.getField ("text2");

    T1. Hidden = true;
    T2. Hidden = true;

    If (event.value > = "501")
    {
    event.willCommit = true;
    {
    T1. Hidden = false;
    }
    }
    If (event.value < = "500")
    {
    event.willCommit = true;
    {
    T2. Hidden = false;
    }
    }

    The problem I have is that he is seeking only the first 3 digits which is put on the ground. So, if I type in "3000", it reads like 300 and text1 appears instead of Text2. If I put in "6000", it shows the right field because it is read only 600. Is there another way I can write the script to make it work properly? Thank you in advance for your help!

    3 problems:

    1. the willCommit property is read-only. You can assign a value to it. You must remove these statements.

    2. you have inserted the numbers inside quotes, which turns them into channels and you cannot use them in mathematical comparisons. Remove the quotes and it should work.

    3. do not use the hidden property, it is not recommended. Use the display property.

  • Hide objects based on the menu drop-down

    Hey guys,.

    I hope someone here can help me. I've been browsing the forums and tried several options, but can't get anything to work.

    That's what I put in place:

    • Drop-down list with the following options:
      • All (value 1)
      • Specific (value 2)
      • Range (value 3)
    • Two different text boxes (a named range and the other named specific)

    What I'm trying to accomplish:

    Based on the drop-down menu, the boxes must be visible or hidden:

    • All (value 1). the two boxes are hidden
    • Specific (value 2); the specific box is visible, but the beach area is hidden
    • Range (value 3); the beach area is visible, but the specific box is hidden

    No matter what I try (JavaScript and FormCalc) I can't get this to work. If I start with hidden text areas they appear not visible, and when they begin to visible, they hide. I'm pulling my hair out on this one. Any help would be greatly appreciated.

    The error isn't in your code, it's in the form itself...

    In LiveCycle Designer, you have the properties of form that will design the PDF on how he'll react

    You form is set to be a static PDF and a large number of features are disabled in static PDF files

    To change your static to the dynamicform, follow the instructions:

    1. in LiveCycle, open your PDF form

    2. click on Files > in the form

    3. open the default values tab and change the last static dynamic dropdownlist (this option may not be necessary as it is for the side server only, but change still)

    4. open the overview tab and change ' Preview Adobe XML Form as ' of 'static PDF form' to 'shape dynamic XML'

    I hope that this will help there!

  • How to replace the value of a column in a table based on the value in the second column?

    Hi, I would like to find in a table 2D for values that meet certain criteria (for example, a column< 0.98).=""  based="" on="" which="" rows="" meet="" this="" criteria,="" i="" want="" to="" replace="" the="" values="" in="" a="" different="" column="" of="" the="" array="" (change="" to="" 'nan'="" so="" that="" the="" values="" will="" not="" be="" included="" in="" any="" calculations="" on="" that="" column,="" for="" example="" the="" finding="" the="" mean).=""  i've="" attached="" a="" sample="" .csv="" file.=""  if="" the="" values="" in="" column="" 3="" (index="" 2)="" are="" less="" than="" 0.980="" (or="" some="" other="" user="" defined="" value),="" then="" the="" value="" in="" column="" 2="" (index="" 1)="" should="" be="" replaced="" with="" nan.=""  can="" someone="" help="" out="" with="" this="" search="" and="" replace="">

    Thank you

    Keith

    (using LV 2009 SP1)

    A few quick hits.

    You can merge the two for loops

    You have not need one of the constants 1 and 2 in the index table.  They will solve automatically when you expand on the index picture, once you have wired to 0 in the column index.

    It seems a lot of handling additional table spent unnecessarily.

    See below.  I did not try to duplicate your code to see how it actually works, but I believe that I have attached will give the same result with less steps.

Maybe you are looking for

  • not enough disk space to install this book

    Hello I hope someone can help me. I have a new iPad Pro 256 GB with iOs 9.3.2 When I open the iBooks and I would like to read a book that is stored in my cloud, I get the above message. I get the message that I can manage my storage settings. I've ch

  • Hide/remove figures of knowledge/dial...

    Could ' t find a way to hide these numbers that I don't like in the front panel, I tried several options in the menu properties and visible elements, but it is not a tick "show/do not see numbers", it seems that you can't color transparent either so

  • HP 1000: password

    Hi, I lost my password error code CNU9279Z0G can you please help. ? Thank you.

  • install xp from dos

    HelloI have an office work with windows 7 and a laptop with no dvd player and no BONES. I am trying to install XP on laptop computer (does not support to boot from usb). I've done so far:-get out of laptop HARD drive-connected to my desktop (USB adap

  • installation of toolbar buttons does not load after that I removed the live tabbed browsing

    I clicked on live toolbar options and uninstalled, tabbed browsing, because then whenever I click on install button it will not charge or I have a message saying not available try again later it has been ongoing for more than a week. I want to reinst