How to hide certain items in a Combo Box
I've two Combo Box(CB). First CB contain 4 items(drop-down menus) and the 2nd CB contain 12 items.
I want that when I select one of the items from Combo Box1, then only 4 out of 12 items from Combo Box2 should be visible. So actually I want first combo Box to act as filter. Could this be done using the AS3 code.
I don't think there is any way to hide items, but you can rewrite he items basd on the selectedIndex value of the cbHeight combobox. In the code below, each element of the weightData array is an array of objects.
import fl.data.DataProvider;
var weightData:Array = new Array();
weightData.push([{label: "100"},{label: "110"},{label: "120"},{label: "130"}]);
weightData.push([{label: "200"},{label: "210"},{label: "220"},{label: "230"}]);
weightData.push([{label: "300"},{label: "310"},{label: "320"},{label: "330"}]);
function heightSelected(evt:Event):void
var hSelected:int = evt.target.selectedIndex;
var dp:DataProvider = new DataProvider(weightData[hSelected]);
cbWeight.dataProvider = dp;
Similar Messages
-
Show/Hide certain items in an array of clusters
I am trying to figure out how to programmatically show/hide certain items in a cluster (specifically an array of clusters). I tried a couple of things but nothing worked for me. On a similar note, I would like to be able to programmatically hide certain columns in a table. I can’t figure it out and the postings on the LabVIEW forums here were either not terribly helpful for my situation or maybe I just didn’t understand them. I have attached a vi where I tried to hide items within the array of clusters. Maybe someone could point out why it didn’t work and hopefully they could provide a solution or direction for me to follow. Thanks in advance…
Solved!
Go to Solution.
Attachments:
make column hidden.vi 15 KBCreating a property node directly to the cluster element is far easier. pcardinale essentially shows this.
As for the question regarding the table columns, there is no direct way to hide the table columns, viz-a-viz Excel. The closest you can get is to set the column width to zero, as shown in attached example.
Attachments:
hide table columns.vi 13 KB -
How to hide a Item for exemple in a selectOneListBox ?
ThanksI posted an example on my blog
http://groundside.com/blog/GrantRonald?title=making_a_field_disabled_depending_on_the&more=1&c=1&tb=1&pb=1
instead of the DISABLED property use RENDERED property
or
http://groundside.com/blog/GrantRonald?title=conditional_rendering_of_jsf_fields_depe&more=1&c=1&tb=1&pb=1
Hope that helps
Grant Ronald
Oracle Product Management -
InfoView - How to Restrict values of Month Dimension Combo Box
Post Author: alexrox
CA Forum: Publishing
Product: Business Objects Enterprise XI R2
Version: XI R2
Patches Applied:
Operating System(s): Linux RHEL 4 x86
Database(s): Oracle 10gR2
Error Messages:Steps to Reproduce:
Hello, we are using Business Objects Enterprise XI R2 in the company I work, and we are facing a problem in some web intelligence reports.Our BO version is in Spanish, so maybe I do not translate some BO terms properly into English.
We have the "Time" class in the Universe we use, and in that class, we have the "month" dimension.
When we create some reports in InfoView, we can use the "month" dimension to display the results of that month (dragging and dropping that dimension in the "Analysis Context" Area).
The user can choose values in the "month" dimention through a combobox in the "analysis context" area. The problem is that Infoview allows the user to select the value "all the values" of that dimension, I mean, all the months, so that the results of the report are according to the "automatic aggregation" calculated of the values of that dimension (all the months).
But, we do not want to allow the user to select that value (all the values) of that dimension, because it causes that the report displays incorrect results (we have some percentages that have incorrect values in the aggregation, for example). I hope that you understand the problem I have tried to explain.
My question is how can we restrict so that the combo box (of the month dimension at the analysis context area ) does not allow to select "all the values"?
Is it possible? If so, do we have to make a change in the universe or is it a restriction of the web intelligence repport?
Thank you very much!
Alejandro Usero RuizPost Author: jsanzone
CA Forum: Publishing
Alejandro,
In your posting, quote "(we have some percentages that have incorrect values in the aggregation, for example).", I'm wondering if you are calculating the percentages within your universe or not? I.e. do you have a universe object that in essence is doing the math? If so, I might suggest that you not do it this way (even though in total aggregation calculations this will produce a valid result), but in disaggregate calculations (during the users "slicing and dicing") the percentages are not re-calculated by the BusObjects tool because it thinks that the data it received from the SQL output is good to go, and this is where the incorrect values in the aggregation start to show up. We had this problem too, so we ceased from calculating at the universe level and built a local variable to the report, thus BusObjects will recalcuate the percentage properly for each level of aggregation that user selects. The downside to this approach is that every report that has percentage calculations will require the local variable to be built for that report. Even users who build their own reports will have to build their own local variable to compute the percentage for their reports. The upside is that the calculations will be correct every time. -
How to disable smartcut toolbar or sections combo box?
Dear firends,
How to disable smartcut toolbar or sections combo box?
regards
SiyavuşI am doing this from button OnClick now!!! but it not work for OnStartup document?!
var x=document.getElementById("pageSelect")
x.disabled=true
regards
siyavuş -
How to hide certain photos in aperture
hello everyone,
i am trying to hide certain photos from my huge library that my clients should not see accidentally for privacy reasons.
some photo-managers offer this ability but in aperture i didn't figure it out how to do it.
i found a workaround on the web, to rate those photos as 'rejected' and to set the filters down a notch to display everything but the 'rejected'.
that kind of works till i quite aperture. after starting aperture up again, the rejected photos show up.
i would have to set up the filters again to hide them.
this is not what i need.
has anybody a better and more reliable idea?
thxhurgaaA wrote:
i still miss a simple 'hide' button in this application.
and, not everything you wanna hide is because of mummy..
there's something called privacy still and those files i'm talking about can be very innocent, but i wouldn't want to show them to you accidentally.
Unless you allow your clients to freely browse your library it's fairly easy to avoid showing unwanted pictures. The first thing I do before a sitting with a client is use the Favorites function: I select the client's project in the library pane, click the gear icon and choose Add to Favorites. Then I click on the looking glass icon in the search field and select Favorite Items — the client's project becomes the only one visible.
This works for me because I don't use this function for anything else, which means I enable and disable Favorites as needed for this purpose.
But the only reason I do this is to get a cleaner interface during a client sitting. If I didn't all the client would see is the names of my other projects and/or clients. He/she would never see the other pictures unless I selected one of these other projects myself or for some reason decided to browse through all my photos, which I would never do.
You say " i would have to set up the filters again to hide them. this is not what i need."
Filters for albums, folders and projects are sticky and will remain active until you disable or change them. Even between restarts. For instance, I organize my library with yearly folders as the top hierarchy but always add the 3 stars and above filter to those folders. If I click back to the 2007 folder it still has that filter enabled. This ability is extremely powerful, much more than a simple hide function because you can control visibility from a whole range of criteria.
To cut this short: the only time your clients would see photos that don't concern them is if you use the Photos or Projects sections of the library pane when you have someone sitting beside you.
I personally wouldn't do that -
How to edit items of a combo box that is part of an array of clusters
Hi,
In the attached vi, I have an array of clusters, and each cluster contain two combo boxes. How do I edit the items in Combo Box 1 for all elements of the array? (All Combo Box 1 elements shall include the same items.)
For illustration, I also included the trivila case, i.e., editing the items in a separate combo box that is is not part of an array of clusters (Combo Box 3). Please advise. Thanks.
Peter
Solved!
Go to Solution.
Attachments:
Question Combo Box in Array of Clusters.vi 16 KBPlease mark S_Mercurio's message as the solution to your question rather than your own thank you message. First you will have to unmark yours by going to the option menu to the upper right of your message.
-
APEX dynamic action - How to hide an item after the page loads
Hello
I have a form with item Type, lesson and page. I want to create a dynamic action like "on page load" if Type = x then don't show lesson and page items. .
How do I say if Type=x then don't show lesson and page. otherwise show them.
Please note Dynamic action, Event=Page load
Thankscreate dynamic action like
Event:Change
Selection Type:Item
Item:Type
Condition:Equal To
value:X
Select Action:Hide
Select Items to hide
also create opposite false action
and click on page checkbox below action to yes
Hope this may helps
pars. -
I want to do homesharing with my family and friends, but some of the items that I have, I don't want to appear. Is there a way to hid certain songs that I have? Thanks.
you can use e.g. Subler to add an explicit tag to the content, then adjust the parental control preference pane accordingly
-
How to hide messagetextinput item on root node in HGRID
Hi,
I have added one messagetextinput item in HGRID.
But it is showing 3 items(one for root node, 2 for the actual items) when there are 2 rows in master node.
+Employee |________|
-101 |________|
-102 |________|
I want to hide the item at root node(i.e. for employee.)
I am working on seeded page, not the custom page.
Can someone help me..
--ParagAdd a switcher in Hgrid, Create 2 items in switcher. One is input type and other is styled text. Switch the values of switcher based on condition from VO.
For detailed help, feel free to mail me at [email protected]
OAHGridBean hGridBean =
(OAHGridBean)webBean.findChildRecursive("QotLinesHGridRN");
if (hGridBean != null) {
OASwitcherBean switcherbean =
(OASwitcherBean)createWebBean(pageContext, SWITCHER_BEAN, null,
"DellPriceSwitcher");
switcherbean.setLabel("Dell Auth. Unit Price");
switcherbean.setViewAttributeName("Attribute20");
switcherbean.setViewUsageName("QuoteLinesLevel70VO1Obj");
hGridBean.addIndexedChild(9, switcherbean);
//Add dell auth unit price text input item
OAMessageTextInputBean inputbean =
(OAMessageTextInputBean)createWebBean(pageContext,
MESSAGE_TEXT_INPUT_BEAN,
null,
"DellAuthPriceinp");
OAMessageStyledTextBean styledbean =
(OAMessageStyledTextBean)createWebBean(pageContext,
MESSAGE_STYLED_TEXT_BEAN,
null,
"DellAuthPricestyled");
inputbean.setReadOnly(false);
inputbean.setViewAttributeName("Attribute1");
inputbean.setViewUsageName("QuoteLinesLevel70VO1Obj");
styledbean.setViewAttributeName("Attribute1");
styledbean.setViewUsageName("QuoteLinesLevel70VO1Obj");
inputbean.setColumns(5);
switcherbean.setNamedChild("DellAuthPriceinp", inputbean);
switcherbean.setNamedChild("DellAuthPricestyled", styledbean); -
How to enable group label selectable on combo box?
When we use the combo box, we can group the items as following
group 1
item 1 1
item 1 2
group 2
item 2 1
item 2 2
How to enable user select the group 1 instead of select both item 1 1 & item 1 2 ?
In the jsf rendered result, group 1 & group 2 just a label and not selectable option, we want change it to selectable option.
ThanksWhen we use the combo box, we can group the items as following
group 1
item 1 1
item 1 2
group 2
item 2 1
item 2 2
How to enable user select the group 1 instead of select both item 1 1 & item 1 2 ?
In the jsf rendered result, group 1 & group 2 just a label and not selectable option, we want change it to selectable option.
Thanks -
Hide a data column in combo box?
I want to load a combo box from a database with two values per row (add.Item ?) but I only want one value to be see by the end-user.
Example:
Hidden | Shown
12320 | Green
19210 | Red
72622 | Yellow
The user will see the colors but not the numeric values. The numeric values are actually the auto_id for each color in the database. I want to use the auto_id when I save the user's choice to another table instead of the color name.
Right now as soon as the use selects a color I hit the database for the auto_id number - that can't be good.
Thanks,
ADawn
ADawnHello,
You would set the data source for the ComboBox that has your data then set DisplayMember to the field to show in the ComboBox along with ValueMember set to the hidden field. Now say in a button click event use ComboBox1.SelectedValue to get the hidden field,
cast as an integer if that is the data type of the hidden field.
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. -
Add items to a combo box list if not in existing list
I'm trying to set up a combo box for an expense report form. I want users to be able to select an account from an existing combo box list or to add an account to the list if it doesn't exist already.
Ideal situation:
For example, the user has "Office Supplies" and "Meals - Business Related" as existing options in the combo box. They need to enter a parking expense, which doesn't exist on the list, so they type in "Parking" in the combo box. They attempt to advance to the next field. A message box pops up and says, "Do you want to add "Parking" to your list of expense options? They click "Yes" and the combo box will now include Parking in the future.
Any assistance would be greatly appreciated!George,
Do you know of a way to save the list addition to the original file without saving any new form data with it? In other words, I would like the item to be on the list when the document is opened in the future, but if they just save it, it will save with the form data they've just entered.
Thanks! -
How to reduce the weight of a combo box in a jsp
hi friends,
i have developed a jsp form in which i have placed some combo box and i am using ajax concept for loading the details for a field just above the combo box.
my problem is that when the ajax loads the records in the form it comes above the combo box .there,the combo box is coming above the ajax listings and hides the records displayed by ajax.can anybody help me to solve this problem of combo box.<td class="label">Cash bank general</td><td>
<html:select property="accledgeractionform.ledgercbg" styleId="cmbcbg" styleClass="inputbox" style=" width : 130px" tabindex="14" onfocus="setStatusMessage('Select cash bank general')" >
<html:option value="" styleId="cmbCashBankGeneral">
</html:option>
<html:option value="C">Cash</html:option>
<html:option value="B">Bank</html:option>
<html:option value="G">General</html:option>
like this i have created the combo box.
but it is displayed above the results displayed by the ajax.
i thought that since combo box is a heavy weight component its weight must be reduced.help me about that -
How can I set the size of combo boxes on a toolbar
Hi, I am trying to use setMinimumSize of a combo box on a toolbar, It doesn't seem work. The code as following? Can anyone tell me how I can do it ?
JComboBox sw = New ComboBox();
sw.setMinimumSize(new Dimension(10,10));
Thank you.
Scottuse the method preferred size of the JComponent superclass of the combos:
setPreferredSize
public void setPreferredSize(Dimension preferredSize)
Sets the preferred size of the receiving component. If preferredSize is null, the UI will be asked for the preferred size.
Maybe you are looking for
-
Need help to figure out a serious problem with my iMac 27"
Okay so this all started 3 months ago when one day I was using my iMac as a normal apple user would and suddenly I get this blank white screen. Turns out after restarting and trying to boot into recovery mode, it wouldn't let me boot into it. After m
-
Problem with custom development for documents in Record Management
In Record Management i have setup a record model. It contains Bor objects, documents, cases and so on. Each kind of record managent object has it own requirements. For the documents there is a requirement which demands that if the scandate is changed
-
SAP EHS : Generation of Report for change in substance data
hi Experts, i want to generate report for the change in any substance specific data, editing of the substance. the report should contain the date, time, user details who has done this changes, what is changed, what is new value etc. how can i do that
-
Simple introduction/tutorial on how to make Cocoa-Applescript Applets?
I'm looking for a simple tutorial on how to make Cocoa-Applescript Applets. I'm pretty new to Applescript, but fairly good at it, and I was wondering how Cocoa-Applescript Applets worked. I was curious as I've been wondering if it was possible to s
-
My paint bucket/gradient/paint brush tool icon is now a eye dropper...
I've been playing around in CS5 for about a couple months now and today, (not sure if I hit a special function/command) but my icons when the paint brush, gradient and the paint bucket is now a eye dropper icon.. It's kind of annoying and I'm not sur