Selector Component question

Post Author: dcp013
CA Forum: Xcelsius and Live Office
A have a Label Based Menu using the Status List option to Insert Data.  By defult one cell is always set to 1 (there is not an option to set the default value to "none").  Is the any way to dynamically set all cells to zero without user action?

Thanks for your answer.
I make a selection in a table and the first time it works as you'd expect,
but subsequent selections on different JTables don't...
I still get the information from the very first selection...
So apparently I'm missing something..
Here's what I've got:
if(e.getSource() == popupIngredientItem)
  JTable t = ((JTable)e.getSource());
  String confirm = "Print details for item: ";
  int r,c;
  r = t.getSelectedRow();
  c = t.getSelectedColumn();
  String selectedItem = t.getModel().getValueAt  (r,c).toString();
int yesNo = JOptionPane.showConfirmDialog(null, confirm + selectedItem +
" ?" , "Confirm Print Item", JOptionPane.OK_CANCEL_OPTION);
}

Similar Messages

  • Questions about Selectors Component

    Any idea which selectors component would allow users to select multiple items?  I tried the Filter and/or Combo box, they only allow user to select one item from the drop-down list.
    Thanks.

    Hi Blossom,
    If you are trying to fetch the data in the dashboard using Query browser option, The useful component would be Query Prompt selector.
    Apart from that for a static dashboard or other dynamic connections you could use Check box, List builder or Accordion menu as per your requirement.
    Let me know if this information is helpful.
    Regards,
    Noopur

  • Type '[component name]' in CSS selector '[component name]' must be qualified with a namespace

    I've recently upgraded my SDK to allow me encorporate other features such as the Text Layout Framework and such. To avoid issues i've had to make Flash player 10 as required, which is where the problems are occuring in my main project.
    We knew the switch would cause some issues, and we now have a lovely batch of 100+ Warnings, that are all along the lines of
    Type '[component name]' in CSS selector '[component name]' must be qualified with a namespace
    all the warnings are on line locations that have no reference to the component they are talking about.. so i'm kinda stumped on what to do. Anybody else run into this issue before?
    cheers

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/halo"  >
    <fx:Style>
    @namespace s "library://ns.adobe.com/flex/spark";
    @namespace mx "library://ns.adobe.com/flex/halo";
    Button
        // The warning
    </fx:Style>
    <s:Button label="提交"  textAlign="center" height="30"/>
    </s:Application>
    I think you have use flex4.
    Please change the code to :
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/halo"  >
    <fx:Style>
    @namespace s "library://ns.adobe.com/flex/spark";
    @namespace mx "library://ns.adobe.com/flex/halo";
    s|Button
        // ok. The is style for spark button }
    mx|Button
        //ok. The is style for halo button
    </fx:Style>
    <s:Button label="提交"  textAlign="center" height="30"/>
    </s:Application>

  • Multiple values selection in Selector Component of Xcelsius

    I wanted to select Mutiple values in Selector Component?I dont want List Builder..I wanted to Select multiple values in Combo box or List box..
    Is there any way?
    Thanks in Advance..
    Mini

    Hi Mini,
    First of all check your version of Xcelsius ( open Xcelsius -> got to Help tab ->About Xcelsius check the version) if it is 5.3.3.0 then its ok...otherwise open the below link to download the HotFix-
    [https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm]
    the functionality is offered in latest Fix Pack only. After you install the fix, you will get an additional functionality of multiple series selection in Combo Box as well as in List Box.
    Add as many series as you want for  multiple value selection.
    Good Luck.

  • Flash MX2004 Loader Component Question

    Hi all,
    I have a question regarding the loader component that ships
    with Flash MX 2004. I am using the component to load .swf files. As
    far as I can tell, the component will not begin to play a .swf file
    until it is 100% loaded. Is this correct? If not, is there any way
    to make it play as it is downloading? This IS possible with the
    MovieClipLoader class but I currently have a complex application
    built using the loader component.
    If anyone has any suggestions, I would appreciate it.
    Additionally, I could extend the class if anyone can point me in
    the direction of what would need to be changed in the class.
    Thanks,
    John

    I'm only trying to interpret what that message is telling me in this response.  It seems to be indicating that you have some object in the library that you have named "calLoader" and assigned it a linkage ID of Loader (possibly by default) as well as another object in the library named myLoader that has the same linkage ID (possibly by default).
    If these two objects are the same component type, then you only need one of them in the library.  The different naming of them can be managed on the stage.

  • Language Selector Component Choice

    Hi Everyone,
    I have a Flash AS2 Pull-Down language selector for 11 languages that I use for Director 11, Authorware 7 and web pages. Now, time marches on and I must add 19 more languages. It will be too large for several of it use locations.  I also re-work it for OEM versions where I add or delete a few languages. I need to remain with the AS2 for backwards compatibility. It won't fit with the new languages.
    I am looking for examples, samples, ideas, free components and FLAs. I have 3 variables (4 if you count regions) that I pass/use/display to set and display localised content. I am really looking for a free spinning globe I can modify for regions and usability improvements tha tI may get requested to do. Can anyone help me?
    I already detect the OS or browser language. I am using Flash CS3.
    I have been looking at menus with submenus for regions, spinning globes (with regional hot spots), Trees, etc. for my new language selector. I am looking for pieces that I can ultimately take and create dynamically with lists or XML. I would like to create global regions. I have not found a good, free spinning globe I can use yet. I did find an example for making one using masks. It might cause issues with my large Authorware developed projects. Authorware seems to see undisplayed pieces of flash components and cause interaction problems. I would like to build a globe with all the UTF-8 codes in an XML reference the includes the Lang code, 1-3 locale lang. phrases, a region number and active state of language in the for the project.
    Icons are best because they require little or no translations (and their associated font issues) - that is why the globe method is so attractive.
    Thanks,
    Jim Wiley

    Thanks anyway.
    This is a very stupid question and maybe for another post, but I couldn't try the class you posted here
    http://forum.java.sun.com/thread.jspa?threadID=5203492
    because I couldn't compile it because I downloaded the library and got the folder in for example here:
    C:\Documents and Settings\Mis documentos\softsmithy-v20070520\softsmithy-v20070520\src\org\softsmithy\lib
    From there I added them one by one to my own folder (the one where I have my Java projets and where I downloaded the class you posted) and then I started recompiling each class I was asked for when started compiling the class you posted, but there are so many classes in the library, each one needed to compile the other and I don't know how to compile all at once or include the whole library as a package..
    Message was edited by:
    drholiday

  • Dynamically add component question?

    Hi:
    Here is part of my code in short:
    public class TextInputWithAutoComplete extends TextInput
    private function addComp():void{
    list = new List();
    list.id = "autoCompleteList";
    list.x = 0;
    list.y = 20;
    list.addEventListener(MouseEvent.MOUSE_UP, handleMouseDown);
    parentDocument.addChild(autoCompleteList); OR addChild(autoCompleteList); //my question is here
    private function handleMouseDown():void{
    //TODO
    I realized that if I do addChild, I can't really see the dynamically added component, since flex did not reserve space for my List to display. So I do parentDocument.addChild, and then the component appears no problem. My question is since it's being added in the parentDocument, so it is suppose to be a component belong to parentDocument, so is that component still be able to call this handleMouseDown?
    From my experience, it's still able to, but which doesn't make sense to me.
    Can someone explain a little about why it can still work, or any better approach other than parentDocument.addChild
    Thanks.

    In Flex there is a lifecycle that represents the contract between the component and its parent.  See the chapters on creating custom components and the lifecycle methods createChildren, commitProperties, measure and updateDisplayList.
    Some components size to content like Containers.  When you add a child to a container it will measure the child and make room for it or add scrollbars if there isn't enough room.
    If you add a child to TextInput, it doesn't expect additional children so it will not make room for it.  You can subclass and override its measure and updateDisplayList methods to make room for an additional child.
    I would not recommend adding another interactive control to an interactive control since that will make managing focus and accessibility much harder.  It is better to group these in a container in most cases.
    The reason the mouse handler still gets called is because a handler can be on any object whether it is a child or sibling or parent and will be called by the object dispatching the event if the handler is listening to that object.  If you had attached the handler to "this" it would not get called when the List is not a child of "this".
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Code Structure / Component Question

    I'm new to Flex and trying to learn as much as I can on my own without help, but I've run into a question that I'm not finding an answer for.
    I've read about creating MXML components and understand that, as well as creating AS classes, that that makes sense too.
    I have code in the default package which displays the Datagrid component (MXML) but also has ActionScript code in the same source file to load the datagrid via PHP (HTTPService) as well as define what happens when cells are updated (sending data back to update the DB via PHP).
    This is all pretty much a self-contained "component" for manipulating data from a particular MySLQ table from this single datagrid.  I have the grid displayed on one tab of the tab navigator.
    My problem is that I'd like to create a similar datagrid on a separate tab which does the same thing for a different table.   I know this code needs to be separated and not in one MXML file, but I'm not finding how to either structure my project to do this, or else make each datagrid (along with the associated AS code) into a separate component.
    Would appreciate any help or examples you may have.
    Thanks,
    Gary

    Thanks for pointing me in this direction -- I had started that way, but got confused.  Here are the first few lines of my current code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                                            width="998" height="656" creationComplete="init()" layout="absolute">
              <mx:Script>
                        <![CDATA[
                                  import mx.controls.Alert;
                                  import mx.events.PropertyChangeEvent;
                                  import mx.events.CollectionEventKind;
                                  import mx.events.CollectionEvent;
                                  import mx.events.DataGridEvent;
                                  import mx.controls.TextInput;
                                  import mx.rpc.events.ResultEvent;
                                  import mx.collections.ArrayCollection;
                                  import com.adobe.serialization.json.JSON;
                                  import com.adobe.viewsource.ViewSource;
                                  [Bindable]
                                  private var callbackUrl:String;
    Naturally, my datagrid tag is dozens of lines below this:
    <mx:TabNavigator x="23" y="10" width="831" height="506">
    <mx:Canvas width="100%" height="100%" label="Learners">
    <mx:DataGrid id="dgData"
    x="27"
    y="19"
    width="778"
    Can you show me a quick example of how I'd put this together with the top tag as you described?
    Thanks again,
    Gary

  • Distributed Component question

    Hi,
    I've a question about the set-up/architecture of a project. Im thinking of an application which has like 2 screens which is a simple master detail setup. A list contains items of a certain type. Dependant of the type, a specific screen has to be shown with its details. As certain types are financial related and some are human resource related for  example i want a way to seperate them project wise.....This because when i want to fix something in the financial screens, i dont want to impact the human resource stuff with deployment. After reading some things, i got the impression that distributed components could work here. Then i could create a component which is deployed seperately of its main application and doesnt affect other components when a fix is needed. Im i on the right track here?
    Can anyone also point me to a tutorial of how to create a simple distributed component. All i could find was a ppt of a teched which i found quite complicated.
    much thanks & regards,
    Hugo

    Hi Hugo,
    I suggest you to go through componentization articles by Bertram.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/presentation%20-%20web%20dynpro%20component%20interface%20defintions%20in%20practice.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/readme%20-%20web%20dynpro%20component%20interface%20definitions%20in%20practice.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/web%20dynpro%20java%20for%20experts:%20Web%20Dynpro%20Component.pdf
    Regards, Anilkumar

  • Component question with textfield

    I'm creating a keyboard entry component for a touchscreen.
    When the user
    hits the enter button I want to change a textfield in a
    movieclip to the
    text they typed in. The movieclip is outside of the
    component. There maybe a
    screen with multiple text entry boxes. So what I want to do
    is pass in a
    textfield reference into the component using getter and
    setter functions.
    However I am having trouble. Here's an example of what I'm
    doing.
    //mcKeyboard is the component name on the timeline
    //tfDisplay is the textfield on the timeline with the text
    'help' in it
    mcKeyboard.tfEnter = tfDisplay;
    //When I click the enter button in the component, I have the
    script trace
    the text. Here is the enter button script
    trace(tfEnter.text);
    //this displays undefined
    Am I able to pass a textfield or movieclip or something like
    that into a
    component.
    Jeff

    You will have to break the data out of the cluster and present them to the 3d Graph a seperate arrays for X,Y,Z, and W where "W" is your measured values from the locations described by X,Y,Z.
    This thread shows how to plot readings in 3-space. The following image shows the data the original questioner wanted to plot.
    Have fun,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • AS 2.0 Loader component question

    I have a site that has a gallery with 40 images, takes a long
    time to load so I need to find the best way to correct. The files
    that load manually now are movieclips that play in 10 second frames
    in their own timeline with an alpha effect on each all the jpgs and
    other files are in the main fla which is huge because of this. I
    was going to use the loader component but I see you can only use
    for .jpgs and I can't put the effect on jpgs, other obvious way is
    using loadMovie but then I have to convert all mc's to separate
    swfs. Before I go that route is there another way to do this?
    rderf

    I have a site that has a gallery with 40 images, takes a long
    time to load so I need to find the best way to correct. The files
    that load manually now are movieclips that play in 10 second frames
    in their own timeline with an alpha effect on each all the jpgs and
    other files are in the main fla which is huge because of this. I
    was going to use the loader component but I see you can only use
    for .jpgs and I can't put the effect on jpgs, other obvious way is
    using loadMovie but then I have to convert all mc's to separate
    swfs. Before I go that route is there another way to do this?
    rderf

  • Loader Component Question

    Can I have two loader components in one flash file (my main web page)  I have a main loader for my pages to load into when the corresponding button is clicked.  I need to add a second one for a small .swf file of a interactive calendar.  So I guess I need another loader .  I tried to add another loader to my main flash page and it said something like this component is in use or has same name.  I looked in my library and changed the name of my other loader to myLoader and it is still giving this wierd error.  Is is possible to use the Loader component twice in one flash document?   I also don't have them in the first frame of my document because I have an animation that plays through first.

    I'm only trying to interpret what that message is telling me in this response.  It seems to be indicating that you have some object in the library that you have named "calLoader" and assigned it a linkage ID of Loader (possibly by default) as well as another object in the library named myLoader that has the same linkage ID (possibly by default).
    If these two objects are the same component type, then you only need one of them in the library.  The different naming of them can be managed on the stage.

  • HT202696 I hve Apple care on 1 device but the person at the apple store just talked about replacing fried ports and did not answer my broken glass or component questions and nothing in detail is actually posted so im afraid its yet another insurance scam

    I want to know what exactly Apple will fix on say my IPhone 6 plus. Like a dropped device with broken hardware or components or port issue, electrical broken glass etc.. I only have AppleCare on 1 device because I cant get straight answers about repair cost or if it will repair broken glass ,components  etc. The person at Apple just said it will fix ports and did not answer the other question about a real broken device or broken glass. 

    Actually that's not entirely accurate Csound1... If you purchased AppleCare+ it not only extends your warranty an extra year but it also now covers up to two accidental damages (water damage included). Now every scenario is different when you're talking phone damages so it's best to set up a reservation with the Genius Bar if something happens and they'll assess the damage. Either way, as long as you're covered with AppleCare you'll receive a deductible price on parts. Certain instances you may not have to pay anything which are usually things like faulty software, faulty buttons, etc.
    Hope this was helpful!

  • List component question

    Hello,
    I have flash cs4, and I am using a list component. I know how to open swf when somebody clicks on the list, but is there any way to tell the component to open a .pdf file on  a new window using the list component?
    thanks for your guidance
    Cheers.

    You just need to link to the pdf like you would link to any web page.  The code you use depends on the version of actionscript you are using...
    AS2:  getURL("http://www.yourdomain.com/your.pdf", "_blank");
    AS3: navigateToURL(new URLRequest("http://www.yourdomain.com/your.pdf"), "_blank");

  • Simple image component question

    I have to fix a flash file someone else made, and I need to use an image component, which I'm not familiar with.
    I just need a simple image that scales up, and then moves across the screen. I've got my image component, and tweened it to scale and then move, and it looks fine when I scrub the timeline, but when I test as a swf it doesn't do anything, it just sits there.
    Am I missing something?

    If its working on while dragging the timeline during in authoring and not working while playing the complied swf can mostly mean that u have attached a top command somehwere in ur code which is stopping the timeline from moving forward on playing the swf.Check for unwanted stop commands.

Maybe you are looking for

  • Please help - Copying items to another folder?

    I thought I was pretty good with Automator, but I've never done a folder action before, and I can't seem to get this one to work. I want to have any songs in my "Automatically add to iTunes" folder automatically copy themselves to my mom's "Automatic

  • ADRMS with multiple versions of Office

    We have some clients with Office 2007 and 2010.  We are also beginning to roll out 2013 to some users. We currently have AD RMS installed on Server 2008. My understanding is that for Office 2013 to work with AD RMS we need the 2012 version. What is t

  • IPad and iPhone for two users but one Apple ID

    My husband has an iPad and I have an iPhone. We share the same Apple ID. I got a text message and it went to his iPad. How are we able to use both but not share contacts or messages.

  • BAPI_SALESORDER_CREATEFROMDAT1 Purchase Requisition Creation

    I am creating sales orders using BAPI_SALESORDER_CREATEFROMDAT1.  Some of the sales orders include a third-party item which require a PO.  Well I have it creating the purchase requisition it errors out because it can't determine the consumption accou

  • Drop outs every few hours

    Hi all hope someone can help as i am coming to the end of my tether with my BT Faster Broadband connection it drops out every few hours and has done for almost 2 months.  i cant watch a movie or play a game without losing connection at least once, ma