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

Similar Messages

  • How do you output a field column depending on another fields value?

    when selecting a field in a query, how do you output it on its own column depending on another fields value?
    For example
    Select
    a.gross_vol as Gas_vol when a.Object_code = "GAS"
    a.gross_vol as Wat_Vol when a.object_code = "water"

    how do you output it on its own column depending on another fields value?Scalar subquery maybe?:
    michaels>  select (select ename from emp where empno = 7788) scott_ename,
           (select ename from emp where empno = 7839) king_ename
      from dual
    SCOTT_ENAM KING_ENAME
    SCOTT      KING 

  • File to multiple idoc scenarios depending on finput field value

    Hi,
    i have a file to idoc scenario.
    depending on a particular field of the file i have to trigger a single idoc (with all the records in the file)or multiple idocs  (for each record in the file ).
    for example,
    the file has 5 records-
    2 records have field value A (create 1 idoc for all As)
    3 records have field value B (create 1 idoc for each B)
    so in this case 4 idocs (1 for all A, and 3x1 for B) are created
    What is the best solution ?-
    1. to have several outbound idoc interfaces and check each interface mapping for field value (A or B) ?
    this solution seems like overwork to me
    2. handle this in mapping ?
    in that case will UDF be better or ABAP mapping
    3. any other way ?
    Thanks in advance

    Hi,
    if you have one IDOC type you can use ABAP mapping
    this way you will handle everything in tables
    and you will be able to post one IDOC (bundled)
    with all IDOCs inside
    also if you use ABAP mapping you will be able to incorporate changes
    easily in the future I believe
    for idoc bundling:
    <a href="/people/michal.krawczyk2/blog/2006/10/11/xi-new-book-mastering-idoc-business-scenarios-with-sap-xi"><b>Mastering IDoc Business Scenarios with SAP XI</b></a>
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Workflow in reply dependent on parent field values

    We have a key existing process which could be described as a member of one organization sends a work request to a different organization. The first organization has a manager assigned to this job. The second organization assigns a lead engineer to the job. These two people negotiate a target completion date. Throughout this the job moves through various workflow states. In a number of cases after the job is in progress, circumstances change that might require the target to be renegotiated. However for the sake of various metrics, the original target has to be maintained and the job cannot be moved out of the in-progress state.
    This process was implemented using the SiteScape forum product about 7 years ago. The way we dealt with this issue in forum was to have a custom reply type to revise the target date. That reply type has its own workflow which uses a workflow question to which both the manager and the lead engineer respond. Those people are designated in the parent record.
    When implementing this in Vibe, it appears that although it looks like you can designate those fields as the responders in the workflow, it does not work. I am assuming that it is because there is no way for the system to know that it is supposed to be those field values in the parent record.
    I suppose that it would be possible to re-engineer this process in some way that might be more compatible but then I would be left with over 30 thousand records of critical importance that could not be migrated to a new Vibe based system.
    What I really need is a way to tell the system that these values are on the parent record.
    Any thoughts or help doing this would be appreciated.

    gribar,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

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

  • Hide elements depending on other elements value

    how can I hide elements (for example af:commandButton) when I change the value of another element (for example af:selectOneChoice)

    <af:selectonechoice id="soc1" autoSubmit="true">
    <af:commandButton id="cm1" partialTriggers="soc1" visible="#{bean.value}">in the valuechangevent of the selectonechoice.. set the value to false. so that the visible property will become false.. and the autosubmit will trigger the commandbutton to hide

  • Change the Report Title for XML Publisher, depending on the field value.

    I want to change the Report Title as below.
    if the field_A='B' then the report title as it is defined in report defination
    else the report title is 'XXX"
    Please let me know whether it is possible, if yes please guide me. how can we do it.
    Thanks
    Venkat

    Tim covered the inline if statement, though not specifically regarding a title, in his blog recently:
    http://blogs.oracle.com/xmlpublisher/2007/12/18#a723
    The syntax is:
    xdoxslt:ifelse(.//WM_FLAG='C’,'Canceled','Approved')

  • Can we change the state based upon another field value?

    I want to change the state to Done when completed work is set to 0. I googled it and came to know about this:
    Handle it from the server side, monitoring the WorkItemChanged event. The downside is that it doesn't reflect immediately in the end-user screen. After editing a work item, the user would have to hit Refresh to see the new state.
    Will it be perfect in this way? Any other suggestions.
    Please provide best links to learn about creating server plugins and depoying.

    Hi divya,
    For your questions, you can refer to the link that Alexandr mentioned above to check the Pros and cons of custom controls for work item tracking.
    And for server side plugin, it has the ability to capture all the occurred events without exception. You can get more information about how to implement it by refering links below:
    https://socialtfs.codeplex.com/wikipage?title=How%20to%20create%20and%20debug%20a%20Team%20Foundation%20Server%20server-side%20plugin&referringTitle=Documentation
    http://vgaltes.com/index.php/2013/04/14/create-a-team-foundation-server-event-handler/
    http://geekswithblogs.net/jakob/archive/2010/10/27/devleoping-and-debugging-server-side-event-handlers-in-tfs-2010.aspx
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • 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

  • Hied field, if another field value = "" or 0

    Hello I am trying to show and hide a field based upon another fields value.
    However I want this field to be hidden if the other field value is either blank " " or "22"
    Here is what I am working with,
    if (this.getField("Planting_Days").valueAsString=="") event.target.display = display.hidden;
    else event.target.display = display.visible;
    I want to do something like this.
    if (this.getField("Planting_Days").valueAsString=="" or "22") event.target.display = display.hidden;
    else event.target.display = display.visible;

    Thanks,
    Now what if I wanted to hide a field if two or more separate fields meet my designated numbers?
    Something Like this.
    if (this.getField("Planting_Days").valueAsString=="1" and this.getField("Crop_Selected").valueAsString=="corn" and this.getField("Season_Selected").valueAsString=="Summer") event.target.display = display.hidden;
    else event.target.display = display.visible;
    I only want this field to show if all of the three fields are as designated.

  • How to display the column dyanmically depending upon input

    I am doing a alv report of tax breaks in which i had 6 columns to be displayed as static and rest of ( vat tax )columns should be dynamic .
    if i enter a p.o.document no then if that p.o has taxes
    excise and excess then  they should be displayed and vat field contain 0 or nodata then it should not be in output .pls let me know .

    Farukh Quadri
       In the program, check if the PO has the EXCISE and EXCESS details. If yes, then make the FLAG = ' ' .
    If the PO doesnot have EXCISE and EXCESS  details then make FLAG = 'X'.
    While biulding the Field Catalog,  make that COLUMNS INVISIBLE depending upon the FLAG value
    loop at locFieldCatalog.
          case locFieldCatalog-fieldname.
            when 'WERKS'.
                locFieldCatalog-emphasize  = 'X'.
                locFieldCatalog-col_pos    = 1.
                modify locFieldCatalog.
            when 'MATNR'.
                locFieldCatalog-emphasize  = 'X'.
                locFieldCatalog-col_pos    = 2.
                modify locFieldCatalog.
    <b>        when 'EXCESS'.
              if FLAG = 'X'.
                 locFieldCatalog-no_out = 'X'.
                 modify locFieldCatalog.
              endif.</b>
      endcase.
    Please close your previous postings
    Thanks
    Kam

  • How to revise form field value in query and skip validation

    Hi all,
    I have a 10g form that has a field which I want to manipulate during query. I want to display a different value depending upon its orignal value. I did this with a Post-Query trigger on the field's datablock. However, now, when I attempt a new query, the form thinks I've changed the field (which I did). I want to change the field but trick Forms into thinking there were no updates. How do I do this? Note: the field is a list item that has a style of combo box.
    Thanks, Mike

    Ammad,
    The reason is that sometimes the list returns the record group's key value (the second column) instead of the intended value (in the first column). This is because the record group is based on a SQL query. There are some values which are no longer in the table queried by the record group, thus the key value is displayed. I would rather nothing be displayed. As of now, I display a message indicating that there is a problem with the LOV.
    I know about using a non-database form field. But I don't have any room left and I don't want to lay the non-database field on top of the database field and then have to enable/disable the two fields.
    A friend at work suggested setting update_permission to trick Forms. Tried it but not successful yet.
    Thanks, Mike

  • Dynamic action - show/hide region based on LOV which returns ID

    Hi folks,
    this should be simple, so someone who works with dynamic actions.
    I have a LOV which is based on below query:
    select OBJECT_ID, KOD
      from x_data x;
    retuns:
       ID          KOD
        492961 BMW
        492964 VOLVO
        492960 MERCEDES
        492963 VOLKSWAGEN
        492959 SKODAItem :P200_KOD is based on LOV which displays KOD and returns ID.
    On my page I have also 1 region called TEST_REGION.
    I would like to set up a dynamic action shich will SHOW/HIDE a TEST_REGION based on selected value in item :P200_KOD (LOV). Region should be showed if displayed (KOD) value of selected ID starts with 'V%'
    By other words, if below query returns any record, then SHOW, else HIDE:
       select *
        from x_data x
      where x.kod like 'V%'
         and x.object_id = :P200_KOD;How should I define a triggering condition for dynamic action, for item :P200_KOD?
    Thanks,
    Tomas

    Hi,
    One way:
    Create advanced dynamic action.
    Name : Hide region
    Event : Change
    Selection Type : Item(s)
    Items(s) : P200_KOD
    Condition : JavaScript Expression
    Value :
    $(this.triggeringElement).children("option:selected").html().substring(0,1) !== "V"Action : Hide
    Fire On Page Load : True
    Hide all page items on the same line : No
    False Action : Show
    Fire On Page Load : True
    Show all page items on the same line : No
    Selection Type : Region
    Region : TEST_REGION
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • How to add an extra columns to accounting flex field value sets

    Hi
    I am working on report customization for standard Account Analysis (180 Char) report. Requirement is to show a column "Parent" in Flex field value set .
    Currently its showing columns as Account, description
    i need to add parent column
    i can not modify segment value sets as they are attached to accounting flex fields
    so is there any other way i can achieve thie
    Regards
    Dhananjay

    If it would help your company to be able to change the accounting flexfield and value sets, I might be able to help. there is software to do this on the market. Sometimes when companies need to develop complex reporting, it's a sign that the chart of accounts, the AFF is obsolete, and it makes sense to change it rather than work around it.

  • Show or Hide fields based upon a variable value

    Hi,
    I am a rookie in the field of Acrobat. And my only question is :
    How to Circle a Form Field based upon a variable value .
    For example, If x=1, I want to circle Japan and if x=0, I want to leave it without any change.
    Please help me out. Thanks for your time and help.
    Thanks,
    Vijayvijay77.

    Hi George,
    I am pre-populating a Pdf file based upon the data submitted by the user. And I have to circle options selected in the form.
    I am writing coldfusion code to flatten, populate the form into a PDF form. The end result is the PDF generation with all the data in it.
    The data comes from the database, where I set variable values if any is selected or not.
    Thanks for your reply, I really appreciate your help.
    Vijayvijay77.

Maybe you are looking for

  • How can i make a free account on a iPad

    How can I make a free account on iPad 2

  • Can I install Windows 7 on a Satellite C855-1WR?

    I've made a BIG mistake! After having Satellite's for years, I recently bought a C885-1WR but didn't notice it came with Windows 8.....and I HATE it :( Can I install Windows 7 on this machine? If so, how do I do this, please? I have very little techn

  • Statistical Indicator check in MM pricing.

    I have not put a statistical indicator in MM pricing still.The condition shows as statistical.Can you help me to find how this statistical indicator is autogenerated.

  • Dynamic LOV by count

    I'm drawing a blank on this one, but I'm trying to create a dynamic LOV for a select list where a user can select a number from 1 to the amount of an item. (ie. count(asset_id) where asset_type = :PAGE_ITEM would be the max number in the select list)

  • Tablespace when new users are created

    Hi, In Oracle XE 11GR2 when I create a user like below: create user dummy_user identified by dummy_user; Here I didn't specify a default tablespace and when I look in DBA_USERS, I see that it puts it in SYSTEM tablespace. Now I tried the same CREATE