Combobox dropdown closes when refreshing dataprovider
Hi,
i'm having a small problem when filtering a dataprovider of a
combobox and then refresh it.
When the dropdown is open before the refresh() call, it'll
close itself when refreshing the dataprovider.
I've tried overriding the close() method but close() doesn't
get called during this close operation.
Also, the close event is not dispatched.
Anyone knows if it's possible to prevent the dropdown from
closing ?
I don't think its possible, because the items in the list
could completely change and it needs to close so it can remove the
old lists and add the new items.
You couldn't hold me to that thought its just my
guess.
Similar Messages
-
Combobox dropdown doesn't refresh
Hi all!
I have a comboBox problem. Please test this simple code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
creationComplete="init()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var dp:ArrayCollection;
private function init():void
dp = new ArrayCollection(["one", "two"]);
]]>
</mx:Script>
<mx:ComboBox id="cb" dataProvider="{dp}"/>
<mx:Button label="click me" click="dp = new ArrayCollection(['three', 'four']);dp.refresh()"/>
</mx:Application>
What happens is that the dropdown list of the combobox doesn't show the new values. I guess I'm overlooking something here.
Any advice?
Thanks!
DanyHi Archimedia,
I have run the sample code that you have sent....but I could see no problem I could see the combobox being refreshed when the button being clicked.
However it is always safer to remove all the elements in the ArrayCollection using the removeAll() method before assigning the new values.
Try the below code and check whether it's working for you...?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="init()"
>
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
Bindable]
private var dp:ArrayCollection;
private function init():void
dp =
new ArrayCollection(["one", "two"]);}
private function refreshComboBox():void
if(dp != null){
dp.removeAll();
dp.refresh();
dp =
new ArrayCollection(['three', 'four']);}
]]>
</mx:Script>
<mx:ComboBox id="cb" dataProvider="{dp}"/>
<mx:Button label="click me" click="refreshComboBox()"/></mx:Application>
If this post answers your question or helps, please kindly mark it as such.
Thanks,
Bhasker Chari -
Parent Refresh After Modal Close when using .show_modal method
I followed the manaul ".show_modal" method in this thread: open Skillbuilders modal page from report
My question ishow do I refresh the parent when the modal closes?svk1965 wrote:
I followed the manaul ".show_modal" method in this thread: open Skillbuilders modal page from report
My question ishow do I refresh the parent when the modal closes?Are you talking about refreshing a region in the parent page? If yes, you can execute the following JS code after the modal closes to refresh a specify region:
parent.$('#<your-region-static-id-here>').trigger('apexrefresh'); -
Combobox dropdown functionality
Hi,
I have a combobox dropdown for a Column in my table. it displays "codes Description" something like this
01 Apparel
02 Houseware
03 Kitchenware
I have a query to get this data in the dropdown from a oracle table.
Select LEVEL1_CATEGORY_CD, CATEGORY_DESC From PRODUCT_CATEGORY1
Order By PRODUCT_CATEGORY1.CATEGORY_DESC
I am using setboundsql() method of the Column class in Quicktable.
http://quicktable.org/doc/quick/dbtable/Column.html
I have also tried getting the query data in a hastable as a key/value pair and fill the combo box.
what i need is when user selects something from the dropdown like "02 Houseware" i need only 02 to be filled into my cell. is this possible? right now its filling "02 Houseware" in the dropdown. can you explain stepwise as i am new to swing API.
Thanks.I guess I am close but doing something silly. thats how I learn.
here is my code snippet,
final JComboBox comboBox;
comboBox = new JComboBox( model ); // model.addElement(rs.getString(1));
comboBox.setEditable(true);
comboBox.setSelectedIndex(-1);
comboBox.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
if (comboBox.getSelectedIndex()==-1) return;
String s= comboBox.getSelectedItem().toString().trim();
comboBox.setSelectedItem(s.substring(0,2));
c.setCellEditor(new DefaultCellEditor(comboBox)); //c = dBTable1.getColumn(1);My vector has elements like, "01 Apparel".
I am able to get these in the dropdown. when i select something, its filling, 01 Apparel . after selecting if i click the cell again, then its changing to 01(as i needed). else after selecting if i lose focus and go to other cell, the value remains as 01 Apparel.
this might be trivial for someone who knows Swing but I am gettting frustrated...have to read complete tutorial this weeknd :)
Thanks again. -
When clicking a link - a new tab opens. But the new tab which opens looks wired: There are 2 blue bars - the one you get on each session(where the red x is which closes everything) - I don`t know how you call this. This 2nd blue bar is located directly under the "normal" one and has got - on the left hand side- a firefox dropdown menue(when you click it you get: New Tab, Start private browsing, edit, save page as and so on.
I can close the session as always but when i start the next session a view hours or a day later then firefox opens all the tabs from the session before as individual windows - and then it crashes. This happens 2 or 3 times - then i see a window where i am asked to either restore the old session(which doesn`t work - it always crashes again) or start a new session - which works.
This is very annoying. Please tell me what to do.
Thank you
richardIt is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
Delete the files sessionstore.js [2] and sessionstore.bak in the Firefox Profile Folder.
* Help > Troubleshooting Information > Profile Directory: Open Containing Folder
* http://kb.mozillazine.org/Profile_folder_-_Firefox
If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.<br />
Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
See also:
* [1] http://kb.mozillazine.org/Session_Restore
* [2] http://kb.mozillazine.org/sessionstore.js -
Cat TimesheetData dropdown doesn't refresh
Hi Expert,
In Cat WD application , we have a cell Absence use dynamic dropdown UI.
when we click on the calendar, the timesheet data is refreshed, but not the dropdown list.
Any idea ?
thanks.
Ben.J.as i said v_t554s_essex for entries
or T554s for the customisatiom
Now then, does the search help show the time period it is valid for?
usually it outputs all the absences and attendances
Now in CATS WD as you are aware uses different search help
ie CLASS CL_XSS_CAT_RFC_COMMAND_TOOLS method BUILD_F4_HELP
SAPLHRXSS_CAT_WEBDYNP / LHRXSS_CAT_WEBDYNPU02
FUNCTION / HRXSS_CAT_WD_F4_AWART -
ComboBox prompt disappears when published to HTML
I am creating a form which contains four ComboBox components. I have defined the "prompt" property for each of these ComboBox components using the Component Inspector. The only real difference between these four ComboBox components is how their dataProvider property is defined.
Two of these components use DataProvider objects which I have defined using Actionscript. I defined the dataProvider property for the other two ComboBox components using the Component Inspector.
My problem is that when I publish the Flash movie to HTML, the prompts disappears for the two ComboBoxes whose dataProviders I defined using Actionscript. The prompt remains visible for the two ComboBoxes whose dataProvider property I defined in the Component Inspector. I should also mention that prompts for all four ComboBoxes appears just fine when I just publish to Flash.
I have tried correcting this by setting the "prompt" property using Actionscript but the result is the same.
Thanks in advance for any suggestions on how this may be correctedI finally found a solution to my problem, however, I am not entirely sure I understand why the problem is there in the first place.
One of the things I did not mention in my original post, is that the DataProvider objects for the ComboBoxes are populated with XML from an external file which I am loading via a URLLoader object.
I originally had set the style of the ComboBox components within the same function that I am using to load the XML (I have called this function "init"). When the XML is loaded, I call another function to populate the DataProvider object for the ComboBoxes with XML. For some reason, I have to set the style of the ComboBox components again within that function otherwise it is as if there were no styles applied. The following code demonstrates my problem. I added in the timer function just to help demonstrate the issue, namely that the style set in the init function only applies until the DataProvider object is created and assigned to the ComboBox.
import fl.data.DataProvider;
var cbTextFormat:TextFormat;
var xmlStatesLoader:URLLoader;
var xmlStates:XML;
var dpStates:DataProvider;
function init():void {
//load data for states selection list
xmlStatesLoader = new URLLoader();
xmlStatesLoader.load(new URLRequest("states.xml"));
xmlStatesLoader.addEventListener(Event.COMPLETE, onComplete);
xmlStatesLoader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
//set the text format for ComboBox text fields
cbTextFormat = new TextFormat();
cbTextFormat.color = 0x0000FF;
cbTextFormat.font = "Arial";
//set style for cbOne ComboBox
cbOne.textField.setStyle("textFormat", cbTextFormat);
cbOne.textField.setStyle("embedFonts", true);
function onComplete(e:Event):void {
//notice that the prompt is displayed until the timer runs out and the onTimerComplete function is called
var myTimer:Timer = new Timer(1000, 3);
myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
myTimer.start();
function onTimerComplete(e:TimerEvent):void {
xmlStates = new XML(xmlStatesLoader.data);
dpStates = new DataProvider(xmlStates);
cbOne.dataProvider = dpStates;
cbOne.prompt = "Loaded";
//uncomment the following lines to fix error
//cbOne.textField.setStyle("textFormat", cbTextFormat);
//cbOne.textField.setStyle("embedFonts", true);
function errorHandler(e:IOErrorEvent):void {
trace("XML Loading Error: " + e);
init(); -
ComboBox (dropdown) Need Help Adding URL links!!!
I am somewhat of a newbie....Anybody know how to use URL
links in a ComboBox dropdown menu? NEED HELP!!!!!!! I'm trying to
make it so that after selecting an option, the user is directed to
another URL within the same browser window. Using flash 8!
Thanks,Im a bit a newbie myslef but i think you make flash
commuincate to javascript wich will make the browser goto the URL.
do a search on getURL and javascript together and i am sure
you will find something.
And when slecting to redirct i think its on?(onPress)
something so maybe look throught the help section in flash 8 and
look at componets. I think there is some actionscript help there.
Sorry i could not be more helpful. -
I've created a simple vi set to demonstrate the issue I'm having. I'm dynamically launching sub vi's from a main application. Simply put the main application is my test exec and the subvi's I'm calling dynamically are different tests. In the example I'm posting here the test vi is called Electrical Test 1.vi. I've configured this Electrical Test 1.vi to show front panel when called and close afterwards if originally closed. Problem is it won't close the front.
Other things to keep in mind
I want to be able to launch the test vi and not wait till it's done.
I'm using LabVIEW 2012 SP1.
Solved!
Go to Solution.
Attachments:
vi_launcher - v5.zip 73 KBBasically the close after call only matters if the VI is called as a subVI (just like if you open a VI yourself and run it, it doesn't close when it is done). The two ways around this are to either have your top lvl app close the VI when it is done, this is explained here:
http://digital.ni.com/public.nsf/allkb/987B2026B41BD39786256CF800032E8C
or to have your VI close itself when it is done. Use a This VI reference and the Front Panel:Close invoke node.
Hope this helps. -
I get the message 'itunes has encountered a problem and needs to close' when trying to open itunes 11.1.1.11. I had to uninstall itunes so that I could load this version as the update to version 11 kept failing. The PC says 11.1.1.11 is correctly loaded, but I now cannot open itunes. Any advice on how to get itunes working again?
Hello there, ytnoj.
Uninstalling and reinstalling iTunes can be a tricky endeavor and must be done in a very specific way. The following Knowledge Base article provides the step-by-step of the process:
Removing and Reinstalling iTunes and other software components for Windows XP
https://support.apple.com/kb/HT1925
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro. -
If some can help me?? My mac mail will not close when iam finished with it, or will it open when i awake my computer is there an update i need to do??
As the message comes from AVG yo will need to read about AVG to stop those alerts.
If you think there is a genuine problem with firefox
* see [[high memory usage]] <-- clickable link -- <br/> that contains some tips and information about memory usage
* go to ''about:memory'' by keying that into the location bar <br/> the report that is generated may be of help - it gives tooltip info on mouseover of items, and has a button that tries to reduce memory usage -
DW CS6 - Spry collapsible panels - How to have panel close when you click away from it?
I know typically onmouseout is used to close other items, but I could not figure it out with the spry collapsible panel. I have the panel opening onclick and closing onclick, but I would really like for it to close when you click anything else on the page outside of the panel.
Thank you!Sorry, I did not mean other collapsing panels close when you click away from it. I simply meant in general for the closing after clicking away function, you can use onmouseout. I was working on something with collapsing panels and I wanted it to show the information when you clicked on it, but when you click on another panel, they both remain open. I really want both to close. I believe accordion does this, but not quite what I am looking for either.
Here is a better example of what I would prefer: Houston Public Library
If you visit their page and click "Find it" a box pops down with information and then when you click anywhere else on the screen, it closes that box. When you click "Research," it closes the "Find It" box and opens the "Research" box. There is likely a much better way to do this, but I am pretty new to this.
Any assistance is very much appreciated.
Thank you! -
Error When generating dataprovider
HI ,
i get an error message while executing a query in rsrt.
"Error When generating dataprovider
Notification Number BRAIN 282 "
require help in this regard,
Rakesh.By best approach in that case is trial and error.
Copy that query to a new one and change it step by step (creating it simpler, by removing key figures and characteristics) executing it in each step until you don't find the error. There you can see what is causing that error.
Diogo. -
Error when refreshing WEBI report with Universe Connection Type "SSO"
Hi Experts:
We are trying to refresh the Webi report in Infoview with Universe Connection set as "Use Single Sign On when refreshing the report at view time", so that we can leverage SAP OLAP authorization variable from Bex Query which the Universe is built on.
However got the error of "incomplete logon data" after all the configurations done following below blogs:
SNC Part 1
/people/ingo.hilgefort/blog/2009/07/03/businessobjects-enterprise-and-client-side-snc-part-1-of-2
SNC Part 2
/people/ingo.hilgefort/blog/2009/07/03/businessobjects-enterprise-and-client-side-snc-part-2-of-2
We already have Win AD SSO to SAP setup, and in BO CMC, Win AD user is mapped to SAP user ID.
The SNC settings are:
- AD Account: service.test.bobj (all lower-letters)
- 32-bit gsslib on the BO server, and 64 bit on the BW server side.
- SNC0: p:service.test.bobj at DOMAIN
- SU01 --> BO_Service ; SNC: p:service.test.bobj at DOMAIN
- Entitlement system tab --> username: BO_Service
SNC Name: p:service.test.bobj at DOMAIN
- SNC settings tab:
SNC Lib: c:\winnt\gsskrb5.dll
Mutual Authentication settings: p:SAPServiceBP0 at DOMAIN
In CMC, the role can be imported if "RFC activated" option unchecked in SNC0.
I found a few threads on the same topic, but they are all not answered:
SNC Client side configuration error
SNC Configuration Error: Incomplete logon Data
Can you please provide details of the solution if you have impleted a same scenario successsfully, or any thoughts to help the investigation?
Thanks in advance!
Regards,
JonathanHi Ingo,
Sorry for taking so long to reply, we are trying to set up server side trust and enable SSO; but we still couldn't success.
What we did is:
1. We followed installation guide chapter 6, generate certificate and PSE, etc. All looks good.
2. Then we still have the "incomplete logon data" error when refreshing webi report after logon using Windows AD user ID.
3. Then we trace the PFC connection, the log is as below. We checked several BO notes, e.g. 1500150, 1461247.. The part bothers us is that we even don't have URI displayed in the log when system trying to use SNC, and we couldn't get more info on this which make us very difficult to diagnosis.
Can you please help? Thanks a lot!
Thu Mar 31 10:54:46.857 ThreadID<1980> SAPMODULE : SAPAuthenticationService: Authentication model for SAP connectivity is SSO
Thu Mar 31 10:54:46.857 ThreadID<1980> SAPMODULE : SAPAuthenticationService: Determining if we can connect using SNC. Calling CanAuthenticate...
Thu Mar 31 10:54:46.919 ThreadID<1980> SAPMODULE : SAPAuthenticationService: Unable to authenticate using SNC because the URI does not meet the minimum connection requirements.
Thu Mar 31 10:54:46.919 ThreadID<1980> SAPMODULE : SAPAuthenticationService: Determining if we can connect using SSO. Calling CanAuthenticate...
Thu Mar 31 10:54:46.919 ThreadID<1980> SAPMODULE : SAPAuthenticationService: Authentication model for SAP connectivity is SSO
Thu Mar 31 10:54:47.013 ThreadID<1980> SAPMODULE : SAPAuthenticationService: The SAP SSO authentication process will fail because the SAP secondary credential are not properly updated and the password is blank.
Thu Mar 31 10:54:47.013 ThreadID<1980> SAPMODULE : SAPAuthenticationService: Trying to connect to SAP using this URI : occa:sap://;PROVIDER=sapbw_bapi,R3NAME=PB0,GROUP=BI_Group1,MSHOST=sapaupdb04,LANG=en,CLIENT=100,CATALOG="ZSPUM602",CUBE="ZSPUM602/ZSPUM602_Q50"
Thu Mar 31 10:54:47.013 ThreadID<1980> SAPMODULE : SAPAuthenticationService: Calling m_pRfcWrapper->RfcOpenEx() ...
Thu Mar 31 10:54:47.154 ThreadID<1980> SAPMODULE : SAPAuthenticationService: RfcOpenEx(...) returned 0
Thu Mar 31 10:54:47.154 ThreadID<1980> SAPMODULE : SAPAuthenticationService: Call to m_pRfcWrapper->RfcOpenEx() took 0.141 seconds
Thu Mar 31 10:54:47.154 ThreadID<1980> SAPMODULE : SAPAuthenticationService: SAPAuthenticationService::~SAPAuthenticationService -
Itunes closes when i try to sync my ipod 4
itunes closes when i try to sync my ipod it says it has encountered a problem and needs to close help
Thanks for the info, anyway i just tried all of the options it gave me and its no good. It seems to be only in my account, since I could sync it in my sisters account. But my itunes keeps closing after it tries to back up my ipod :S. Im really frustrated right now, ive only had my ipod since christmas and its allready having problem ...
Maybe you are looking for
-
Spinning Cursor of Death on all actions and apps
I now have the spinning cursor of death on all apps all finder actions in snow leopard over last 3 months, OS periodically dumped bluetooth, resetting the Sys management controller fixed this, also zapped the pram twice in this time. in the last 10
-
Which is better with games, the Pro or Air (both 13')?
I am debating whether or not to purchase an Air or Pro for myself in March. I will be using it for school, and will hopefully make it last all the way through college (8 years). I also will download music and movies, as well. On top of all that, I wo
-
Callback module CRM_TAX_ORDER_INIT_EC
Dear CRM gurus, I would like to ask a big favour of one of you. I have a suspicion that something is wrong with the configuration of our CRM event callbacks. It might be that there was a problem during our upgrade process and the table that stores th
-
HP OMEN Control doesn't work on windows 10
The title is self-explanatory, I have the latest drivers and HP software installed.
-
Possible for contributors to change CSS?
Hi, Is it a big no-no in Site Studio to use CSS background images as contributable content? Is there no way for contributors to be able to change the value of background-image in the CSS? Trying to use <DL> tags for some content summaries and have a