How to hide this table if my record in display table =null?

i create a list to display record inside the table. If i wanna hide my table in case the list no any record. What statement should i add on? i may using <c:choose> ?
<tr>
<td colspan="3">
<fieldset>
<legend>CSC Listing</legend>
<table>
<tr>
<td colspan="4">
<display:table name="CSC" pagesize="10" id="csc" sort="list" defaultsort="3" requestURI="/csc.do?submit=SEARCH" class="model" >
<display:setProperty name="paging.banner.placement" value="both"/>
<display:setProperty name="paging.banner.some_items_found" value=""/>
<display:setProperty name="paging.banner.one_item_found" value=""/>
<display:setProperty name="paging.banner.all_items_found" value=""/>
<display:setProperty name="paging.banner.no_items_found" value=""/>
<display:setProperty name="paging.banner.onepage" value=""/>
<display:setProperty name="basic.msg.empty_list" ><center>No Record(s) was found.</center></display:setProperty>
<display:column ><html:radio property="cid" value="${csc.id}" /></display:column>
<display:column title="CSC ID" sortable="true"><cut value="${csc.merchantId}"/></display:column>
<display:column title="CSC Number" sortable="true"><cut value="${csc.merchantNo}"/></display:column>
<display:column title="CSC Name" sortable="true"><cut value="${csc.name}"/></display:column>
</display:table>
</td>
</tr>

You need to use an IF statement. I dont use jstl so youll have to find the syntax yourself.

