ADF Table - Command buttons disappear when no rows returned for table

We have a command button that navigates to a create screen, when the table returns no rows the button disappears. We need to have this displayed always and within the ADF table. The code looks like:
<f:facet name="selection">
<af:tableSelectOne text=""
binding="#{Search.tableSelectOne1}"
id="tableSelectOne1">
<af:commandButton actionListener="#
bindings.ExecuteWithParams1.execute}"
text="Edit n"
action="edit"
binding="#{SearchCtgry.commandButton3}"
id="commandButton3">
<af:setActionListener from="#{row.Code}"
to="#{processScope.toCode}"/>
</af:commandButton>
</af:tableSelectOne>
</f:facet>

try placing the command button within the "actions" facet of the table. It will place it above the actual rows of the table. You could also use the "header" facet.
<af:tableSelectOne text=""
binding="#{Search.tableSelectOne1}"
id="tableSelectOne1">
<f:facet name="actions">
<af:commandButton actionListener="#
bindings.ExecuteWithParams1.execute}"
text="Edit n"
action="edit"
binding="#{SearchCtgry.commandButton3}"
id="commandButton3">
<af:setActionListener from="#{row.Code}"
to="#{processScope.toCode}"/>
</af:commandButton>
</f:facet>
</af:tableSelectOne>

