Possible to show/hide sections in a table?

Hello all,
First post here. I've only started using LiveCycle Designer a few weeks ago, never knowing that it came with my Acrobat. I've been busy converting forms we use in our business into pdf versions that can be filled, and created some with simple scripting etc.  Anyway my most ambitious effort to date is to create a gross payroll calculator in which I would enter the total hours worked for each employee and the gross payroll is calculated. The calculations I have no issue with.
I am using a hidden "config" subform (thanks to kingphysh for your easy and simple example!) to store the employee names and payrates and the department they work in.
My main form, the one on which I am entering total time for each employee, consists of a table with a section for each department. Thus I can put all employees in a department in one section of the table and then easily do subtotals by department etc.
Table1
Table1.Section1
      Dept. Name | Emp. Name | Pay Rate | Total Hrs | Gross Pay|  <-- this would be one row in the section     
Table1.Section2
      Dept. Name | Emp. Name | Pay Rate | Total Hrs | Gross Pay|
Table1.Section3
      Dept. Name | Emp. Name | Pay Rate | Total Hrs | Gross Pay|
and so on. Each section also has a footer row for subtotals.
This form will be used at various physical locations and not every location will have all departments. Thus I want the table to show only those sections for which the corresponding departments exist based on a selection (checkbox) that is on the hidden config page.
Its not so much the actual scripting thats a problem, but where to put the script. Should I use a Table1 event or the checkbox event? I've tried both but neither works as desired. Or should I use an event for the individual rows in the section itself?
Any pointers and suggestions will be greatly appreciated!
Harry.

