How to avoid multiple scrollbars when placing multiple lists in a vbox ?
Hi All ,
Am using a flex application using flex builder 3 ...
I need to display multiple lists one below the other with no scroll bars for the list with only the outer scrollbar visible.
In other words , each list must display all of its children with no scroll bar. If i set the vertical scroll bar to "off" ,
it just removes the vertical scrollbar so that the user is not able to scroll the list (rest of the children are not visible)
I have attached a sample application to illustrate the problem I face right now....
When the following application is run ,
Present Behavior:
2 scrollbars are visible , the outer vbox scrollbar and the inner list scrollbar(for each scrollbar)
Expected Behavior:
1 scrollbar should only be visible ie. the outer vbox scrollbar.
Each list should display all of its children with no scrollbars.
Application code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalScrollPolicy="off">
<mx:VBox width="40%" height="600" verticalScrollPolicy="on">
<mx:List dataProvider="{dataProviderArray1}" width="100%" />
<mx:List dataProvider="{dataProviderArray2}" width="100%" />
<mx:List dataProvider="{dataProviderArray1}" width="100%" />
<mx:List dataProvider="{dataProviderArray2}" width="100%" />
<mx:List dataProvider="{dataProviderArray1}" width="100%" />
<mx:List dataProvider="{dataProviderArray2}" width="100%" />
</mx:VBox>
<mx:ArrayCollection id="dataProviderArray1">
<mx:source>
<mx:Object label="A............" data="1"/>
<mx:Object label="B............" data="2"/>
<mx:Object label="C............" data="3"/>
<mx:Object label="A............" data="1"/>
<mx:Object label="B............" data="2"/>
<mx:Object label="C............" data="3"/>
<mx:Object label="A............" data="1"/>
<mx:Object label="B............" data="2"/>
<mx:Object label="C............" data="3"/>
<mx:Object label="A............" data="1"/>
<mx:Object label="B............" data="2"/>
<mx:Object label="C............" data="3"/>
</mx:source>
</mx:ArrayCollection>
<mx:ArrayCollection id="dataProviderArray2">
<mx:source>
<mx:Object label="D............" data="3"/>
<mx:Object label="E............" data="4"/>
<mx:Object label="F............" data="5"/>
<mx:Object label="D............" data="3"/>
<mx:Object label="E............" data="4"/>
<mx:Object label="F............" data="5"/>
<mx:Object label="D............" data="3"/>
<mx:Object label="E............" data="4"/>
<mx:Object label="F............" data="5"/>
<mx:Object label="D............" data="3"/>
<mx:Object label="E............" data="4"/>
<mx:Object label="F............" data="5"/>
</mx:source>
</mx:ArrayCollection>
</mx:Application>
Hello,
If you know the length of dataprovider and can specify the height in pixels for each list, then below mentioned code may help:
<mx:Canvas width="40%" height="100%" horizontalScrollPolicy="off">
<mx:List id="l1" dataProvider="{dataProviderArray1}" width="100%" height="500" />
<mx:List id="l2" y="{l1.y + l1.height + 5}" height="300" dataProvider="{dataProviderArray2}" width="100%" />
<mx:List id="l3" y="{l2.y + l2.height + 5}" height="300" dataProvider="{dataProviderArray1}" width="100%"/>
<mx:List id="l4" y="{l3.y + l3.height + 5}" height="300" dataProvider="{dataProviderArray2}" width="100%" />
<mx:List id="l5" y="{l4.y + l4.height + 5}" height="300" dataProvider="{dataProviderArray1}" width="100%" />
<mx:List id="l6" y="{l5.y + l5.height + 5}" height="300" dataProvider="{dataProviderArray2}" width="100%" />
</mx:Canvas>
Tanu
Similar Messages
-
How to avoid multiple listing for same artist?
How to avoid multiple listing for same artist?
Sounds like there might be blanks in the artist name.
For instance "Lou Reed" and "Lou Reed_" will not match.
(Pretend the underscore _ is a blank).
Select all the Lou Reed songs, Get Info, and type "Lou Reed" in the artist field. That should fix it. -
How to avoide multiple duplicate entries in adress book?
How to avoide multiple duplicate entries in adress book? I can add the same contact name and number more than twice and the phone isn't warning me at all!!! I's quite a heck for me.
not possible from inside AB AFAIK. but you can do the following. in finder open the folder /users/username/library/application support/address book/metdata. switch to the list mode and sort by date modified. quicklook the vcards at the top to see which ones they are.
-
How to avoid multiple copies of data in page refresh
How to avoid multiple copies of data in page refresh
If you are talking about a page with an insert query, ignore the fact that it's a page refresh. It's just another way that someone can insert duplicate records. I like to handle this in my insert query.
insert into thetable
(f1, f2, etc)
select distinct
value1, value2, etc
from some_small_table
where you don't already have that record -
Workflow - how to update multiple list items
Is it possible to update up to 3 list items with the same information using a workflow? My scenario is where a company vehicle (registration number) has up to three drivers assigned to it - Driver Name 1, Driver Name 2 and Driver Name 3. I
have two separate lists - one for vehicles (fleet list) and one for drivers (driver database). In my workflow when an item is created or changed in the fleet list, I would like the current vehicle registration to be updated in all three driver records
in the driver database. I am not sure if I can do this as I am unsure of what my unique look up would be as I need to be able to tie a vehicle registration to a driver name. Any advice would be much appreciated.
ThanksHi,
Refer to the following threads about how to update multiple list items simultaneously.
http://social.technet.microsoft.com/Forums/en-US/936d05ba-6e86-4f44-bbdb-b3c5c12b2c68/how-do-i-update-multiple-list-items-at-once-in-a-sharepoint-list
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2d342b01-1978-40c9-a203-303d145b331e/how-to-update-mulitple-list-items-at-same-time
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/8d5b7424-58dc-470b-8142-90755dbdeaae/sharepoint-workflow-change-multiple-items-in-other-list
Thanks.
Tracy Cai
TechNet Community Support -
How to avoid the dialogue when converting from context menu
This is a follow-up to http://forums.adobe.com/message/2016146#443364 which was locked due to a bug.
i would like to know how i can avoid the 'save as' dialogue when using the context menu to convert a word file to pdf using windows XP/acrobat 8/word 2007.
so far, it always prompts me for the filename, which is annoying as it does not allow me to batch-convert several files and let the thing run its course.
the solution provided by Steve in the other thread does not work - even if the plugin from word does not propt for a filename, it still does when triggered from explorer/context menu.
so back to square one: how to avoid that dialogue when not opening word at all?
cheers, thanks for any help. michaelFor a permanent change, START>PRINTERS>right click on Adobe PDF printer and select properties>General>Printing Preferences>Adobe PDF Settings. Under the settings tab, uncheck the box related to asking for a name. Pretty sure that is the location, but it may vary with version.
-
How to avoid launching Labview when invoking VI by Teststand
Hi, friends.
I'm a learner of teststand. I wrote some VIs by Labview. Now I want to invoke them in teststand environment. But when I run the sequence. Labview will be automatically launched. How to avoid launching Labview when I run the sequence?
Thanks.
Solved!
Go to Solution.I'm not sure that I follow what you are saying.. But it sounds like when the VI is called, the LabVIEW development software is started and you want to avoid that.
If you create an executable or dll and call that from within TestStand, it should not call the development environment. You would need to have the LabVIEW run-time engine installed on the target PC.
It has been many years since I've used TestStand with LV, so my memory may not be accurate. I think the above had worked for me. However, it seems that I recall something about having the LV code in debug mode causing it to open the development environment.... but it's a distant memory. You're not using breakpoints where the LV VI is being called, are you?
R -
How to avoid data repetation when using select statements with innerjoin
how to avoid data repetation when using select statements with innerjoin.
thanks in advance,
satheeshyou can use a query like this...
SELECT DISTINCT
frg~prc_group1 "Product Group 1
frg~prc_group2 "Product Group 2
frg~prc_group3 "Product Group 3
frg~prc_group4 "Product Group 4
frg~prc_group5 "Product Group 5
prc~product_id "Product ID
txt~short_text "Product Description
UP TO 10 ROWS
INTO TABLE l_i_data
FROM
Joining CRMM_PR_SALESG and
COMM_PR_FRG_ROD
crmm_pr_salesg AS frg
INNER JOIN comm_pr_frg_rod AS prd
ON frgfrg_guid = prdfragment_guid
Joining COMM_PRODUCT and
COMM_PR_FRG_ROD
INNER JOIN comm_product AS prc
ON prdproduct_guid = prcproduct_guid
Joining COMM_PRSHTEXT and
COMM_PR_FRG_ROD
INNER JOIN comm_prshtext AS txt
ON prdproduct_guid = txtproduct_guid
WHERE frg~prc_group1 IN r_zprc_group1
AND frg~prc_group2 IN r_zprc_group2
AND frg~prc_group3 IN r_zprc_group3
AND frg~prc_group4 IN r_zprc_group4
AND frg~prc_group5 IN r_zprc_group5.
reward it it helps
Edited by: Apan Kumar Motilal on Jun 24, 2008 1:57 PM -
How to avoid multiple if else using design patterns.
Hi,
Which design patterns is used to avoid lot of if else in our code . Say for example if the user press 1 the out put should be one, if he press 2 it should be two like this upto 10. So we need to include lot of if-else part. How to avoid the multiple if else using design patter for this scenario. I can't find the solution for this problem can you guys help me?.I'm too lazy to read a whole text book, but the first google link provides a code sample which made me laugh.
http://www.refactoring.com/catalog/replaceConditionalWithPolymorphism.html
double getSpeed() {
switch (_type) {
case EUROPEAN:
return getBaseSpeed();
case AFRICAN:
return getBaseSpeed() - getLoadFactor() * _numberOfCoconuts;
case NORWEGIAN_BLUE:
return (_isNailed) ? 0 : getBaseSpeed(_voltage);
throw new RuntimeException ("Should be unreachable");
}My implementation of The Bridge Over The Parrot Shop
package forums;
import java.util.Random;
abstract class Bird {
private static final Random random = new Random();
abstract double getAirSpeed();
public double getBaseSpeed() {
return randomDouble(18.96);
protected static double randomDouble(double max) {
return random.nextDouble() * max;
protected static int randomInt(int max) {
return random.nextInt(max);
class EuropeanSwallow extends Bird {
double getAirSpeed() {
return getBaseSpeed();
class AfricanSwallow extends Bird {
private int _numberOfCoconuts;
public AfricanSwallow() {
this(randomInt(4));
public AfricanSwallow(int numberOfCoconuts) {
_numberOfCoconuts = numberOfCoconuts;
double getAirSpeed() {
return getBaseSpeed() - getLoadFactor() * _numberOfCoconuts;
public double getLoadFactor() {
return randomDouble(3.12);
class NorwegianBlue extends Bird {
private boolean _isNailed;
private double _voltage;
public NorwegianBlue() {
this(randomInt(10)<2, randomDouble(12.0));
public NorwegianBlue(boolean isNailed, double voltage) {
_isNailed = isNailed;
_voltage = voltage;
double getAirSpeed() {
return _isNailed ? 0 : getBaseSpeed(_voltage);
double getBaseSpeed(double voltage) {
return getBaseSpeed() * (1+(voltage/Math.PI));
public class AirSpeedTest
public static void main(String[] args)
System.out.println("EUROPEAN: "+new EuropeanSwallow().getAirSpeed());
System.out.println("AFRICAN: "+new AfricanSwallow().getAirSpeed());
System.out.println("NORWEGIAN_BLUE: "+new NorwegianBlue().getAirSpeed());
}... and the requisite background for the uninitiated [NORWEGIAN_BLUE|http://www.youtube.com/watch?v=4vuW6tQ0218] and [EUROPEAN v AFRICAN|http://www.youtube.com/watch?v=4b4bGAoVR7g].
You have to know these things when you're a King you know.
Cheers. Keith. -
How to avoid multiple password prompt for intarnet portal
we have developed a intranet portal in Share Point 2013 with multiple site collection. when accessing through IE, Chrome, we can do settings to avoid multiple password prompt by adding the domain name of site in Trusted sites. How we can achieve the same in Safari while accessing through MAC or IPAD
first time when you call the BSP application from the browser (or by double clicking the BSP_APPLICATION link from SAP GUI) you need to pass user credentials. For further windows this will not be required as browser will remember your info.
if you need to <b>somehow</b> avoid this then the only option is to hard code the user id and password in the service in transaction SICF or by passing the same via URL.
Another option is that if you port this application in a SAP portal environment, SSO can be used .
Hope this helps.
Regards
Raja -
How to avoid multiple votings?
Hello All. How can I avoid, that there are multiple votings from one person?
I think there is no option to avoid multiple votings. Adobe has not implemented this funktion.
Formstack is as alternative to Formcentral. The Fieldoption there is called - Unique.
Unique allows you to restrict submissions of the same value in this field. For example, you can allow only one submission for a particular email address or physical address.
That is the option i was looking too.
Formcentral is useless for me in this way. -
How to avoid multiple LOGIN with same user in database.
Hi All,
Using database triggers how to control multiple logins of a pertiuclar user.
thanks in advanceDon't forget to activate the RESOURCE_LIMIT parameter, which default is FALSE :
alter system set RESOURCE_LIMIT = true;
Laurent, I had a similar problem some time ago : I didn't want to avoid multiple access, but only control who was doing what. That's because moving from Client/Server to Web the TERMINAL column in V$SESSION becomes useless.
I tried your solution, but I had to give up with it, because in my Forms9i application some forms call Reports, which generate a new session.
I decided to use DBMS_APPLICATION_INFO, and this is satisfactory for my requirements, but I'm interested to discover other solutions.
P.S. with my solution I'm able to limit accesses, because in the CLIENT_INFO string I put, among other things, the
application user, so I can control if an user is already connected. The problem is that existing applications have to be modified .....:-( -
How to avoid multiple users to access same tcode
Hi all,
Am creating one z tcode to display the material details for the particular reservation number. How can I avoid multiple users to access the same tcode simultaneously. If anybody works over that tcode then no other user should be able to access the same tcode until or unless the first user works over it.
Regards,
RamyaHI,
you can even use import and export logic and check if user has entered the transaction ..
Regards,
Santosh
Message was edited by:
Santosh Kumar Patha -
Query: how to avoid multiple POs from being combined into delivery
Hi all,
We are working on an enhancement.
The requirement is:
We need to avoid multiple POs from being combined into one delivery.
Any pointers in this regard would be highly appreciated.
regards
GurpreetHi Murali,
I think your suggestion should solve Gurpreets problem.
I have a query here.
In the copy controls VLTA, defines between sales doc to dlivery doc.
Here we want to maintain copy control between purchasing doc to delivery doc.
How do we achive this?
Also in my view we should write a new combination requirement.
Please check if combination requirement 51 can be used?
Regards
Abhishek -
How to avoid multiple DataConnections with LCD ES2
Hi, we are just starting using the data connections to connect via a database with LiveCycle Designer. It seems we are missing something important regarding to manipulation of data from the PDF.
At first we have tried to apply a INSERT command to our first table and be able to browse through the items in the database. We are able to browse through the database only before we have inserted something.
If we insert an item and then try to browse through the database with (Next, Previous, Last or First) it will crash and have an error of the following :
(Next, Previous, Last or First) failed. Multiple-step operation generated errors. check each status value [ID:@11]
So then we have decided to create a second data connection which would have each of the column in the database except for the ID which appears to make everything crash.
E.G.: Table_1
DataConnection1 --> ID, Field1, Field2, Field3, Field4 SELECT Command connection
DataConnection2 --> Field1, Field2, Field3, Field4 INSERT Command connection
Seems like we can't have a SELECT and INSERT in the same DataConnection because with those 2 different connections it works fine....
Then we are trying to show multiple data's in a table which is linked with the ID of the Selected ID in DataConnection1.. To show the data is all fine using a 3rd connection for that Table_2, then we are making sure a blank row is always there at the end of the table to be able to add this new entry to the database with a Add button to INSERT into the Table_2... Unfortunately we do not have a 2nd connection to that table because we cannot link those fields with the database for the purpose of a multiple entry view.
We have tried to make a 2nd connection for the purpose of the INSERT but it doesnt work at all.
We are basing ourselves on the sample provided by Stefan Cameron in his blog http://forms.stefcameron.com/2006/12/18/databases-inserting-updating-and-deleting-records/
I am wondering if we are using the right functionalities and if it is the simplest way to work with databases...
If anyone can help, it would be greatly appreciated!!
Thanks in advance!
MagDon't forget to activate the RESOURCE_LIMIT parameter, which default is FALSE :
alter system set RESOURCE_LIMIT = true;
Laurent, I had a similar problem some time ago : I didn't want to avoid multiple access, but only control who was doing what. That's because moving from Client/Server to Web the TERMINAL column in V$SESSION becomes useless.
I tried your solution, but I had to give up with it, because in my Forms9i application some forms call Reports, which generate a new session.
I decided to use DBMS_APPLICATION_INFO, and this is satisfactory for my requirements, but I'm interested to discover other solutions.
P.S. with my solution I'm able to limit accesses, because in the CLIENT_INFO string I put, among other things, the
application user, so I can control if an user is already connected. The problem is that existing applications have to be modified .....:-(
Maybe you are looking for
-
Installed j2se on windows xp, updated path, but can't find compiler
I installed j2se on windows xp, updated path, but no matter what direc- tory I try, when I try to compile(javac) I get the "'javac' is not recognized as an internal or external command, operable program or batch file" message. This even happens in th
-
Firefox crashes when i try to watch a movie with ms silverlight.
I am running os x 10.4, with firefox 3.6. I have the latest version of Silverlight. Every time i try to stream a netflix movie, firefox crashes. I have contacted nexflix and they said its a problem with the browser. How do i fix this?
-
I need assistance with an Excel Lookup Function
Just making sure I have it right. If all [SubPartNo] for a particular [PartNo] have a [Purchased] value of 1, you want the [Import] column to have a "Y" for all rows of that particular [PartNo].This is pretty straightforward. You're going to want to
-
Once payment received for bill system should not allow to cancel
Hi Experts , we have created commercial invoice and posted to fi document and payment received from party.but when we try to cancel the same billing document system allowing to cancel the document.So Client requirement is once payme
-
Count the number of times a character is in a string using pl/sql
I need to count the number of times ":" appers in the string ":XXX:CCC:BBB:". I have sound some solution using SQL but I do not want the context switch. Also I am on 10g so I can not use REGEXP_COUNT. Any help would be great.