Similar Messages

  • Table number xrefs disappear when roundtripping the XML doc back to FM

    I'm using FM 7.2p158 running on Windows XP on a Dell Optiplex GX520 with 1GB RAM. I've converted my legacy FM docs to structured FM, but my (CALS-formatted) table number xrefs disappear when I roundtrip the XML docs back to FM. How can I remedy this?
    Initially, I used my own conventions to name the table part elements as I have about 10-15 specific table types and I used those Table Tag names as table elements names (Invisible2, Invisible4, StepTable, ...), so I had 10-15 elements that were true "is fm table element" types in the EDD, DTD, and R/W rules. The table number xrefs worked as they should after roundtripping FM-XML-FM and the tables' shading, ruling, and Table Tags were correct.
    I consulted our XSLT developer for proper browser display of the XML files, and he suggested that I should use the CALS table model. I studied the Struct Dev Gd, then I searched this forum for postings on CALS tables and related topics and used suggestions offered by many of you good folks to create an EDD, DTD, and R/W rules to that end.
    I've run some tests using many iterations of my files (both CALS and non-CALS types) to roundtrip the FM files, but I cannot get the xrefs of the table number from the CALS-version table title element to display when I roundtrip the XML doc and open it in FM. I get this:
    -- In the XML doc text opened in FM, instead of "Table 1-1" for the xref, it leaves a blank space (although the source numbered table title is there).
    -- In the Structure View of the same XML doc, I see the following:
    - The CROSSREF element text says WHITESPACE.
    - Both the CROSSREF element and its source element continue to have the (matching) "Idref" and "Id" number displayed in this view.
    - The Idref attribute is disconnected from the CROSSREF element.
    - The "table" element is disconnected from its container element (TableAnchor).
    Once I apply the File/Import/Element Definitions command in the XML doc in FM, the XML becomes valid and both the CROSSREF Idref attribute and the table element are reconnected, but my xref of the table number is still WHITESPACE.
    The XML-converted doc source text reads:
    If you're using WebDrive, you will want to use the options shown
    in [CROSSREF Idref = "BEHJCAJB" format = "Table Number"/] on the [IndexEntry
    type = "Index" text = "WebDrive options"/]WebDrive control panel.[/Para]
    [TableAnchor]
    [table tabstyle = "Expressroom2" cols = "2"
    colwidths = "2.198in 3.500in" colsep = "1" rowsep = "1"
    frame = "all"]
    [title Id = "BEHJCAJB"][?FM MARKER [Cross-Ref] 86302: TableTitle: Table 1-1
    WebDrive control panel options?]WebDrive login values[/title]
    [tgroup cols = "2" colsep = "1" rowsep = "1"]
    [colspec colnum = "1" colname = "1" colwidth = "2.198in"]
    [/colspec][colspec colnum = "2" colname = "2" colwidth = "3.500in"]
    [/colspec][thead]
    [row rowsep = "1"]
    [entry colname = "1"][CellHeading]Field[/CellHeading][/entry]
    [entry colname = "2"][CellHeading]Value[/CellHeading][/entry]
    [/row]
    [/thead]
    But when I open the same XML-converted doc back in FM, I get the following:
    "If you're using WebDrive, you will want to use the options shown in on the WebDrive control panel."
    The CROSSREF Idref "BEHJCAJB" is [WHITESPACE] in the Structure View, so it's a blank space within the actual text in FM.
    I have excerpts from my EDD, DTD, and R/W rules that I can post, but would make this even more lengthy. (Sorry about the current length.) What do I need to change to make the xrefs work when I roundtrip the files?
    [I don't know whether it makes any difference or not, but I have changed the element names since I originally used a conversion table (to structure my legacy FM files); however, I persisted those element name changes throughout the EDD, DTD, and R/W rules files.]

    I'm using FM 7.2p158 running on Windows XP on a Dell Optiplex GX520 with 1GB RAM. I've converted my legacy FM docs to structured FM, but my (CALS-formatted) table number xrefs disappear when I roundtrip the XML docs back to FM. How can I remedy this?
    Initially, I used my own conventions to name the table part elements as I have about 10-15 specific table types and I used those Table Tag names as table elements names (Invisible2, Invisible4, StepTable, ...), so I had 10-15 elements that were true "is fm table element" types in the EDD, DTD, and R/W rules. The table number xrefs worked as they should after roundtripping FM-XML-FM and the tables' shading, ruling, and Table Tags were correct.
    I consulted our XSLT developer for proper browser display of the XML files, and he suggested that I should use the CALS table model. I studied the Struct Dev Gd, then I searched this forum for postings on CALS tables and related topics and used suggestions offered by many of you good folks to create an EDD, DTD, and R/W rules to that end.
    I've run some tests using many iterations of my files (both CALS and non-CALS types) to roundtrip the FM files, but I cannot get the xrefs of the table number from the CALS-version table title element to display when I roundtrip the XML doc and open it in FM. I get this:
    -- In the XML doc text opened in FM, instead of "Table 1-1" for the xref, it leaves a blank space (although the source numbered table title is there).
    -- In the Structure View of the same XML doc, I see the following:
    - The CROSSREF element text says WHITESPACE.
    - Both the CROSSREF element and its source element continue to have the (matching) "Idref" and "Id" number displayed in this view.
    - The Idref attribute is disconnected from the CROSSREF element.
    - The "table" element is disconnected from its container element (TableAnchor).
    Once I apply the File/Import/Element Definitions command in the XML doc in FM, the XML becomes valid and both the CROSSREF Idref attribute and the table element are reconnected, but my xref of the table number is still WHITESPACE.
    The XML-converted doc source text reads:
    If you're using WebDrive, you will want to use the options shown
    in [CROSSREF Idref = "BEHJCAJB" format = "Table Number"/] on the [IndexEntry
    type = "Index" text = "WebDrive options"/]WebDrive control panel.[/Para]
    [TableAnchor]
    [table tabstyle = "Expressroom2" cols = "2"
    colwidths = "2.198in 3.500in" colsep = "1" rowsep = "1"
    frame = "all"]
    [title Id = "BEHJCAJB"][?FM MARKER [Cross-Ref] 86302: TableTitle: Table 1-1
    WebDrive control panel options?]WebDrive login values[/title]
    [tgroup cols = "2" colsep = "1" rowsep = "1"]
    [colspec colnum = "1" colname = "1" colwidth = "2.198in"]
    [/colspec][colspec colnum = "2" colname = "2" colwidth = "3.500in"]
    [/colspec][thead]
    [row rowsep = "1"]
    [entry colname = "1"][CellHeading]Field[/CellHeading][/entry]
    [entry colname = "2"][CellHeading]Value[/CellHeading][/entry]
    [/row]
    [/thead]
    But when I open the same XML-converted doc back in FM, I get the following:
    "If you're using WebDrive, you will want to use the options shown in on the WebDrive control panel."
    The CROSSREF Idref "BEHJCAJB" is [WHITESPACE] in the Structure View, so it's a blank space within the actual text in FM.
    I have excerpts from my EDD, DTD, and R/W rules that I can post, but would make this even more lengthy. (Sorry about the current length.) What do I need to change to make the xrefs work when I roundtrip the files?
    [I don't know whether it makes any difference or not, but I have changed the element names since I originally used a conversion table (to structure my legacy FM files); however, I persisted those element name changes throughout the EDD, DTD, and R/W rules files.]

  • What is the problem with native dynamic sql when counting rows in all table

    what is the problem with native dynamic sql when counting rows in all table?Giving an error "table or view does not exist". Thanks.
    DECLARE
    v_sql_string varchar2(1000);
    v_no_of_rows number;
    BEGIN
    for i in ( select table_name from all_tables )
    loop
    v_sql_string := ' select count(1) from ' || i.table_name;
    dbms_output.put_line( v_sql_string );
    --execute immediate v_sql_string into v_no_of_rows;
    end loop;
    END;

    Usually your problem can be described with 'Who cares'. I mean, for what reason do you do this? I doubt that there's a business need to get 100 % accurate answers for this. Normally such things are used to get a picture about the growth of data.
    Personally I would prefer to have up-to-date statistics for all tables and just query the number of rows from there. Sufficient for me in < 99 % of all cases.
    Just my $ .02...

  • Problem with Top N Query when no rows returned (takes forever)

    I have a table with 100 Million rows and I want to get the latest N records using:
    SELECT * FROM
    (SELECT * FROM tablename WHERE columnA= 'ABC' ORDER BY TIME DESC)
    WHERE rownum <= N;
    This works fine and is very fast when there are rows with columnA= 'ABC' but when there are no rows with columnA= 'ABC' the query takes forever.
    The strange things is that the inner query returns immediately when run on it's own when no rows with columnA= 'ABC' exist e.g.
    SELECT * FROM tablename WHERE columnA= 'ABC' ORDER BY TIME DESC
    So why does it take for ever for to run:
    SELECT * FROM (no rows inner query) WHERE rownum <= N;
    I have also tried using:
    SELECT * FROM
    (SELECT columnA, rank() over(ORDER BY TIME DESC) time_rank
    FROM tablename WHERE columnA='ABC')
    WHERE time_rank <= N;
    which returns instantly when there are now rows but takes much longer than the first query when there are rows.

    I cannot see a real difference:With histogram we can see a difference on the elapse when no row returned and into explain plan.
    SQL> drop table tablename
      2  /
    Table dropped.
    Elapsed: 00:00:00.03
    SQL>
    SQL> create table tablename
      2  as
      3  select sysdate - l time
      4         , decode(trunc(dbms_random.value(1,10)),1,'ABC',2,'DEF',3,'GHI',4,'JKL','MNO') as columnA
      5    from (select level l from dual connect by level <= 1000000)
      6  /
    Table created.
    Elapsed: 00:01:19.08
    SQL>
    SQL> select columnA,count(*) from tablename group by columnA
      2  /
    COL   COUNT(*)
    ABC     110806
    DEF     111557
    GHI     111409
    JKL     111030
    MNO     555198
    Elapsed: 00:00:05.05
    SQL>
    SQL> create index i1 on tablename(time)
      2  /
    Index created.
    Elapsed: 00:00:34.08
    SQL>
    SQL> create index i2 on tablename(columna)
      2  /
    Index created.
    Elapsed: 00:00:30.08
    SQL>
    SQL> exec dbms_stats.gather_table_stats(user,'TABLENAME',cascade=>true)
    PL/SQL procedure successfully completed.
    Elapsed: 00:01:18.09
    SQL>
    SQL> set autotrace on explain
    SQL> SELECT * FROM
      2  (SELECT * FROM tablename WHERE columnA= 'ABC' ORDER BY TIME DESC)
      3  WHERE rownum <= 10
      4  /
    TIME     COL
    17/09/06 ABC
    12/09/06 ABC
    08/09/06 ABC
    07/09/06 ABC
    25/08/06 ABC
    22/08/06 ABC
    13/08/06 ABC
    08/07/06 ABC
    14/06/06 ABC
    01/05/06 ABC
    10 rows selected.
    Elapsed: 00:00:01.04
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=2364 Card=10 Bytes=120)
       1    0   COUNT (STOPKEY)
       2    1     VIEW (Cost=2364 Card=200000 Bytes=2400000)
       3    2       SORT (ORDER BY STOPKEY) (Cost=2364 Card=200000 Bytes=2400000)
       4    3         TABLE ACCESS (FULL) OF 'TABLENAME' (Cost=552 Card=200000 Bytes=2400000)
    SQL>
    SQL> SELECT * FROM
      2  (SELECT * FROM tablename WHERE columnA= 'MNO' ORDER BY TIME DESC)
      3  WHERE rownum <= 10
      4  /
    TIME     COL
    20/09/06 MNO
    19/09/06 MNO
    16/09/06 MNO
    14/09/06 MNO
    13/09/06 MNO
    10/09/06 MNO
    06/09/06 MNO
    05/09/06 MNO
    03/09/06 MNO
    02/09/06 MNO
    10 rows selected.
    Elapsed: 00:00:02.04
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=2364 Card=10 Bytes=120)
       1    0   COUNT (STOPKEY)
       2    1     VIEW (Cost=2364 Card=200000 Bytes=2400000)
       3    2       SORT (ORDER BY STOPKEY) (Cost=2364 Card=200000 Bytes=2400000)
       4    3         TABLE ACCESS (FULL) OF 'TABLENAME' (Cost=552 Card=200000 Bytes=2400000)
    SQL>
    SQL> SELECT * FROM
      2  (SELECT * FROM tablename WHERE columnA= 'PQR' ORDER BY TIME DESC)
      3  WHERE rownum <= 10
      4  /
    no rows selected
    Elapsed: 00:00:01.01
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=2364 Card=10 Bytes=120)
       1    0   COUNT (STOPKEY)
       2    1     VIEW (Cost=2364 Card=200000 Bytes=2400000)
       3    2       SORT (ORDER BY STOPKEY) (Cost=2364 Card=200000 Bytes=2400000)
       4    3         TABLE ACCESS (FULL) OF 'TABLENAME' (Cost=552 Card=200000 Bytes=2400000)
    SQL> set autot off
    SQL>
    SQL> EXECUTE DBMS_STATS.GATHER_TABLE_STATS(user,'TABLENAME',METHOD_OPT => 'FOR COLUMNS SIZE 250 columna')
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:09.08
    SQL>
    SQL> set autotrace on explain
    SQL> SELECT * FROM
      2  (SELECT * FROM tablename WHERE columnA= 'ABC' ORDER BY TIME DESC)
      3  WHERE rownum <= 10
      4  /
    TIME     COL
    17/09/06 ABC
    12/09/06 ABC
    08/09/06 ABC
    07/09/06 ABC
    25/08/06 ABC
    22/08/06 ABC
    13/08/06 ABC
    08/07/06 ABC
    14/06/06 ABC
    01/05/06 ABC
    10 rows selected.
    Elapsed: 00:00:01.03
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=1434 Card=10 Bytes=120)
       1    0   COUNT (STOPKEY)
       2    1     VIEW (Cost=1434 Card=110806 Bytes=1329672)
       3    2       SORT (ORDER BY STOPKEY) (Cost=1434 Card=110806 Bytes=1329672)
       4    3         TABLE ACCESS (FULL) OF 'TABLENAME' (Cost=552 Card=110806 Bytes=1329672)
    SQL>
    SQL> SELECT * FROM
      2  (SELECT * FROM tablename WHERE columnA= 'MNO' ORDER BY TIME DESC)
      3  WHERE rownum <= 10
      4  /
    TIME     COL
    20/09/06 MNO
    19/09/06 MNO
    16/09/06 MNO
    14/09/06 MNO
    13/09/06 MNO
    10/09/06 MNO
    06/09/06 MNO
    05/09/06 MNO
    03/09/06 MNO
    02/09/06 MNO
    10 rows selected.
    Elapsed: 00:00:02.05
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=6219 Card=10 Bytes=120)
       1    0   COUNT (STOPKEY)
       2    1     VIEW (Cost=6219 Card=555198 Bytes=6662376)
       3    2       SORT (ORDER BY STOPKEY) (Cost=6219 Card=555198 Bytes=6662376)
       4    3         TABLE ACCESS (FULL) OF 'TABLENAME' (Cost=552 Card=555198 Bytes=6662376)
    SQL>
    SQL> SELECT * FROM
      2  (SELECT * FROM tablename WHERE columnA= 'STU' ORDER BY TIME DESC)
      3  WHERE rownum <= 10
      4  /
    no rows selected
    Elapsed: 00:00:00.00
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=6 Card=1 Bytes=12)
       1    0   COUNT (STOPKEY)
       2    1     VIEW (Cost=6 Card=1 Bytes=12)
    3 2 SORT (ORDER BY STOPKEY) (Cost=6 Card=1 Bytes=12)
    4 3 TABLE ACCESS (BY INDEX ROWID) OF 'TABLENAME' (Cost=5 Card=1 Bytes=12)
    5 4 INDEX (RANGE SCAN) OF 'I2' (NON-UNIQUE) (Cost=4 Card=1)
    SQL> Nicolas.

  • When we will go for TABLE, VIEW

    Hi Experts,
    I have doubt regarding Generic DS . If Standard DS are not match with the Business Requirement , then we will create Generic DS.
    But iam asking What is the Exact Requirement to go for Generic DS in SD and MM. At what instance Standard DS are not match with the requirement in SD and MM Applications.
    When we will go for TABLE, VIEW, FUNCTION MODULE, INFOSET
    in realtime, What is Exact Requirement to go with these .
    Plz provide Solutions ASAP.
    I will allocate points to those who help me in detail. My advance thanks who respond to my query.

    Hi,
    as this is one of those questions already asked a lot of times I would strongly suggest to use the search functionality in the forums ASAP.
    regards
    Siggi

  • Adf faces command button, bindings and ejb 3.0 persisting problem

    When mapping the persist method to an adf command button it got this error:
    1. JBO-29000: java.lang.IllegalArgumentException: PERSIST impossible sur l'objet détaché : hr.entity.Departments@1b21.; nested exception is: java.lang.IllegalArgumentException: PERSIST impossible sur l'objet détaché : hr.entity.Departments@1b21. -
    2. java.lang.IllegalArgumentException: PERSIST impossible sur l'objet détaché : hr.entity.Departments@1b21.; nested exception is: java.lang.IllegalArgumentException: PERSIST impossible sur l'objet détaché : hr.entity.Departments@1b21. -
    Is that because Departments are serialized by the container when the session bean is accessed by the data control to catch the data when the form is populating and entities are detached from the persisting context ? or something else ?
    I bind the button to the current row data provider for the departments. Is it correct, isn't ?

    When mapping the persist method to an adf command button it got this error:
    1. JBO-29000: java.lang.IllegalArgumentException: PERSIST impossible sur l'objet détaché : hr.entity.Departments@1b21.; nested exception is: java.lang.IllegalArgumentException: PERSIST impossible sur l'objet détaché : hr.entity.Departments@1b21. -
    2. java.lang.IllegalArgumentException: PERSIST impossible sur l'objet détaché : hr.entity.Departments@1b21.; nested exception is: java.lang.IllegalArgumentException: PERSIST impossible sur l'objet détaché : hr.entity.Departments@1b21. -
    Is that because Departments are serialized by the container when the session bean is accessed by the data control to catch the data when the form is populating and entities are detached from the persisting context ? or something else ?
    I bind the button to the current row data provider for the departments. Is it correct, isn't ?

  • Command button in the selection facet of a table

    hi,
    i am implementing a search page,where filed to enter search criteria is in main page, when a user enters enters search criteria and clicks on a command button search results are displayed in the popup.
    again if the user selects a particular record and clicks a button that selectd record gets displayed in the main page again.To do this iam using that command button under table's selection facet under selectone component.to get the selected record displayed in the main page iam using a return action listener which returns #{row.rowKeyStr} and in the main i wrote a custom method which listens to the returnEvent.This way i could get the functionality
    my requirement is that button should get displayed on above and below the search results table. but when i use the button out side the select one button it is returnning #{row.rowKeyStr}.
    Can someone please suggest some solution

    give you table an id then in your button action find out table.getSelectionState().getKeySet() and then get current rowkeystr from it.

  • Matser Table/Detail Table -- Hide detail panel when no row

    Hi,
    I would like to hide the detail panel when the user selects a row in the master table without detail.
    I try to put something like this:
    <af:panelHeader
    rendered="#{bindings.MyView2.estimatedRowCount>0}">
    But it does not work, instead the previous detail rows are display when there is no detail rows for the master row.
    I need to to press a button <af:commandButton text="Apply change"/> , to render the page correctly.
    The selection facet used in the master table is defined as follow:
    <f:facet name="selection">
    <af:tableSelectOne autoSubmit="true"></af:tableSelectOne>
    </f:facet>
    Where am I wrong, it is my first project with ADF ?
    Any help will be appreciate,
    Thanks,

    Well not really clear if it's a bug or not, but here's two workarounds:
    1- the table is surrounded by a panelCollection, if we add a partial trigger from the panelCollection to the table, on every change of row selection the table refreshes itself.
    2- The second option was to remove the primary keys from the entity, and force it to use RowId as the primary key.
    This is such a weird behavior in ADF, it's one of the basic things that one will do in an application. We tried to do a test on a smaller app and it gave the same results.
    Here's the scenario:
    Master/detail linked by two keys
    Master PK (key1, key2)
    Detail PK (key1, key2, key3) => key1 and key2 are the link between the tables.
    If anyone can reproduce this and confirm if it's a bug, it would be greatly appreciated.
    Mo

  • JDev 10 - disable command button depending on which row is selected

    I am using JDeveloper 10, and I have a table which has some data columns and a selection facet with View and Edit command buttons.
    I would like all rows to be viewable. When you click the view event it goes to another .jsp with the view action.
    It does the same thing with the edit action, however I would like to only allow rows which have an EffectiveDate column in the future to be editable.
    Is there some way to disable the edit button when those rows are selected, or to throw a validation error when the edit button is clicked for that row?
    Thanks!
    Jeff
              <af:table value="#{bindings.RateList.collectionModel}" var="row"
                          rows="#{bindings.RateList.rangeSize}"
                          first="#{bindings.RateList.rangeStart}"
                          emptyText="#{bindings.RateList.viewable ? 'No rows yet.' : 'Access Denied.'}"
                          selectionListener="#{bindings.RateList.collectionModel.makeCurrent}"
                          selectionState="#{bindings.RateList.collectionModel.selectedRow}">
                  <af:column sortProperty="RateType" sortable="false"
                             headerText="#{bindings.RateList.labels.RateType}">
                    <af:outputText value="#{row.RateDescription}"/>
                  </af:column>
                  <af:column sortProperty="EffectiveDate" sortable="false"
                             headerText="#{bindings.RateList.labels.EffectiveDate}">
                    <af:outputText value="#{row.EffectiveDate}">
                      <f:convertDateTime pattern="dd-MMM-yyyy"/>
                    </af:outputText>
                  </af:column>
                  <f:facet name="selection">
                    <af:tableSelectOne text="Select and">
                      <af:commandButton text="View" action="view">
                        <af:setActionListener from="#{row.rowKeyStr}"
                                              to="#{requestScope.requestRowKey}"/>
                      </af:commandButton>
                      <af:commandButton text="Edit"
                                        action="edit"/>
                    </af:tableSelectOne>
                  </f:facet>
                </af:table>

    So, I first tried using Chan advice, I added a new editable property from the database and then added Edit buttons to each row in the table with disabled property set to the editable property.
    This correctly displayed buttons which were editable in the correct rows.
    However, I was no longer using the select functionality which passed the rowId of the selected row to the edit page.
    I wasn't able to quickly solve this problem so I tried John's solution.
    I feel really dumb, but after about 20 rereadings it was still completely Greek to me, I have no idea what he was recommending.
    So I added onclick="return editTest()" to the Edit button.
    The I added ID to the relevant locations, and the following javascript to the page, and this is working well enough now.
    (Oh, I display the date in a slightly odd dd-MMM-yyyy format, due to slightly odd customer requirements.)
    I've probably misspelled one of the months, haven't yet finished testing.
    A couple of gotchas I found
    - Do not add onclick="editTest()" or else it will continue processing and allow all rows to be edited.
    - Putting date = document.getElementById('mainFormId:tableId:'+i+':EffectiveDateId'); would work for the original search,
    but after filtering results i and found_it are not equivalent, and date was not found in the page.
               function editTest(){
                  var found_it;
                  var date;
                  for (var i=0; i < document.getElementsByName('mainFormId:tableId:selected').length; i++)  {
                     if (document.getElementsByName('mainFormId:tableId:selected').checked) {               
    found_it = document.getElementsByName('mainFormId:tableId:selected')[i].value;
    date = document.getElementById('mainFormId:tableId:'+found_it+':EffectiveDateId');
    var result = date.innerHTML.split("-");
    var day = result[0];
    if (day.charAt(0) == '0'){
    day = day.charAt(1);
    var month;
    var monthTxt = result[1];
    switch (monthTxt) {
    case 'Jan':
    month=0;
    break;
    case 'Feb':
    month=1;
    break;
    case 'Mar':
    month=2;
    break;
    case 'Apr':
    month=3;
    break;
    case 'May':
    month=4;
    break;
    case 'Jun':
    month=5;
    break;
    case 'Jul':
    month=6;
    break;
    case 'Aug':
    month=7;
    break;
    case 'Sep':
    month=8;
    break;
    case 'Oct':
    month=9;
    break;
    case 'Nov':
    month=10;
    break;
    case 'Dec':
    month=11;
    break;
    default:
    month=11;
    break;
    var year = result[2];
    var today = new Date();
    var effDate = new Date();
    effDate.setDate(day);
    effDate.setMonth(month);
    effDate.setYear(year);
    if (effDate < today) {
    alert ('Sorry, you cannot change a rate with an effective date in the past');
    return false;
    } else {
    return true;

  • Two radio buttons in a single row of a table

    Hi All,
    Can we have two radio buttons in a single row of ADF TABLE.
    My requirement is that i have a list of submitted records. The user can approve or reject the records.
    All the records are displayed in the table. there will be two columns in the table(Approve , Reject) The user can approve the first record and reject the second record and so on....
    using table selectOne we can select only one row. Using radio buttons how to select the multiple records, at the same time grouping is done between the two columns(radio buttons) in the table

    Hi,
    I don't think that you can do this with radio buttons. The usecase is more for chackboxes. It would have been a usecase for radio buttons if there was a single column with 3 possible options
    - pending
    - approved
    - rejected
    Frank

  • Enable Buttons after selection of row in a table

    Hi All
    Could any one give me help in this. I have a table, in table tool bar some buttons are there. at first time buttons are in disable mode, when user select any row in the table the buttons should be in enable mode. how to do this? help me
    Thanks,
    kris.

    hi,
    for table you have lead select action. you can write the code in this ction method to enable and disable the buutons based on the lead selection.
    or you ca alsoput your code in modify view and check if the instance of element is bound then enable else disable,
    lo_element = lo_node->get_element(). Lo_element will be bound only if there is a lead selection in the table.
    if lo_element is bound.
    enable the buttons.
    else.
    disable the buttons.
    endif.
    Regards,
    Madhu

  • Label of a button disappears when its enabled

    We have a button in our forms which remains disabled by default.
    So, by default it works fine and we are able to see the label of this button correctly.
    On based of certain conditions this button gets enabled using the below line of code
    set_item_property('Block',enabled,property_true);
    However, when this statement gets executed label of the button disappears.
    It appears to be a blank button without any label text.
    Iconic property of the button is already set as NO
    Please help!!!

    Probably a bug with your specific version, you did not give anyway. You should consider upgrading/patching to a more recent version.
    Francois

  • Word 2011 - Tables Layout button disappeared!

    Hi.
    Normally when I click on the "Tables" a button in the Ribbon it extends horizontally and allows a new " Tables Layout" button to its right side. This is now not appearing at all. I am highlighting a Word Table nothing nada. Just that up/down "to hide or not hide" motion is going on with the Ribbon panel below.
    Why is this happening and how can I can get the "Tables Layout" button back again? Please reply soon. Thank you.

    If anyone does have any suggestions I would really like a hear them. Thanks.

  • Submit button disappears when returning to the quiz slide

    Hi everyone,
    We just upgraded from Captivate 4.0 to 5.5. I'm learning 5.5 differences from 4.0 and have one that I can't figure out.
    On the quiz slides, if the learner moves back and forward within the quiz slides, the quiz buttons are fine. However, if they click Back on the 1st quiz slide, then go forward to the quiz slide the submit button flashes briefly then disappears for that slide and all the other quiz slides. I can't find a setting to fix this.
    Any suggestions or thoughts would be appreciated. Thank you.

    Sounds like a quiz scope issue.  If you click back on the first quiz slide that would take you to the slide BEFORE the first quiz slide which is technically outside the quiz scope.  This usually results in Captivate locking the quiz.
    I haven't personally seen this button disappearing act but you can test whether quiz scope is the likely culprit by adding a scored click box to the first slide of the project, which will then extend the quiz scope out to that slide.  If this prevents your quiz slide buttons from disappearing, we know where the issue comes from.  That may mean you have still found a bug that needs to be fixed though.

  • Check for null values in conditional formatting when no rows returned.

    I have a report that is showing facts for different months.
    For some months there is no row in the facts table.
    But in the report, I have to show a * when there is no data.
    If there is a row in the facts table with null value for data, the conditional formatting successfully shows a * when data is null.
    But when no row is present in the facts for a particular month , conditional formatting is unable to detect any null, as none exist.
    How we can check that no rews returned for a particular month and then show *?
    thanks

    Hi,
    which obiee version r u using?
    My Blog ref:
    http://obieeelegant.blogspot.com/2011/06/replacing-null-as-0-in-obiee.html
    in obiee10g its working fine.expect obiee11g
    also see the bug reference
    How to replace null as 0 in  obiee11g pivot table view?
    obiee11.1.1.6.0 also have the same issues.
    Thanks
    Deva

Maybe you are looking for

  • What is this icon? 6220c

    When I try to call one spec mobilnumber I get an icon like this a few seconds in the window, and thats all, nothing more happens. The icon is an "unlocked"symbol with an handset under, and under that an mobil phone. What means with it?

  • Purchase Order - Smartform- Best practises

    Hi, Could anybody suggest on how to load the Bestpractises for Smartforms (Purchase Order) and access it in ECC 6.0 system. Regards Syam

  • SAP.m JS/XML and Gateway service

    Hello I've been trying to consume a gateway service with the sap.m classes. it turned out quite difficult for me as im new in this whole web thing, and most of the examples for sap.m are in XML. i've tried to convert some of the examples in sap.commo

  • Error loading alphanumeric values

    Hi, I have a data file that has fields with alphanumeric values - alpha and number in a field. Some fields have just alpha values only, and some have both alpha and numeric values. When I tried to load it, it only took the numeric values for those fi

  • Error in Component Loading the File

    Dear Expert, Good Morning! I tried to import license but error message "Error in component loading the file" appear.  Can anyone help me on this? Thanks