Allowing the user to sort a tabular form

Dear Experts,
I have several tabular forms that I want my user to be able to sort on a some of the column in the form at well, I thought of creating some buttons on the top of each of the columns and when they press on the button it sorts, do guys agree with this or is there a better way to achieve the same.
Regards.
hali

hi Hali,
Here you have a code sample. It's a pl/sql package you can put easily in an application library.
Calling the code
Create a non base table block with the following name convention: <block_name_to_be_sorted>_SORT
Create in this block the buttons representing de item headers. Each button must have the following name: <item_name_to_be_sorted>_SORT.
Put a call tot procedure "lib$sort.mainn_button" in when-button-pressed trigger on block level.
Set the default sort order in When-new-form-instance trigger by calling
lib$sort.mainn (<block name to be sorted>, <item_name_to_be_sorted>)"
You can also sort on non-base table items. In this case the naming convention for your header button must be: <item_to_be_sorted>_SORT_NDB.
In this case you have to create a parameter with the same name. The value of this parameter contains the expression for sorting e.g. another column value or a call to a function.
Full code:
Package header
package LIB$SORT as
PROCEDURE mainn
( p_block_name_table varchar2                     
, p_item_name_table varchar2
, p_asc_desc varchar2 default 'ASC'                    
PROCEDURE mainn_button;
end;
Package body
package body lib$sort as
procedure execute_last_query
     ( p_block                              varchar2
     )     is                                                                           
l_procedure_naam     varchar2(60) := 'lib$last_query.execute_last_query_replace';
     l_blok_id                         block := find_block (p_block);
     l_last_query          varchar2(2000);
     l_where_clause          varchar2(2000);
     l_pos_from                    number(4);
     l_pos_where                    number(4);
     l_pos_order_by          number(4);
     l_pos_string               number;
BEGIN
l_last_query := get_block_property (l_blok_id, last_query);
l_pos_from          := instr(upper(l_last_query), 'FROM');
l_pos_where     := instr(upper(l_last_query), 'WHERE' , l_pos_from);
     if nvl(l_pos_where, 0) = 0 then
          null;
     else
     l_where_clause := substr (l_last_query, l_pos_where + 5);
     l_pos_order_by     := instr(upper(l_where_clause), 'ORDER BY');
     l_where_clause := substr(l_where_clause, 1, l_pos_order_by -1);
     end if;
     go_block (p_block);
     do_key ('execute_query');
END;
FUNCTION item_to_be_sorted (p_item_name_sort varchar2) RETURN varchar2 IS
     l_item_name     varchar2(30);
BEGIN
     l_item_name := p_item_name_sort;
l_item_name := replace(l_item_name, '_SORT_NDB');
l_item_name := replace(l_item_name, '_SORT');
l_item_name := substr (l_item_name, instr(l_item_name, '.') + 1);
return (l_item_name);
END;
FUNCTION block_to_be_sorted (p_block_name_sort varchar2) RETURN varchar2 IS
     l_block_name     varchar2(30);
BEGIN
l_block_name := replace(p_block_name_sort, '_SORT');
return (l_block_name);
END;
PROCEDURE mainn ( p_block_name_table varchar2
                                        , p_item_name_table varchar2
                                   , p_asc_desc varchar2 default 'ASC'
                                        ) IS
     l_procedure_name                    varchar2(30)      := 'lib$sort';
     l_block_id_buttons                block                ;
     l_item_id_buttons                item                    ;
     l_item_id                                        item;
     l_cur_item                                   varchar2(60);
     l_cur_item_id                              item;
     cl_character_asc                    constant varchar2(1) := '>';
     cl_character_desc                    constant varchar2(1) := '<';
     l_label_cur_item                    varchar2(200);
     l_label_without_characters          varchar2(200);
     l_label                                             varchar2(200);
     l_order_by                                   varchar2(2000);
     l_basetable                                   boolean;
     l_counter                                        number(2) := 1;
     l_asc_desc                                   varchar2(4);
     l_new_label                              varchar2(200);
     l_order_by_par                         varchar2(2000);
     l_width_item                              number;
     l_block_name_buttons     varchar2(30) := p_block_name_table||'_SORT';
     l_item_name_buttons               varchar2(30) := p_item_name_table||'_SORT' ;
BEGIN
     l_block_id_buttons                := find_block (l_block_name_buttons);
     l_item_id_buttons                := find_item (l_block_name_buttons||'.'||l_item_name_buttons);
     if id_null (l_item_id_buttons) then
          -- Item not found, maybe the button sorts a non base table item
          -- In this case the name of the button ends with '_SORT_NDB'
               l_item_name_buttons := p_item_name_table||'_SORT_NDB' ;
               l_item_id_buttons      := find_item (l_block_name_buttons||'.'||l_item_name_buttons);
               if id_null (l_item_id_buttons) then
                    message ('Item '||p_item_name_table||' has no valid header. Name must be '||p_item_name_table||'_SORT'
                    ||' or '||p_item_name_table||'_SORT_NDB'
                    raise form_trigger_failure;
               else
                    l_basetable := false;
               end if;
     else
          l_basetable := true;                    
     end if;          
--Remove sort character on all buttons
l_cur_item := l_block_name_buttons|| '.' ||get_block_property(l_block_id_buttons, first_item);
while l_cur_item <> l_block_name_buttons||'.' and l_counter < 15 loop
               l_cur_item_id := find_item (l_cur_item);
          if l_cur_item = l_item_name_buttons then
                    null;
          else
               l_label_cur_item := get_item_property (l_cur_item_id, LABEL);
               l_label_without_characters := ltrim(ltrim(ltrim(l_label_cur_item, cl_character_asc), cl_character_desc));
               if l_label_without_characters = l_label_cur_item then
                    null;
               else
                    set_item_property (l_cur_item_id, LABEL, l_label_without_characters);
               end if;
end if;
-- Goto next item in block with buttons
l_cur_item      := l_block_name_buttons||'.'||get_item_property(l_cur_item_id,nextitem);
l_counter           := l_counter + 1;
     end loop;
-- Put the sort character on the right character
     l_label := get_item_property (l_item_id_buttons, LABEL);
     l_new_label := ltrim(ltrim(ltrim(l_label, cl_character_asc), cl_character_desc));
     if upper(p_asc_desc) = 'DESC' then
               l_asc_desc := 'desc';
               l_new_label := cl_character_desc||' '||l_new_label;
               set_item_property (l_item_id_buttons, label, l_new_label);
     elsif nvl(instr(l_label, cl_character_asc), 0) = 0 then
               l_asc_desc := 'asc';
               l_new_label := cl_character_asc||' '||l_new_label;
               set_item_property (l_item_id_buttons, label, l_new_label);
     else
               l_asc_desc := 'desc';
               l_new_label := cl_character_desc||' '||l_new_label;
               set_item_property (l_item_id_buttons, label, l_new_label);
     end if;
-- Perform the actual sort of the block with data
     --For a basetable item, the sort condition is the item itself
     --For a NON basetable item, the sort condition is set by a forms parameter
     if l_basetable then
          l_order_by := p_item_name_table||' '||l_asc_desc;
     else          
          l_order_by := name_in('parameter.'||p_item_name_table||'_SORT_NDB')||' '||l_asc_desc;
     end if;
     set_block_property (p_block_name_table, order_by, l_order_by);
END;
PROCEDURE mainn_button IS
     l_item varchar2(30) := name_in('system.cursor_item');
     l_block_name_buttons varchar2(30) := name_in('system.trigger_block');
     l_block_name_table varchar2(30) := block_to_be_sorted (name_in('system.trigger_block'));
     l_item_name_buttons varchar2(30) := name_in('system.trigger_item');
     l_item_name_table varchar2(30) := item_to_be_sorted (name_in('system.trigger_item'));
     l_asc_desc     varchar2(10);
BEGIN
     if get_item_property (l_item_name_buttons, label) like '>%' then
          l_asc_desc := 'DESC';
     else
          l_asc_desc := 'ASC';
     end if;
mainn(l_block_name_table, l_item_name_table, l_asc_desc);
     execute_last_query (l_block_name_table);
     go_item (l_item_name_table);
END;
end;
Regards,
Matthieu de Graaf

Similar Messages

  • Can I create a fillable PDF that allows the user to attach a file to the submitted form?

    There are suggestions in the Help documentation and on this site that indicate it is possible to attach files to a fillable PDF form that is being submitted. But I do not see any instructions for adding this functionality to a form. I am using Acrobat 9 Pro to create my form. I have a Submit button with an Action/Menu Item/Submit a form option, and the URL link for the submission is a local coldfusion file with a #FDF suffix. The export format is HTML. The form also contains a hidden EMAILTO field, with an Options/DefaultValue option identifying the recipient's email address. (I'm guessing the local cfm file uses this field.) There is also a hidden URL field in the form, and its Options/DefaultValue specifies the URL of the fillable form itself. (Perhaps the local cfm file uses this field too.)
    How can I add functionality to this form, using Adobe/PDF, to allow the user who submits the form to attach a file to the submission?

    You have to first configure a text field so it can be used for file selection. You do this on the Options tab of the field properties dialog. In order to select the corresponding check box, make sure only the "Scroll long text" option is selected.
    You then can set up a button that has the following JavaScript attached to the Mouse Up event:
    // Mouse Up script for button
    getField("upload_text_field").browseForFileToSubmit();
    Replace "upload_text_field" with the actual name of the file selection text field.

  • Is there a way to make a form that allows the user to select multiple answers from a dropdown?

    Hi,
    I work for a school that is building a form right now, and one thing we would like to do is have a list of teachers that can be selected from a drop down menu, effectively allowing the user to choose four or five from a list of twelve. Is there a way to do this? I see checkboxes, but that doesn't seem like a good answer for something that has twelve choices. I rolled through the other examples, and they all were single choice.
    Thanks,
    Lee

    Hi Ariel,
    Thanks for responding. I've added the list box, but I'm not sure how to select two options that aren't right on top of each other. Is it possible to add check boxes? I've also added a scroll bar to make it easier to browse. I've included a screenshot to show what it looks like. 
    Thanks for being patient. I'm new at this!
    https://www.evernote.com/shard/s33/sh/804fbf7c-c4e5-4f34-a094-fdaedf67b020/5c0a42f59890ba7 49e4e945b703b5d58

  • In ALV Report ,a field to allow the user EDIT/CHANGE

    Hi Guys,
    My requirement is
    in the ALV Grid display iam having 10 fields.5th field should be allow the user EDIT/CHANGE mode.
    what ever he enters the value the same should be updated to an custom table.
    EX.
    o/p:
    0001   0002   0003   0004   0005   0006   0007  0008   0009   0010
    Now the user changed the value 0005 to 0011.
    0001   0002   0003   0004   0011   0006   0007  0008   0009   0010
    now 0011 should be updated in custom table.
    to do this process please suggest a best way for coding.
    thanks in advance.
    Sunil.

    hi
    *& Report  ZTESTDEMO_INTERACTIVE_LIST_2
    REPORT  ZTESTDEMO_INTERACTIVE_LIST_2.
    TABLES: MARA,MARC,MARD.
    * internal table itab_mara 3 fields matnr, ernam,mtart
    DATA: BEGIN OF ITAB_MARA OCCURS 0,
    MATNR LIKE MARA-MATNR,  " material number
    ERNAM LIKE MARA-ERNAM,  " name of person who create
    MTART LIKE MARA-MTART,  " Material Type
    END OF ITAB_MARA.
    * internal table itab_marc 3 fields matnr, werks,lvorm
    DATA: BEGIN OF ITAB_MARC OCCURS 0,
    MATNR LIKE MARC-MATNR,
    WERKS LIKE MARC-WERKS,  " Plant
    LVORM LIKE MARC-LVORM,  " Flag Material for Deletion at Plant Level
    END OF ITAB_MARC.
    * internal table itab_mard 2 fields
    DATA: BEGIN OF ITAB_MARD OCCURS 0,
    MATNR LIKE MARD-MATNR,
    LGORT LIKE MARD-LGORT,  " Storage Location
    END OF ITAB_MARD.
    SELECT-OPTIONS: S_MTART FOR MARA-MTART.
    INITIALIZATION.
    S_MTART-LOW = 'HALB'.
    S_MTART-HIGH = 'HAWA'.
    S_MTART-OPTION = 'BT'.
    APPEND S_MTART.
    START-OF-SELECTION.
    SELECT MATNR ERNAM MTART FROM MARA INTO TABLE ITAB_MARA WHERE MTART IN
    S_MTART.
    PERFORM DISPLAY.
    TOP-OF-PAGE.
    WRITE:/2(15) 'MATERIAL NO',20(20) 'CREATED BY',45(15) 'MATERIAL TYPE'.
    FORM DISPLAY.
    LOOP AT ITAB_MARA.
    WRITE:/ ITAB_MARA-MATNR UNDER 'MATERIAL NO' HOTSPOT ON,ITAB_MARA-ERNAM
    UNDER 'CREATED BY',ITAB_MARA-MTART UNDER 'MATERIAL TYPE'.
    HIDE: ITAB_MARA-MATNR.
    ENDLOOP.
    ENDFORM.
    AT LINE-SELECTION.
    CASE SY-LSIND.
    WHEN 1.
    SELECT MATNR WERKS LVORM FROM MARC INTO TABLE ITAB_MARC WHERE MATNR =
    ITAB_MARA-MATNR.
    PERFORM DISPLAY1.
    WHEN 2.
    SELECT MATNR LGORT FROM MARD INTO TABLE ITAB_MARD WHERE MATNR =
    ITAB_MARC-MATNR.
    PERFORM DISPLAY2.
    when 3.
    sy-lsind = 0.
    ENDCASE.
    FORM DISPLAY1.
    LOOP AT ITAB_MARC.
    WRITE:/ ITAB_MARC-MATNR HOTSPOT ON, ITAB_MARC-WERKS,ITAB_MARC-LVORM.
    HIDE: ITAB_MARC-MATNR.
    ENDLOOP.
    WRITE:/ SY-LSIND.
    ENDFORM.
    FORM DISPLAY2.
    LOOP AT ITAB_MARD.
    WRITE:/ ITAB_MARD-MATNR, ITAB_MARD-LGORT.
    ENDLOOP.
    WRITE:/ SY-LSIND.
    ENDFORM.
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>

  • Reader 9 won't allow the user to email back a pdf

    I created a fillable pdf form yesterday that includes a submit email button.  I worked around the fact that it wanted to send an xml file instead of a pdf file.  It works fine in pre Reader 9 versions but Reader 9 wants to send back a data file not the actual pdf file.  Any ideas as to how to work around this issue?  I've already changed
    <submit format="xml" textEncoding="UTF-8" target="mailto":/>
    to
    <submit format="pdf" textEncoding="UTF-8" target="mailto":/>
    which worked out fine until I tested it in Reader 9

    Have you tired the Acrobat menu items "Advanced => Enable Usage Rights in Adobe Reader"?
    This action will allow the user with Adobe Reader save the filled in form, and the ability to save the completed form is needed to be able to email the completed form.

  • How do I create an event driven dialog box that allows the user to input constants into my program?

    My goal is to have a box pop up when the executable for my program is run. The box will have a bunch of fields, and an OK and Cancel button. Ideally, the user will be made to change some of the values, and warnings (with another dialogue box) will pop up if the values are nonsensical, allowing the user to proceed or go back and change them. The constants will be clustered, to be used later in other VIs.
    Does anyone have a good template for this sort of VI? I looked at this article: http://www.ni.com/tutorial/8768/en/, but it doesn't go into enough detail to be helpful to me.

    This should get you started down the pathJust replace User data with your cluster and do the data integrity check in the value change event use a simple one button dialog to notify the user which values are out of compliance and disable and grey the OK button untill all conditions are met.
    Jeff
    Attachments:
    Prompt(Date).vi ‏50 KB

  • How to save the session states for a tabular form WITHOUT using check boxs?

    Greeting guys,
    As you know that we can use collections to save the session states of a tabular forms, described in the how-to doc of manual tabular forms. However, what I am trying to do ( or have to do) is to provide a manual tabular form, and save the session states for validation, without using the check boxes. Because a user can put contents into some columns in a row without checking the corresponding checkbox, according to the requirements. So basically what I tried is to loop over all the rows and save Every entry into a collection. However, sometimes I got "no data found" error with unknown reasons.
    My current solution is to use the "dirty" Retry button that gets back the history, which IMO is not a good workabout. So, I'd appreciate if somebody can shed some light on a better solution, especially if it is close to the one in that how-to doc.
    Thanks in advance.
    Luc

    The following is the first collection solutin I've tried:
    htmldb_collection.create_or_truncate_collection('TEMP_TABLE');
    for i in 1..p_row_num loop -- Loop on the whole form rows
    if (htmldb_application.g_f01(i) is not null) or (htmldb_application.g_f05(i) <> 0)
    --If either of them has some input values, the row should be saved into the colleciton.
    then
    htmldb_collection.add_member(
    p_collection_name => 'TEMP_TABLE',
    p_c001 => htmldb_application.g_f01(i),
    p_c002 => htmldb_application.g_f03(i),
    p_c003 => htmldb_application.g_f04(i),
    p_c004 => htmldb_application.g_f05(i),
    p_c005 => htmldb_application.g_f06(i),
    p_c006 => htmldb_application.g_f08(i)
    end if;
    end loop;
    Some of columns have null values, but I don't think that's the reason. Because once I clicked all the check boxes, there would be no error no matter what values were in other columns.
    Another issue would be extract the values FROM the collection, which has been tried because I had problem to store the data into the collection. I used "decode" functions inside the SQL to build the tabular form. I am not sure whether it will be the same as a regular SQL for a tabular form, like the example in the How-to doc.
    Also I didn't use the checksum, for it is not an issue at the current stage. I am not sure whether that's the reason which caused the NO DATA FOUND error.

  • How to validate input fields as the user is filling up a form with jQuery?

    Hello EA friends.
    Someone has experimented on how to validate input fields as the user is filling up a form with jQuery?, if the field is numeric and insert an A for example, an alert appears showing "insert a number" or not allowed to enter anything until a number is entered.
    Thanks and regards.
    Fer

    Hi Sudeshna.
    Sorry for not responding on time, how can I be included in this code?
    sym.setVariable("typeActivity", "input")
    var Element_1=document.createElement(typeActivity);
    $(Element_1).css({"text-align": "center"});
    //Answer
    sym.setVariable("Answer_1", "4");
    sym.$("box_1").append(Element_1)
    This code is on my creationComplete and it works fine.
    Would greatly appreciate your help.
    Regards.
    Fer García

  • Hi All,i am currently working on a flex application that will allow the user to change the language

    Hi All,i am currently working on a flex application that will allow the user to change the language within the application from english to Japanese and vice versa. And everything works fine.
    I am using flex 4.5
    We allow the user to save records with english or japanese texts.
    problem
    When the user manually enters Japanese text and tries to save it the record defaults back to the default name (which is in english). But if you copy the entered text and paste it and then save it.It works fine.
    Any idea , why this is happening?
    Please let me know if the question is not clear.
    Looks like there was already a bug
    https://issues.apache.org/jira/browse/FLEX-28894?page=com.atlassian.jira.plugin.system.iss uetabpanels:all-tabpanel
    Not sure why does it say , Resolved .
    -KB
    Message was edited by: bKartik.b

    By Payal integration , you mean paypal button html ? or payment gateway setup etc ? If its a gateway configuration for your site domain then single page for all layout will work , but if you are using button code for all renditions then you would need to create separate pages for all.
    Thanks,
    Sanjit

  • Allow the user to control the width of the edit forum post input box

    I would like to control the width of of the edit-forum post input box.  This could be:
    automatically adjust the width of the box so that the box doesn't run off the right edge of the window.
    have a user global preference to set the preferred width
    at least, allow the user to change the width via the change size icon.  The three horizontal bars at the lower left of the input box. You can adjust the vertical dimension, but not the horizontal. TenFourFox 4.0.1. This is probably being blocked for some obscure reason.
    Here is an example of an over extended right margin:
    Curiously enough, the "software" let's me adjust the width & height of the add reason to edit text, but not adjust the width of the more important edit text box.
    Robert

    Testing
    Standard Reply box can be height adjusted but not width.
    Same with Advanced Editor
    No Adjustment at all in HTL Editor
    Edit.
    The Edit uses the Advanced Editor
    Only Height Adjustment again.
    I do seem to remember someone posting about the width and saying they could drag it over the edge of the right hand edge (Into the grey surround)
    This may have been a post in the lounge.
    It didn't actually try it at the time but have played with it since and have not seen it.
    Maybe it is something they "Fixed" in both senses of the word.
    Second edit.
    I can't alter the box that currently reads "Message Edited by:- ..."
    I also can't get this box to accept New lines  (they appear in the box but don't post that way)
    Corrected Spelling
    9:51 PM      Wednesday; May 11, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously
    Message was edited by: Ralph Johns (UK)
    Message was edited by: Ralph Johns (UK)
    and new line with a line space as well

  • Allow the user to add multiple email addresses in Email ID Field

    In my jsp page, the funtionality i need to enhance is to allow the user to enter multiple email addresses in the "To" field of my Email A friend Task...right now it allows only one email id to be input by the user
    Can anyone suggest me how to achieve it using javascript /jstl
    Thanks in Advance

    one more alternative is u can use : StringTokenizer class.
    Code as follows: I hope this also helps u. But it will be used at server side. not at client side(for client side validations , we are using javascript).
    java.util.StringTokenizer stringTokenizer=new java.util.StringTokenizer(request.getParameter("to"),",");
              String[] list=new String[stringTokenizer.countTokens()+1];
              int i=0;
              while(stringTokenizer.hasMoreTokens()){
                   list=stringTokenizer.nextToken();
                   i++;
    Regards

  • Way to allow the user access to the saved lists of this Z report

    We have a Z report that we want to run at midnight each Sunday and then view the output/layout first thing Monday morning. We can schedule the report to run but it appears that the only way we can save the output as a 'file' for later viewing is by using the "Save with ID" option, which puts the output into a SAP 'saved list'.
    The problem with this is that it doesn't appear to be possible to access that list from the Z-report - it would appear that you have to go into SQ01 and use the 'saved list' button. This means giving the Z- report user access to SQ01 as well as Z-report, which, for security (SOD) reasons we don't want to do.
    We can run the report in foreground with the output option "File store" and save the output as a file to a specified location,. But this option doesn't appear to be available when the report is scheduled as a background job. If this is done, the background job runs but there's no output anywhere, as far as we can tell.
    So what want is to run the report in background but with the output option 'File store' or equivalent (i.e. an output stored somewhere that the report user can view). Is this not possible, or have we missed something in setting up the report run?
    Or is there a way to allow the user access to the saved lists of this Z report without giving them T-code SQ01?
    Thanks

    Hi !
    I just wonder if the answer from Varishtb below did solve your propblem.
    I have exactly the same problem as you. I also want to be able to look at the saved list without using the sq01.
    If you solved it I will be grateful to get the solution.
    regards Lars
    answer:
    You can call the infoset query directly from a transaction code. There's
    no need to copy it as a 'Z-report' (or as a custom report). In fact,
    everytime you're copying an infoset query to a report, you're calling
    for problems the next time you face an upgrade. (That is because SAP
    changes the internal logic used to handle the infosets queries from
    version to version)
    We're using some infoset queries and they work fine this way.

  • Display some constant in the input field and allow the user to change it.

    Dear All,
    I have a requirement in WDA to display inputfield with some constant initially and allow
    the user to change that value according to his wish.Currently I am using UI Element
    InputField for this,but I am not able to show the constant initially.
    How can I achieve this pls suggest.
    Thanks,
    Reddy.

    Hi sudhir,
    To display with default values, you need to write your code in wddointi method.
    Check this code..
    * navigate from <CONTEXT> to <INPUT> via lead selection
      lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
    * get element via lead selection
      lo_el_input = lo_nd_input->get_element( ).
      lv_ship_point = '1001'.
    * set single attribute
      lo_el_input->set_attribute(
        name  =  `SHIP_POINT`
        value = lv_ship_point ).  // Now ship_point have initial value 1001.
    Cheers,
    Kris.

  • How can I allow the user to retake a quiz from the middle of it in Captivate 7?

    Hello Captivaters,
    I would like to force the learner to pass a quiz before he can continue on with the training.  If he doesn't pass the quiz, he will need to go back and take it again. The "retake" button allows him to do this, but I will actually like to have 4-5 of these "quiz checkpoints" in the eLearning -- each separated with presentation material --  so that the user proves he understands the material before advancing. 
    Therefore I would like to create my own "retake" button at the end of every "quiz checkpoint" that takes the learner back to the first question of that checkpoint (not to the first question in the training).  So far, I have been able to create a button that appears after he gets a certain amount correct to allow him to continue, and I want to create a button that appears that takes him back to the first question in the checkpoint if does not get the required amount correct and retake those questions.  The first part is easy, but I also need to add the function or reassign some variable to allow the user to retake the quiz. I hope I am making sense.. Any help would be much appreciated!
    - Ryan

    It's great!  Thanks again.
    Here is the issue now.  I guess it's not a huge problem, it's just if I can't find a better way, what I need to do will take a lot of time.
    Like I mentioned before, I created this "results" slide that on enter either shows a "congrats" button or a "retry" button, depending on whether or not the user passed the quiz.  I have copied this slide and pasted it behind all of the other sub-quizzes in the training, but when I do that, of course the link between the buttons and the conditional advanced action break.
    As you know, when you duplicate a slide, all of the names of the objects on that slide are "refreshed" and are replaced with new generic names because you are in fact creating new objects as well.  This means that I need to rename all of the objects on that slide (even though its a duplicate) and then replace all of the "old names" in the advanced action with these new object names..   Is there a faster way to do that?
    Thanks again!!
    Ryan

  • Is it possible to allow the user to highlight specific label in the GUI.

    i have an existing GUI tt allows user to key in records of information eg, patient records in a hospital system.
    and display them based on wat the user key in for the patient's id no:
    is it possible to allow the user to highlight label in the GUI.
    Label as in information like Illness:<Red>Cancer<Red>
    for tt customer only.
    and re open the file to have the color still there.
    i serialized my vector of objects into a file, and have the gui to retrieve them upon execution.
    color wise i m lost.
    one solution is to have a corresponding Color attribute to each of my other attribute in all my other classes.
    besides this, any idea how to do it?
    i also did a search on java map..
    couldn't really find sth useful abt it..
    seems like few ppl know how to use it well..
    API doesn't seems to show how i can use it to reach my objective.
    anyway, i hope the user can highlight A attribute of a record and not highlight the entire record..
    tt's why i find it soo cumbersome to have another Color object created for each atttribute.
    eg:
    patientId, patientName, etc.....
    thanks in advance

    Several Swing components understand HTML tags, eg JLabel, which is VERY useful, as in the previous example.
    Are you asking "how do I highlight a field" or "how do I make it remember the color it has"?
    As Color is itself Serializable, why not store your data in a Hashtable not a Vector?

Maybe you are looking for

  • I want mailto to open in a new tab or window

    Windows XP, Gmail, Suddenly, mailto links did not open (NOTHING happened when I click in a mailto link). I corrected that in about:config. BUT now it opens in the SAME tab, on left click, whereas it used to open in a new window. I would like it to op

  • Error when installing ios6 on iPhone 4S

    Tried to install ios6 today via iTunes. Received error message that there was an issue with the install (similar to whats being said on other posts) and needed to restore, tried to restore twice, and now my phone is no longer recognized by iTunes and

  • Screen Sharing slows down dramatically after RDP upgrade from 2 to 3

    For some reason once we upgraded from RDP 2 to RDP 3 our Screen Sharing has gotten increasingly slow. We are using it in a school environment where the teacher will share their screen with the students, and as we add more students to the share the sh

  • Update user object

    I have a workflow which updates the attributes. It checks out a view, then im trying to use update user view and check in. There are no errors but the attributes never gets updated. in Update user view's subprocess there are 2 arguments, accountId an

  • Logic 9 Serial Number Not Valid

    I recently backed up my computer and did a complete OS reinstall (starting from stratch and not using the old image due to old corruption files). I then decided to manualy copy over Logic Pro 9 files from the backup drive to the new image. I went to