How to get an advanced action to respond to text selection in dropdown widgets

I want to provide a user with a set of dropdowns containing text strings, and if they select the right combination of dropdown entries, give them a Continue button, and if they don't select the right combination then give them an error message and solution.
The trouble I'm having is I don't understand how to get the action to read the widget selections. I'll go through a demo to show you what I'm doing so far.
(Context: CP5, and JavaScript/programming ignoramus.)
Objects in the demo
My steps so far
1. Set up two user variables
2. Create two dropdown widgets (Widget1 and Widget2) each with labels "Right" and "Wrong" and point them to the two variables.
3. Add a Continue button and a text box labelled Wrong, each set to invisible.
4. Add a Submit button with advanced interactions to show Continue or Wrong depending on what is chosen in the widgets.
The full set of conditions and actions are:
IF vTestWidget1 is equal to Right
AND vTestWidget2 is equal to Right
THEN Show Continue
ELSE Show Wrong
The problem
I run this and only ever get the ELSE response (i.e. I can select two Rights and the Submit button still displays the Wrong text box).
Possibilities
I'm missing some sort of formatting around the text?
I need something like a submit button for each widget to prompt an update in their associated variables?
Can anyone help?

Thanks, for the help guys. However...
I have triple-checked my variable naming and can't see any problem.
What I did do was eliminate the "Choose" option from the head of each widget. The demo suddenly worked perfectly!
BUT  that perfect outcome seems accidental.
The demo seems to work ONLY when the Advanced Action's success conditions refer to the first entry on each dropdown. That is, if the dropdowns contain values Right and Wrong, IN THAT ORDER, and the Action looks for "Right" and "Right" then you can click Submit and it produces the Continue button.
However, for example, if you reverse the order of the entries in one widget, so Widget2 contains Wrong and Right, and YOU DON'T TOUCH ANYTHING ELSE, then selecting "Right" and "Right" and clicking the Submit button produces the Wrong text box response.
So the order in which entries are listed in the widget has an impact, at least for me.
When you guys replicated my use case, did you replicate the Choose entries in the widgets, or did you simply have two top-level Right responses?
I've uploaded my first demo, without any other changes, to Google Docs, if you want to check it:
https://docs.google.com/leaf?id=0Bz2ZZ5mfN3BkMjc1N2U3ZjgtZWZmMC00MmVlLWE3Y2UtZTczMzM5ZjI1N GMx&sort=name&layout=list&num=50

