Can the Item Name be passed to Javascript?

Is there a way to capture the Item Name (or any unique identifier) from the button that was clicked to trigger a javascript?  (I'm working in Captivate 5.5, but others are on 6.0, so I can take either answer if different)
To provide context, I have a simulation where the user has to make three different choices from three different drop down boxes (choose an appetizer, an entree and a dessert), each choice stored in a variable.  The user then has to assign the three selections to one of 20 places.  Each of the 20 places has 3 variables each to capture the choices for each dining position.
My problem is that I have to write 20 different Advanced Actions to assign the 3 user choices to the 3 variables for that dining position.  While straightforward enough, as I think through expanded options for the simulation, that will be a complete pain to make changes.  My desire is to write a Javascript that 'constructs' the variable name needed for the cpEISetValue function, so that the same script can be used for each of the 20 buttons.  I know how to the construction part of the variable name, but to do that I would need some kind of unique information about the button that was clicked to construct its unique variable names for the choices.
Hope that made sense.

Yes, this is possible:
Drop a smart shape onto your canvas and set it to work as a button.
Right-click it and Add Text.  This will enable the Format section in the properties panel.
Under the Format section, choose a Captivate Variable to be the text of your smartshape button.
When the button is clicked, you can execute some javascript to get the name of the button like so:
alert('Button Name: ' + document.Captivate.cpEIGetValue('m_VarHandle.btnName'));
Where btnName is the Captivate user variable that you're displaying in your smartshape text.  That JavaScript should pop up an alert box with the name of the button.
You can also set the name of your button from JavaScript if you needed:
document.Captivate.cpEISetValue('m_VarHandle.btnName', 'Save');
This would make your button read "Save" in your project.
Jim Leichliter
CaptivateDev.com

Similar Messages

  • The item "(name of the song)" can't be replaced because it's invisible!!??!

    I'm hoping someone can help me with this issue.
    I've been backing up my song purchases to the time capsule but for some reason on half of my songs i get an error that says "*The item (name of the song) can't be replaced because its invisible*"
    never had this problem before until now... not sure how to fix it. i can play my songs no problem but when i try to copy a song to the time capsule i get that error message. HELP!

    The issue has nothing to do with your original files (I'm pretty sure) so the profession of being able to play the song in iTunes has nothing to do with it. The file that's "invisible" is not the original, but the copy that's already in the destination folder. OS X has LOTS of invisible files all over the place. Why didn't you know that before? They're invisible! Usually these are files the system needs for proper operation, but the user doesn't need to mess with (according to Apple!).
    Now, how did your destination folder wind up with an invisible file by the same name as the song file you're trying to copy? I don't know, but what it looks like to me is that standard opperating procedure for the OS is to begin its copying process by first creating an invisible file in the destination folder with the proper title, then begin actually copying data. For some reason that Apple needs to fix, sometimes when the OS goes to start actually copying data, it sees the invisible file it just created and says "Oops! there's already a file there by this title! I can't put another one there!" Normally, it would ask you, the user, if you wanted to replace the existing file, but the file is invisible and therefore cannot be replaced, so it just tells you that.
    What to do?
    I LOVE the widget available here: http://web.me.com/hansen.m/Site/Widgets.html One trip to the dashboard, click on "Show", and viola! you can see that pesky invisible file in your destination folder. Now you can delete it. Sometimes this works and a second attempt to copy the file works. More often I find that I have to copy to a different folder on the destination disk. After that I can move it to the preferred folder (copying from the local hard disk to some other location - I run into this when copying to my idisk - seems to be part of the problem.)
    In case that was about as clear as a toad's complexion, let me illustrate. I move files for sharing to my idisk every week. I click on a song and drag from iTunes, where I've already placed my recording, to a Finder window where idisk/Music/ReChording is already open, wait for the green circle with the white plus sign, and drop it. I get the message about not being able to replace. I access my dashboard and click "Show". Then I delete the now visible (grayed, but visible) offending file from my idisk. Then I click (in the Finder) on the idisk/Music folder, making it the destination. Then click on iTunes and drag the song to the idisk/Music folder. It copies. When it's done, I drag the file from idisk/Music to idisk/Music/ReChording. This copy has never given me a problem, and is nearly instantaneous, since no data needs to be copied.
    Download that widget. It's a lot less painful than other workarounds. But Apple needs to fix this.
    I hope that helps.

  • How to get the view name by passing the window name from table

    Hi All,
    would like to knew about the standard table from which we want to "retrieve the VIEW name by passing WINDOW name"
    as we have standard tables like WDY_WINDOW, WDY_VIEW,WDY_APPLICATION but our ZComponent details
    are not updated in this WDY_WINDOW table.
    Is there any other table exists on the above condition
    Regards
    Jaipal.E

    Hello friend,
    There are many structure names started with WDY_WB_VC*where the details of the windows and views are stored just search those structures and see where its getting the tables in run time so that you can get the source tables.
    I think this will be useful for you.
    Thanks,
    Sri Hari

  • Download configuration, downloads only the item names.

    It seems that the download configuration function only works for the item names, and not for the item property�s. Is this true?
    I�ve tested it with some fp thermocouple modules (FP-TC-120). You can easily see the difference between data range set to volt and data range set to degrees Celsius by looking at the led of each channel�
    In other words: is there an easier way to download the property configuration than changing the channel configuration and than using the file configuration (if it differs from the module configuration)?
    Kind regards
    Jonas Van Otterdijk

    Hi Aaron,
    Thanks for your fast answer.
    I think the snapshot command is not an option, because it uses the current settings on the fieldpoint modules as the start up settings and not the file settings. (of iak file)
    Therefore, when exchanging a fp2000, I have go to the channel configuration, do several clicks, do it again for each bank and�.i have to write the manual.
    Maybe a little suggestion for fieldpoint Explorer 4�..
    Kind regards,
    Jonas Van Otterdijk

  • Can the items in trash be deleted without effecting the computer

    can the items in trash be deleted without effecting the computer...in other words is the computer using any of the files in trash

    An item that is moved to the trash is temporarily stored until you Empty the Trash. Data that is moved to trash is unusable by the system. Same as it would be in real life where you put items in your trash bin but you could take it back out if you haven't already thrown the trash away

  • How to get the item name from a column in an interactive report?

    I created an interactive report. Then on the same page I added a tabular form region. What I want to implement is that, when I click a column link button on a specific row, the name of the row will be passed to the tabular region, so that the tabular region can list the corresponding items that belong to that specific row. But I have no idea what the name it is. Any idea? Thanks!

    Thanks! I've got it work! Now I can associate many product to a specific ProductNumber.
    Another issue comes up: I want to be able to add more products in this category. But when I press the "Add Row" button, it generates a new line but with ProductNumber null. This results me in failing to insert the new record, because the rule is that ProductNumber can't be null, and also it can't be assured that the new record is associated with this category (ProductNumber). What can I do to make it automatically come up with the same ProductNumber for new records? I guess some kind of a trigger may be needed, but I don't know how to do it.
    I made a screenshot here: http://img25.imageshack.us/img25/3051/98605982.png
    Thanks!

  • How to get the Text name to pass in the  parameter header in save_text

    Hi,
      I am trying to change the long text of operation for historical order by using the flat file.I am using the save_text to do this.I would like to know how  to get the text name in order to pass the parameter header in save_text.
      I went to the tcode iw62 to get the header information of the long text.300100000009200000001
    i would like to know what this 1000000092 indicates and where is this value updated in the table so that i can link it thru the order no  to get the link and pass it in the text_name.
      can anyone help me out?
    krishnan

    Hi,
    Your query is.
    I went to the tcode iw62 to get the header information of the long text.300100000009200000001
    i would like to know what this 1000000092 indicates
    In above number
    300 - Client
    1000000092 - AUFPL - Routing number of operations in the order (You can fetch this from table HIVG)
    00000001 - APLZL - General counter for order ( You can fetch this from table HIVG).
    BR,
    Vijay

  • Can the column names be changes dynamically in OBIEE presentation

    Hi,
    Is thr any way through which I can change the column names depending on the value of a column.
    the table structure is
    Plan_name      Character1   Character2    Character3  ....
    so here according to plan_name the meaning of each character column changes. And I want to display each type of meaning on the presentation layer.
    I cannot create aliases as the number of different plan name is 1200.
    Any help will be appreciated.
    Regards,
    Akansh Agarwal

    Hi,
    I haven't tested these options, but you might. Maybe you try to supress the header for your table with data. After that, create a second table, which will be used as the header, and insert the same number of columns as the first table.
    So on the 'header' table, create a conditional style (Criteria, Column Properties, Conditional Formatting), pointing to the values on shown in the first table. (You maybe need the data to be queried in both).
    If this does't work, you can try to adapt the javascript shown in this blog: DELIVER BI OBIEE 11g & 10g , ODI , OBIA: OBIEE Table make a row BOLD with JAVA
    And instead of making the row bold, change the value.
    Hope this helps. Sorry if it does't work.
    Best regards.

  • Getting the item key to pass as a parameter

    How can I get the itemkey if I have the itemtype to pass as a parameter into the wf_engine.createprocess api.
    Thanks

    i am trying to pass the parent_id as a parameter to a portal page but am not able to... i can add it to the list of in parameters to the PL/SQL based parent id but when i add the parent id to the url then i get no result... i created a custom attribute for the parent id since there is no attribute build other then page group and page id... when I set the Parent ID attributes default value in the attribute properties of the item type based on PL/SQL it just brings back results for the default value and if i pass a different value for ithe parent id i dont get the correct result I get the result for the default parent id.
    I am using the followin url to pass the parent id
    http://localhost:7778/portal/page?_pageid=76,87832&_dad=portal&_schema=PORTAL&parentid=22223

  • Form Component changing the Item Name to match new Column Name

    I have a working Portal Form Component that is associated with a
    particular database table. If for some reason a table column
    name is changed, is there a way to modify the Item in the Form to
    use the new column name?

    I can not guarantee that this will work. But try this:
    1) Create a copy of the form (for backup).
    2) Now edit the original form.
    3) Delete the Item(Database Column Item) that has been renamed.
    4) Now add an item with the same name as that of your new
    database column.
    Pls tell if it worked or not.
    Good Luck,
    Chetan.

  • Getting the item name in the pricing procedure

    Hello Experts,
    I am working in VMC Pricing exits for CRM 5. I am writing the java pricing user-exit in which i am trying to find the name of item on which the exit is called.
    I tried methods of pricingItem like getId(), getExternalId etc but none of those are returning the item numbers.
    does anyone know how to retreive the same?
    thanks in advance.
    regards
    rajeev

    Getting Id was sufficient

  • Can the system name of the Fabric Interconnects be changed

    I need to change the system name of the Fabric interconnects
    I have given eg. EDCD
    the FI now have EDCD-A
    EDCD-B
    I need to change it to ... ECCD-A
    ECCD-B..
    is it possible ?

    Shyam,
    You can definitely do it and for sure is not disruptive and take effect right away.    Just go to the Admin tab> All> Management Interfaces> Name > Edit it with what you need > Apply.
    It is so easy and fast that if at the same time you have an SSH session, as soon as you change the name, the system makes the change on your SSH session too.
    Note: There is no need to look for the way to do this on each fabric. The name you are changing is for both FIs and the system will then add the xya-A or xya-B by itself.
    Rate ALL helpful answers.
    -Kenny

  • Can the instance name of prod. database and standby database may be same

    Hi all,
    Actually I knew that while configuring Physical Standby
    1> Database name should be same
    2> Instance name should be different
    But,today I saw a DR system where the database name and instance names are the same. So I came to know that it can be done.
    I just wanted to know that what are the trade-offs of putting DB name and instance name same?

    There isn't a tradeoff. By default, the instance_name is the same as the db_name unless if specified differently in teh pfile. What matters is the service name connecting to the instance.

  • Ring Control Output is the Item name and not the value

    Hello. I am new to Labview. I am experimenting with labview and just creating simple VI's to learn about the software. I have placed a ring control and attached an indicator to that ring control. I thought that the purpose of a ring control was to select an item and output a value. For example, I have placed 3 items in the ring properties (Red, Blue, Yellow) and given those items values of 1,2,3. But when I run the VI and select Blue, I was expecting the indicator attached to the control to read 2 but instead it says 'Blue' (same for other items as well). What am I misunderstanding here or doing incorrectly? I have also attached a screenshot.
    Solved!
    Go to Solution.
    Attachments:
    Untitled.jpg ‏249 KB

    Your indicator is another ring that has the same name value pairs, so it is going to display the name associated with the value.  Delete the ring indicator and just drop in a regular numeric indicator.  Then it will show you the value.

  • Can the table name in a cursor be parameterized?

    I would like to do the following in pl/sql
    Procedure my_proc ( varchar2 table_name) is
    CURSOR my_cursor ( table_name VARCHAR2 ) IS SELECT some_column FROM table_name ;
    i.e. parameterize the table name. I know it is possible to parameterize the SELECT cause by doing the above but, as written, my example will not compile. So, I'm wondering if it is even possible to create a cursor like this.
    Thanks for any help/advice,
    -=beeky

    I wanted to add that I have no control over the database design. The reason I want to parameterize a cursor is to allow a single procedure to do exactly the same thing to six tables. These tables contain data for different geographic regions and are supplied by an outside party. My script essentially merges these tables into our relational model.
    Thanks again to all who replied,
    -=beeky