Niall,
Many thanks for all your help. With the examples you provided, I have been able to almost finish the form and learned a little bit along the way too.
There are a couple of things still vexing me though.
My form's hierarchy is as follows:
page1 (flowed)
     - wrapper (flowed)
          - form1  (positioned)  <-- sub-form (form on which data is entered and calculation results are displayed_
               - table1
                    -HEADER
                    -Section1 - bodyrow
                                   - section1 footer
                    -Section2 - bodyrow
                                    - section2 footer
                    -FOOTER
          - config   (positioned) <--  sub-form (normally hidden "config" form which stores employee data - accessed by password
               - table1
The sub-form form1 contains a table with six sections. Each section represents one department and has  body rows and a footer row for subtotals.
the number of body rows in each section can vary with the number of employees in the department.
I have two issues remaining with the form and it will be done. Hopefully you will be able to point me in the right direction.
1. Pagination - in the form, I have set page1 to "flowed". wrapper is also flowed. form1 is positioned.
     I would like to be able to set it so that if any section is going to be split, it would go onto the next page.
     The header should be repeated in each page. Each section footer should be with the section, and the Table footer should be on the last page.
2. Column Subtotals
     I have set the form to be as general purpose as possible. Thus it can take time totals in either decimal or HH:MM format. I am having trouble adding columns of time totals in HH:MM format.
For example, given 3 time totals (all are in text fields):
10:35
15:59
03:24
I would thing the best way to do this is to parse the strings and add the minutes and hrs separately and then depending on the total of the minutes, use the floor and mod functions to get the correct total. I just can't get it to add the columns at all.
This is the code I am using to add the column:
if (_FD.count gt 0) then   //make sure at least one body row exists in this section
for i = 1 upto (_FD.count) do
mins = Sum(Right (FD[i].fdr_tot[i], 2))        // FD is the row and fdr_tot is the cell in the row which is to be included in the calc.
hrs = Sum(Left (FD[i].fdr_tot[i], (Len (FD[i].fdr_tot[i]) - 3)))
endfor
endif
I've tried using the code below as well to no avail.
mins = Sum(Right (FD[*].fdr_tot[*], 2))
hrs = Sum(Left (FD[*].fdr_tot[*], (Len (FD[*].fdr_tot[*]) - 3)))
Any suggestions will be greatly appreciated.
Thanks.

Similar Messages

  • Show/hide Section depending upon a field Value

    Post Author: breathshadow
    CA Forum: Formula
    Hi I am not very good at Crystal Reports.Basically this is what i have to do.in the Details Records if i find Certain Text in a Field,I have to show a section or else..Hide it.here's the formula I useWhilePrintingRecordsglobal showDisbCreditSection as numberselect case UpperCase({INVOICE_LOG.LINE_ITEM_TYPE})case "HCDC", "LIDC", "SLDC", "RHCDC" showDisbCreditSection = 1 'set it to 1 as we found a record which contains one of these 4 Itemscase elseif (showDisbCreditSection <> 1 ) thenshowDisbCreditSection = 0end ifend selectformula = showDisbCreditSectionthis works ok if the User will Request 1 Report a Time. If they request the Report say in a "Between" Queryie, FieldX between 1 to 10the Formula Falls over.please show me some techniq to reset the showDisbCreditSection variable each time a new Report is Started in a continuous Report generated with a Between Query from Select Expert of CR 8.5thanksDeepak

    Hi,
    Declare a flag value is false at starting when your condition occur make that value as true. In if condition mention if flag = true skip that line(out side the loop).
    Use flag logic.
    Thanks,
    RamuV

  • Is it possible to show/hide dynamically columns in RDLC form?

    We need to show/hide dynamically columns in our Report RDLC form based by the user desire needs.
    We need by the predefined checkboxes to set which columns should be seen and which should be hidden.
    Is it possible in RDLC form to make it "show/hide columns dynamically" with any way?

    Depends on what you mean dynamically, you still need to press the view report button.
    What you can do is right click on the column you want to be able to hide/display in design mode,
    click "Column visibilty", choose "show or hide based on an expression" then in your expression base your true or false on a boolean parameter for each column

  • APEX4: Is it possible to show/hide a field on form based on Radio selection

    Hi,
    On a form, I've a radio group (with two values) and two select list. Based on the selection in radio group, I want to show/hide the select list.
    Like, when the user clicks Radio Group Value - RG_A, SL_A has to be visible, and when user clicks Radio Group Value - RG_G, SL_B has to be visible.
    Is this possible in APEX 4? How can I do it?
    Thanks for the help.
    --Hozy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    Yes, you can do it using Dynamic Actions.
    See this thread as well. APEX4: Populating fields from database based on the SelectList value
    In Radio Group you will need to identify the button clicked from its ID and / or value. Thats because the Radio Group Item creates as many IDs / Items as there are options P1_ITEM_0, P1_ITEM1_1, etc.
    Regards,

  • Is it possible to show/hide a layer in all the files in a book?

    Hi,
    I have 5 catalogs organized in a book, every is at 10 languages, every language is at separate layer. Every book has between 30 and 80 Indesign documents.
    I need to edit and print 4 of those languages and switching manually viability of the layers don't look like a good idea to me because of the possible mistake.
    Is there a way switching layers/languages to happen in same time?
    The names to layers are same in all documents.
    Thank you in advance!

    M Blackburn wrote:
    Synchronize Options does not include layers. I would guess that you would have to use Conditional Text to each layer -- could be a lot of work after the fact. If no one else posts a more helpful response, you may want to ask in the Scripting Forum.
    I haven't tested it, but it might be possible to ignore or hide the layer(s) in the PDF you distribute or print. Worth a try.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • SP2013 Is it possible to show/hide columns based on column selections?

    SharePoint 2013
    I have a lists with a school district selection choice column (refer to as column A). Then I have three other columns with schools based on district. What I would like to do is only show schools in a certain district based on what district
    is selected in column A. Can anyone tell me if this is possible and if so, how can i acheive it?

    It generally takes a little script to get the cascading right;
    http://sharepoint-works.blogspot.ch/2012/02/cascading-dropdown-or-filtered-values.html
    https://www.youtube.com/watch?v=70-hXWY6ARY
    InfoPath is another possibility. Are you using that?
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

  • Is it possible to show/hide a result text field only if another Text field is visible and has content?

    Hi
    Please could someone tell me if it is possible to make a text field visible only if another text field is visible and has content?
    I have this which works for the content part, but sometimes the field is hidden, so the script must not apply.
    var v1 = getField("Text1").value;
    event.target.display = v1 !== ""  ?
    display.visible : display.hidden;
    What I need is something along the lines of:
    var v1 = getField("Text1").value;
    event.target.display = (v1 !== "" && v1!=="Hidden") ?
    display.visible : display.hidden;
    Thanks for any advise.

    Thanks for the hints which led me to the right solution. I created a query to check if the trigger for the visibility was there or not, and this works. The script I have used is:
    var v1 = getField("Text1").value;
    var v2 = getField("Checkbox").value;
    var v3 = getField("Text2").value;
    event.target.display = (v1=="" || v3=="" && v2=="On" ) ?
    display.visible : display.hidden;

  • Show/ Hide Tables in SSRS based on Multiple Parameters

    Hi
    Is it possible to show/ hide multiple different tables based on a multivalued parameter?  I have 6 tables and I want 1 or 6 displayed dependent on what is selected from the multivalued parameter.
    When I add the IN operator and select multivalues, I get the following error:
    I have an expression set in the Visibility tab in the tablix to:
    =IIf(Parameters!Name.Value =
    "Name",
    false,
    true)
    and in the filters tab, I have a filter on the name so the data is filtered only by that name so it can display the different categories in the different tablix.
    Can anyone advise on how to achieve it so I can use the multivalued parameter option to display 1 or more tables?
    thanks!

    Hi
    Is it possible to show/ hide multiple different tables based on a multivalued parameter?  I have 6 tables and I want 1 or 6 displayed dependent on what is selected from the multivalued parameter.
    When I add the IN operator and select multivalues, I get the following error:
    I have an expression set in the Visibility tab in the tablix to:
    "Name",
    false,
    true)
    and in the filters tab, I have a filter on the name so the data is filtered only by that name so it can display the different categories in the different tablix.
    Can anyone advise on how to achieve it so I can use the multivalued parameter option to display 1 or more tables?
    thanks!
    =IIf(Parameters!Name.Value =
    Hi,
    Use Join function in the RDL and hide them for whatever values you want to.
    =Join(Parameter!paramname.value,",")
    Thanks,
    FunBI

  • Error while trying to view the details table from Show/Hide icon

    What we are having is two tables, Outer and Inner, having Outer VO and Inner VO,outer VO is linked with inner VO. Now when I am trying to view the inner table
    through Show/Hide icon to see the details of the table ,I am getting an error like ...
    The record with primary key values {2280} could not be found in view object MisForecastHeadOfiiceAM.InnerTableVO_OuterInnerVL_InnerTableVO.
    I want to know how this error can be resolved

    Hi Abdul,
    We are not getting error while searching. As said earlier
    While search for the first time > We could see proper results in out table and Even show/hide is working fine and display correct data in Inner table
    When searching for the second time with different criteria > We could see proper results in outer table and on clicking show/hide (to view inner table data), we are getting error.
    The record with primary key values {2280} could not be found in view object AM.ViewLinkVL_InnerTableVO
    From the error message, we found that its trying to get the row (of inner table) pertaining to first search results and not for the outer table row in context to second search results.

  • Issue while readnig child records of Advanced Table after show/hide event.

    Hi All,
    As suggested in OAF dev guide, I used below piece of code to get control on Child items for selected Parent
    -- code Starts
    // get a handle to inner table
    OATableBean innerTable =
    (OATableBean)webBean.findChildRecursive("InnerTableBean");
    // create an enumerator
    OAInnerDataObjectEnumerator enum =
    new OAInnerDataObjectEnumerator(pageContext, innerTable);
    while (enum.hasMoreElements())
    RowSet innerRowSet = (RowSet) enum.nextElement();
    // get all rows
    Row []rowsInRange = innerRowSet.getAllRowsInRange();
    for (int i = 0; i < rowsInRange.length; i++)
    Row nextRow = (Row) rowsInRange;
    -- code Ends
    The above piece of code works when I don’t select show/hide link of Adv table and select custom ‘Update Parent/Child’ button that is placed at header(parent) level,
    upon btn event it returns all the rows of parent and works fine. But when I select show/hide link and then select ‘Update Parent/Child’ button then only it return no of Child rows displayed (fetched) on page...
    For example, If I have 100 child records of a set and only 10 child rows are displayed at a time on child region , then above code only returns 10 records,
    Ideally it suppose to return all 100 values.
    Can someone please help on this to understand why it only return 10 records not all 100 after selecting Hide show region ? and how can I fix this issue.
    Thanks
    Anand

    Hi,
    Use the VO attached to the inner table and use VO.fetchedRowCount instead of rowsInRange.length in the for loop.
    int rowcount = vo.fetchedRowCount();
    i.e. for (int i = 0; i < rowcount ; i++)
    Thanks,
    Kumar

  • Show / Hide characteristic in Bex Web

    Hi,
    since we use a fixed Template without the possibility to choose the characterstics / key figures from the
    Navigational Menu the question is if its possible to show / hide a characteristic in Bex Web via a button in the template.
    Thanks for help,
    Marco

    Hi Marco,
           That functionality is not present in the Button. But there is a way to acheive this.
            All you need to do is create two different queries, one showing the characteristics and other query without characteristics(hiding the characteristics).
           Then do the following steps:
    1. Goto Design mode and Place a button For Showing the Characteristics.
    2. Then in cmd type, choose 'Data Provider Specific Command'.
    3. In the Next window, choose 'Assign Query' and select the query that show the characterisitcs.
    4. Then give finish and give the Description as "SHOW CHARACTERISTICS".
    5. Then place another button in for hiding the char.
    6. Perform the 2nd and 3rd steps, but while selecting the query chose the one that hiding the characteristics.
    7. Then give the Description as "HIDE CHARACTERISTICS".
         So, if you click the SHOW button, it will show you the query that displaying all the characteristics and vice versa if you click the HIDE button.
         It will help you to solve the issue. Let us know if any further issues.
         Assign points if it helps you.
    Regards,
    Yokesh.

  • Dynamically show/hide regions out of the application workflow

    hi,
    is it possible to show/hide regions of a page dynamically with a "select list with submit" item?
    regards

    Hi,
    Do you mean "Conditionally display" items based on the value of a Select List with Submit?
    Andy

  • Show/hide field options are grayed out

    If a drop down value is 1, I want to show field #1. If the drop down value is 2, I want to show fields #1 & 2. If the value is 3, I want to show fields # 1 2 & 3, etc. This appears not to be possible; a show hide rule is already created for value 1 and appears unavailable for a new rule for value 2. Any ideas for a workaround?

    Yes you can do this using the hide show logic. In the case you describe you want to use the if any rule rather than the if all rule. For drop down item one the logic is if any (1, 2 or 3) are selected show item one. For item two the logic is if (2 or 3) are selected show item 2.
    Andrew

  • How to make a layer from the ADF pivot table invisible , show-hide column-row-data

    Hello all ,
    I need to create a pivottable with ADF 12c for reporting purposes.
    I have a table or view with 10 items of type VARCHAR2 , C1,C2,C3,C4,C5,C6,C7,C8,C9,C10  and   10 items of type NUMBER N1,N2,N3,N4,N5,N6,N7,N8,N9,N10
    The items of type VARCHAR2 are for Column and Row areas and the items NUMBER are for Data Areas
    I want to create a jsf page with one empty pivottable and in code Show or Hide the items in the Column area , Row area , Data area
    Con you send me a small sample ?
    I test with this code that i find in oracle OTN but not work.
    <dvt:pivotTable id="pt2" value="#{bindings.WebPivotDataView1.pivotTableModel}" var="cellData"
    varStatus="cellStatus" splitMode="enabled"
    binding="#{backingBeanScope.CmfPivotBean.pivotTable}"
    >
    <dvt:headerCell>
    <af:switcher facetName="#{cellData.layerName}" defaultFacet="Default" id="s1">
    <f:facet name="DataLayer">
    <af:outputText value="#{cellData.label}" id="ot1"/>
    </f:facet>
    <f:facet name="C01">
    <af:outputText value="#{cellData.dataValue}" id="ot2"/>
    </f:facet>
    <f:facet name="Default">
    <af:outputText value="#{cellData.dataValue}" id="ot3"/>
    </f:facet>
    </af:switcher>
    </dvt:headerCell>
    <dvt:dataCell>
    <af:switcher facetName="#{cellStatus.members.DataLayer.value}" defaultFacet="Default" id="s2">
    <f:facet name="N01">
    <af:outputText value="#{cellData.dataValue}" id="ot4">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.WebPivotDataView1.hints.N01.format}"/>
    </af:outputText>
    </f:facet>
    <f:facet name="Default">
    <af:outputText value="#{cellData.dataValue}" id="ot5"/>
    </f:facet>
    </af:switcher>
    </dvt:dataCell>
    </dvt:pivotTable>
    DCBindingContainer bindingContainer = (DCBindingContainer)ADFContext.getCurrent().getRequestScope().get("bindings");
    CubicBinding cubicBinding = (CubicBinding)bindingContainer.findCtrlBinding("WebPivotDataView1");
    CubicEditor cubicEditor = cubicBinding.getCubicEditor();
    cubicEditor.removeLayer(DataDirector.ROW_EDGE, 0); //remove 1st row edge
    cubicEditor.removeLayer(DataDirector.COLUMN_EDGE, 0); // remove 1st column edge
    cubicEditor.removeDataItem(0);
    CubicDefinition def;
    def = cubicBinding.getProjection();
    LayerDefinition layerDefinition = new LayerDefinition("C3");
    cubicEditor.addLayer(DataDirector.ROW_EDGE, 0, layerDefinition);    
    LayerDefinition layerDefinition2 = new LayerDefinition("C4");
    cubicEditor.addLayer(DataDirector.COLUMN_EDGE, 0, layerDefinition2);
    DataItemDefinition def3 = new DataItemDefinition("N1");
    cubicEditor.addDataItem(def3);
    AdfFacesContext.getCurrentInstance().addPartialTarget(pivotTable);
    Can you help me if is possible to create a pivottable binding to a one ViewObject and in code show/hide or compose the layout of the pivottable ??
    I search in google and OTN oracle and not find any code.
    Only find the code of the samples that is very complex for me , the code of the samples create the PivotTableModel from one Array , and i want to binding from one ADB BC ViewObject.
    Thanks in advance

    The solution I presented for your use case an DOAG 2013 was to create a pivot table binding out of user defined attributes from the table. For the defined attributes a VO is dynamically created as well as the pivot binding. The pivot binding is then exchanged at runtime together with the activation of the dynamic VO needed to only get the data needed for the particularly pivot table.
    Your solution using the CubicEditor is hard to implement due to the missing documentation. This was the reason I did not follow this approach, However it's not impossible (done it on a very small scale).
    None of the solution are what I call simple. They are complicated, complex and in part not supported solution (exchanging the pivot table binding at runtime need to use internal classes, which is not supported).
    I can't give you a working sample as it's too complex. I can make the slides available, however they are in German.
    Timo

  • Getting Stale Data error in show/hide of Advance table

    Hi,
    Am using hide/show in advance table.If open the hide/show in 1st row then it shows correct data ,if i click the next row's show hide then its shows the same result as ist row, and i try to use show/hide link more thann three times then it throws stale data error given below.
    The requested page contains stale data. This error could have been caused through the use of the browser's navigation buttons (the browser Back button, for example).
    Cause:
    The record with primary key values {1400} could not be found in view object MisForecastHeadOfiiceAM.InnerTableVO_OuterInnerVL_InnerTableVO.
    To proceed, please select the Home link at the top of the application page to return to the main menu. Then, access this page again using the application's navigation controls (menu, links, and so on) instead of using the browser's navigation controls like Back and Forward.
    This problem doen't exsist when i deplo it to the server.
    But recently i marked if open a show/hide link of a row and add then add another row to the table and save.Then the same problem reflects in the instance also.
    What may be the possible cause.
    Thanks

    if i click the next row's show hide then its shows the same result as ist row, and i try to use show/hide link more thann three times then it throws stale data error given below.
    >>> Seems like your VO linking is not proper. Does your VO have primary keys defined? Do you have any custom code on these VO?
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for