Similar Messages

  • An you tell me how to add an advanced action to the TEB so you can check for multiple lines of input

    an you tell me how to add an advanced action to the TEB so you can check for multiple lines of input? How do you add the advanced action?

    Can you elaborate your requirement?
    If you want to have a text wrapped around and enable a scroller for the same, you can achieve it by TEB properties and check the scroll bar option,
    Is this what you are looking to achieve?
    Thanks,
    Anjaneai

  • How to get the focus at the end of text ?

    I am having applet with awt TextField component and some default text. (MSQ-)
    To have a focus to text field I am using :
    refnoTextField.requestFocus();
    But this gives focus at the biginning and not at the end of text. I want the focus at the end (i.e. after MSQ-)
    How to get the focus at the end of text ?
    any help ?
    manisha
    manisha

    public void focusGained(FocusEvent e) {
         if (e.getSource() == yourtextbox) {
         yourtextbox.setSelectedEnd(yourtextbox.getLength());
    try this thing - not sure if it'll work, but I figgured out how to apply it to my textareas for keeping the focus on the last line of the textarea..it might work for your textboxes..
    shrug

  • How to get two parameters in the same line of selection screen?

    hello
    i need to get my selection csreen like bellow.
    r1 radiobuttion  -some space --p1 parameter
    i should not get the parameter in the next line of  radiobuttion.
    how to get two parameters in the same line of selection screen?

    hi....
    modify the following code
    it will work
    SELECTION-SCREEN BEGIN OF BLOCK SL1 WITH FRAME TITLE TEXT-003.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 10(15) TEXT-001
                     FOR FIELD P1.
    SELECTION-SCREEN POSITION POS_LOW.
    PARAMETERS : P1 TYPE   C USER-COMMAND R2 RADIOBUTTON GROUP R2 DEFAULT 'X',
      P2 TYPE SCARR-CARRNAME,
      P3 TYPE CHAR1 RADIOBUTTON GROUP R2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK SL1.

  • How to get drop down list (list of values) in selection-screen

    Hi al,
       This is anilreddy. Please let me knew the solution
    How to get the drop down list for a fieldin selection-screen (not in dialog programming)
    (not as POV)
    Regards,
    anilreddy

    REPORT ZTESTPRG.
    TYPE-POOLS: VRM.
    DATA: NAME  TYPE VRM_ID,
          LIST  TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST.
    PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
    AT SELECTION-SCREEN OUTPUT.
    NAME = 'PS_PARM'.
    VALUE-KEY = '1'.
    VALUE-TEXT = 'LINE 1'.
    APPEND VALUE TO LIST. VALUE-KEY = '2'.
    VALUE-TEXT = 'LINE 2'.
    APPEND VALUE TO LIST.
    CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
    START-OF-SELECTION.
    WRITE: / 'PARAMETER:', PS_PARM.
    Thanks
    Mahesh

  • How to Get the Job, Cost center, Position description using select query

    Hi all,
    How to get the  Job, Cost center, Position description through select query without using the Function module?
    thanks,
    Prasad

    use adhoq query and take the report chose both text and value

  • How can I combine advanced actions with the branching view?

    I am creating a branching scenario in Captivate 7. It's fairly involved and I'd like to keep track of it with the branching view. But, I understand that if I use an Advanced Action, it won't show up in the view. My slides track a conversation that goes down different routes based on the selected answers. I give the user 3 smart shapes that I'm using as a button. When they press the button, I want to change two variables and then jump to another slide. If I put this all into one advanced action, I have to write an advanced action for each button and it won't show the branches.
    Is there a way to execute an action that will change my variables. Then, have it jump to a slide. I've been trying to give the user 1 attempt, execute my advanced action that will change the variables, and then have the Last Attempt jump to a slide, but that doesn't seem to work.
    Any other ideas?

    I just upgraded to version 8, hoping for a solution.
    I know that I can write an Advanced Action for every slide like this:
    It changes my variables and then advances to the right slide. But, I'll have 100+ slides when I'm done and I was hoping that could make this a little easier. AND, I can't track it on the branching view.
    I was hoping that I could make this work:
    I could use an Advanced Action to change my variables (I would only need a few) and then have it jump to a slide. This would show up in the Branching view. But, I can't get that work.
    Are there any other options?

  • Interactive Report: how to get value of given row/col cell in selected row

    Hi -- I have an interactive report. Instead of the default behavior of the link going to a single row view, I want it to
    go to a form for editing the row. This means I have to be able to populate the form w/ the correct row's information...
    so need to get the value(s) for the PK column(s) in the selected row of the interactive report, so I can select the row
    from the database.
    How can I do this? I see in the report attributes, Link Column section, I can set Rows Uniquely Identified by, and a Unique
    Column (though there could be more than one in a PK). I imagine I'd want to use the rowid, but I'm not sure how the
    rowid of the selected IR row can be referenced. And at that point, I'm not sure how to get the IR column value for
    that row. (Say I'm on the 8th row and I need the first column... How is the column referenced? By a number, it's name,
    its heading?)
    Or maybe I'm not on the right track at all...
    Ideas?
    Thanks,
    Carol

    Hi Carol,
    What I´m trying to do is: defining a button such as when you click it a pl-sql procedure is called, which needs as an input parameter the id of the row selected in my form. what I need first, then, is to get the id of the selected row. how did you get it?
    Thanks in advance
    Francesco

  • OMB Plus : how to get all the generated messages into a text file ?

    Hello,
    I wrote an OMB TCL script and I would like to know how to get all the messages generated during the exécution into a text file.
    I tried this, but it works only for a puts command :
    set DesProjet ACT_1
    set filename [ open "c:\\temp\\INFDE_010_IMPORT_REPOSITORY_$DesProjet.log" w]
    puts "test"
    Thank you for your help

    Hello Alain, you should try the OMBLOG variable. If you set it inside OMBPlus:
    set OMBLOG c:/temp/mylog.txtthen all the OWB specific commands are logged with their output. By OWB specific I mean all those that start with OMB.
    This is more than what you see in the interface, because:
    - messages inside procedures are logged; you wouldn't see them on std.output when you call a proc
    - variables are resolved, so if you issue the command
    set my_var VERY_IMPORTANT_TABLE
    OMBDROP TABLE '$v_myvar'the log will show:
    OMBDROP TABLE 'VERY_IMPORTANT_TABLE'
    Table dropped
    and you know something is wrong... so OMBLOG is very useful to intercept all manipulations on you repository.
    If what you want instead is a dump of the screen output when you execute a script, I suggest you redirect standard output from the operating system command line. Unfortunately OMBPlus doesn't support all advanced redirection and tracing features of the TCL language.
    Hope this helps, Antonio

  • How to get value of html combo box (i.e select) in jsp?

    Hello,
    I was just wondering how to get value of html combo box in jsp page. My code for combo box is:
    <select name="combo" size="1">
    <%
    List<Project> projects = mgr.getProjects();
    for(Project project : projects){
    %>
    <option value="<%= project.getId()%>"><%= project.getName()%></option>
    <%
    %>
    </select>
    I thought combo.value might give me the value, but it throws exception.
    Any help is appreciated.
    Thanks.

    The combo does not exists in Java, but only in HTML. You have to submit the form containing the combo and then use request.getParameter("combo") to get it's value ;-)

  • How to get a newHP driver to appear in the Printer Setup Dropdown box?

    I asked this question in a slightly different way in another thread, but I think it was too specific. The problem is that I installed the new driver for an HP OfficeJet 6110 and it works fine via USB, but it is ultimately a remote printer. The wireless Print server works fine with another windows PC and I can ping it via the Mac and get it to spool with the generic driver (gibberish). HP mounts the driver like an application and it doesn't appear in the Printer Setup as one of the options, and I don't know how to get it to appear there. I've searched the forums and Gimp appears to work on Epson/Canon, etc., but not HP, so I'm at a bit of a loss.
    Any help is much appreciated.
    Thanks,

    I have the same problem. Attempting to add a printer, Stylus Photo R200 (USB OS 10.4.11) to the Printer List I get the same error message, "client=error-request-value-too-long". I've reinstalled drivers multiple times to no avail.
    Somebody out there know what to do?

  • How to get exact match when working with Oracle Text?

    Hi,
    I'm running Oracle9i Database R2.
    I would like to know how do I get exact match when working with Oracle Text.
    DROP TABLE T_TEST_1;
    CREATE TABLE T_TEST_1 (text VARCHAR2(30));
    INSERT INTO T_TEST_1 VALUES('Management');
    INSERT INTO T_TEST_1 VALUES('Busines Management Practice');
    INSERT INTO T_TEST_1 VALUES('Human Resource Management');
    COMMIT;
    DROP INDEX T_TEST_1;
    CREATE INDEX T_TEST_1_IDX ON T_TEST_1(text) INDEXTYPE IS CTXSYS.CONTEXT;
    SELECT * FROM T_TEST_1 WHERE CONTAINS(text, 'Management')>0;
    The above query will return 3 rows. How do I make Oracle Text to return me only the first row - which is exact match because sometimes my users need to look for exact match term.
    Please advise.
    Regards,
    Jap.

    But I would like to utilize the Oracle Text index. Don't know your db version, but if you slightly redefine your index you can achieve this (at least on my 11g instance) :
    SQL> create table t_test_1 (text varchar2(30))
      2  /
    Table created.
    SQL> insert into t_test_1 values ('Management')
      2  /
    1 row created.
    SQL> insert into t_test_1 values ('Busines Management Practice')
      2  /
    1 row created.
    SQL> insert into t_test_1 values ('Human Resource Management')
      2  /
    1 row created.
    SQL>
    SQL> create index t_test_1_idx on t_test_1(text) indextype is ctxsys.context filter by text
      2  /
    Index created.
    SQL> set autotrace on explain
    SQL>
    SQL> select text, score (1)
      2    from t_test_1
      3   where contains (text, 'Management and sdata(text="Management")', 1) > 0
      4  /
    TEXT                             SCORE(1)
    Management                              3
    Execution Plan
    Plan hash value: 4163886076
    | Id  | Operation                   | Name         | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |              |     1 |    29 |     4   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| T_TEST_1     |     1 |    29 |     4   (0)| 00:00:01 |
    |*  2 |   DOMAIN INDEX              | T_TEST_1_IDX |       |       |     4   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("CTXSYS"."CONTAINS"("TEXT",'Management and
                  sdata(text="Management")',1)>0)
    Note
       - dynamic sampling used for this statementJust read that you indeed mentioned your db version in your first post.
    Not sure though if above method is already available in 9i ...
    Message was edited by:
    michaels

  • How to get senders photo to appear beside their text message

    Does any one know how to get the photo of the person who sends a text to appear.  My contacts all have a photo and I'm linked to Facebook.

    iOS does not support photos appearing next to text messages, as they do for emails and telephone calls.

  • How to get the merged bitmap data of a photoshop selection

    Im creating a "Flash Panel" extension for a client and Im having some issues getting the bitmap data associated with the current selection. Origninally I thought I would use the WindowedApplication and have the BITMAP_FILE fileformat available within Photohop running the extension. This works to an extent but i am now running into an issue where the clipboard is returning an old copy of what was previously copied to the clipboard. To no avail was I able to force the getData property of the generalClipboard to return the "just copied" selection from the clipboard. However if I was to open a new photoshop document and paste the contents of the generalClipboard.copy() method into the new file I get what I expected the getData method to return. It seems that the getData() method from the generalClipboard object is always one step behind.
    Am I doing something wrong here, or is there another way to get the bitmap data associated with a current selection within photohop?
    Andy help would be most appreciated.
    Thanks.

    I'm 214 years old, I completely forgot! I hope to have provided good answers at least
    Davide
    PS
    Actually, the Ps-scripts thread is basically about a PC issue (copy&paste code working as a script, not working within a panel).
    Here I'm (too) facing a weird complication. Like mcgaryes said, the Clipboard is one step behind (or not working at all if you first perform a clear) - while the paste command keeps working as expected (at least to me, on a Mac).
    So you can copy (to the Clipboard), paste (from the Clipboard), yet the Clipboard can't be accessed at all as Bitmapdata:
    Clipboard.generalClipboard.getData(ClipboardFormats.BITMAP_FORMAT) as BitmapData;
    or in the best case, due to some unknown problem, it's not updated.
    Freak!

  • FPM Application how to get SAVE buttons action

    Hello all,
    I have creted an application with the FPM, and in the portal after generating the application, i get a big table with Picture and data of the employee (name. PERNR, ORGUnit, MANAGER....) and some subtables that i have created also are there,
    my question is, there is a save button over those subtables, and i need to know which action or methode generate this (SAVE) button?
    i will be very happy about any kind of help
    Thank you all

    Hello Agadir,
    Do you want to how handle the SAVE event? if this is your requirement then in the Process_Event method of the component controller, you can check for the event id BTN_SAVE and write your logic
    case io_event->mv_event_id.
          when 'BTN_SAVE'.
               "Your logic
    endcase.
    BR, Saravanan

Maybe you are looking for