Hide the Table Sections based on user input

I connected my form below. I'm trying to script the "Hide" button closed I want to hide all instances of the table "ActionItemGrp" sections when the user has entered a date in the field "ClosedDate". I tried the following script, but may not have to work.

Form1.ButtonsPage.HideClosed::click - (JavaScript, client)
for (var a=0;a<Table1.ActionItemGrp.instanceManager.count;a++){
for (var b=0;b<Table1.ActionItemGrp.all.item(a).Table1.ActionItemGrp.Row5.instanceManager.count;b++) {
  if (Table1.ActionItemGrp.all.item(a).Table1.ActionItemGrp.Row5.all.item(b).ClosedDate.rawValue!==null)
   Table1.ActionItemGrp.all.item(a).presence = "hidden";
}

Link to my file on WeTransfer: http://we.tl/bmZjwdb52u

The help is apprecaited...

Ah ok.

It is difficult, but this script should do.

for (var t = 0; t < _Table1.count; t += 1) {
          for (var a = 0; a < xfa.resolveNode("Table1[" + t + "]")._ActionItemGrp.count; a += 1) {
                    var aTarget = xfa.resolveNode("Table1[" + t + "].ActionItemGrp[" + a + "]");
                    if (!aTarget.Row5.ClosedDate.isNull) {
                              aTarget.Row3.presence = "hidden";
                              aTarget.Row4.presence = "hidden";
                              aTarget.Row5.presence = "hidden";
                              aTarget.Row6.presence = "hidden";
                    }
          }
}

Tags: Adobe LiveCycle

Similar Questions

  • Select text in the text box based on user input?

    I need to select (highlight) text that is present in the users choice i.e SystemPrompt from TextArea is shown where the user enters the desired text and if this text is currently present in the text box, put it highlighted, otherwise display additional information. Something like the search feature in the standard Notepad application.

    I can't find what I'm looking for in a TextEditor.

    Text of the text box is available by using the text property.

    If you can access the text typed by the user and then the index can be easily calculated. Something like this (untested):

    QString textAreaText = textArea->text();
    QString userInput = ...;
    
    int startIndex = textAreaText.indexOf(userInput, 0, Qt::CaseInsensitive);
    int endIndex = startIndex + userInput.length();
    
  • AF:query of automatic execution under certain conditions the search form based on user input

    I read the post 160 in "not yet documented ADF application examples.
    I have a question. How can I create a view criteria according to ListOfValidDnames with a parameter that is the chosen filter Loc in ListOfValidLocs.
    Let me explain. The numbers the user or chooses 1700 in field Loc using ListOfValidLocs. I want to filter ListOfValidDnames with 1700.

    Thank you

    See this demo:
    http://blogs.Oracle.com/Shay/2011/01/dependent_lovs_in_an_afquery_c.html

  • How can I get the action to hide the table of contents to work as part of a conditional Action?

    GOAL: when a user takes the Quiz and fails, I wish they were able to get back underway and reviewing the materials before taking the quiz. As noted in other discussions, I have created actions advanced conditional and standard to achieve this:

    • Quiz results Slide Property executes the standard action "ResultsSlideVisitedAction", affecting a variable (AssessmentVisited) to 1, an indicator that the result slide has been visited.

    ResultsSlideVisited.PNG

    • If a user clicks the Retake Quiz button, instead of going to a "knowledge management", a quiz question classified early in the race with zero points, it goes to the first real quiz question. The slide to check knowledge runs the 'ExcludeKCAction', a conditional, looking to see if the result slide has been visited, which means that the quiz taken. If so, he jumps at the 1st question of the quiz slide.

    KCExclude.PNG

    • I changed my Quiz message fail to tell the user to click the button Retake (which works fine) or navigate using the table of contents to review topics and then resume the quiz. The problem with this is that if a user uses the table of contents and gets to go to the slide to verify the knowledge to conditional action, they are sent directly to the Quiz.
    • So, I took a different tact and decided to ask the user to use a "Back in the race" button to review the course and then resume the quiz. Because you cannot add buttons to the slide of results, I created an invisible button to reset the AssessmentVisited variable to 0, so when the GET to the verification of knowledge, they are not sent for the quiz. I did this by adding the image on a button, and then by superimposing an invisible rectangular shape on top of the button image. This allowed me to add advanced invisible form actions. It worked!
    • The last thing I want to do is to hide the table of contents, so there is no chance of the user to return without resetting the variable. I tried to add the action to hide the table of contents, but it doesn't seem to work. Is this possible?  I tried to move the TOC to hide as actions of 1st, 2nd and 3rd and sill does not. Here is a screenshot of the conditional action that runs when a user clicks on my return to the button a course:
    • ReturnToCourseCondition.PNG

    I appreciate any thoughts on a solution to hide the table of contents as well. Thank you.

    Hide the TOC works only for OCD in overlay, you use a table of contents separate?

    With respect to the Score slide buttons, you make it very complex, it is possible since version 6: buttons on Question/Score 6 Captivate Slides?-Captivate blog

  • Hide the table of contents without overlap

    Hi! How can I hide the Table of contents on the right, but not overlapping le slides, maybe endangered? Is there any in the program or script? Thank you very much.

    You can create a table of contents in Captivate, using variables and actions progress/shared.

  • How to hide the table header if no data is present

    Hello

    I need to hide the heading for the table if no data is present. Table a, column 5. If no matter what clolumn gave this section table should not be display.

    I use <? If: count (Installation_Event_S19) = 0? > but this is not a job for me.

    Could you please help me.

    Thank you

    Sylvie Kumar


    I think you want to show/hide a table that if its conditions of licence exists and have some value. You can have an if condition including the table.

  • How to hide the table row after deleting logical

    Hello.
    I use Jdeveloper 11.1.1.3.0, ADF BC and ADF Faces.
    I would like to implement the logic delete in my application.
    In my entity object I have deleted attribute and I replace the remove() method in my EntityImpl class.
        @Override
        public void remove()
        {
           setDeleted("Y");
        }
    and I added this condition in my view object
    WHERE NVL(Deleted,'N') <> 'Y'
    on my page, I have a table. This table has a column to remove each line. I dragged and drop action the data control RemoveRowWithKey
    and the value of the parameter * #{row.rowKeyStr} *.
    I have what I need is the following:
    When the user click on the delete button I want to hide the ROE of the table. I tried to rerun the query after deleting, but the line is still on the page. Why run query does not hide the line of the screen.
    Here's the code I used to remove and run queries
        public String deleteLogically()
        {
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("removeRowWithKey");
            Object result = operationBinding.execute();
            DCBindingContainer dc=(DCBindingContainer) bindings;
            DCIteratorBinding iter=dc.findIteratorBinding("TakenMaterialsView4Iterator");
            iter.getCurrentRow().setAttribute("Deleted", "Y");
            //iter.getViewObject().executeQuery();
            iter.executeQuery();
            return null;
        }
    as you can see I used two methods () iter.getViewObject () .executeQuery; and iter.executeQuery (); but the result is the same.

    I built a sample for you - http://jobinesh.blogspot.com/2011/05/soft-deletion-of-rows.html. Please see if it meets your requirement.

  • Impossible to hide the table of content through its property

    Oracle Forms 10 g, Oracle database 10g

    Hi all

    I'm trying to hide my table of content at the time when the forms open so I went to his property and disable the Visible property, but I still see this painting.

    At the same time, when I use the code below, then I can't see this painting...

    Code

    SET_VIEW_PROPERTY ('MAIN', VISIBLE, PROPERTY_FALSE);

    In fact, I have defined name canvas in one of my table and want to control those dynamically.

    Can someone help me?. Thank you

    Concerning

    Muzz


    Dear Muzz

    Make sure that the first navigable point in the first block is not in the Web of hide. If its in the canvas, and then change the first element of the block as another element.

    Manu.

  • Hide the ICO Edit based on the security system


    Hi all

    I'm new to APEX and used the APEX 5.0. I have a report of interactive form created to allow the user to display & load the data.

    However, we have a few users who cannot see the data, but cannot be changed.

    What I did:

    1. I created the access control Page

    2. Add the users in the list of control

    3. went to each page where create, add, apply changes buttons are there and changed the authentication with a view scheme

    Question: In the Page Editor I'm not able to see the icon for EDITING, apply the schema above, need urgent help please (highlight the icon which I am not able to find in Page Editor)

    Below are pictures of my report and editor of the page

    Issue.pngPage.png

    Thanks in advance for any pointers

    Sudhir Nune wrote:

    I'm new to APEX and used the APEX 5.0. I have a report of interactive form created to allow the user to display & load data.

    However, we have a few users who cannot see the data, but cannot be changed.

    What I did:

    1. I created the access control Page

    2. Add the users in the list of control

    3. went to each page where create, add, apply changes buttons are there and changed the authentication with a view scheme

    Question: In the Page Editor I'm not able to see the icon for EDITING, apply the schema above, need urgent help please (highlight the icon which I am not able to find in Page Editor)

    Click on the IR attributes node in the tree pane, the link column to link properties are in the first section of the property on the right Editor. The authorization scheme can be applied here.

  • Apply the table style based on the contents of the cell

    I'm on a Mac, OS 10.8.5 using InDesign 5.

    Does anyone know how to apply a table style based on the content of text found in a cell in javascript?

    I need to find the document and change all the styles table 'LONG orange verbatim' If the text "HS:" appear in the header line.

    I've been playing with scripts found with the following 3 wires, but can get it to apply a table style.

    Thank you!

    Apply Table Cell Style based on text search and How to apply a cell of table based on grep style search? and Re: find PStyle and apply the cell Style in the Table

    Here are the corrected lines:

    var curDoc = app.activeDocument;
    var allTables = curDoc.stories.everyItem().tables.everyItem(); 
    
    app.findTextPreferences = app.changeTextPreferences = null;
    app.findTextPreferences.findWhat = "HS:";
    var allFounds = allTables.findText();
    app.findTextPreferences = app.changeTextPreferences = null;
    
    for ( var i = 0; i < allFounds.length; i++ ) {
        var curFound = allFounds[i];
        if ( curFound.length == 1 ) {
            var curFoundParent = curFound[0].parent;
            if ( curFoundParent.parentRow.rowType == RowTypes.headerRow ) {
                curFoundParent.parent.appliedTableStyle = curDoc.tableStyles.itemByName( "verbatim orange LONG" );
            }
        }
    }
    
  • The buttons display based on users

    Hello

    I have 2 types of users using my request. They are admin and developers. They have different privileges. When logged on as Administrator , 2 buttons namely approve and reject must be visible. When you are logged as long as developers, only one button named forward must be visible. Please guide me to achieve.

    Buttons have Condition attributes and authorization scheme. You can use one of these two conditionally display a button.

    In your case, I'd both DEV and ADMIN authorisation schemes. Much easier to reuse in other situations.

    (You can actually create only the ADMINISTRATOR and approval {no ADMIN} allows to inform developers. This can lead to problems in the future when groups of users adding more)

    More information:

    https://docs.Oracle.com/CD/E59726_01/doc.50/e39147/bldr_attr.htm#CHDCJGCI

  • How to get common created column which is present in all The Tables in a DB user

    Team,

    Suppose we use the SCOTT schema and as usual we have tables tables my table emp, dept, salgrade etc. But let's assume we have a column by name date_created in all tables. I would like to get the name of the table with the date_created max of the corresponding table column. I tried like this:

    {code}

    Select Table_Name,

    (Select Max (Date_Created) (Select Table_Name From user_tables where Table_Name = Ut.Table_Name)) As Max_Date_Created

    from user_tables ut

    {code}

    but it does not work.

    Any suggestions most welcome.

    Concerning

    Select table_name,

    column_name,

    dbms_xmlgen.getxmltype ("select max('||) column_name |') MAX_VALUE to ' | table_name). Extract ('/ rowset/Row/MAX_VALUE/Text ()'). GETSTRINGVAL() max_value

    of user_tab_columns

    where column_name = 'DATE_CREATED ';

  • How hide the table of contents in the body of an e-book?

    Hey people, I'm kind of a weird request. Do not forget that everything I know about InDesign, I taught myself for a month, so I can miss major somethng.

    As an intern, I am creating ebooks and I have to make sure that those I create the same look as the ebooks previously created for my employer (better yet, I had to do it from scratch!). In their previous ebooks (EPUB file format) the table of contents posted by the ereader clearly indicates a specific style of OCD was used to create (he titles and subtitles, so it is not just the default style that draws from the file names), BUT there is NO table of contents anywhere in the body of the ebook itself. There is also no blank page where a table of contents can be hidden with a hidden layer.

    I created a table of contents to match style to them, but I can't it appears in the drop-down menu Styles TOC when I go to export EPUB book file unless the document of the table of contents is also included in the book file, and as I said, I can't get the table of contents in the body of the ebook itself just in the menu that is displayed by an ereader.

    Any advice?

    Did you use dialogue style of content Table to create a new style of table of contents? If so, then the new table of contents style must appear in the drop-down list TOC Style selected in the dialog box in the Navigation options to export EPUB.

    Kind regards

    POOJA

  • Check box to hide the table row

    I have the table and the box.
    I need when is checked then unhidde of certain lines and when is not checked to be hidden?

    Thank you

    I did it in my form. What I did do the subform, and then place all the objects that I wanted to be hidden and then visible inside. I then used this code on the button:

    If (this.rawValue == '1') {}

    oTargetField = this.resolveNode ("subform name here");

    oTargetField.presence = "hidden".

    }

    If (this.rawValue == '0') {}

    oTargetField = this.resolveNode ("subform name here");

    oTargetField.presence = "visible".

  • hide the table header

    Hi, I have a requirement that, in some of the screens ADF component table must be displayed without a header (only data need to be), so I found the counting code to remove the header of the table below. But this code works in the world, which means that all tables in my project lose their headers. So the question is how can I make specific to a single table.

    AF | : column-to-head-cell {}
    display: none;
    }

    I use jdev 11.1.1.3

    Thank you.

    Hi Alain

    You must first create a styleClass and then assign this styleClass to all the tables that do not have headers.

    So first you css create the styleclass:

    tableNoColumnHeaders af | : column-to-head-cell {display: none ;}}

    And after that in your jsf code:

    That should do the trick. Only, the table with assigned styleclass has no header.

    Concerning

    Luc Bors

Maybe you are looking for