TableView Clickable Column
Hi,
I have a TableView with 4 columns. Column 1 is clickable, when I move the mouse over this column the hand shows up, and on clicking the column it calls the appropriate event associated.
I would like to make the values in this column show up as a hyperlink, indicating the column to be Clickable.
When I do <a href=''> Value </a>, in my cell renderer. The resulting Tableview Clickable column shows up as a hyperlink.
When I click on this hyperlink, it gives me a runtime error.
Is it possible to click the hyperlink, to go to the appropriate event associated to the column.
Any advice would be appreciated.
Thank you.
NAC
Hi Neville,
this is how you create a htmlb link object.
Link test = new Link("test");
test.addText("prakash");
test.setOnClick("onClick");
Similar Messages
-
TableView - alterable column entries (edit)
Hello,
I have the following TableView:
< code>
<htmlb:tableView id ="decisiontab"
visibleRowCount = "15"
headerText = "Decision View"
headerVisible = "true"
design = "alternating"
fillUpEmptyRows = "true"
onHeaderClick = "MyEventHeaderClick"
onRowSelection = "MyEventRowSelection"
keyColumn = "zmoppid"
table = "<%= zomopporttab %>"
iterator = "<%= iterator %>"
selectionMode = "MULTILINEEDIT" >
</htmlb:tableView>
<%-- Drucktasten --%>
<htmlb:button id = "save"
text = "<b>Save</b>"
encode = "FALSE"
onClick = "myButtonSave" />
< /code>
The iterator produce a TableView underit the following two columns:
GET_COLUMN_DEFINITION:
< code>
append initial line to p_column_definitions assigning <def>.
<def>-columnname = 'ZMDECIFLAG'.
<def>-title = 'Decision'.
<def>-edit = 'X'.
<def>-HORIZONTALALIGNMENT = 'center'.
append initial line to p_column_definitions assigning <def>.
<def>-columnname = 'DECI_IMAGE'.
<def>-title = 'Image'.
< /code>
RENDER_CELL_START:
< code>
case P_COLUMN_KEY.
when 'ZMDECIFLAG'.
if M_ROW_REF->ZMDECIFLAG is initial.
P_REPLACEMENT_BEE = CL_HTMLB_CHECKBOX=>FACTORY( ID = P_CELL_ID
CHECKED = 'FALSE' ).
else.
P_REPLACEMENT_BEE = CL_HTMLB_CHECKBOX=>FACTORY(
ID = P_CELL_ID CHECKED = 'TRUE' ).
endif.
when 'DECI_IMAGE'.
data: ICON type STRING.
if M_ROW_REF->ZMDECIFLAG is initial.
ICON = CL_BSP_MIMES=>SAP_ICON( ID = 'ICON_LED_RED' ).
else.
ICON = CL_BSP_MIMES=>SAP_ICON( ID = 'ICON_LED_GREEN' ).
endif.
P_REPLACEMENT_BEE = CL_HTMLB_IMAGE=>FACTORY( ID = P_CELL_ID
SRC = ICON ).
endcase.
< /code>
I would like to reach the following:
The user changes the condition of the check box (marked/ not marked) in several lines and presses then the save button. Without selecting the lines before!
1.
Is a Tableview with multieditselect correct?
And how can I query the Event?
2. (beautiful would be also)
How can I reach it that when changing the condition of the checkbox (marked/unmarked) also the Icon changes.
Does anybody know about this problem.
Thanks for any advice or path for more information.
Kind Regards
PetraSo Petra I guess a SP upgrade is in order.
You could also try this code but I think you'll have the same problem due to the SP level.
<i><b>OnInputProcessing</b></i>
CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
DATA: tv type ref to CL_HTMLB_TABLEVIEW,
event type ref to CL_HTMLB_EVENT,
table_event type ref to CL_HTMLB_EVENT_TABLEVIEW.
field-symbols <i> like line of selectedRowIndexTable.
tv ?= CL_HTMLB_MANAGER=>GET_DATA( request = request
name = 'tableView'
id = 'tvX' ).
IF tv IS NOT INITIAL.
table_event = tv->data.
clear selectedRowIndexTable.
selectedRowIndexTable = table_event->PREVSELECTEDROWINDEXTABLE.
if table_event->event_type eq CL_HTMLB_EVENT_TABLEVIEW=>CO_ROW_SELECTION.
read table selectedRowIndexTable with key table_line = table_event->ROW_INDEX
transporting no fields.
if sy-subrc eq 0.
delete selectedRowIndexTable index sy-tabix.
else.
append initial line to selectedRowIndexTable assigning <i>.
<i> = table_event->ROW_INDEX.
endif.
endif.
ENDIF.
<i><b>OnCreate</b></i>
select * from sflight into corresponding fields of table sflight.
field-symbols <i> like line of selectedRowIndexTable.
append initial line to selectedRowIndexTable assigning <i>.
<i> = 1.
append initial line to selectedRowIndexTable assigning <i>.
<i> = 3.
append initial line to selectedRowIndexTable assigning <i>.
<i> = 4.
<i><b>Layout</b></i>
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<%@extension name="xhtmlb" prefix="xhtmlb" %>
<htmlb:content id="content" design="design2002+design2003" >
<htmlb:page>
<htmlb:form>
<xhtmlb:protectDoubleSubmit timer="1" />
<htmlb:group>
<htmlb:groupHeader>
<htmlb:textView text="SFLIGHT Table: MULTILINEEDIT" />
</htmlb:groupHeader>
<htmlb:groupBody>
<htmlb:tableView id = "tvX"
width = "100%"
visibleRowCount = "8"
selectedRowIndexTable = "<%= selectedRowIndexTable %>"
onRowSelection = "MyEventRowSelection"
selectionMode = "MULTILINEEDIT"
filter = "server"
sort = "server"
table = "<%= sflight %>" />
</htmlb:groupBody>
</htmlb:group>
</htmlb:form>
</htmlb:page>
</htmlb:content>
That's the example in <b>SBSPEXT_TABLE</b>, <i>TableViewMultiLineEdit.bsp</i> -
Tableview - Freeze column headers
Dear experts,
Working with a BSP page to display a very big tableusing tableview. Currently the header scrolls out of visible area when user scrolls down the table. Is there a way to freeze the column headers?
SRHi Srini,
Welcome to S.D.N.
Well there is one way of doing it that i know of is using StyleSheets...
Refer to <a href="http://web.tampabay.rr.com/bmerkey/examples/locked-column-csv.html">http://web.tampabay.rr.com/bmerkey/examples/locked-column-csv.html</a>.
Also refer to <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/4e/7feef553415e4fb357e80f7a6223b1/frameset.htm">Setting stylesheets- SAP Help</a>
Hope this helps..
<b><i>Do reward each useful answer..!</i></b>
Thanks,
Tatvagna. -
TableView nested columns binding with nested objects
Let's suppose i have an object like this
class Person {
SimpleStringProperty name;
SimpleStringProperty surname;
SimpleObjectProperty<Address> address;
class Address {
SimpleStringProperty client;
SimpleStringProperty address;
SimpleIntegerProperty number;
}is there a way to bind a TableView<Person> in order to have a column and nested column for the object Address ?
/* First name column */
TableColumn firstNameCol = new TableColumn("First Name");
firstNameCol.setCellValueFactory(new PropertyValueFactory<Person, String>("name"));
/* Last name column */
TableColumn lastNameCol = new TableColumn("Last Name");
lastNameCol.setCellValueFactory(new PropertyValueFactory<Person, String>("surname"));
/* Address main column */
TableColumn addressCol = new TableColumn("Address Informations");
addressCol.setCellValueFactory(new PropertyValueFactory<Person, Address>("address"));
/* Client nestedcolumn */
TableColumn clientCol = new TableColumn("Client");
clientCol.setCellValueFactory(new PropertyValueFactory<Address, String>("client"));
/* Address nested column */
TableColumn addrCol = new TableColumn("Address");
addrCol .setCellValueFactory(new PropertyValueFactory<Address, String>("address"));
/* Number nested column */
TableColumn numberCol = new TableColumn("Number");
numberCol .setCellValueFactory(new PropertyValueFactory<Address, Integer>("number"));
addressCol.getColumns().addAll(clientCol, addrCol , numberCol );
getColumns().addAll(firstNameCol, lastNameCol, addressCol);of course i tried this and doesn't work..Hey,
Looks a good question!
Welh, even if I didn't try.. I suppose you could look in this direction:
I would try to pass the hole object 'Address' to the different TableColumns 'client', 'address' and 'number'.
clientCol.setCellValueFactory(new PropertyValueFactory<Person, Address>("address"));
addrCol.setCellValueFactory(new PropertyValueFactory<Person, Address>("address"));
numberCol.setCellValueFactory(new PropertyValueFactory<Person, Address>("address"));Then create your own CellFactories for every TableColumn.
Link it this way.
clientCol.setCellFactory(myCustomCellFactory);Your CellFactory should look like this:
public class myCustomCellFactory extends TableCell<Object, Address> {
//constructor
public myCustomCellFactory() {
//methods
@Override
public void startEdit() {
@Override
public void updateItem(Address oAddress, boolean empty) {
super.updateItem(item, empty);
if (!isEmpty()) {
setText(oAddress.getClient());
}I'm not sure this example works, I've coded it here..
Hope it helps..
Edited by: FXdude on 17-jan-2013 6:55 -
HTML Tableview - Adding Column?
Hi, I have an HTMLB table I created and it's being populated by my internal table. I would like to add another column to the HTMLB tableview that will be populated with an ICON status based on one of the internal table field values. So if the "Status" field in my internal table is "G" I want to populate the ICON status column with the green traffic light icon.
Any ideas on the best way to do this?
Thanks!hello kenneth,
try tableview iterator. look at:
http://help.sap.com/saphelp_47x200/helpdata/de/f7/faec246c2d184191bea02f703fc830/frameset.htm - german
http://help.sap.com/saphelp_47x200/helpdata/en/f7/faec246c2d184191bea02f703fc830/frameset.htm - english
or search here for some weblogs. hope that will help
kind regards
daniel -
Freeze the column headers for htmlb:tableView using CSS
Hi
I am using a <htmlb:tableView > in BSP to display data.
i want to freeze the column headers so that they dont scroll when table data is scrolled.
Is it possible ?
Regards
RajendraHi Rajendra,
Have a look at the links below:
[Freeze tableview header-I|https://forums.sdn.sap.com/click.jspa?searchID=24813847&messageID=3088768]
[Freeze tableview header-II|Freeze table header in HTMLB Tableview]
[Freeze Columns of tableview|https://forums.sdn.sap.com/click.jspa?searchID=24813847&messageID=3517748]
Search the forum and you will find information on this.
Regards,
Anubhav -
TableView column headers do not line up with rows
Right now I have a tableview with column headers that are wider than the cells in the rows of the table.
Anyone know what property or css style I need to adjust to give the cells a little more padding? I have not had any luck searching the web or these forums.
Edited by: astep on Feb 26, 2013 6:59 AMSorry it took me a little bit to strip things down and create the project. I used NetBeans to reproduce the effect and I tried to follow the same pattern in case it had a side effect. Sorry there is so much code here for such a simple demo. I'm going to play around with it some to see if removing some of the css eliminates the effect.
Sample.fxml
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane fx:id="ConstraintsAnchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="460.0" prefWidth="480.0" style="-fx-background-color:black" xmlns:fx="http://javafx.com/fxml" fx:controller="testtableview.SampleController">
<children>
<TitledPane fx:id="ConstraintsTitlePane" alignment="CENTER" animated="false" collapsible="false" contentDisplay="CENTER" opacity="0.75" text="Constraints by Stream Class">
<content>
<TableView fx:id="constraintsTableView" prefHeight="445.0" prefWidth="480.0" />
</content>
</TitledPane>
</children>
</AnchorPane>stylesheet.css
.root {
-fx-base: rgb(50, 50, 50);
-fx-background: rgb(50, 50, 50);
-fx-control-inner-background: rgb(50, 50, 50);
.table-view {
-fx-table-cell-border-color:derive(-fx-base,+10%);
-fx-table-header-border-color:derive(-fx-base,+20%);
.text-field{
-fx-prompt-text-fill: White;
.table-cell {
-fx-border-color: black;
.table-cell:hover {
-fx-background: DimGray;
-fx-background-color: DimGray;
.table-cell:selected {
-fx-background: DimGray;
-fx-background-color: DimGray;
.table-row-cell {
-fx-border-color: black;
-fx-control-inner-background: black;
.table-row-cell:hover {
-fx-background: DimGray;
-fx-background-color: DimGray;
.table-row-cell:selected {
-fx-background: DimGray;
-fx-background-color: DimGray;
}TestTableView.java
package testtableview;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class TestTableView extends Application {
@Override
public void start(Stage stage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("Sample.fxml"));
Scene scene = new Scene(root);
stage.setScene(scene);
scene.getStylesheets().add(TestTableView.class.getResource("stylesheet.css").toExternalForm());
stage.show();
public static void main(String[] args) {
launch(args);
}Model.java
package testtableview;
import javafx.beans.property.SimpleStringProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
public class Model {
private static Constraint temp = new Constraint();
private static Model instance = null;
private Model() {
public static Model getInstance() {
if (instance == null) {
instance = new Model();
constraintsList.add(temp);
return instance;
private static ObservableList<Constraint> constraintsList = FXCollections
.observableArrayList();
public ObservableList<Constraint> getConstraintsList() {
return constraintsList;
public static class Constraint {
private SimpleStringProperty ColumnOne = null;
private SimpleStringProperty ColumnTwo = null;
private SimpleStringProperty ColumnThree = null;
private SimpleStringProperty ColumnFour = null;
private SimpleStringProperty ColumnFive = null;
private SimpleStringProperty ColumnSix = null;
private SimpleStringProperty ColumnSeven = null;
public String getColumnOne() {
return ColumnOne.get();
public void setColumnOne(String input) {
ColumnOne.set(input);
public String getColumnTwo() {
return ColumnTwo.get();
public void setColumnTwo(String input) {
ColumnTwo.set(input);
public String getColumnThree() {
return ColumnThree.get();
public void setColumnThree(String input) {
ColumnThree.set(input);
public String getColumnFour() {
return ColumnFour.get();
public void setColumnFour(String input) {
ColumnFour.set(input);
public String getColumnFive() {
return ColumnFive.get();
public void setColumnFive(String input) {
ColumnFive.set(input);
public String getColumnSix() {
return ColumnSix.get();
public void setColumnSix(String input) {
ColumnSix.set(input);
public String getColumnSeven() {
return ColumnSeven.get();
public void setColumnSeven(String input) {
ColumnSeven.set(input);
public Constraint() {
this.ColumnOne = new SimpleStringProperty("");
this.ColumnTwo = new SimpleStringProperty("");
this.ColumnThree = new SimpleStringProperty("");
this.ColumnFour = new SimpleStringProperty("");
this.ColumnFive = new SimpleStringProperty("");
this.ColumnSix = new SimpleStringProperty("");
this.ColumnSeven = new SimpleStringProperty("");
}ConstraintsTableViewModel.java
package testtableview;
import testtableview.Model.Constraint;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.control.cell.PropertyValueFactory;
public class ConstraintsTableViewModel {
private static TableView<Constraint> table = new TableView<Constraint>();
private static ObservableList<TableColumn<Constraint, String>> columnList = FXCollections
.observableArrayList();
public static TableView<Constraint> setupView() {
TableColumn<Constraint, String> ColumnOneCol = new TableColumn<Constraint, String>("Example Exam1");
ColumnOneCol.setMinWidth(95.0);
ColumnOneCol.setCellValueFactory(new PropertyValueFactory<Constraint, String>("ColumnOne"));
columnList.add(ColumnOneCol);
TableColumn<Constraint, String> ColumnTwoCol = new TableColumn<Constraint, String>("Example 2");
ColumnTwoCol.setMinWidth(55.0);
ColumnTwoCol.setCellValueFactory(new PropertyValueFactory<Constraint, String>("ColumnTwo"));
columnList.add(ColumnTwoCol);
TableColumn<Constraint, String> ColumnThreeCol = new TableColumn<Constraint, String>("Example3");
ColumnThreeCol.setCellValueFactory(new PropertyValueFactory<Constraint, String>("ColumnThree"));
ColumnThreeCol.setMinWidth(70);
columnList.add(ColumnThreeCol);
TableColumn<Constraint, String> ColumnFourCol = new TableColumn<Constraint, String>("Example4");
ColumnFourCol.setMinWidth(60.0);
ColumnFourCol.setCellValueFactory(new PropertyValueFactory<Constraint, String>("ColumnFour"));
columnList.add(ColumnFourCol);
TableColumn<Constraint, String> ColumnFiveCol = new TableColumn<Constraint, String>("Example5");
ColumnFiveCol.setMinWidth(60.0);
ColumnFiveCol.setCellValueFactory(new PropertyValueFactory<Constraint, String>("ColumnFive"));
columnList.add(ColumnFiveCol);
TableColumn<Constraint, String> ColumnSixCol = new TableColumn<Constraint, String>("Example6");
ColumnSixCol.setCellValueFactory(new PropertyValueFactory<Constraint, String>("ColumnSix"));
ColumnSixCol.setMinWidth(55);
columnList.add(ColumnSixCol);
TableColumn<Constraint, String> ColumnSevenCol = new TableColumn<Constraint, String>("Exam7");
ColumnSevenCol.setCellValueFactory(new PropertyValueFactory<Constraint, String>("ColumnSeven"));
ColumnSevenCol.setMinWidth(55);
columnList.add(ColumnSevenCol);
table.getColumns().addAll(columnList);
return table;
}SampleController.java
package testtableview;
import testtableview.Model.Constraint;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.TableView;
public class SampleController implements Initializable {
@FXML
private TableView<Constraint> constraintsTableView;
private Model cm = null;
@Override
public void initialize(URL url, ResourceBundle rb) {
cm = Model.getInstance();
constraintsTableView.setItems(cm.getConstraintsList());
constraintsTableView.getColumns().addAll(ConstraintsTableViewModel.setupView().getColumns());
} -
Getting filtered values from TableView
Hi,
We have a TableView whose columns can be sorted. Iwant to select a few rows and make the selected rows editable in another page.
If it is a unsorted/unfiltered TableView, am able to do it as the ABAP Internal Table and the TableView are the same in terms of record index positions. But am facing problem after i sort/filter the TableView because now the index of the TableView are different from the index of the ABAP Internal Table present in server.
Anybody who has dealt with this problem earlier and can guide us.
Thanks,
Chathia.Welcome to SDN.
Search the forum before you post a question, generally in mose cases you would find a answer, if not you can post a new thread.
here is a list of threads where your question was discussed. (as others mentioned its about using keyColumn attribute of htmlb:tableview)
check out these threads, its got code samples as well.
Re: HTMLB Tableview: questions..;
Re: pic actual data from a table view
Re: Error when using Filter and Sort together on a tableview
Re: Change rendering of the title column...
Have a great time in SDN.
Regards
Raja -
Setup a list-view in more columns
Hi,
my aim is a view of listet objects ranged in several columns. The objects should not be shown in blocks separated in different pages. They should be expanded like the list view of the Windows-Explorer. So when growing up it should expand to the right hand side (and being scrollable to the right hand side) and not downwards.
I've found no way to realize ist in NetWeaver 04.
Using the elements like Collection Renderer, Resource Renderer and Layout Controller I haven't found a potentiality to implement this.
Regards
Janko M.Also check out these weblogs they go into details on example of the Iterator.
/people/thomas.jung3/blog/2004/09/15/bsp-150-a-developer146s-journal-part-xi--table-view-iterators
/people/sap.user72/blog/2004/09/07/bsp-howto-exploring-bsp-development-and-the-miniwas-620
/people/sap.user72/blog/2004/08/27/bsp-howto-tableview-iterator--column-header-graphics
/people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
Basically what <b>Ariel</b> will <i><b>solve your problem</b></i>. -
Column.setCellHAlignment(-1,CellHAlign.RIGHT) no longer working
In the 6.20 version of EP6, I was able to successfully right-align the contents of a cell of a tableview using:
column.setCellHAlignment(-1,CellHAlign.RIGHT)
here is the version info of that EP6 environment in which it worked perfectly fine:
version=6.0.2.3.0
Specification-Vendor=SAP AG
Implementation-Version=6.2.0.3.200402020639
Make-Release=60_SP2_REL
But we recently installed a new version of the portal, 6.40 and the exact same iview with the exact same code to set the alignment is no longer working. instead, the contents are all left-aligned (the default). Here is the version info of the EP in which setCellHAlign is no longer working:
J2EE Engine 6.40 PatchLevel 84589.313
Portal 6.4.0.0.200409141512
Is anyone else experiencing this or is there some fix?
Thx,
mMJust what are you/the iPod doing when you get the server message?
-
Tableview Cell - setting the font and background colors
Hi,
I am developing a BSP with a Tableview. The user asked me about displaying a row with a diferent color (font or background) when some data changes on this table.
I am thinking about using a Tableview Iterator to evaluate the content of a cell... but I dont know if I can change the look and feel of the row on where this cell is.
Has someone dealed with this? Can you tell me how?
thanks
ArielActually this is the whole purpose of the Iterator.
I would suggest you take a look at the SBSEXT_HTMLB and SBSEXT_TABLE BSP Application as well as the following weblogs.
/people/thomas.jung3/blog/2004/09/15/bsp-150-a-developer146s-journal-part-xi--table-view-iterators
/people/sap.user72/blog/2004/09/07/bsp-howto-exploring-bsp-development-and-the-miniwas-620
/people/sap.user72/blog/2004/08/27/bsp-howto-tableview-iterator--column-header-graphics
/people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
In those examples you'll see how easy it is to alter the content of the current cell or a cell with a specific value and output anything from graphics to input fields or dropdown boxes or even just change the text, color and styles of the content. -
Bug - iTunes 5 - Postcasts - Sorting columns doesn't work
Podcast columns in iTunes 5.0 (34) do not sort. The only clickable column is release date, and nothing changes except for the arrow. Would be nice if the other columns were sortable as well.
Hello,
This is the normal behaviour documented here :
http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwcontxt/props/pi_col_break_order.htm
Restrictions
Break Order has no effect on columns that belong to the lowest group of a particular query.
Break Order only affects columns in groups that are above the lowest child group of a query.
You have to add an "ORDER BY" in the SQL query in order to sort the columns belonging to the "lowest group"
Regards -
Showing Icons in the table view column
I am using a tableview.
In that tableview first column, i want to display the status as icon_green_light, icon_red_light like that as an icon.
I am having these status values in my table...
when i am assigning that itab to this tableview it is showing the text icon_green_light instead of showing the icon...
please help me.check out this weblog
/people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator -
BSP - TableView overwritten by input fields in same page
Hi everybody!
We try to implement a page with a tableview, loading datas in the onCreate with a CallFunction, and then looping on itself to modify the datas before saving in a cookie:
OnCreate
OnInitialize <--
Layout |
Processing -
The tableView is displaying a table "T".
There is an input field "F" in the table.
We have a "reset to 0" button in the page affecting the field F of table T.
The reset is done in OnInputProcessing.
Problem : when reseting, the TableView displays the input field value, and not 0. Yet, when debugging, I can see that T contains 0, in the Layout execution.
So I guess the page input fields are overwritting the table of the tableView.
Thanks a lot in advance, best regards
FrançoisThanks a lot for your reply
This is what happens more in details:
In my page, I have a table with a modifiable column, that maybe I want to reset:
Let's suppose I have typed "1" in many rows, but aftewards, I want to reset to 0.
Layout:
<htmlb:groupBody>
<%-- TableView with columns description table --%>
<htmlb:tableView id = "tvX"
table = "<%= requisition %>"
design = "ALTERNATING"
headerVisible = "TRUE"
keepSelectedRow = "TRUE"
visibleRowCount = "15"
fillUpEmptyRows = "true"
onHeaderClick = "MyEventHeaderClick"
onRowSelection = "MyEventRowSelection"
selectionMode = "LINEEDIT"
width = "100%"
iterator = "<%= tv_iterator %>" >
<htmlb:tableViewColumns>
<htmlb:tableViewColumn columnName = "BANFN"
title = "N° Demande d'achat"
sort = "true" >
</htmlb:tableViewColumn>
<htmlb:tableViewColumn columnName = "MENGE_VAL"
title = "Quantité modifiée"
type = "INPUT" >
<htmlb:button id = "init"
text = "Init"
onClick = "onInputProcessing(init)" />
OnInputProcessing :
Nothing (so when clicking on "Init", we come back on the same page into OnInitialization)
OnInitialization:
loop at requisition into wa_requisition.
wa_requisition-menge_val = 0.
modify requisition from wa_requisition.
endloop.
The page still displays the "1" whereas I see "0" in debug in the Layout.
I suppose the tableView is displayed not only from the table "requisition" but from a table corresponding to the inputs in page, which is initialized in the OnCreate part, but not in the On Initialization.
The iterator is the standard one.
Do you have an idea?
Best regards -
Can clicking on column heading sort the column contents instead of drill in
I have a pivot table with data that the client doesn't want to drill into. Instead, they want to be able to click the column heading and have the pivot table re-sort the data in the table based on the data in that column. Is that possible, or are clickable column headings only used for drilling in OBIEE? Thanks.
Madan -
That seems like a feature that should be added to the Pivot Table view if they are going to have it in the Table View. Still, thanks for pointing out the "Enable column sorting in Dashboards" check box in the Table view. I'll see if I can either get this data into the Table view, or at least let the client know the limitations of OBIEE.
Thanks again.
Daniel
Maybe you are looking for
-
Out of the blue the game centre asks me to sign in all of a sudden when I started one of my games. I sign in with my Apple ID as usual it logs me in but with some weird game centre nickname which is a bunch of random characters and not mine. All my g
-
Omit characters in sql loader control file
How can I omit the characters "-" and "?" in the following control file without altering BEGINDATA part? LOAD DATA INTO TABLE CUSTOMER FILEDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' (CUST_ID, CUST_FIRST, CUST_LAST, CUST_ADD, ORDER_DATE BEGINDATA
-
I just purchased a new iMac yesterday. I have been downloading WoW with the Blizzard Launcher, I can see the Apple Title Bar on the Launcher Window (3 little circles and white bar). However I can't see the Blizzard Menu Bar, is there a way to recover
-
Using apex.navigation.popup in IE loses parent location
When I use this function to open a popup window it works fine in Safari/Chrome etc, the popup works and the parent window remains the same. However, in IE, the popup happens, but the parent goes to a blank screen with [object] displayed in the top le
-
FEATURE REQUEST: Rearrangeable Finder sidebar categories in Leopard
I've been searching high and low for information on rearranging the categories in Leopard's Finder sidebar, and I've yet to see anything indicating this is possible. In my digging, I've discovered that you can completely remove categories by un-check