AF:table hide a line

Hi all

I use jdev 11.1.1.7.0

I have a list of DTO in my grain (NOT VO based). Its a web service based one.

I showed this list in the page as a table (< af:table value = "#{pageFlowScope.testBean.phoneInfoList}" ")

In the table, I have a column with a 'Donot Show' button. I'll put a variable showRow DTO as false in the case of the action of the button of the current line.

I added a condition rendered inputText table column and the rendering State works very well. The data is not displayed, but how ever, a blank line appears.

How can we hide the line itself?

< af:table value = "#{pageFlowScope.testBean.phoneInfoList} '"

var = 'row' emptyText = "#{ssBundle.NO_DATA_TO_DISPLAY_LBL} '"

autoHeightRows = '0 '.

width = "70%".

columnStretching = 'multiple' rowBandingInterval = '0 '.

rowSelection = "single" contentDelivery = "immediate".

ID = "wssmpt1".

Binding = "#{pageFlowScope.testBean.phoneTableBinding} '"

varStatus = "rowStatus" >

< af:column sortable = "false".

headerText = "#" "" id = "wssmpc3" width = "2".

rowHeader = "true" >

"< af:inputText value =" #{row.sequence} "rendered =" #{! row.isRowDeleted}.

«simple = "true" label = "#»

ID = "wssmpit1" / >

< / af:column >

< af:column headerText = "#{ssBundle.ACCOUNT_PHONETYPE_LBL} '"

width = "30%" align = 'center' id = 'amupptclm '.

clientComponent = "true" >

"< af:selectOneChoice value =" #{row.phoneType} " rendered =" #{! row.isRowDeleted} '

inlineStyle = "padding: 5px;" white-space: nowrap; »

Editable = 'always' valuePassThru = 'true '.

label = "" # "" required = "true" id = "wssmpsoc1".

autoSubmit = 'true '.

valueChangeListener = "#{pageFlowScope.testBean.selectPhoneType} '"

requiredMessageDetail = "#{ssBundle.ACCOUNT_PHONETYPE_REQUIRED_LBL}" >

< name f: attribute = "sequences" value = "#{row.sequence}" / >

< f: selectItems value = "#{pageFlowScope.testBean.phoneTypes} '"

ID = "wssmpsi1" / >

< / af:selectOneChoice >

< / af:column >

< af:column headerText = "#{ssBundle.ACCOUNT_PHONENO_LBL} '"

width = "30%" align = "DΘmarrer" id = "wssmpc5" >

< af:panelLabelAndMessage id = "wssmpplm1" for = "wssmpit7" >

"< af:inputText value =" #{row.phoneNumber} "required ="true"rendered =" #{! row.isRowDeleted}.

requiredMessageDetail = "#{ssBundle.ACCOUNT_PHONENUM_REQUIRED_LBL} '"

columns = '14' id = 'wssmpit7' simple = "true" autoSubmit = 'true '.

Binding = "#{pageFlowScope.testBean.setDefaultFormat} '"

valueChangeListener = "#{pageFlowScope.testBean.phoneNumberChanged}" >

< af:clientListener method = "resetInputText" type = "click on" / >

< / af:inputText >

< f: facet = 'end' name >

"< af:outputLabel value =" #{row.phoneNumberFormat} "rendered =" #{! row.isRowDeleted}.

partialTriggers = "wssmpsoc1" id = "ol1" / >

< / f: facet >

< / af:panelLabelAndMessage >

< / af:column >

< af:column headerText = "#{ssBundle.REMOVE_LBL}" align = "center" "

width = "10%" id = "ammpac1" >

< partialSubmit = "true" rendered = af:commandImageLink "#{! row.isRowDeleted} '"

shortDesc = "#{ssBundle.ACCOUNT_PHONE_REMOVE_LBL} '"

Icon="/ADF/images/delete_ena.png".

actionListener = "#{pageFlowScope.testBean.removePhone} '"

ID = "ammprpbtn" immediate = "true" >

< name f: attribute = "sequences" value = "#{row.sequence}" / >

< / af:commandImageLink >

< / af:column >

< / af:table >

table.png

I deleted the 2nd row. But the line is always visible

You can download the example of https://github.com/tompeez/BlogPoJoTableDeleteRow/archive/develop.zip

He didn't need a project model or the DB connection. Just launch the index page and click on a button in the table delete.

Timo

Tags: Java

Similar Questions

  • Model RTF how to hide a line under condition

    Hello

    Need to hide line based on condition. I have the table 4 ranks are there. To hide the line based on condition.tried after statement has failed.
    "< if@row:field!="Yes "> <? end if? >

    Help me to reslove this issue...

    Thank you
    Srini-

    I sent you the modifed model. Take a peek inside.

    Thank you
    BIPuser

  • Hide a line based on the State.

    Hello, I have a requirement where I have to hide a line based on the State. I am able to highlight the lines but hide the entire line does not work.

    Condition must be met on a line:

    • Thus, if a sum of EXP5_11, EXP6_11, EXP7_11 and EXP8_11 in a current group is all zeros hide this line. Please refer to the RTF-model.

    Attachments:

    • RTF-model.
    • XML file.
    • Sample output generated when the lines are highlighted the meeting status.

    Any help is much appreciated on how I can hide a line.

    EM-: [email protected]

    If please remove your IF condition and add the following code inside the foreach tag

    This works very well in my test.

  • How to truncate 1000 rows from a table of 7000 lines?

    Hello

    Please give me a quick answer to truncate the 1000 rows from a table of 7000 lines... I don't want to truncate the entire table

    Thank you all for the valuable support,

    My activity is still ongoing... Somehow my client was not specific about what lines are deleted. It has no date column in the table to delete records by date...

    The table contains information about the error logs, so he wanted to keep a few lines and remove the rest... and then copy the table to another database.

    So right now using this query:

    SQL > delete (select * from ) where rownum<>;

    Once again thank you to all...

  • How to hide a line in BI Publisher using conditional formatting

    Hello

    I use BI Publisher 11.1.1.5.0.

    I need to hide the entire row based on the condition (if sal > 0 then hide entire line), please can you help on how can I achieve this?

    Thank you

    Hello

    I found the solution in

    Designer's Guide to reports for Oracle Business Intelligence Publisher version 11 g (11.1.1) Réf. E13881-02 - conditional formatting of the Section.

    Thank you

  • Y at - there no possibility to hide a line?

    Y at - there no possibility to hide a line? Other than data security level there at - it another option to hide a row. I need the value of this line to be summarized in the total general. But it should not be displayed to users. Is it possible to do...

    Hello

    Conditional formatting-> add a condition-> select the column and supply provided you want to hide the line
    -> Options of Style CSS custom (HTML only)-> check use Custom CSS Style and add the text box display: no
    Repeat all the columns in that particular line

    Hope help u...

    See you soon,.
    Aravind

  • Automatic text of lines-placement of the table from one line to the other

    Hello

    can someone help me with a problem of formatting with tables;

    I would like to set up a table with multiple lines and the text automatically flow to the next line when you type once we're full... any help would be greatly appreciated

    Hey there,

    I just do the 1st rank.

    During the ENTIRE event, I changed the Javascript and insert the following code:

    xfa.host.setFocus(xfa.resolveNode("form1.#subform.Table1.Row3[1].Cell1"));
    
    Now it's working. You can do the rest.
    Tip: when coding, if you hold down Ctrl + Shift and click on any field, you get the name of the field instantly.
    Diego
  • Hide the line of adf table based on the transient attribute does not

    I have a JSF page where the user can insert new line in View object . this View object contains a transitional attribute which indicates whether or not the record is newly created.

    On the same page, I have a table adf which is bounded on the city view object . This table should show only newly created records. my approach is to use expression language of in the renditions property to hide all the other lines that are not newly created. I changed the render property for the columns of the table as: rendered="#{row.bindings.RowStatus.inputValue eq'new'}" , but the table does not show anything.

    Then, I tried to change the made not for the column property, but to the outputText inside the same way. It worked, but the problem is that the blank line is always on display.

    So, basically because I do not hide the entire line, instead I'm hiding the text in the lines and lines with spaces empty is still on display in the page aside.

    The Table of JSF page where the made property is applied on outputText inside the column:

    <af:table value="#{bindings.UplodedFilesView1.collectionModel}" var="row"
      rows
    ="#{bindings.UplodedFilesView1.rangeSize}"
      binding
    ="#{CreatSR_UserBean.fileTable}">

      
    <af:column sortProperty="#{bindings.UplodedFilesView1.hints.FileName.name}"
      headerText
    ="File Name" id="c1">

      
    <af:outputText value="#{row.bindings.FileName.inputValue}" id="it1"
      rendered
    ="#{row.bindings.RowStatus.inputValue eq'new'}"/>

      
    </af:column>

      
    </af:table>

    I use Jdeveloper with ADF technology 11.1.2.3

    Thanks Timo,

    You are right. Its to late to hide lines after stamping in the row set. I solve the problem by filtering the view object, based on the transitional attribute in the section of liaison page. The steps as follows: (assuming that the object from view with the temporary attribute has been created, and the transient attribute contains the filtered values)

    1. Drag the view object on the page and also make the Table (in my case it might otherwise listen)
    2. On the page, go to the connection tab.
    3. Double-click the object desired in the links column.
    4. New window will appear titled with (change the binding tree)
    5. Check the option (enable filtering)
    6. Select the (filter attribute) and (filter value) for the selected filter attribute.
    7. Select (Display attribute) you want to appear in the page.
    8. Press OK
  • How to create a table with no lines to the left or to the right?

    If I create a table with say 5 columns and 15 lines, how not to do a vertical line (border) to the left and to the right of the table while keeping the boundary up and down? Is that possible or I just put a white box on the left and the right?

    IDCS3

    There are a few methods that work. Here is one.

    (1) select your table cells

    (2) open the race Panel

    3) click the blue lines of the proxy image in the Panel of stoke to deselect the lines inside and high and low lines

    (4) 0 the value of the weight of the race (or change the color of the None swatch)

    Oh and for the love of your fellow designers or the person that allows you to edit your work in the future... do NOT use a white box to hide the traits of lines and columns in the table.

    HTH

    -mt

  • table spacing - small lines under 0.29 cm

    Dear community,

    How can I adjust the spacing of the rows in a table below 0.29 cm.

    I have can´t down cela, but would need 0.2 cm.

    I have a German version. If there is a way to give me the German names for the menus and settings would be very good.

    THX

    Best regards

    Tim

    < link published by host >

    Change your preference of Pages: ruler: units of the rule: Points. Later, you can set your line size of the Table to 56,68 pts which is about 2 cm.

    Google centimeters to points. Top research will be a conversion box. Type 2 instead of 1.

  • Hide unused lines in figures

    I have a fully customized Numbers spreadsheet (which is a budget) and each row has a formula. I need to present the budget with only the lines that are used for an overview of the customer. How can I quickly select all unused lines and save only the most used in PDF format? This has been possible in the old version, but I can't find the equivalent in the last edition...

    Hi Abarans,

    Automate this is to use a filter. If there is a column which is filled only used lines set your filter to test for this. Filter stays off until you need to print to PDF. I have this set up on a table to report where the filter is always on. Œuvres sweet!

    Quinn

  • Manipulation of table (delete the lines which are &gt; lines after them)

    I have a table of entry I want to manipulate.

    We measure a rotation device.  In the measurement sequence we want to display the data on a slope that is constantly growing, although when we let off the coast of the acceleration of our mobile device at the end of the test, we end up with a higher torque #s at the beginning of the sequence of RPM... which blurs our line of slope on our chart.

    For example, see the PNG attached on the table of torque/RPM torque.  I need to be able to cut the 2 first lines of the table that we need go less and more general in the line of torque sequence.  Throughout the test, we have a number of line 10 for example couple that is greater than the value of torque on line 11, so that we would need to cut the value of torque in line 10.

    I have attached the vi sub that I plugged in order to try it, but can't make it work.   I don't have to sort the table, but to remove the lines that exceed the lines after them... relatively to the value of rpm decreases constantly.  If I have a pair of value 2340/1869 in the row 1 & 276/1839 in row 2, I need rank 1 deleted.  But if I have a pair of value of 2509/1704 in row 12 & a pair value of 2493/1689 in the 13th row, I don't want to let the value of torque in (if possible) because it is a realistic appearance of the torque curve captured during the sweep of the power of the test.

    Any ideas?

    ready!

  • Created the form based on the table - created new line - how to retrieve line editing?

    Hello

    Sorry for such a stupid question, but being new in APEX, I don't know much about how the end user on a form.

    I have created a new form (not in a table), based on a table.

    I ran the form and created a new line.

    After the line was created, the form comes back ready to create another line (all the values in the fields).

    How can I go on the recovery of the line, I added just to make a few changes?

    Again, please forgive my ignorance.

    Mason

    Masong says:

    Sorry for such a stupid question, but being new in APEX, I don't know much about how the end user on a form.

    Or about how best to use this forum. Always include all the details of your environment and your application when you post a question so that we can provide a solution version - and context, case-specific: How to get the answers from the forum

    I have created a new form (not in a table), based on a table.

    I ran the form and created a new line.

    After the line was created, the form comes back ready to create another line (all the values in the fields).

    How can I go on the recovery of the line, I added just to make a few changes?

    Ensure that the attribute key back to point in the line process of... The ARP process is defined to return the value of PK of records inserted in the element of key primary page and delete any Reset Page clearly session state process created by the wizard page.

  • ADF table: selected Emission line color

    JDeveloper 12.1.3

    There is a very important problem that users are complaining. One of our application page has a table which allows selections. To explain this issue, it matters little whether it is the simple selection table or multi. Basically when the line is selected, the color of the line becomes gray which is ok. However, if the user focuses on an input text box, select the table line becomes pale yellow (almost of the mixtures in the color of the lines not selected) and for many users this causes is not about whether or not the line is selected.

    Is it possible to have only a gray color for the selected lines?

    OK I thought about it. This should be added to the default selection:

    af|table::data-row:selected af|column::data-cell,
    af|table::data-row:selected af|column::banded-data-cell{
        font-weight: bold;
        background-color: red;
    }
    
  • Create button on af:table creates a line empty but made salient ranks

    Hello

    I use jdev 12 c and performed a CRUD operation and found that whenever we click on create button, a new line is created, but the highlight is on another line.

    Is the way that it does or it can be changed because I need to highlight on the empty line created when the click on the button create.

    Thank you

    Abhijit

    CreateInsert operation creates the new line and add it to the collection, and then set this new line as the current line, so it appears as selected (use createInsert)

    For more details - Andrejus Baranovskis Blog: create ADF and operations CreateInsert for ADF Table

    Ashish

Maybe you are looking for

  • Audio books will sync with how long I read in the e-book?

    Kindle ebooks and audiobooks will be synchronized? Will be Apple to do the same thing?

  • XHA1s

    Mode card, my XHA1S shows images perfectly but in scroll mode, only the color bars appear.

  • WMP 11 error c0011b1 - .wmv files no longer play

    I am running XP SP3, which has recently updated to WMP 11.  Can play is no longer the .wmv videos. The error message sent me to a web page with the error C00D11B1 and suggests that the audio drivers are up to date.  No update is available for this co

  • Can I enable disable the Windows Boot Manager?

    My Vista Home Premium 64 has a great deal for a year.  Now, at the start, I get "Windows Boot Manager" (a scary BACK-looking screen) which delays the start-up for 30 seconds, and everything seems to work MUCH more slowly.  I think the problem started

  • AC adapter compatibility

    Hi, I'm not familiar with the intricacies of batteries and charge and whatnot so I was wondering if my charger 135W I normally use for my W510 will work with T61 my wife? Its original adapter does this thing where he makes a sound when you plug it in