Similar Messages

  • How to make few columns of single record inactive in Table conrol?

    Hi all,
    Scenario is like this : i have one table control , it is displaying 10 records , in that first four columns are editable. Now my requirement is, whenever record having intial values( suppose one record having initial values among ten) except key field , we need to deactive that particular  record , now table control  should contain ten records , but nine records are in editable state and one record in non editable state .
    How to make few columns of single record inactive in Table conrol?
    Thanks in advance.

    hi there...
    select the column that u want to convert to non editable mode in the screen layout. then double click on it. go to the attributes tab and uncheck the input chk box. the check box will become disabled for input. u can do this for any number of columns.
    if u want to do it dyanamically, loop at screen. check for the screen element's name. when itmatches the column u want to disable, simply set the input value as 0.
    dont forget to modify sscreen after setting the attribute values.
    i hope this helps.
    do reward if helpful.

  • I HAVE A SOURCE TABLE WITH 10 RECORDS AND TARGET TABLE 15 RECORDS. MY WUESTION IS USING WITH THE TABLE COMPARISON TRANSFORM I WANT TO DELETE UNMATCHED RECORDS FROM THE TARGET TABLE ??

    I HAVE A SOURCE TABLE WITH 10 RECORDS AND TARGET TABLE 15 RECORDS. MY QUESTION IS USING WITH THE TABLE COMPARISON TRANSFORM .I WANT TO DELETE UNMATCHED RECORDS FROM THE TARGET TABLE ?? HOW IT IS ??

    Hi Kishore,
    First identify deleted records by selecting "Detect deleted rows from comparison table" feature in Table Comparison
    Then Use Map Operation with Input row type as "delete" and output row type as "delete" to delete records from target table.

  • How to insert some records in one table and some records in another table

    Interview question
    how insert records in two tables by using trigger
    CREATE or REPLACE TRIGGER Emp_Ins_Upd_Del_Trig
    BEFORE delete or insert or update on EMP
    FOR EACH ROW
    BEGIN
    if UPDATING then
    UPDATE emp2
    SET
    empno = :new.empno,
    ename = :new.ename
    --, job = :new.job
    --, mgr = :new.mgr
    --, hiredate = :new.hiredate
    , sal = :new.sal
    --, comm = :new.comm
    --, deptno = :new.deptno;
    sdate = :new.sdate,
    edate = :new.edate
    end if;
    if INSERTING then
    INSERT INTO emp2
    VALUES
    ( :new.empno
    , :new.ename
    --, :new.job
    --, :new.mgr
    --, :new.hiredate
    , :new.sal
    --, :new.comm
    --, :new.deptno
    new.sdate,
    new.edate);
    end if;
    if DELETING then
    DELETE FROM emp2
    WHERE empno = emp2.empno;
    end if;
    END;
    it is working fine but he wants to insert some specific litimit on one table and some specified limit of records in one ..
    In this senerio can i insert records by use count of records...
    please help me..

    Can you be more specific on the "Limit"
    Conditional insert can be used in this case.

  • How can I get the last / newest record of a table?

    Hi,
    I am developing an ecard app that has a create greeting page, a preview page with edit and send buttons and an edit page.
    I got he insert working, and on the preview page I created a master record page (displays all records), and delete all unecessary designs. Doing it this way also gives me the 'edit' button, so people are able to edit their page.
    How do I get only the last record displayed though? At the moment it loops through all records and displays them in sets of 10. I found the variable that holds the totla count of records ('$totalRows_rs7417_content1'), but how do I (re-)write the script so it ONLY diplays the last record?
    I need to get the ID of this record as I am writing this into the PARAMs of the object and embed tags of my message .swf (this picks up the ID and based on that sucks the greetings text out of the database via another php script.
    Also, from this page, how can I send an email to the sender (ie creator of the message) as well as the recipient? Both email addresses are in the databse so should be part of the erecord returned.
    Thanks,
    Nik

    -----
    OK, So how do I recreate what I got in a non-ADDT list?
    well, when you´re just about to display one certain record, the term "list" is somewhat inappropriate anyway.
    What you´d simply need to do IMHO, is using DW´s native functions to create the basic "SELECT * FROM table_name ORDEr BY ID DESC" query, add "LIMIT 1" manually, and display the desired "dynamic text" placeholders in 1 table cell -- don´t think there were any need for all the fancy stuff
    (sorting, filtering etc) provided by ADDT´s list, as it´s just 1 record.
    It also occurred to me just now that finding the last record that has been added *may-* notbe enough if the site gets used a lot by our executives (I am thinking of a situation where 2 or three peolpe create greetings at the same time and press submit and then getting each others messges rather than their own).
    in this case you might want to additionally store the respective executive´s "kt_login_id" session variable -- because it´s this unique "identifier" which should be used to show the last inserted record of the person who actually inserted it, means adding a "WHERE submitter_id" equals the session variable kt_login_id - clause to the query.
    When creating a non-ADDT list that´s at some point based on detecting a user session, you´ll BTW need to insert at line 1
    I can't seemt o insert it on the page as it is looking for a insert, update or delete bahaviour on the page which of course I don't have
    please search these forums for several posts I made which explain my "use dummy table" approach that´s made for cases when you actually don´t have anything to insert/update/delete, but need "something" for ADDT´s send email behaviours.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Simple Query Question - How do I return the Last 3 records of a Table?

    Question.
    For example, I have a table that has 50 records.
    How do I, specify in SQL to only return the last 3 records of the table.
    Select a.* from table a where ????

    I was just trying to show an example to a friend on
    how something like this would work and if it was even possible. But it won't work. Here's a simple example:
    SQL> create table emp
      2  (id)
      3  as
      4  select object_id
      5  from   all_objects
      6  order  by object_id;
    Table created.
    SQL> select *
      2  from  (select rownum rn
      3               ,b.*
      4         from   emp b)
      5  where  rn > ( select (max(rownum) - 3)
      6                from    emp)
      7  ;
            RN         ID
         40830      55891
         40831      55892
         40832      55893So far, so good. These are the "last 3" rows inserted. Now delete a bunch of rows and insert 3 new ones:
    SQL> delete emp where id < 40000;
    33423 rows deleted.
    SQL> commit;
    Commit complete.
    SQL> insert into emp values (60000);
    1 row created.
    SQL> insert into emp values (60001);
    1 row created.
    SQL> insert into emp values (60002);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select *
      2  from  (select rownum rn
      3               ,b.*
      4         from   emp b)
      5  where  rn > ( select (max(rownum) - 3)
      6                from    emp)
      7  ;
            RN         ID
          7410      55891
          7411      55892
          7412      55893Here's the problem. Even though the "last 3 rows" are 60000 - 60002, I still get the same ones as the first query.

  • Master - Detail -- How to Hide page if no detail records

    I'm hoping to be able to hide a page if no detail records exist for the master query.
    My master query:
    "Company" and "account" and balances for each account
    (balances carry forward from previous months)
    Detail Query:
    transactions for each account for a month
    -- Linked to the master by "account-id"
    The master query is grouped into 2 parts:
    a) Company
    b) account and balance
    Sometimes an account won't have any transactions during the month (especially if the report is run at the beginning of the month)
    If I create a "summary" count field in the "account" group based on the transactions, then I can hide (not print) the "account" frame.
    But I can't figure out how to do this for the "company" frame.
    I'm probably missing something simple (or maybe not)
    Any suggestions?
    Thanks,
    Eric

    So basically you are showing each account on a separate page?
    Move the objects shown in Company repeating frame to the account repeating frame. In this case company repeating frame will be blank. And your already created format trigger to hide account frame will work for both (company+account). So whenever any account is zero, it will hide all objects within the frame. Parent frame doesn’t contain any objects, it would not show the parent frame for that account. Make sure vertically elasticity of the frame is variable.
    Hope this helps.

  • How  to fire a query for every record in a table, pass values in a loop

    Hi,
    For each record in a table, I want to loop through each record and then fire a query by passing acct, product and date from this table to the where clause of the query. I would have to create a pl/sql block..The output of the query I want to spool from sql developer.
    I need the exact syntax please for doing this.. since i am new to Oracle. Just the template will be enough. I will fill in the query.
    Any help is appreciated as always..
    Regards,
    hena

    904385 wrote:
    Hi,
    For each record in a table, I want to loop through each record and then fire a query by passing acct, product and date from this table to the where clause of the query. I would have to create a pl/sql block..The output of the query I want to spool from sql developer.
    I need the exact syntax please for doing this.. since i am new to Oracle. Just the template will be enough. I will fill in the query.
    Any help is appreciated as always..
    Regards,
    henaHave you ever considered using a JOIN ? It does the same thing as looping through a table and applying that to the where clause of a select on a query, only much, much, much faster and without the need to write any code. SQL is a declarative language, so you specify what you want and not how to do it. It can be bit of a journey to change your thought process if you come from a procedural or object world, but once you get there it's a beautiful view.

  • How to hide this method?

    I want to use Protection Proxy Pattern,but I feel nervous about my
    real method,how can i hide it(such as set it friendly or protected)?
    you can see this code:
    interface Safe{
         public String getSecret();
    class RealSafe implements Safe{
         public String getSecret(){
              return new String("You can get the secret");
    class ProtectionProxy implements Safe{
         private String password=null;
         public ProtectionProxy(String temp){
              password=temp;
         public String getSecret(){
              if(password.equals("I have the rights")){
                   RealSafe realobj=new RealSafe();
                   return realobj.getSecret();
              else{
                   return new String("Illegal password,You can't get the secret");
    How to hide the getSecret() in class RealSafe with the precondition of using Protection Proxy Pattern???????
    How can i do? i need your help,please!

    You can't prevent a malicious developer constructing an instance of RealSafe. They could always decompile your application and make changes to it if they wanted anyway!
    The ProtectionProxy is really just a convenience for users of your API. It provides "reasonable" security through a means of determining whether the current user has access to the data. It does not provide a means of determining whether the current developer has access to it!
    Your proxy lays down the rules for accessing the class being proxied. This works when the client application plays by the rules (as most applications do).
    So all you need to do is make sure that developers who play by the rules can't construct an instance of RealSafe:
    public class SafeFactory
      public static Safe getSafe(...)
        Safe safe = new RealSafe(...);
        return new ProtectionProxy(safe);
    class RealSafe implements Safe
      RealSafe(...)
    class ProtectedSafe implements Safe
      private Safe safe;
      ProtectedSafe(Safe safe)
        this.safe = safe;
    }Thus the only way for a developer to get hold of an instance of Safe is to use SafeFactory.getSafe which always returns a ProtectedSafe.
    Make sure you don't mistake this sort of pattern for robust security, though. It simply allows your client application to catch "UnauthorizedExceptions" and react accordingly. As pointed out in this thread there're various ways of getting at the data that's hiding inside a Proxy. If you're really concerned about preventing someone viewing your data unless they are authorised you need to either encrypt it or only load it (and not cache it) when their credentials have been provided.
    Hope this helps.

  • How to get count as 0 for records not in table

    Hi All,
    I have requirement where I need count of records in the table based on ids. Example query below
    SELECT empid ,
    nvl(COUNT(id), 0) empcount
    FROM employee
    WHERE empid IN(1, 2, 4, 5)
    GROUP BY empid
    In the table only record for "empid=2" is present so I get count 1 for it. But with it I should get count as 0 for non existing records. Expecting below output
    empid | empcount
    1 | 0
    2 | 1
    4 | 0
    5 | 0
    Appreciate your help and Thanks in advance.
    Regards.
    Ashish

    e.g.
    SQL> select column_value deptno, count (deptno)
    from emp, table (sys.odcinumberlist (10, 20, 100))
    where deptno(+) = column_value
    group by column_value
        DEPTNO COUNT(DEPTNO)
            10             3
            20             5
           100             0
    3 rows selected.

  • How to combine this query so that i can display the ouput together

    I have no idea how to combine this query together.Someone please help.I want the ouput to display oni 1 result combining all together.
    select facility, route, operation, script_id
    from F_ROUTEOPER
    where facility = 'A01' and operation in ('6910','7976') AND src_erase_date is null
    and (script_id not in ('PHQ-LOTCHKRV','PHQ-LOTCHK') or script_id is null)
    AND (route NOT LIKE '9EL%' AND route NOT LIKE '9TB%'AND route NOT LIKE 'BLB%' AND route NOT LIKE 'BWR%' AND route NOT LIKE 'CRL%')
    select facility, route, operation, script_id
    from F_ROUTEOPER
    where facility = 'A01' and operation in ('6912','7976') AND src_erase_date is null
    and (script_id not in ('PHQ-LOTCHKRV','PHQ-LOTCHK') or script_id is null)
    AND (route NOT LIKE '9EL%' AND route NOT LIKE '9TB%'AND route NOT LIKE 'BLB%' AND route NOT LIKE 'BWR%' AND route NOT LIKE 'CRL%')
    select facility, route, operation, script_id
    from F_ROUTEOPER
    where facility = 'A01' and operation in ('7344','7976') AND src_erase_date is null
    and (script_id not in ('PHQ-LOTCHKRV','PHQ-LOTCHK') or script_id is null)
    AND (route NOT LIKE '9EL%' AND route NOT LIKE '9TB%'AND route NOT LIKE 'BLB%' AND route NOT LIKE 'BWR%' AND route NOT LIKE 'CRL%')
    select facility, route, operation, script_id
    from F_ROUTEOPER
    where facility = 'A01' and operation in ('8344','7976') AND src_erase_date is null
    and (script_id not in ('PHQ-LOTCHKRV','PHQ-LOTCHK') or script_id is null)
    AND (route NOT LIKE '9EL%' AND route NOT LIKE '9TB%'AND route NOT LIKE 'BLB%' AND route NOT LIKE 'BWR%' AND route NOT LIKE 'CRL%')
    Edited by: 965547 on Nov 5, 2012 12:55 AM

    The only difference which i am seeing in your queries is the Operation ('6910', '6912','7344','8344')
    Then why don't you put all values in One like this
    Select facility, route, operation, script_id
    from F_ROUTEOPER
    where facility = 'A01' and operation in *('6910', '6912','7344','8344','7976')* AND src_erase_date is null
    and (script_id not in ('PHQ-LOTCHKRV','PHQ-LOTCHK') or script_id is null)
    AND (route NOT LIKE '9EL%' AND route NOT LIKE '9TB%'AND route NOT LIKE 'BLB%' AND route NOT LIKE 'BWR%' AND route NOT LIKE 'CRL%')
    Hope this will resolve your problem.
    Oracle-911

  • How to load this value into the master data display attribute

    Hi ,
    Please share me the knowldege how to load this kind of data into master data display attribtes ..
    Raj + Ravi Ltd (PCG: 13592)
    While loading this data ,i got the error message stating that '+' should not be part of the attributes and () should not be part of the attribute ..but i need all the information as it is available in the example data .
    Do i need to maintain RSKC Settings else some other things required ..
    Please guide me ..
    Regards,
    Raj

    HI,
    Maintain these symbols in RSKC and try to reload the data....

  • display:table.... /display:table   export problem

    HI,
    when I wrote in the jsp:
    <display:table pagesize="30" class="isis" name="contacts" export="true">
    <display:column property="firstName"/>
    <display:column property="lastName"/>
    <display:column property="title"/>
    <display:column property="gender"/>
    <display:column property="phoneNumber"/>
    <display:column property="email"/>
    <display:column property="country.phonePrefix" title="Country"/>
    <display:column property="birthdate"/>
    </display:table>
    There are Export | CSV | EXCL |xmL for users to export the table.
    But when I click the CSV, there are nothing to do,
    How can I do that?
    thanks,

    Hi jcatino ,
    Thank you very much.
    But I also have another problem:
    <display:table pagesize="20" class="isis" name="subscribers" id="subscriber" export="true" requestURI="manageContact.do">
    <display:column sortable="true" >
    <c:out value="${subscriber.UID}"/>
    </display:column>
              <logic:iterate id="group" name="groups" indexId="index2">
                   <logic:iterate id="extendedProfile" name="subscriber" property="extendedProfiles">
                   <logic:equal name="extendedProfile" property="source.id" value="${group.id}">
                        <display:column title="${group.name}">${extendedProfile.actualValue}</display:column>
                   </logic:equal>
              </logic:iterate>
              </logic:iterate>
         </display:table>
    The result that I got from clicking the "CSV" is that:
    "<a href=\"manageContact.do?contactId=10&task=do_edit\">
    10
    </a>",VW Jetta owners,2005-3-2 00:00:00.000000000,aa,2233,2006-10-30 00:00:00.000000000,[email protected],12345
    "<a href=\"manageContact.do?contactId=11&task=do_edit\">
    11
    </a>",VW Jetta owners,2004-2-28 00:00:00.000000000,aa,aacc,2006-11-30 00:00:00.000000000,[email protected],12345
    How can I delete the <a..............> </a> ?
    I have read information from the website : http://displaytag.sourceforge.net/configuration.html
    However, I have no idea to solve it?
    thanks you
    happybaobao

  • About the   display:table.... /display:table      problem

    Hi,
    <display:table name="contacts" export="true" >
    <display:column property="firstName" />
    <display:column property="lastName" />
    <display:column property="title" />
    <display:column property="gender" />
    <display:column property="phoneNumber" />
    <display:column property="email" />
    <display:column property="country.phonePrefix" title="Country" />
    <display:column property="birthdate" />
    </display:table>
    I wrote those codes,
    But why the color is only gray? How can I get the color yellow?
    Is it the reason I missed something?
    thanks you very much,

    Hi,
    I define a css file (bizCasterD.css) like that:
    th { font-family: Verdana, Geneva, sans-serif; font-size: 12px; vertical-align: top; text-align: left; }
    th.headerdisplay { color: #FFFFFF; background: #172972; font-family: Verdana, Geneva, sans-serif; font-size: 12px; border: 1px #FFFFFF solid; cell-padding : 0px; cell-spacing: 0px; display: table-header-group;}
    td { color: #FFFFFF; font-color: #FFFFFF; font-family: Verdana, Geneva, sans-serif; font-size: 12px; vertical-align: top; }
    td.itemlist { color: #3A6EA5; background-color: #FFFFFF; font-family: Verdana, Geneva, sans-serif; font-size: 12px; vertical-align: top; border: 1px #3A6EA5 solid; cell-padding : 0px; cell-spacing: 0px;}
    then in the jsp:
    <display:table name="contacts" export="true" >
    <display:column headerClass="headerdisplay" property="firstName" />
    <display:column headerClass="headerdisplay" property="lastName" />
    <display:column headerClass="headerdisplay" property="title" />
    <display:column headerClass="headerdisplay" property="gender" />
    <display:column headerClass="headerdisplay" property="phoneNumber" />
    <display:column headerClass="headerdisplay" property="email" />
    <display:column headerClass="headerdisplay" property="country.phonePrefix" title="Country" />
    <display:column headerClass="headerdisplay" property="birthdate" />
    </display:table>
    Unfortunately, the color is always grays, How can I do?
    thank you very much,

  • How to resolve this error while doing changes in a table

    Hi,
    For a table, we are accessing the column values in the table through controller with the help of view object. We are also using the function 'setAttribute()' to assign back the formatted value for each and every row.
    But once the page is loaded and if the code gets executed from the method 'processRequest()', I am able to see an error message in the top of the page as "The search cannot be executed because the table has pending changes that would be lost."
    How to get rid of this error ? Please help me in this regard. Its urgent .
    Thank You,
    Thiyagarajan

    Hi,
    The VO associated to the Table Region on you page is dirty (means that there are some changes done in the VO which has not been commited to the database).
    Pending Changes
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for