Maybe you are looking for

  • Replacement options for keys on mid-2009 MBP

    i have a mid-2009 MBP that i am extremely unhappy with and which i /was/ going to just give to my mom but it acts so oddly that i am afraid she will get too confused and won't be able to use it. /anyway/ i had this thing in to the genius bar and aske

  • Taxinj and taxinn

    Hi Experts I am using Taxinj Excise duty will flow through tax codes which we have created,now what i want to know eventhough i have to create fv11 for BED condition. Please focus on this issue. Rgds ana.

  • Server doesn't start after applying SP3

    Hi, after applying SP3 the server doesn't start. I just get the following error within the server log. Any hints ? Regards Gerald Eder JVMX version - May 20 2007 23:27:34 - 01_REL - optU - windows amd64 - bas2:78002 (mixed mode, sharing) (CompilerOra

  • BUG: preview report template errors with ORA-01002

    I've checked on my local install and on apex.oracle.com. I go into the Templates of Shared Components and filter on the Report Templates. Although the preview icon is displayed to allow me to preview the template, I always receive "ORA-01002: fetch o

  • Help me find the right digital camera for my wife for Christmas!

    Hi guys,     I have been scouring Best Buy for days trying to figure out which digital camera to go with.  My wife wants a new one for Christmas, but she doesn't want a traditional point and shoot setup, nor a full DSLR (simply becuase I can't afford