SetMax() setVisibleAmount() of Table view's scrollbar are reset
Hi,
I have a table view which contains 166 rows of data. I want the table view's scroller to show only 15 rows.
Basically, I've set scroller's properties like this: setMax(166) and setVisibleAmount(15)
Unfortunately, it seems the properties previously set are later reset when displaying the table view ... Actually, I've added a listener to the scroller's value property and found out that the value's range is always between 0 and 1 and also the scroller shows more than the visible amount I had set. Normally, the value range should be between 0 and 166 and the table view should only show 15 rows. Am I right??
Basically I've created a customTableView which extends TableView and add a listener to the skin in the contructor
Here is a portion of my CustomTableView constructor, whichs
1) Get a reference of the scrollbar from the table view skin.
2) Add listener to the scroller's value property.
3) Set properties max, visibleAmount, width and height
skinProperty().addListener(new ChangeListener<Skin>()
public void changed(ObservableValue<? extends Skin> pObservable, Skin pOldValue, Skin pNewValue)
// get vitual flow node
if (scbVertical == null)
ObservableList<Node> ovlChildren = ((SkinBase)pNewValue).getChildren();
Node node;
for (int i = 0, anz = ovlChildren.size(); i < anz && flow == null; i++)
node = ovlChildren.get(i);
if (node instanceof VirtualFlow)
flow = (VirtualFlow)node;
// get scroller reference
if (flow != null)
ovlChildren =flow.getChildrenUnmodifiable();
for (int i = 0, anz = ovlChildren.size(); i < anz && scbVertical == null; i++)
node = ovlChildren.get(i);
if (node instanceof ScrollBar && ((ScrollBar)node).getOrientation() == Orientation.VERTICAL)
scbVertical = (ScrollBar)node;
//add listener to scroller value
if (scbVertical != null)
scbVertical.setPrefSize(width, rowHeight*rowCount);
scbVertical.setMaxSize(width, rowHeight*rowCount);
scbVertical.setVisibleAmount(rowCount); //15
scbVertical.setMax(getItems().size()); //166
scbVertical.valueProperty().addListener(new ChangeListener()
public void changed(ObservableValue ov, Object oldValue, Object newValue)
System.out.println("max:"+scbVertical.getMax() +" scroll: " + scbVertical.getValue());
}So my question is why setMax() and setVisibleAmount() are not taken into account()???
Edited by: 989568 on 17-Mar-2013 14:00
You may wish to go to the developer forums where you signed up for the SDK. This is the forum for users of the phone to help use the phone.
Similar Messages
-
Unable to create visual composer table view from the Bex Query
Hi
I am trying to create the visual composer lay out from a Bex query. The Bex query contains a set of Key figures and a structure.
These key figure and structure combination is forming a table in the query output. Key figure parameters are coming as rows and Structure parameters are coming as columns.
example query out put:
Total, HPC, FDS excel ICe etc are as Structure elements and coming as columns in query out put and
Invoice value, Gross sale value, Efficient operations etc are as Key figure elements in query and coming as rows in query out put.
But if I map this query to visual composer table view all these are coming as columns as given below.
Total Invoice value , Total Gross sale value, Total Efficient operations, HPC Invoice vale,.........
And if execute the query will giving the out put in single row.
Can anybody help me out to map this in the row column format?
Is it really possible to do in VC?
I am using CE 7.2. The VC model I need to be embedding in BPM.
Please help me to solve this issue. I completely stuck up this issue.
Regards
Sajith P
Edited by: Sajith P on Aug 17, 2010 3:07 PM
Edited by: Sajith P on Aug 17, 2010 3:15 PMHi,
Try to use some function module which will convert query data into flat tables. (eg., RS_VC_GET_QUERY_VIEW_DATA_FLAT).
Hope this solves your issue.
Regards,
Vinay -
Editing scroll view frame size in IB causes table view to change
I suppose this is a continuation of the problems I was having with the table view resizing: http://discussions.apple.com/thread.jspa?threadID=2618816&tstart=0.
I have a controller which needs to have a scroll view with numerous elements attached to it, including a table view.
I have performed the following steps:
- Set the simulated interface elements of the owning view to a nav bar.
- Added a scroll view to the main view in the nib file.
- Set the file owner view controller subclass' view to the scroll view.
- Set the contentSize of the scroll view to the desired size in viewDidLoad.
The problem is that the table view size/position are incorrect when I load the view in the iPhone simulator if I change the scroll view's frame size from 320x460. Basically, every time the scroll view frame size is changed, it causes the scroll view position and size to change.
However, there are times I want to make the scroll view's frame size bigger in order to edit items that might be offscreen when the application is first loaded, which becomes awkward if the size of the view in IB or in code without causing the table view size/position to change. I keep having to change the size of the scroll view frame, edit the items, change it back to 320x460, and then fix the table view.
Is there a way around this, such as a way to locking the size of a table?Hi Kaspars,
I would say there is atm no possibility to change the table view size dynamicly, because you can't input a formula into the size field so the size is fixed as you enter it.
Best Regards,
Marcel -
Not showing tables, views, ... in vs2010
Hi,
I installed ODP.net + ODT (11i) for use with vs2010 & oracle 10.02.0010 (to be upgraded to oracle 11).
The product installed just fine, I can connect to the database using ODP and ODBC.
However, when connecting with ODP in vs2010 I can't see any tables, views or stored procedures (can't see anything really). When using ODBC, everything works: I see all the tables, views etc that are in the database, and I can query them.
I also tried to execute a query using the ODP.net, and it gave me: ORA-00942: table or view does not exist.
I did a search on the forums, but none of the solutions provided, changed anything for me.
Does anyone have any ideas?
Edited by: user13493229 on 18-mei-2011 11:05Hi,
First of all, make sure you see "ODP.NET" in the connection dialog on Server Explorer.
Next, check the "Filters" tab of the connection dialog. By default we block public synonyms and schema objects that you do not own.
If you still can't see objects, then most likely your DBA has not given you enough privileges to use these tools.
Try looking at the advice I gave in the following thread explaining how to turn on ODP.NET tracing. First look to see the SQL involved in the ORA-942.
Then look at the other SQL we issue and see why you are not able to get any rows from it.
vs2010 ORA-00942 table or view does not exist -
Data are not transfered to a table view using signal out
Hi all,
we have recently upgraded to SP16 and I'm now facing a problem on my model that worked fine when we were on SP15.
I have a data service returning data to my model. The data are transfered to a signal out element and then displayed into a table view using a signal in element. Now the table view remains empty.
I have checked that the dataservice returns data because if I directly connect my table view with the dataservice the data are displayed. But my requirement is to use signal in/out elements.
This error was not appearing in SP15.
Any ideas?
Regards
PanosAfter doing some tests I found out that if you have a model that has more than 2 signals in/out then the 3rd one will not work. This is definitely a bug.
Hope that soon there will be a SP without any new bugs! -
What are the tables/view used to Compute Dependecies Report
Hi,
what are the tables/views we have in APEX, which is used to create the Compute Dependecies Report
Home -> Application xxxxx > Application Reports > Shared Components > Database Object Dependencies
thanks,
DeepakHi Scott,
thanks for the quick response.
So my question is then...
I want to create a APEX Report which will give me the following information.
1. Application and all the Pages associated with it, which I am getting from apex_applications and
apex_application_pages. This is OK
2. List of all the Database Objects (Table/View) which the individual page is using, I mean relation between Page ID and database object. HOW to get that???.....(I want for each individual page, the list all the database objects (tables/views), which that page is using)
Thanks,
Deepak -
Are there seeded tables/views of DBI dimension objects in Oracle EBS?
Hi!
I wish to create custom Existing Source dimension objects but wish first to see exactly what is the table's structure (columns, width, data type). Are there seeded tables/views available in Oracle EBS?
Thanks.Try https://etrm.oracle.com - search for "DBI"
-
There was one other thread from years ago detailing this same problem. The only clue was to check whether select all privs were enabled for the user on dba_objects. They are for the user accessing the system. In fact, all tables/views/procs/funcs can be viewed in the tree view of DBVisualizer. For whatever reason, OSD does not show anything.
I'd appreciate any clues! Thank you!
OSD Version Version 4.1.0.18
OS: Windows 7/64
Java: 1.8.0
Connecting to Oracle 11g 11.2.0.3.0Thank you, Gary.
I updated the post with the version info. I did not explicitly install this JDBC driver, so whatever the OSD came with? Unless it is using whatever is installed on my machine, in which case would be the thin driver.
I did check out that post, and I appreciate you sharing it. I did click the 'include synonyms' filter, but behavior remained unchanged.
I would prefer to use OSD, and that is what our dev team was expecting to use, but we just can't see the information. We are using an ID that does not 'own' those tables, per se. But, why would DBVisualizer show these tables, when OSD does not? -
What is the table to view all sub-areas within a company code?
Hi Experts!
What is the table to view all sub-areas within a company code?
I just need as detailed of a list as possible of ALL the sub-areas within a specific company code.
Thanks!Txn SPRO
IMG --> Enterprise structure --> Definition --> Human Resources Mgmt --> Personnel Subareas --> Copy, delete, check personnel subarea
Button "Structure", then "Navigation", check next screen.
You'll get all Personnel Subareas
Then, menu "Edit - Display all objects" and choose "Company Code"
Choose your company code... you'll get a screen with Company Codes with Personnel Area and Personnel Subarea
Regards. -
What are the tables & Views related to Authorization Schemes
Hi,
I want to export all the Authorization Schemes into csv or excel.
Thanks,
RajHi Scott,
thanks for the quick response.
So my question is then...
I want to create a APEX Report which will give me the following information.
1. Application and all the Pages associated with it, which I am getting from apex_applications and
apex_application_pages. This is OK
2. List of all the Database Objects (Table/View) which the individual page is using, I mean relation between Page ID and database object. HOW to get that???.....(I want for each individual page, the list all the database objects (tables/views), which that page is using)
Thanks,
Deepak -
Table view: scroll bar issue
Hi guru's,
I'm having trouble with defining a table view. I'm building a KPI dashboard that should be able to hold the results of many queries. I have one query that will always return a single row. Therefore, I resized the layout of the table view so that it will only display 1 row. However, when deploying the model, I get a vertical scrollbar! The table shows the record from the query and even part of a second (empty) row and I'm able to scroll down even further. I have tried all options, but I can't get rid of the scrollbar.
Does any of you guys have a solution?
Best regards,
ArnoHi Prachi,
thanks for your reply! You are completely right, regarding the flex compiler. We use that one, because we get errors using the Webdynpro compiler. I'll get basis to look into it, because form view is not an option for us (but that's another topic ).
Best regards,
Arno -
Help needed with conditions in Table View
Another question regarding the dashboard we are building:
We use a custom function module to display marketing attributes for a particular customer. There are three kinds of marketing attributes of which we want to display the value:
- Z_QUADRANT
- Z_SOW
- Z_WALLET
If I use the function module as a data service in Visual Composer and use a standard table view as ouput, we get these kind of output:
Atnam - Atwrt - Atflv - Atzhl (<-- these are the column labels)
Z_QUADRANT - 4 - 0 - 0
Z_SOW - 0 - 5 - 0
Z_WALLET - 0 - 75.000 - 0
I just want to display the data as follows:
QUADRANT: 4
SOW: 5%
WALLET: 75.000
So I need to hide the obsolete fields and values and just need to display the relevant values. How can I achieve this? I was guessing I needed to implement some sort of conditional formula like "IF atnam = Z_QUADRANT, display Atwrt(value)" or something, but I am terrible at these kind of things. Can somebody explain it to me or point in the right direction of some good documentation or guide on this? Thanks in advance!
Best regards,
Jan LarosI now chose to use a form which uses the output from the tables. This is the table I use as input for the form:
http://tweakers.net/ext/f/DWmYaePz4gdzVhwMJ3naA5UQ/full.jpg
I use the following formula for the quadrant:
IF(@ATNAM=="EU_BP_NPS_QUADRANT",@ATWRT,"0")
This returns a value of "4" which is correct.
For SOW I use the following formula:
IF(@ATNAM=="EU_BP_NPS_SOW",@ATFLV,"WRONG")
Strangely enough the return value is "WRONG" in the form. What am I missing here?
Regards,
Jan -
:: NWA does not show table view for monitoring reports ::
Hi,
We are facing an issue in one of our portal system.
I click on Portal index page, then I go to Net weaver Administrator --> Monitoring --> Java system reports.
Here I get the resource utilization graphs.
The graphs show proper values however when I click on table view it does not show any value or table at all.
Then I click on Settings button, and click on Persistent radio button.
It asks to enter the number of days for which the the data should be stored.
I gave it as 2 days and click on Apply button.
It shows a message saying "changes would be effective after restarting monitoring service".
However when I go there i.e. NWA --> Administration --> Applications
I get below services
cafruntimemonitoring~ear
com.sap.ip.bi.sdk.monitoring
tclmwebadminmonitoravail~wd
tclmwebadminmonitorcomplib~wd
tclmwebadminmonitorprovider_ear
tclmwebadminmonitorstate~wd
tclmwebadminoverviewmonitoring~wd
tcmonitoringsysteminfo
Would you kindly suggest which service from above list should be restarted ?
Thank you, Regards,
Girish Garje.I think what is being asked is "How do I expose a database view as a schema table in Configuration Manager?"
This is accomplished by creating a database view within the WCC database schema (and with the WCC schema user as the view owner). The view then will appear as a table in the "table" tab in Configuration Manager.
One caveat in 11g is that the user created by RCU does not have any privileges to read/create views in its own schema. You may need to grant privileges to views for the WCC schema user before this will work. -
Display of missing values in a table view.
Hi everyone,
I have a table view with 7 columns and 10 rows which displays only those values which are missing in the DataBase Table.
Is it possible to show only the missing values as '-' in a table view, the table view is having 7 different fields.
Also when the value is inserted at run time the corresponding field should be updated accordingly and the value will no longer be displayed in the table view as '-'
please advice.
Regards
Neo.Welcome to SDN.
do you mean to say that in some rows some column values will be blank and you want to replace the blanks with '-'.
loop thru the itab which you are passing to tableview and for the blank cells pass '-'.
<i>Also when the value is inserted at run time</i>
so you are having editable tableview. to update the value back to the dbtable, you have to read it in oninputprocessing and update it to dbtable .
search the forum on how to read the user entered value from the table view so that you can update the dbtable.
Regards
Raja -
How can I create a Table View in Cocoa Applescript?
This is my last resort. I've searched for days and only found tutorials for iPhone and Cocoa, and I have no idea where to start. I'm looking for a way to create a Table View, and fill it with a few cells that call a handler when clicked. I've looked through the Xcode help, the Apple documentation, and countless tutorials, and I don't know what to do. I'm sure what I'm asking is possible, because usually what is possible in Cocoa is possible in Cocoa-Applescript.
Perhaps something like:
myTableView's addCell_OfType_WithHandler("This is a text cell", text, "myHandler:")
I would appretiate any responses and brief descriptions on the matter.You did not answer my first question, which was not an idle question. I'll answer here, but if cross-chatter appears in a different thread I'll ignore it. You'll have to keep track of the mess yourself.
Apple_For_The_Win wrote:
At this point, I've dragged a Table View onto my window, in Xcode. I've connected it to the value "myTableView", and that's where I need help. I'm specifically trying to add cells into the table view.
I'll assume that 'connected it to the value "myTableView"' means that you've control-dragged in XCode from the table view in Main Menu.xib to a property in your applescript app delegate called myTableView. If that's not the case, please correct me.
I prefer to use an array controller for this, so please drag an array controller object into main menu.nib. once you've done that, do the following:
open the applescript app delegate and add a new property called "tableController"
select the table view in the object list (you may need to open some disclosure triangles to reach it). and add appropriate (an) column name(s). you can hide column titles later if you like, but having named columns makes life easier.
select the array controller in the object list
rename the array controller "table data"
open the attributes inspector, and then add the column name(s) as key(s) in the object controller area
open the bindings inspector, and where it says "controller content", open the disclosure arrow and bind the content to the App Delegate object on the model key path self.tableController
select the table view in the object list again, then go down a level and select each column in turn
for each column, open the bindings inspector, and where it says "value", open the disclosure arrow and bind the content to the Table Data object with the controller key arrangedObjects model key path being the name of the column (which is the name of the key in the controller as well)
back in the applescript app delegate, add code like the following:
-- create a list of records, where each record represents a row and the column name is the record key
set myData to {{column_1_name:"hello"}}
-- convert it to an NSArray and add it to the controller content. don't forget the *my* keyword, or it won't work
set my tableController to NSArray's arrayWithArray:myData
-- may or may not be needed
myTableView's reloadData()
That should populate the table with simple text. if you want something more complicated (like buttons or links) then create the more complicated elements separately and add them to the data.
Maybe you are looking for
-
Schedule Report to WEBDAV location. Problem with webclient service
Hi! I am having difficulties scheduling a report to a webdav location (Which is sharepoint). It had been working for about two weeks. My BO environment and the sharepoint location are on two different domains. I have been running webclient service in
-
A fatal error occured in the PD Layer during RFx response
Dear Experts, While creating the RFx response the error is, "A fatal error occured in the PD Layer. The transaction needs to be terminated." I just checked the earlier threads discussed on this forum says, this is due to non maintaining of number ran
-
Apple TV freezes when changing TV Resolution to 1080p HD
We just got a new Samsung 1080p HD TV. When I tried to change the Apple TV's TV Resolution in Settings > Audio Video > TV Resolution, I can scroll down to highlight 1080p HD, but as soon as I press Select on the remote, the Apple TV freezes. The only
-
Is "Go to Current Song" supposed to flash the song?
Since upgrading to iTunes 10.4 about a week ago, whenever I use "Go to Current Song", iTunes jumps to the current song and then flashes it (the background color changes from blue to gray and back a few times). It didn't do this before iTunes 10.4. Do
-
i would like the option ´open new window in new tab instead´ working properly so no new windows will be opened except when I command them to.. as said, many websites have popups (most are blocked, still some come through) who open in a new window.