Show or Hide empty table based on If condition

I want to show or hide empty table based on condition. The table will be empty with 5 rows,2 cols and should display if <?Rout_Information1_id1?> is blank or null or when XML field is not present. Actually the JDEdwards report will generate XML file. In the XML file if <?Rout_Information1_id1?> is present it will have definitely value like 'PULL' or 'Cut' otherwise sometimes XML field itself will not be present. Need to display the empty table when the <?Rout_Information1_id1?> is not present. I am trying to do as below but the table is not displayed. Can someone tell me how to resolve this.
<?if:Rout_Information1_id1=' '?>
5 rows,2 cols table
<?end if?>
Thanks,
Vijay Vattiprolu

Ok. I used the below syntax from other post and it resolved displaying empty table issue.
<?if:not(XML_TAG_NAME)?>
<?end if?>
Thanks,
Vijay

Similar Messages

  • Adobe Form - Hide a table row if a condition met

    Hi Helper
    I am learning how to use Adobe Form - and I am trying to hide a table row if a condition is met by using Formcalc/Jave script - but I donot know how - I was told that I can use "....presence = 'hide'  " property in on of the event(?) but donot know how to write the qualified name for the varable row and what event to use. Could someone please show me how
    Points will be rewarded.
    Thanks

    Hi Liem,
    Here is some more information:
    1)
    Accessing data in Table Cell
    xfa.resolveNode("xfa.data.my_data.tableData[" + this.parent.index  + "].column1").value
    2)  Accessing data nodes in Context
    xfa.datasets.data.my_data.second_node.an_attribute.value == "3"
    I think you will find the WebLog below very useful for your requirements.
    /people/juergen.hauser2/blog/2007/09/03/accessing-data-nodes-in-sap-interactive-forms
    -regards,
    harman

  • In A3, How Do I Show or Hide Empty Metadata Tags?

    When creating metadata views for various workflows, I would decide whether or not to include a particular tag based upon that tag either being empty or having a value.
    As some photos in that workflow did not always have a value in said tag, I would click several photos in succession to look for tags that had values, and would then check or uncheck that tag. This was especially useful when cameras added new info.
    In A3, it seems that I have to go through many steps to turn a tag on, go to a photo to see if it has a value; if it doesn't, then go back through the same steps to turn it off, etc. ... In other words, a one-click toggle in the A2 Metadata interface now requires many, many steps in A3 to accomplish the same thing ...
    ... unless they put the Show/Hide Empty Tags somewhere else ...
    Does anyone know where?

    Anyone Please look into this!!!!!!!!!!
    Thanks in advance,
    Dhana

  • Dropdown editable in a table based on a condition

    Hi,
    I would like to know how to solve these problems.
    1. I have a cell (of the type dropdown by key) in a table, which is editable or not, depending on a condition ? Is this is possible? Please let me know if there is a sample code
    2. So basically I have a  table that has 2 entries in it, user details and one of the fields in FLAG showing the values Yand N for the user. I want the table in the webdynpro application to show the 2 user entries and then in the Flag column have a DROPDOWNBYKEY that DEFAULTS to showing what flag the user has, but also allows the user to CHANGE the entry.
    Thanks in advance
    I appreciate for the help.

    is possible
    In your Context node which is binded to the table as DataSource, add an attribute WDY_BOOLEAN type
    In layout bind the newly created attribute to the dropdown UI element Enable property
    while filling your context node, fill the attribute with abap_true and abap_false based on your condition
    Abhi

  • How do i hide a tablix based on 3 conditions

    I have a tablix that I need to set the visibility to hide if  the following any of the following conditions are true
    1 Field accountName = TESTAccount
    2 Field InvoiceType = 1
    3 Field TFiles = 0
    Dont ask me .. i dont know

    Hi Pete,
    Per my understanding that you want to hide an tablix based on three different values from three different columns, right?
    Could you please help to provide more details information to help us more effective to provide an solution:
    If the three values of the three columns are in the same number of rows of in different row or the tablix just have one row?
    Did the three fields in the tablix you want to conditional hide or in a different Tablix
    It is better you give us some snapshot of the report in both design and preview mode and some sample data.
    Please find the details information below about some possible situation i assumed:
    You can modify the query to get the rownumber to add in the report, then use expression as below:
    =IIF(
    MAX(IIF(Fields!ROWNUMBER.Value =1,Fields!AccountName.Value,Nothing))="TESTAccount"
    or MAX(IIF(Fields!ROWNUMBER.Value =2,Fields!InvoiceType.Value,Nothing))=1
    or  MAX(IIF(Fields!ROWNUMBER.Value =3,Fields!TFiles.Value,Nothing))=0 ,true,false)
    If the three values in different columns and different rows, you can create three hide parameters (AccountName,InvoiceType,TFiles)for each fields and find the correct index (begin with 0)to put in the parameter to get the correct value(TESTAccount,1,0):
    for example:
    Parameters!AccountName.Value(0)="TESTAccount"
    Parameters!InvoiceType.Value(1)=1
    Parameters!TFiles.Value(2)=0
    Using below expression to hide the tablix:
    =IIF(Parameters!AccountName.Value(0)="TESTAccount" or Parameters!InvoiceType.Value(1)=1 or Parameters!TFiles.Value(2)=0, true, false)
    Note: make sure the order of the value in the parameter dropdown list is the same as that in the report.
    If the three values are in the same row of different column, you can reference to similar thread below:
    Change Column Header / Column Background
    color based on a value in a specific row in the same column
    You can use the expression:
    =IIF(First(Fields!AccountName.Value, "DataSet2")="TESTAccount" or First(Fields!InvoiceType.Value, "DataSet2")=1 or First(Fields!TFiles.Value, "DataSet2")=0, true, false)
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • SSRS Matrix report to show or hide year column based on parameter value "Date" selected.

    Hey experts!
    I have a requirement an ssrs matrix report should display columns (year/s) based on parameter value (date/s). 
    My Dataset fileds are: Product, Year_name, Month_name, Date
    Currently my report output looks like this-
    Param Date: 2013-08-01 00:00:0.000
    Product +Calender2011      +Calender2012     -Calender 2013........                        +Calender2014
                             Total
                      Total Jan13  Feb 13  Mar13..  Dec13   Total           Total
    Abc                      100
                        220
    10      20         30.......  20       250              400
    Xyz 110
    200 50      80         40.......  30       450              600
    My requirement:  if I'm selecting Date parameter value as '2013-xx-xx' I should only able to see Year column 'Calender2013' and rest of the years should hide. Similarly If I'm selecting Date parameter value as '2014-xx-xx' I should only able to
    see Year column 'Calender2014' .
    Appreciate your kindly help. 
    Afan

    Hi Afan,
    According to your description, you want to only show the selected year on your report, right?
    In this case, you need to get the year from the date parameter using the expression below
    =Year(Parameters!Date.Value)
    And then use the expression below to get the year from Year_Name field.
    =Right(Fields!Year_Name.Value,4)
    Then add a filter to the dataset to filter the data like below
    Expression:=Year(Parameters!Date.Value)
    Operator:=
    Value:=Right(Fields!Year_Name.Value,4)
    Reference
    http://msdn.microsoft.com/en-IN/library/dd255287.aspx
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How can I show or hide an image based on screen size in CS6?

    I have a web site built using Dreamweaver CS6. I used the fluid grid layout to have different views for each of the 3 types - phone, tablet, desktop. It works well, resizes as it should. I would like to be able to show an image in the desktop version but not the mobile version. How could I do that? I can see in the .css file that different size screens can have their own different settings. Is there code I could add that would hide/show and image based on the users viewport on the same page? Let's say I have a div tag named picture. How could I add a parameter to the picture div tag in the style sheet that would hide the image if it was mobile?
    thanks,
    Marilyn

    Insert image into a container div.
    Desktop CSS:
    #divName {
    height: xxxpx
    width: xxxpx
    Tablet & Mobile CSS:
    #divName {display:none}
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • Show or hide form fields based on cfselect selection

    Hi,
    I'm using ColdFusion 9 and
    I want to show/hide a form field type=checkbox if an assigned value is selected in a dropdown list, but it doesn't work.
    I use a javascript function.
    My question is: Are there better possibilities with ColdFusion to do this or is Javascript the best solution???
    Here is my code:
    <script type="text/javascript">
        function show(){
            var select = document.getElementById('dropdownlist').selectedIndex;      
            if(select == 1) document.getElementById('area').style.display = "block";
            else document.getElementById('area').style.display = "none";       
    </script>
    <cfquery name="select_list">
    select * from table
    </cfquery>
    <cfform name ="form">
    <cfselect name="dropdownlist" onChange="show();">
        <option value="0">please select</option>
        <cfloop query="select_select_list">
         <option value="#select_select_list.id#">#select_list.name#</option>
        </cfloop>       
        </cfselect>
    <div id="area" style="display:none">
             <cfloop query="select_list" > 
             <tr style="display:none">
          <td>    
               <cfinput name="gsu"  type="checkbox"  value="#select_list.id#"> #select_list.name#
              </td>
         </tr>
             </cfloop> 
         </div>
    </cfform>
    Thank you and best regards!
    Claudia

    Okay, thank you for your answer.
    I changed the javascript function and replaced the <div> with the <table> tag. Then it works.
    Here is an extract of my code:
    <script type="text/javascript">
        function show(){
            var select = document.getElementById('dropdownlist'); 
            var strUser = select.options[select.selectedIndex].value;    
            if(strUser== 1) document.getElementById('area').style.display = "block";
            else document.getElementById('area').style.display = "none";       
    </script>
    <cfquery name="select_list">
    select * from table
    </cfquery>
    <cfform name ="form">
    <table id="area" style="display:none">
             <cfloop query="select_list" > 
             <tr">
          <td>    
               <cfinput name="gsu"  type="checkbox"  value="#select_list.id#"> #select_list.name#
              </td>
         </tr>
             </cfloop> 
         </table>
    </cfform>

  • How to hide the buttons based on some conditions

    Dear all
    Good morning
    i have three pages
    when ever user directly go to third page i want to hide the button "backtofirstpage"//button name
    when user go to third page via first page i mean first page i want to visible the button "backtofirstpage"/button name
    what is the procedure
    at least hiding is not posible at least disable/enable
    Regards
    Sreekanth

    Hi,
    In the if condtion read the value of parameter [[You need to send it from first page]] and get it in process Request Method of controller of third Page and based upon it set the render property of that button & in the else condition set the render property to false.
    You need to create a PVO & also create a Boolean attribute.
    Set the render property in Property window like ${oa.xxPVO1.setRender} -- ${oa.viewInstanceName.viewAttributeName}.
    Read more in dev guide & search through the forums.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Insert into a final table based on a condition

    Hi,
    create table table1(invoice_number varchar2(4), covg_date date, employee_number varchar2(5),
    service_option varchar2(2), FEES VARCHAR2(5), AMOUNT NUMBER(9,2));
    insert into table1 values('1','01-JUL-2011','11','8','F1,F2',100);
    insert into table1 values('2','01-JUL-2011','12','2','F1,F2',110);
    insert into table1 values('3','01-JUL-2011','13','9','F1,F2',120);
    insert into table1 values('4','01-JUL-2011','14','3','F1,F2',130);
    commit;
    create table table2(invoice_number varchar2(4), covg_date date, employee_number varchar2(5),
    service_option varchar2(2),FEES VARCHAR2(5), AMOUNT NUMBER(9,2));
    insert into table2 values('1','01-JUL-2011','11','88','F1,F2',100);
    insert into table2 values('2','01-JUL-2011','12','2','F1,F2',110);
    insert into table2 values('3','01-JUL-2011','13','9','F1,F2',122);
    insert into table2 values('4','01-JUL-2011','14','3','F1',130);
    insert into table2 values('4','01-JUL-2011','15','3','F1',130);
    commit;
    create table final_table(insert_type varchar2(1),invoice_number varchar2(4), covg_date date, employee_number varchar2(5),
    service_option varchar2(2),FEES VARCHAR2(5), AMOUNT NUMBER(9,2));we need to insert into final_table based on the differences between table1 and table2. The condition for that is:
    Eg: For a given employee number(11) for a given covg_date(July-2011), if there is at least one difference in any column value which in this case is the service_option (8,88)..
    i need to insert table1 record into final_table with insert_type as 'OLD'
    and insert table2 record into final_table with insert_type as 'NEW'
    Similarly employee number 14, there is a difference between fees column and i should insert them like the above example
    Similarly employee number 13, there is a difference between AMOUNT column and i should insert them like the above example.
    For example employee number 15, there is no record in table1 but exists in table2 and that will be inserted as it is..
    What my idea was to loop through distinct employee_number, covg_date in table1 and check each value in table2 for the same condition and insert into final_table..
    But if there is a better option like inserting directly using select clause or some sort of direct insert without loop...
    Thanks for the help in advance

    Possibly a modified version of something like this:
    INSERT INTO final_table
    ( insert_type
    , invoice_number
    , covg_date
    , employee_number
    , service_option
    , fees
    , amount
    SELECT insert_type
         , invoice_number
         , covg_date
         , employee_number
         , service_option
         , fees
         , amount
    FROM   (
         SELECT invoice_number
              , covg_date
              , employee_number
              , service_option
              , fees
              , amount
              , 'OLD' AS insert_type
         FROM   table1
         MINUS
         SELECT invoice_number
              , covg_date
              , employee_number
              , service_option
              , fees
              , amount
              , 'OLD' AS insert_type
         FROM   table2
         UNION ALL
         SELECT invoice_number
              , covg_date
              , employee_number
              , service_option
              , fees
              , amount
              , 'NEW' AS insert_type
         FROM   table2
         MINUS
         SELECT invoice_number
              , covg_date
              , employee_number
              , service_option
              , fees
              , amount
              , 'NEW' AS insert_type
         FROM   table1
    WHERE  employee_number = :emp_number
    AND    covg_date       = TO_DATE(:date_string,'MM/DD/YYYY')
    ;

  • Showing contents of a column based on a condition for another column.

    Hello,
    I am trying to create a report that lists all of the Opportunities within our database. I need a few details about this opportunity to appear. I need the account name that this opportunity belongs to, amongst other things- which I can do, however I also need to show the number of UNITS for this opportunity BUT I have a condition that needs to be met before I show the number of units.
    I only want to show the UNITS IF the PRODUCTTYPE that this opportunity belongs to is "GA". Then I also need another column with UNITS in it, but again I only want the UNITS to appear if the PRODUCTTYPE IS DA.
    Essentially I am trying to find out the number of units per product type and I need these to appear in separate columns. If the PRODUCTTYPE doesn't meet the condition, i.e. the PRODUCTTYPE is not GA then I would like the field to be blank.
    I know that I should write this formula in the "Edit Formula" of the UNITS field, but I do not know how to write this condition.
    I would very much appreciate some help as soon as possible.
    Kind Regards,

    Hi,
    You need to use a case statement, it looks like this:
    CASE
    WHEN opportunity.producttype = 'GA'
    THEN opportunity.units
    ELSE NULL
    END
    Ofcourse you need to use the correct column names.
    Regards, Tim

  • Insert data in same table based on some condition

    Hi. I am new to this forum.
    I have to write a stored procedure to Insert Data into a table say MYTABLE ,having structure as:
    Col1 Col2 Col3 ................ TotalInstallments CurrentInstallment PaidAmount MonthYear
    I have to insert all the data as it is in the same table(MYTABLE) except changing some fields on basis of some conditions:
    1. if PaidAmount>0 && CurrentInstallment<TotalInstallment then
    CurrentInstallment=CurrentInstallment+1
    2. In the MonthYear field I am having data in formate(month/year)ex. 01/2012, 11/2012 ....
    So I have to insert data by incrementing month and year. for example:
    if currentdata is 11/2012 then next data will be 12/2012
    But next will be 01/2013
    I have to select all the records which belongs to previous month(through MonthYear field ) and put checking & changes on each record of the selected data and then insert them into same table(MYTABLE).
    How to achive that?
    Thanks.

    978184 wrote:
    Every thing is working fine but some strange result as:
    when i run my Procedure TRANSFERDATATONEXTMONTH
    1. by Passing Value as : CUSTOMERID_var ='ABX101' and MONTHYEAR_var='12/2012' it insurts 5 rows
    which is correct , since I have 5 records where CUSTOMERID='ABX101' and MONTHYEAR='12/2012' and
    new 5 rows has CUSTOMERID='ABX101' and MONTHYEAR='01/2013' (all other values are as expected)
    2. now when i again run by passing values: CUSTOMERID='ABX101' and MONTHYEAR='01/2013' it inserts 10 records(just double )
    and new records has value CUSTOMERID='ABX101' and MONTHYEAR='02/2013' (while on the basis of condition CUSTOMERID='ABX101' and MONTHYEAR='01/2013' i have in my table only 5 records)
    and all records are duplicate. Some times it inserts three times , while on condition basis it should no. What is happening?Probably, meanwhile you were trying to Insert the First time and the second time, someone did run the procedure that Inserted 5 More records for 01/2013. And, hence your Second run inserted 10 records instead of 5.
    >
    Why it is inserting double of records while i have only 5 records on given condition? Am I missing some thing?Yes, you are. You are missing your Tables, Your Dummy/Sample Data, Working Procedure/Function that can be replicated.
    Without this, we cannot simply believe on assertions that Oracle is behaving incorrectly.
    In addition to this, the GetMonthYear function, should be scrapped. It is un-necessary, when the same logic can be achieved using Oracle ADD_MONTHS function (See my previous post). And you are storing the MonthYear in a Varchar field, which ideally should be a Date field. This eradicates the un-wanted need to cast from VARCHAR - DATE - VARCHAR.
    Please do make some time to read {message:id=9360002} and mentioned relevant details.
    And notice, the code difference in my previous post and in your code.
    Please use
    {noformat}
    (exactly as shown) above and below your code, that indents the code properly for better readability.
    {noformat}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Selecting a value to a column from a different table based on a condition

    I apologize for the confusing title.
    I have to select values from Table_1. 2 of those columns needs to be checked for values in Table_2 based on the ID and if values are present, then those values should be taken, if not the values from Table_1 should be taken. How can I achieve this?
    e.g.
    table_1
    date
    id
    fact1
    fact2
    type
    table_2
    id
    fact1
    fact2
    select date,id,type, (Need to check the condition for fact1 and fact 2, if present in table_2, then that value should be used, if not table_1 values should be used) from table_1 and table_2.
    I need to use this condition in another big query. Any help/suggestions appreciated.
    Thanks.

    Thanks Tubby,
    It worked and I incorporated with the master query too.
    Thanks a lot.
    EDIT
    Thanks for all the replies> I just saw your answers after I finished and posted the reply.
    hoek, I am not a DB person, I used to write some SQLs, but not in the last 3 years or so. I am trying to work on some reports, hence some trivial questions.
    Edited by: vj on Aug 7, 2010 5:48 PM

  • Moving records to a table based on a condition...

    Hello experts,
    Here is the problem.
    1. select all records from table ztm0019 and put it in internal table t_ztm0019_tmp.
    2. sort t_ztm_acc_variance by sernr(serial no), datum in descending order and uzeit also in descending order.
    3. now loop t_ztm_acc_variance and at every new sernr, check whether its bwart is either 702, 708, 712, 718. Now if it is, move all of it(of the same serial no) into another table named t_ztm0019_tmp but if its bwart is not equal to the bwarts above then leave the first record and move all the remaining(with same serial no) in t_ztm0019. And then all the records that satisfied the condition must be deleted from the source table which is ztm0019.
    4. all the records of t_ztm0019_tmp would now be inserted to table ztm_acc_variance.
    example:
         SERNR        BWART
       123456         702
       123456         701
       123456         708
       123456         707
       222222         702
       222222         701
    So at every new sernr in the loop it must check whether the bwart is either 702, 708, 712, 718. If it is, then move all of the records with same sernr(123456) and so on. but if it is like this:
        SERNR        BWART
       123456         701
       123456         702
       123456         701
       123456         718
    the first record should be retained and the 2nd to last record(of the same sernr) must be moved.
    Help would really be appreciated. Thank you very much guys!

    1.
    DATA  t_ztm0019_tmp LIKE TABLE OF ztm0019 WITH HEADER LINE.
    SELECT *
    FROM ztm0019
    INTO TABLE t_ztm0019_tmp.
    2.
    SORT t_ztm_acc_variance BY <b>sernr ascending datum uzeit descending.</b>
    3.
    <b>DATA is_new TYPE i.</b>LOOP AT t_ztm_acc_variance.
    AT NEW sernr.
    IF bwart EQ '702' OR
       bwart EQ '708' OR
       bwart EQ '712' OR
       bwart EQ '718'.
    is_new = 1.
    LOOP AT t_ztm_acc_variance WHERE sernr = t_ztm_acc_variance-sernr.
    IF sy-subrc EQ 0.
    APPEND t_ztm_acc_variance TO t_ztm0019_tmp.
    DELETE t_ztm_acc_variance.
    ENDIF.
    ENDLOOP.
    ENDAT.
    IF is_new EQ 1.
    APPEND t_ztm_acc_variance TO t_ztm0019_tmp.
    DELETE t_ztm_acc_variance.
    ENDIF.
    AT END OF sernr.
    is_new = 0.
    ENDAT.
    ENDLOOP.
    4.
    CLEAR ztm_acc_variance[].
    APPEND LINES OF t_ztm0019_tmp TO ztm_acc_variance.

  • ADF -- Dynamic InlineStyle on cells of table based on specified conditions.

    Hi there!!
    I am trying to figure out Dynamic Inline Style on cells in ADF:
    Need to color a few columns for a particular row (don't wanna color the entire column--just want to color those cells in columns that matches the specified condition for that particular row, in MY CASE:- row: having Col-A ="BBB" column: having value>250 ).
    Col-A Col-B Col-C Col-D
    AAA 100 255 300
    BBB *255* *300* 100
    I want to color the cells in BOLD....
    My basic condition:- Col-A = 'BBB' and other col values >250
    Can anyone help me out with this???

    Hi,
    try as following
    <af:inputText contentStyle=#{row.bindings.Col-A.inputValue eq 'BBB' and (row.bindings.Col-B.inputValue gt 250 or row.bindings.Col-C.inputValue gt 250 or row.bindings.Col-D.inputValue gt 250) ? 'font-weight:bold;':''}"/>
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for