I am fairly new to the ADF, and I am trying to figure out how to reset the entire table on "Reset" with af:query Component.
Thank you in advance!
Just add the following line in af:table
<af:column id="c165" align="center" rowHeader="true" width="10" />
Make it as the first column, there will be a small pen when click on , it will clear the filter
Related
Is there any way in acumatica to add a tool tip for a grid column header? I tried adding the tool tip property for the rowtemplate as it is not available for gridcolumn, but doesn't help.
<RowTemplate>
<px:PXDropDown ID="edDocType" runat="server" DataField="DocType" CommitChanges="True" ToolTip="test">
</px:PXDropDown>
</RowTemplate>
The above code works when the grid is in Form View, but how to give it for a column header?
The easiest way to get this is to go to Customization open your grid's column go to Properties turn off Filter find section Header open it and set Tooltip like as in the screen:
As the result you will get such Tooltip for Grids Column
I was using this based on a condition
GridPanelName.ColumnModel.SetHidden([ColumnIndex], true)
while I was working on something else, I noticed that when I click on the sorting menu arrow on a column header, under the columns I can put a tick next to the "hidden" column and it becomes visible again.
Is there a way for not showing columns except hidden, someway a curious user can not walk around ?
Try this on client side:
<ext:Column ID="ColumnID" runat="server" Text="ID" DataIndex="ID" Width="100" Visible="false" />
Hope someone can help me out with this.
The issue is as follows:
I have a datatable that displays user variables. One of the columns on the table is grouped to show the variable type in one cell for all the variables that share the same type, which can be many, and since there could be so many I enabled datatable pagination.
However, the issue comes when the variables of a said type exceed the rows per page number and are splitted among various pages. In that case, when I navigate to the next page, the information meant to be in the grouped column is lost and the data from the other columns is moved one column to the left, therefore showing an incorrect column-value relationship (the last column of the table therefore left blank).
Here is the code for my datatable and grouped column
<ace:dataTable value="#{bean.variables}" paginator="true" filterEvent="enter" selectionMode="single" id="variableTable" rowSelectListener="#{bean.showVariable}" var="variable" rows="10" paginatorPosition="bottom" >
<ace:column groupBy="#{variable.type}" headerText="#{basicBundleBase.type}">
<h:outputText value="#{variable.type}" />
</ace:column>
<ace:column groupOn="#{variable.name}" headerText="#{basicBundleBase.name}">
<h:outputText value="#{variable.name}" />
</ace:column>
<ace:column headerText="#{basicBundleBase.description}">
<h:outputText value="#{variable.description}" />
</ace:column>
I've searched a lot around but haven't got any clue on how to solve this; checked on ace:column and ace:dataTable tags but just can't seem to figure out how to make it work. That's why I came here to ask for some help.
Hope someone can give me a hand with this issue!
Thanks in advance for your help and time!
Cheers
Tsuru
I am using an extendedDataTable from Richfaces 4. I want to show a detail-page for the element in a row when the user clicks it. Therefore I have added something like
onrowclick="showDetails(#{item.id})"
to the table. This triggers a corresponding <a4j:jsFunction/> tag. This is working so far.
However, one of the columns has a commandLink in it (for switching to an edit-view of the details). The link works in webkit-based browsers (Chrome/Safari). But IE and firefox only execute the onclick on the row. The commandlink doesn't work there.
Is it somehow possible to only set an oncolumnclick or the columns, that do not contain the commandlink? I havn't found a way to add an onclick-handler to specific columns (I am using rich:column for the columns.)
Or is there a better/cleaner/nicer way to achive the "click somewhere in the row to show details, click the link in the last column to show the edit view"-behaviour I am after?
Try putting this in your commandButton
onclick="Event.stop(event||window.event)"
My current workaround HACK is to not use the onrowclick but add a styleClass="clickable" to all my columns except the one with the link. In the first column, I added the following:
<h:outputText value="#{item.id}" style="display: none;" styleClass="id"/>
Then after the table I use the following jQuery:
<rich:jQuery selector=".myTable td.clickable" query="live('click', function(event) {
showDetails($(this).parent().children().children('.id').text());
});"/>
I really don't like this solution, but it is working fine so far.
I am still open for better solutions though :)
<h:dataTable width="100%" border="1" cellspacing="0"
cellpadding="2" style="border-collapse:collapse;display:block"
styleClass="Header" value="#{adminBean.displayResults}"
var="aResult" binding="#{adminBean.browseResultsHTMLDataTable}">
This is what i am trying to do. I have a dynamic list of data, which i try to display in the HTML Table format using h:dataTable (the bounded value is an arrayList). The table has got a radio button for each row it displays (boolean w/ h:selectOneRadio ) now when i select the radio button in one of these rows, i want to get the values of the row that is selected for which i try to use binding attribute. But i get Row Unavailable exception - is my approach wrong? any suggestions?
Selecting rows by radio button in a datatable is a tricky task since the radio buttons aren't grouped. Long story short: Select row by radio button.
I think you can use <t:selectOneRadio> with layout="spread" and then <t:radio> on each row.