Why to use Item Attribute with Event in case of some controls

A question about Event.Item
When i saw the example of MenuBar , i observed that we can get the data of the MenuBar clciked   using a Event.Item@label .
I am having a question here , please tell me why Flex Framework is designed in such a way that getting data from the Controls is different for different controls .
I mean to ask why is it different in ncase of a MenuBar we have to use Event.item@label .
CXan anybody please tell me why what significance does an Item attribute have in case of a Event ??
Thanks in advance .

It looks like you probably have ProductID setup as your key attribute. The key attribute has to be unique as it defines the granularity of your dimension. So based on the data you have shown ItemID should possibly be the key attribute. 
http://darren.gosbell.com - please mark correct answers

Similar Messages

  • Source Used Item Attribute

    Hi All,
    I am using HTML DB 2.0. I am a new user of HTMLDB. Please explain the difference between 2 Source Used Item Attribute
    1. Always, replacing an existing value in session state
    2. Only when current value in session state is null.
    If there is already a thread on this, please give me the link.
    Thanks in advance
    Monika

    So are you saying that this behaviour is different in v1.6?Yes. Otherwise the PPR stuff wouldn't work when those requests referenced uncommitted session state.
    You mean, "will NOT be able to ..."No, it will be able to see the value of the item (in uncommitted session state). That's the change from 1.6.
    What is an example of a "session-state committing source method"? Code that not only sets the source of the item for display but as a side-effect cause update_cache_with_write to occur for that item or for any other item(s). For example a PL/SQL Function source type that returns the source value and also does :P1_ITEM := 'value'; .
    Scott
    Message was edited by:
    sspadafo

  • HT5312 Someone else has been given my old Apple ID. now I can't use items purchased with that account. How do I get it back or change items purchased by me to my new account?

    Someone else has been given my old Apple ID. now I can't use items purchased with that account. How do I get it back or change items purchased by me to my new account?

    When I requested a new password the e-mail was sent to the old address then the new owner of that address entered their info and I no longer have access to it.

  • Why not use Bridge CS4 with PsCS3?

    I will post this on both the Bridge and Ps User-to-User forums as it applies to both.
    I have PsCS3 and PsCS4 installed side by side in the default folders assigned by Adobe but have shifted my Bridge CS4 Cache (containing all the thumbnails and previews) from C:Documents and Settings\etc to a subfolder within My Documents, which I had previously moved to my F: drive - my main data drive.
    I have found Bridge CS4 to be much more stable than Bridge CS3. Additionally, Bridge CS4 has certain features which make it more attractive and easier to use than Bridge CS3. I want to use Bridge CS4 in conjunction with PsCS3 until Adobe has sorted out the problems with PsCS4 - which at the moment is simply unuseable on my rather old and humble system.
    On my system, I seem to be able to use Bridge CS4 with PsCS3 without any problems detected so far. I even have things set up such that any JPEG, TIFF or PSD file double clicked within Bridge CS4 or within Windows Explorer (Win XP Pro SP3) automatically opens the file in PsCS3 and not PsCS4 (provided, of course, that PsCS4 is not itself already running). Furthermore, even with PsCS3 running beside Bridge CS4, from within Bridge CS4 I can open any RAW, JPEG or TIFF file in Camera Raw 5.1 and use its new features (Adjustment Brush, Graduated Filter, extra vignetting capabilities, etcetera) which were not available in the last release of Camera Raw (4.6 I think) associated with PsCS3. The only problem comes when trying to open edits made in Camera Raw 5.1 in PsCS3 using the "Open Image" button in ACR - it does nothing/won't work, this is, it won't open the image with the ACR adjustments in PsCS3. That's not a big deal for me - as I am currently not doing any work within ACR (any version) and if I needed to I could simply save the ACR edits and then open the files in PsCS4, save the files as PSDs and then open them in PsCS3 to finalise them there.
    Has anyone else had a similar experience, or does anyone else know of any reason(s) why I should not continue to use this workflow, at least in the short term?

    I've been away. Thanks John, Bart and Buko for your responses. Think you misunderstood my post Bart, but it does not matter now. John got the correct message. Buko: of course CS3 cannot use ACR 5.x - that was implicit in my post.

  • Query for create manual tabular form using apex collection using item textfield with autocomplete

    can we create a manual tabular form inside item textfield with autocomplete ?
    how it is possible?
    with Apex_item API used for this item.
    i used this code for creat  cascading select list
    select seq_id,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(
            p_idx                       =>   1,
            p_value                     =>   c001,
            p_query                     =>   'SELECT C001 D
         , C002 R
      FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = ''col1''',
            p_attributes                =>   'style="width:150px" onchange="f__name(this,parseInt(#ROWNUM#));"',
            p_show_null                 =>   'Yes',
            p_null_value                =>   null,
            p_null_text                 =>   '- Select name -',
            p_item_id                   =>   'f01_'|| LPAD (ROWNUM, 4, '0'),
            p_item_label                =>   'Label for f01_#ROWNUM#',
            p_show_extra                =>   'NO') name,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(
            p_idx                       =>   2,
            p_value                     =>   c002,
            p_query              =>   ' SELECT null d, null r FROM dual WHERE 1 = 2
            p_attributes                =>   'style="width:150px"',
            p_show_null                 =>   'Yes',
            p_null_value                =>   null,
            p_null_text                 =>   '- Select name -',
            p_item_id                   =>   'f02_'|| LPAD (ROWNUM, 4, '0'),
            p_item_label                =>   'Label for f02_#ROWNUM#',
            p_show_extra                =>   'NO')name2,
    from apex_collections
    where
    collection_name = 'COLLECTION1'
    It is fine .
    but i want item in tabular form  textfield with autocomplete and remove select list. my requirement is using textfield with autocomplete select a employee name and second item textfield with autocomplete display dependent perticular employee related multiple task.
    how it is created.i have no idea related textfield with autocomplete.Please help me....

    pt_user1
    I understand that the add row button is currently doing a submit.
    To not submit the page you need a dynamic action on the page.
    Does the javascript function addRow do what you want?
    Otherwise have a look at the following two threads Add row in manual tabular form using dynamic action and Accessing Tabular Form & Add Elements to Collection without Page Submit.
    You're process could be something like:
    Add the new values to the collection using the idea's in the second thread and at the same time add the new row.
    And as second action refresh your tabular form.
    If you get stuck set up what you have done on apex.oracle.com using the tables from the demo application.
    Nicolette

  • Why not use "new" operator  with strings

    why we not use new when declaring a String .because in java String are treated as objects. we use new operator for creating an object in java .
    and same problem wiht array when we declare array as well as initialize .here we are alse not using new for array
    why

    Strings aren't just treated as objects, Strings are Objects.
    As for why not using new for Strings, you can, if you want.:
    String str = "this is a string";
    and
    String str = new String("this is a string");
    do the same thing (nitty-gritty low level details about literals aside). Use whatever you like, but isn't it simpler not to type new String(...) since you still need to type the actual string?
    As for arrays, you can use new:
    int[] ints = new int[10];
    or
    int[] ints = { 0, 1, 2, 3, ..., 9 };
    But the difference here is you are creating an empty array in the first one, the second creates and fills the array with the specified values. But which to you often depends on what you are doing.

  • Why you cant assign attributes with dense dim members

    Hi Experts,
    I have one stupid Q...
    Why we cant assign attributes to the dense dim mem,
    Is it bcoz
    1) Essbase server was designed like this...
    2)or else it will take too long time with dense dimension to calculate....
    or else some other reasons
    Thanks

    First thing is Essbase will not support assigning attribute dimensions to dense dimensions.
    For why they designed like this is an interesting discussion.
    My point is if we directly point attributes to dense dimensions ie we are directly pointing to data blocks for that you need a seperate index.
    By Assigning Attribute dimensions to Sparse standard dimensions you are reducing the data volumes and there by increasing the performance.
    generally, Accounts and time are dense dimensions.
    For those two dimensions there are in built tags like Expense, Time Balance and DTS provided by essbase so that you can meet your functional requirements based on tags.
    Any however There is UDAs you can assign to dense members.
    By UDAs you can group the dense dimension members and based on UDA tag you can achieve the needed grouping requirement.

  • When using time machine with external hardrive to backup, some music items from iTunes and some photos from iPhoto do not transfer to backup hardrive.  What am I ding wrong?  Using latest version of mountain lion.

    When I use time machine with my external harddrive to back up computer, some music from iTunes library, and some photos from iPhoto library are missing when I check backup disk.  I am using latest version of mountain lion.  Am I doing something wrong?

    First, Time Machine doesn't completely back up the iPhoto library while iPhoto is running. Make sure you quit iPhoto after making any changes to allow a backup to take place.
    This simple procedure will clear your Time Machine settings, including both overt and hidden exclusions. If you have a long exclusion list that can't be recreated easily, you may prefer a more complicated procedure that preserves the exclusion list. In that case, ask for instructions. Otherwise, do as follows.
    Triple-click the line below to select it:
    /Library/Preferences/com.apple.TimeMachine.plist
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu. A Finder window should open with a file selected. Copy it to the Desktop. Then move it (the original, not the copy) to the Trash. You'll be prompted for your administrator password. Reboot, recreate your settings in the Time Machine preference pane, and run a backup to test. If TM now performs as expected, delete the file you copied to the Desktop.

  • Using timer/counter with PCI-6221/USB-6210 to control timed-loop VI

    Dear all,
    I need to ask about two devices and one of their functionalities, PCI-6221 and USB-6210. For our NI-based system, we need to control some timings in a Timed-Loop vi, for that currently we are using PCI-6221 and we give external TTL signal (at 1 kHz) to it,
    recenntly we need to make some changes and for that we found USB 6210 DAQ to be more suitable, but we need to clear ourselves on some specific things.
    Can the counter/timers functions available in the either PCI 6221 or USB 6210 can be used to control the Timed-loop VI by giving external clock or by using their own internal clock source?
    Although we are using external clock with the PCI 6221 but we want to know about the usage of their internal clock, also are controlling timed-loop also possible for USB-6210
    Also... What if we use the RTOS, are they still able to control the timed-loop VI  without giving any 'EXTERNAL CLOCK' and using the internal clock sources of the DAQs
    Waiting for reply,
    Bests,
    RaJaf
    Solved!
    Go to Solution.

    Ben,
    I having read previous email which I send earlier with general overview, we discussed in more detail within our team and I am giviing the specific answers.
    Please check in RED the most recent answers. Blue are the questions/suggestions by your side.
    1.    Using Internal hardware clock of PCI-6221 would enable us get rid of external clock, but how to divert the internal hardware clock to the current settings. Any idea  (can you provide us with some reference manul for otherwise). I mean is there some flag-bit etc. or VI
    2.       Is it also meant that with the installation of RTOS the timed-loop can directly get the timing source from the internal hardware clock PCI-6221? --- How???
    3.       In order to make desktop to work as RT system, what is the hardware (motherboard, processor, etc..) requirement? What are the LabVIEW modules (specific name) that needed to be installed? Our platform is LabVIEW 8.6. (Currently we have windows-7 with i7 core processor)
    What kind of application are you intending for this system? ---- high-speed laser scanning system.
    Are you most concerned about accuracy, speed, or responsiveness? To control the laser mirror scanner to move at 1 kHz or 2 kHz speed. On the other hands, using PCI-5105 (128 MB memory) as a DAQ for real-time/on-the-fly data processing.
    Bests,
    RAJAF

  • Use labview to read an Excel file to some control and add a checkbox for each row

      As the subject say,I need to use labview to read an excel file,and show it in some control,such as mclb;then ,I should add an checkbox for each row,enable me to choose the row i want.What should I do ? Many Thanks.
    Solved!
    Go to Solution.

    Hi,
    to answer your question:
    - read an excel file
    - show it in some control, such as a MCLB
    - add an checkbox for each row
    - choose the row you want
    Hint to make it easier: I wouldn't use checkboxes, as the MCLB already allows to select rows by mouseclick…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Using page attribute in event handler method of controller

    Hi all,
      I have created a page attribute GT_TABLE. I need to use this table in one of the event handler methods of the controller of the same page. I tried to use the GET_ATTRIBUTE method but it always returns an empty table.
      Can someone please guide me in this respect.
      Thanking you in advance,
    Regards,
    Sumit.

    Hi Sumit,
    The page attribute you mention (GT_TABLE) it's an internal table, isn't it? So far I know, the value of internal table will gone when BSP finish to load in server. If you want to keep the data in internal table, you need to load the internal table into Session (in one of page event in BSP).
    Regards
    David

  • How to use ThreadPoolExecutor / ArrayBlockingQueue with event objects

    I am having some trouble figuring out how to use the new java.util.concurrent library for a simple thread pool that has custom threads pulling off event objects from a queue.
    I started with this kind of code below, which I know is not right but am having trouble seeing the correct approach. Any help is appreciated. Thank You!
    -Paul
    public class testThreadPool {
    public static void main( String [] args ) {
    //work queue actaully only takes runnables,
    //but I need to add my event objects to this queue ??
    ArrayBlockingQueue<Runnable> workQueue = new ArrayBlockingQueue<Runnable>(20);
    ThreadPoolExecutor pool = new ThreadPoolExecutor(10,//pool size
    20,//max pool size
    1,
    TimeUnit.SECONDS,
    workQueue);//the work queue
    //this will ensure that the pool executor creates worker
    //threads of type MyThreadWorker
    pool.setThreadFactory(new MyThreadFactory());
    pool.prestartAllCoreThreads();
    //throw some events on the queue and let the pool workers
    //start to execute with the given event object
    workQueue.add(MyEvent);
    workQueue.add(AnotherEvent);
    class MyThreadFactory implements ThreadFactory {
    public Thread newThread(Runnable runnable) {
    return new (Thread)MyThreadWorker();
    class MyThreadWorker implements Runnable {
    private boolean m_run = true;
    public void run(){
    Object obj;
    while (m_run) {
    obj = null;
    //get the event object from the blocking queue
    try {
    obj = workQueue.take();
    } catch (InterruptedException e) {
    if ( obj == null ) continue;
    if ( obj == null ) continue;
    if (obj instanceof MyEvent) {
    //do this
    } else if (obj instanceof AnotherEvent) {
    //do this
    public void stopRunning(){
    m_run = false;
    this.interrupt();
    }

    What database and connection type are you using? Are you connecting the report directly to the database, or trying to assign the datasource to object data?
    It sounds like you might be trying to use a linked list, collection or other C# construct to pass your data in. This currently isn't supported by the Crystal Reports SDK. You can use a DataSet or a DataTable, and possibly also an IDataReader depending on which version of Crystal Reports you're referencing in your project. Of course you can also connect directly to the database, even if the database isn't on the same machine as the application.
    The way to show master records with detail information is through the use of subreports and linked subreport parameters. Linked subreports take their parameter value from a record in the main report, so that only the data appropriate to that master record is displayed. The guys over in the [report design|SAP Crystal Reports; forum can help you out with this if you have questions on the specifics.

  • Functionality of OE Transactable Item attribute

    Hi,
    Can anyone explain the functionality of OE Transactable Item attribute.The item can be picked/shipped and interfaced to Inventory module even without enabling this Item attribute.
    thanks

    Hi
    In your case then the 'shippable' flag would have been enabled.
    We can have OE transactable flag as disabled even with 'Shippable' flag enabled.
    If both these flags are disabled then inventory interface would not be there.
    You can use OE transactable in isolation, for items used in forecasting and planning like product families
    Regards

  • XML attribute 'with' reserved?

    While working on a XMPP implementation I'm noticing the attribute 'with' keeps throwing errors when trying to access it to set or get the data from it. Is that a reserved word or something? Sort of makes this difficult considering 'with' is used heavily in the spec..
    var xml:XML = <rootNode>
              <item with="test" without="rest">cool</item>
    </rootNode>;
    trace(xml.item.@without); // no problem
    //trace(xml.item.@with); // uncomment and you'll get error "Syntax error: expecting identifier before with."

    It can be how you access it when considering reserved words. Try trace(xml.item.attribute("with")); or trace(xml.item.@["with"]); 

  • 32bit and 64bit Apps using Crystal 2010sp1 with a recordset

    Hi
    I'm using Crystal 2010sp1 with VS2010. I have some code that I did not write, which obtains a recordset and passes that to the ReportDocument. It then goes on to .Export() the report.
    When my app is compiling as 32bit the .DataSourceConnections on the ReportDocument contains 1 item with the following properties:
    DataBaseName=""
    DBConnHandler=0
    IntegratedSecurity=False
    LogonProperties = { "ADO.Net DataSet Object", "0,4AFECC" }  { "ADO.Net DataSet Object", "0,4AFECC" }
    { "Internal Connection ID", "2e3b2f7f-0c31-472a-9773-f301a7ba9a3e" }  { "Internal Connection ID", "2e3b2f7f-0c31-472a-9773-f301a7ba9a3e" }
    Password = ""
    ServerName = "NewDataSet"
    Type = CRQA
    UserID = Nothing
    And it exports perfectly!!
    When compiled as "Any CPU" and running on a 64bit machine, the properties are:
    DataBaseName=""
    DBConnHandler=0
    IntegratedSecurity=False
    LogonProperties = { "Field Definition File", "BL_Extras.ttx" } { "Field Definition File", "BL_Extras.ttx" }
    Password = ""
    ServerName = "D:\EntaV4\ENTAReports\rpt\BL_Extras.ttx"
    Type = CRQA
    UserID = Nothing
    And the export fails with the exception:
    "Failed to load database information. Error in File BL_Extras {9D634275-70C4-42E8-B7EE-C2A69C0CDD2B}.rpt: Failed to load database information."
    Why under 64bit is Crystal setting different connection details? And where is it getting the path for the ttx file in the ServerName property, my app and report are on my C drive in a totally different location. That folder on D had never existed on my machine.
    I do happne to have the ttx file for this report, but putting it next to the rpt or in the above path makes no difference. I don't have the ttx for other reports though anyway and running as 32bit it works even if I delete the ttx though.
    I have searched the error and found several pre-SP1 and non-recordset scenarios. I also read a little about create XML files for the reports but that is going to be too much work as there are hundreds of reports. It's not a lack of a 64bit ADO driver is it?
    I thought i'd ask here for other solutions before I step back in time 10 years and make this app 32bit only.
    I'm pretty sure this all worked on 2008 with CR2008.....

    I exported the data as XML from my datatable like you said. I did it both running as x64 and x86, the output was the same.
    I thought i'd eliminate any bad code that might be in my main app by writing a little test app that loads that xml and drops it in a viewer control. I started a new project in VS, added a form with the Crystal Report viewer. I then wrote code to load the rpt file, and read the xml into a dataset, and then setdatasource on a report object to the first table of that dataset (which is what my main app is doing).
    Dim crReportDocument As New ReportDocument
    Dim filePath As String
    Dim ds As DataSet
    filePath = "c:\64crystal.xml"
    ds = New DataSet()
    ds.ReadXml(filePath)
    crReportDocument.Load("C:\inetpub\wwwroot\SchedulerManager\rpt\BL_Extras.rpt")
    crReportDocument.SetDataSource(ds.Tables(0))
    CrystalReportViewer1.ReportSource = crReportDocument
    Running it in x86 I am prompted for some parameters that the report required, and then the report renders in the viewer perfectly, no problems.
    Running this app in x64 prompted me for the parameters, and then I get a msgbox saying:
    Failed to load database information
    Error in File BL_Extras {CD6C5C52-744C-433E-9297-87ECC3834262}.rpt:
    Failed to load database information.
    So then going back to what you asked, I went to the viewer control and click 'choose a crystal report' I get a 'Bad forumula result' error. If I select 'Create a new Crystal Report' and then 'From and existing report' and select the rpt file i'm working with. It then shows the rpt file in the VS designer with all the fields and sections and looks fine, though returning to the viewer gives the 'Bad Formula result' again. Seem to get this on several reports so am assuming its just because there is no data yet.
    On this report now in my project I went to set datasource location and selected the XML it then shows NewDataSet with Table under it in the treeview. The update button is disabled if i select the table. If I select the dataset and click update it tells me:
    "Some tables could not be replaced, as no match was found in the new data source. Please specify the table required for any unmodifeid tables". The top pane of this window is showing the file details of the ttx that it thinks is located on the D drive.
    If I go to database expert and move the table over it then prompts me to find the ttx file. It doesn't let me skip this so I give in and tell it where it is. I then get the link tab. It shows the ttx with 23 fields and my xml table with 27 fields. It has 11 fields linked automatically,
    A comparrison of the ttx and XML in notepad shows the following, the bold fields are the ones that did not auto link.
    DateOption, ttx:Number, xml:unsignedByte
    StartDate, ttx:dateTime, xml:dateTime
    EndDate, ttx:dateTime, xml:dateTime
    VenueGroups, ttx:Memo, xml:string
    Profiles, ttx:Memo, xml:string
    Users, ttx:Memo, xml:string
    Extras, ttx:Memo, xml:string
    RepGrouping: ttx:Number, xml:unsignedByte
    IncludeDiscount, ttx:Number, xml:unsignedByte
    VgrDescription, ttx:String(50), xml:string
    CurSymbol, ttx:String(3), xml:string
    CurName, ttx:String(30), xml:string
    CurScaleFactor, ttx:Number, xml:short
    ProDescription, String(50), xml:string
    UseName, String(30), xml:string
    TransactionDate, ttx:Datetime, xml:dateTime
    StxCode, ttx:Number, xml:int
    StxDescription, ttx:String(100), xml:string
    MrwID, ttx:String(3), xml:string
    MrwDescription, ttx:String(100), xml:string
    Sales, ttx:Number, xml:int
    Returns, ttx:Number, xml:int
    Reserved, ttx:Number, xml:int
    GrossSalesAmount, ttx:Currency, xml:decimal
    GrossReservedAmount, ttx:Currency, xml:decimal
    SalesVAT, ttx:Currency, xml:decimal
    ReservedVAT, ttx:Currency, xml:decimal
    Right clicking on all of these bold items on the table side (in the link tab) says that those bold fields are type Number. So not sure why the first 8 don't link as they are looking for Number. As for the last 4, in SQL these fields are type money, once read by vb.net into a datatable they are of type decimal. Not sure what crystal is expecting here.
    I can manually link the 8, but it tells me for the 4 currency fields that the "data types are not compatibile"
    I still don't get why if running as 32bit and passing the datatable from xml or sql to the rpt, even without the ttx, works without issue.
    I think for now that i'm going to have to simply compile my main app for 32bit, but would still like to understand what is going on here. Thanks for helping to look into this.
    Tony.

Maybe you are looking for

  • How can I randomize photos on a Mac?

    When I view my photos, I do it on Preview. I want to know if there's any app or process that can randomize the order i open the photos in.

  • Can't boot from external hard drive

    I have a 250 GB OWC Mercury Elite-AL Pro Firewire drive that I use for backups for my MacBook Pro (running 10.4.8) and iBook G4 (running 10.3.9). The drive is partitioned into four parts, two of which I use for bootable clones of the MBP and iBook. I

  • REQUEST GOP / UEFI BIOS for MSI R9 270 GAMING

    Hi there! Could I get the latest UEFI GOP VBIOS for MSI R9 270 2G GAMING please? Serial number: 602-V305-03SB1401002324 Current VBIOS: _https://drive.google.com/file/d/0BzVByGARY8OCNXZBTXpMLVJaems/view?usp=sharing (without _) Many thanks

  • Tablespace Encryption in TDE

    Oracle 11.0.1.7: Couple of questions: 1. When using Encrypted Tablespace is the data written in redo logs also encrypted? 2. Is it possible to alter the existing tablespace to add encryption assuming there are no objects in that tablespace?

  • Material, Pl. ord list for a vendor

    Hello Experts, Is there any std report that gives the list of all planned orders of all materials for a vendor. Thanks in advance. Ranjit