Using JEditorPane.selected() with embedded tags.

Ok, I've been searching the forums and tutorials for about an hour tonight, and I've seen this question asked in many forms but never answered.
I am writing an applet which uses embedded HTML and some custom tags in a sub-class of JEditorPane that I wrote. I need to be able to get the position of certain tags within the text, which I can do using the JEditorPane.getText() method. But now that I've found the right tags, how can I highlight text contained within them in the visible Pane?
e.g.:
getText() returns
<html>
<head>
</head>
<body>
Check</shu_ind> this <shu_dep>out</shu_dep>
</body>
</html>
And these shu tags are the ones I want to use. I can parse the text and grab the right position, but when I select(begin,end), it's off by a lot b/c select() doesn't look at any embedded info.
What can I do?

I don't think it's the same as I'm doing. Essentially, I have a JEditorPane subclass, which just has a few custom tags in it. I don't need them to be recognized by java, since it will be uneditable, but I just need to know how to convert from the getText() locations to the actual displayed text locations.
Also, when I set the text as text/html, it creates a bunch of extra HTML tags, so it's larger than the original String used to create it.

Similar Messages

  • Using onFocus method with embedded html

    Hi,
    I have embedded html in a servlet. I am using a text field to call the onFocus method with the following code:
    out.println("<input type='text' name='name' value='0' onFocus='if(this.value=='0')this.value=';'>");
    If I was using straight html with no servlet this works fine. When the user clicks on the field the default value is automatically erased.
    Why will this not work in a servlet?
    I have also tried calling a javascript function. Please note that I successfully use javascript with input type 'button' to render a pop up window with dimensions. So my javascript inside a servlet works elsewhere.
    Thanks VERY MUCH for your time
    Rick

    I don't think it's the same as I'm doing. Essentially, I have a JEditorPane subclass, which just has a few custom tags in it. I don't need them to be recognized by java, since it will be uneditable, but I just need to know how to convert from the getText() locations to the actual displayed text locations.
    Also, when I set the text as text/html, it creates a bunch of extra HTML tags, so it's larger than the original String used to create it.

  • Problems using a variable with a tag of a webapp

    I have a webapp where I've built a field in the database for the item is active or not, depending if my client chooses if it's free or not.
    The name of the tag that I want to use as a variable is { tag_estado } and has two values:
    Gratis
    Pago
    When in jQuery I create a variable to store the value of this tag and created a conditional to activate the link and icon of the item, always the tag value prints it on "Pago", even though the webapp item has the value of "Gratis"
    I appreciate your time to help me resolve this issue.
    <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
              var linkleccionGratis = function() {
                        $(".linkLeccion").attr('href', '{tag_itemurl_withhost}?tab=video');
              var linkleccionPago = function() {
                        $(".linkLeccion").attr('href', '#dataaaaaaaa');
              var imagenGratis = function() {
                        $('.videoIcono').each(function(){
                              //Change the src of each img
                              $(this).attr('src', '/Comportamiento-Video/Iconos/1365805563_movie_studio-android-r_1.png');
              var imagenPago = function() {
                        $('.videoIcono').each(function(){
                              //Change the src of each img
                              $(this).attr('src', '/Comportamiento-Video/Iconos/1365805563_movie_studio-android-r_0.png');
        var EstadoLeccion = "{tag_estado}";
              if(EstadoLeccion == "Pago"){
                                  linkleccionPago();
                                  imagenPago();
              else if(EstadoLeccion == "Gratis"){
                                  linkleccionGratis();
                                  imagenGratis();
                        else{
                                  linkleccionPago();
    </script>
    <div style="width: 921px; margin-bottom: 10px;">
    <div class="FranjaSuperiorTituloLeccion">
    <div class="TituloContenedorLeccionWebApp">
    <div class="TituloLeccionWebApp">Lecci&oacute;n {tag_num_leccion}: {tag_titulo_leccion}</div> </div> <div class="ImagenesBotonesLeccionWebApp">
    <a class="linkLeccion" href="#data" id="inline"><img alt="Video" class="videoIcono" src="http://www.excelvirtual.org/Comportamiento-Video/Iconos/1365805563_movie_studio-android-r_ 0.png" style="margin-top: 6px; width: 31px; height: 31px;" />
    </a>
    </div>
    <div class="ImagenesBotonesLeccionWebApp">{tag_actividad url}</div>
    <div class="ImagenesBotonesLeccionWebApp">
    <a href="{tag_cuestionario}" target="_blank">
    <img alt="Cuestionario" src="http://www.excelvirtual.org/nuevodiseno/images/actividaddef2.png" style="width: 41px; height: 41px;" />
    </a>
    </div>
    </div>
    </div>

    It's tough to tell without seeing the page but it looks like your code may be defaulting to the else statement. You could delete the else and see if it does anything

  • Using a viewobject with foreach tag in .jsp

    Hi guys I have the following scenario:
    1- I call a certain .jsp page
    2- a controller class (extends servlet) is called, this class: takes a view object (let's call it view), executes it's query, forwards the result to the jsp page.
    3- jsp page has a foreach tag that iterates over the query result.
    My problem is that foreach tag only takes list or array in its "items" attribute.
    Now is there a way to put the view object result in an array/list? in other words in my servlet what should I put in the request so that the foreach tag can iterate over the rows of the query. Thank you in advance for the reply.

    This code works fine for me:
    <%@ taglib uri="/jstl-c" prefix="c" %>
    <html>
         <body>
         <%
              int array[] = new int[] {1,2};
              session.setAttribute("array", array);
              String arrayNames[] = new String[]{"One", "Two"};
              session.setAttribute("arrayNames", arrayNames);
         %>
              <form action="?">
              <select name="select">
                   <c:forEach items='${ sessionScope.array}' var="row">
                        <c:choose>  
                             <c:when test="${param.select== row}"> >
                                  <option value="<c:out value='${row}'/>" selected><c:out value="${sessionScope.arrayNames[row-1]}"/></option>
                             </c:when>   
                             <c:otherwise>
                                  <option value="<c:out value='${row}'/>"><c:out value="${sessionScope.arrayNames[row-1]}"/></option>
                             </c:otherwise>
                        </c:choose>
                   </c:forEach>
              </select>
              <input type="submit" name="submit" value="submit"></input>
              </form>
         </body>
    </html>
    good luck.
    MatrixPooh
    www.bizdisplay.com

  • Using html:select with mutiple

    hy, guys!I need some help:I am developing a form were I use a heml:select wich have to use the mutiple selecting function( the user could select more then one option)it looks like this:
    <html:select property="sectors" multiple="true" size="3" ><html:option value="1">1</html:option><html:option value="2">2</html:option><html:option value="3">3</html:option></html:select>
    but when I try to test on the action, getting from the form-bean and printing to test, for example:
    SelectForm f=(SelectForm)form;
    System.out.println(f.getSectors());
    it only prints one of the selected options!!!that means it�s not getting all that is needed!!!what should I do?

    It doesn't print out all the values because it returns an Array of String objects by default. You need to have getter/setter methods in your FormBean that return String arrays and take String arrays as argument respectively.
    Hope that helps.
    Regards
    Hari

  • How to use navigationmethod byEPCM with navigation tag libraries?

    Hi,
    we have created our own Top Level Navigation component which implements a hover meny for level 3-5. The menu works great when navigationmethod in the anchor is set to "byURL":
    <nav:navNodeAnchor navigationMethod="byURL" anchorAttributes="class='LinkLevel1u'"/>
    but we need to use "byEPCM" since we want to utilize history, forward and backwards functions of the Page Toolbar.
    When we set
    navigationMethod="byEPCM"
    our menu is not updated when the users clicks on a menu item. But in the content area the correct page/iview is shown.
    Use of byEPCM is very poorly documented, does anyone have any experience with it?

    Vegard,
    I am facing the exact same issue you had with the menu navigation not refreshing, but the content area displays the correct pages. Did you find a fix to this problem? Could you please post a reply if you did or didn't. Thanks.

  • Using different content with template tag (struts)

    I developed a page according to the examples on the following link.
    http://jakarta.apache.org/struts/api/org/apache/struts/taglib/template/package-summary.html
    my problem is, that i want to use different pages as content. How can i do this?? do i need, to write multiple pages like this??
    <%@ taglib uri='/WEB-INF/tlds/struts-template.tld' prefix='template'>
    <template:insert template='/chapterTemplate.jsp'>
    <template:put name='title' content='Templates' direct='true'/> <template:put name='header' content='/header.html' />
    <template:put name='sidebar' content='/sidebar.jsp' />
    <template:put name='content' content='/introduction.html'/>
    <template:put name='footer' content='/footer.html' />
    </template:insert><%/*"introduction.jsp"Specify template for this page (chapterTemplate.jsp).The chapterTemplate.jsp defines the layout positions for fiveelements: title, header, sidebar, content, and footer.Specify the source file (html or jsp) for each element.*/%>

    slight typo .. corrected version
    <definition name="master" path="/chapterTemplate.jsp"> 
      <put name="title" value="title.jsp" /> 
      <put name="sidebar" value="sidebar.jsp" />        
      <put name="body" value="body.jsp" /> 
      <put name="footer" value="footer.jsp" />
    </definition>
    <definition name="a.struts.def" extends="master"> 
      <put name="body" value="anotherBodyA.jsp" />
    </definition>
    <definition name="b.struts.def" extends="master"> 
      <put name="body" value="anotherBodyB.jsp" />
    </definition>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • UpdateXML with embedded select

    I'd like to use a select in the value parameter of updateXML. Is that possible? Something like:
    update myTable
    set xmlColumn = updateXML(xmlColumn, 'doc//someTag/text()', select otherColumn from myTable where ...);
    Is something like this possible? Can I make a recursive join with this? so that I basically update the XML tag to be equal to the value of another column in the same row for every row in the table?

    By the way, I used for the example Oracle 11gR1, also I would go for Object Relational storage instead of CLOB.
    SQL> update xmltest
      2  set xmldata = updatexml(xmldata,'a/b/text()', (select * from global_name))
      3  ;
    1 row updated.
    Execution Plan
    Plan hash value: 2815596860
    | Id  | Operation          | Name    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT   |         |     1 |  2002 |     3   (0)| 00:00:01 |
    |   1 |  UPDATE            | XMLTEST |       |       |            |          |
    |   2 |   TABLE ACCESS FULL| XMLTEST |     1 |  2002 |     3   (0)| 00:00:01 |
    |*  3 |   TABLE ACCESS FULL| PROPS$  |     1 |    27 |     2   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       3 - filter("NAME"='GLOBAL_DB_NAME')
    Note
       - dynamic sampling used for this statementMessage was edited by:
    Marco Gralike

  • How to use At Selection Screen for fields whiledealing with Multiple Blocks

    Hi Guys,
                In my requirement i am having 4 blocks.1st block with raduio buttons for activating the opther 3 Blocks.
                  In these 3 blocks i am having some fields.
           How to do Validation for these fields.?
    I am using At Selection-screen on S-SCAD1. I am getting error"S_SCACD1 is neither a selection screen nor a Parameter"
    On the top of this" At Selection-screen on S-SCAD1" I am having"AT SELECTION-SCREEN OUTPUT."
                    Can anybody tell me how to solve this error?
    Thanks,
    Gopi.

    If you are using your block name than you should use like:
    AT SELECTION-SCREEN ON BLOCK S-SCAD1.
    Regards,
    Naimesh Patel

  • Delete statement that uses a sub-select with the statement in the cursor

    Hi all,
    How to write write a delete statement that uses a sub-select with the statement in the cursor?
    CURSOR excluded_dates IS         
           SELECT TO_TIMESTAMP(report_parameter_value, in_date_format_mask)
          INTO my_current_date_time
          FROM report_parameters
         WHERE report_parameters.report_parameter_id    = in_report_parameter_id
           AND report_parameters.report_parameter_group = 'DATE_TIME'
           AND report_parameters.report_parameter_name  = 'EXCLUDED_DATE';
    OPEN excluded_dates;
      LOOP
        FETCH excluded_dates INTO my_excluded_date;
        EXIT WHEN excluded_dates%NOTFOUND;
        DELETE FROM edr_rpt_tmp_inclusion_table
        WHERE TO_CHAR(date_time, 'mm/dd/yyyy') = TO_CHAR(my_excluded_date, 'mm/dd/yyyy');
      END LOOP;
      CLOSE excluded_dates;Thanks

    Hi,
    In such case I think is better to create a view an perform the delete using it. Example (using HR schema):
    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    SQL> create or replace view v_employees as select * from employees where first_name like 'J%';
    View created
    SQL> select * from v_employees;
    EMPLOYEE_ID FIRST_NAME           LAST_NAME                 EMAIL                     PHONE_NUMBER         HIRE_DATE   JOB_ID         SALARY COMMISSION_PCT MANAGER_ID DEPARTMENT_ID
            110 John                 Chen                      JCHEN                     515.124.4269         28/09/1997  FI_ACCOUNT    8200,00                       108           100
            112 Jose Manuel          Urman                     JMURMAN                   515.124.4469         07/03/1998  FI_ACCOUNT    7800,00                       108           100
            125 Julia                Nayer                     JNAYER                    650.124.1214         16/07/1997  ST_CLERK      3200,00                       120            50
            127 James                Landry                    JLANDRY                   650.124.1334         14/01/1999  ST_CLERK      2400,00                       120            50
            131 James                Marlow                    JAMRLOW                   650.124.7234         16/02/1997  ST_CLERK      2500,00                       121            50
            133 Jason                Mallin                    JMALLIN                   650.127.1934         14/06/1996  ST_CLERK      3300,00                       122            50
            139 John                 Seo                       JSEO                      650.121.2019         12/02/1998  ST_CLERK      2700,00                       123            50
            140 Joshua               Patel                     JPATEL                    650.121.1834         06/04/1998  ST_CLERK      2500,00                       123            50
            145 John                 Russell                   JRUSSEL                   011.44.1344.429268   01/10/1996  SA_MAN       14000,00           0,40        100            80
            156 Janette              King                      JKING                     011.44.1345.429268   30/01/1996  SA_REP       10000,00           0,35        146            80
            176 Jonathon             Taylor                    JTAYLOR                   011.44.1644.429265   24/03/1998  SA_REP        8600,00           0,20        149            80
            177 Jack                 Livingston                JLIVINGS                  011.44.1644.429264   23/04/1998  SA_REP        8400,00           0,20        149            80
            181 Jean                 Fleaur                    JFLEAUR                   650.507.9877         23/02/1998  SH_CLERK      3100,00                       120            50
            186 Julia                Dellinger                 JDELLING                  650.509.3876         24/06/1998  SH_CLERK      3400,00                       121            50
            189 Jennifer             Dilly                     JDILLY                    650.505.2876         13/08/1997  SH_CLERK      3600,00                       122            50
            200 Jennifer             Whalen                    JWHALEN                   515.123.4444         17/09/1987  AD_ASST       4400,00                       101            10
    16 rows selected
    SQL> delete from v_employees where hire_date >= to_date('01/06/1998', 'dd/mm/yyyy');
    2 rows deleted
    SQL> regards,

  • Using a CMap with a non-embedded font

    I would like to (for example) use MS Arial without embedding it. I can do this just fine if I use the Arial internal CIDs with /Encoding /Identity-H, but that is not what I want to do - I want to use /Encoding 123 0 R to refer to a CMap so that I can use Unicode code points in my text like this: (^@H^@e^@l^@l^@o^@ ^@W^@o^@r^@l^@d^@!)Tj<br /><br />I have the CMap working perfectly if I embed the font. However, if I do not embed the font, I get an error saying that Acrobat "Cannot find or create" the font. As noted above, the external font works OK if I use /Identity-H instead of my CMap. Is it simply not possible to use a CMap with an external font, or am I missing some vital step?<br /><br />Here's a simplified excerpt from my PDF document:<br /><br /><code><br />100 0 obj<br />&lt;&lt;<br />/Type /Font<br />/Subtype /Type0<br />/BaseFont /Arial,Bold<br />/DescendantFonts [ 101 0 R ]<br />/Encoding 200 0 R<br />%/Encoding /Identity-H<br />/ToUnicode /Identity-H<br />&gt;&gt;<br />endobj<br /><br />101 0 obj<br />&lt;&lt;<br />/Type /Font<br />/Subtype /CIDFontType2<br />/BaseFont /Arial,Bold<br />/Encoding 11 0 R<br />/FontDescriptor 102 0 R<br />/CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >><br />/DW 1050<br />&gt;&gt;<br />endobj<br /><br />102 0 obj<br />&lt;&lt;<br />/Type /FontDescriptor<br />/Ascent 1069<br />/CapHeight 0<br />/Descent -271<br />/Flags 32<br />/FontBBox [ -1000 -308 2231 1077 ]<br />/FontName /Arial,Bold<br />/ItalicAngle 0<br />/StemV 0<br />/AvgWidth 442<br />/MaxWidth 1000<br />/MissingWidth 1000<br />&gt;&gt;<br />endobj<br /><br />200 0 obj<br />&lt;&lt;<br />/Type /CMap<br />/CMapName /UniAC-UCS2-8-H<br />/CIDSystemInfo<br />&lt;&lt;<br />/Registry (Adobe)<br />/Ordering (Identity)<br />/Supplement 0<br />&gt;&gt;<br />/WMode 0<br />/Length 0<br />&gt;&gt;<br />stream<br />%!PS Adobe 3. 0 Resource CMap<br />%% DocumentNeededResources: ProcSet (CIDInit)<br />%%IncludeResource: ProcSet (CIDInit)<br />%BeginResource: CMap (UniAC-UCS2-8-H)<br />%Title: ( UniAC-UCS2-8-H Adobe Identity 0)<br />%% EndComments<br />/CIDInit /ProcSet findresource begin<br />12 dict begin<br />begincmap<br />/CIDSystemInfo<br />3 dict dup begin<br />/Registry (Adobe) def<br />/Ordering (Identity) def<br />/Supplement 0 def<br />&gt;&gt;<br />end def<br />/CMapName /UniAC-UCS2-8-H def<br />/CMapVersion 10. 001 def<br />/CMapType 1 def<br />/UIDOffset 950 def<br />/XUID [ 1 10 25343] def<br />/WMode 0 def<br />1 begincodespacerange<br /><0000> <FFFF><br />endcodespacerange<br />1 beginnotdefrange<br /><0000> <001F> 0<br />endnotdefrange<br />1 begincidrange<br /><0020> <007e> 3<br />endcidrange<br />endcmap<br />CMapName currentdict /CMap defineresource pop<br />end<br />end<br />%%EndResource<br />%%EOF<br />endstream<br />endobj

    You asked "why can't you use a variant encoding" - so I'd like to explain.
    The reason that Acrobat fails is that for an unembedded CIDFont, if the CIDSystemInfo is not one of the predefined CID collection (Adobe-Japan1, Adobe-CNS1, Adobe-GB1, Adobe-Japan1), we cannot reliably provide font substitution. We have to consider the situation where the PDF is open on a system without the (same) referenced font. For the PDF to be useful, the
    exact same font must be present on all systems, otherwise we lose the Portability in PDF.
    There are many versions of "Arial,Bold" with different number of glyphs and different glyph IDs assignment. The embedded CMap has the following mapping:
    <0020> <007e> 3
    In order to point to the same GIDs, all "Arial,Bold" must have glyph index 3 for U+0020, GID 36 for U+0041, and so on. There is no such guarantee in TrueType spec.
    Hope that explains the situation.
    Leonard

  • How do I create/host interactive articles with embedded video for use in browsers?

    I'm seeking a little guidance -
    How do I create/host interactive articles with embedded video for use in browsers?
    The aim is to bring together video, design, images and writing in one place. A little like Born Presents, but very accessible and user friendly.
    I'm happy using InDesign but want to create interactive articles / magazines that have embeded video files as required. I've been looking at .SWF files but I've come unstuck.
    I want people to view the articles via a blog, ideally with them opening in a lightbox style viewer. It's not intended for tablet viewing and people should be able to view and interact with the files with little effort on their part.
    I think I know how to create these files within InDesign, but I'm not so hot on web design and I'm not sure how to host these online. Does this start coming into the realms of Flash?
    If anyone could point in the right direction I'd really appreciate it - Thank you in advance.

    PDF is one thing. Folios for DPS is another. There is a little bit of
    overlap but not much.
    The interactivity in the folio overlays panel is for DPS only.

  • Photo shop is not allowing me to use the "Intersect with current selection"

    Photoshop is not allowing me to use the "Itersect with current selection" marquee. (The "UNION" between two selection marquees.) When I press the [Shift] + [Option] keys while dragging on a first selection marquee, this just creates a new selection and removes the old selection. I have also tried using the "intersect with selection" icon which is not working either.

    Lack of experience possibly'.
    To get the 360 degree scroll you need to be 'zoomed in' closer (than 1:1) to a picture or web page so that it is too large to fit on your screen.
    As you know, with Windows you need, at all times' to scroll the bars at the bottom and/or right of the screen to move the display around (a little like an altazimuth telescope is manouvred). Also, if you accidently leave the scroll bar when dragging, the screen immediately snaps back to where you started from rather than knowing how far down you got before your cursor moved off the bar (if it did). You are certain to know what I mean.
    If you are similarly 'zoomed in' to a picture on your new Mac, you don't necessarily need to click and drag on the scroll bars at the bottom (or right) of the window, or use the scroll wheel to move the screen vertically. With your Mac, when zoomed in to a greater than 100%, the mouse allows one toscroll 360 degrees with the mouse - not just vertically. But the picture (or web page needs to be zoomed in somewhat - i.e. greater than 1:1)
    With Web pages in Safari and any other Web Browser (with the possible exception of IE with which I have had no experience with sometime before 2002 and I have only 'heard' that it doesn't work ), if you use the keys 'cmd and '+" together.
    At he end of the day, you just need to keep exploring your new Mac and have fun finfing all the added extras for yourself.
    (There's do many little treasures, it just gettng the time to find them all, in my experience.)

  • Problem with custom tag using TagExtraInfo

              Hi,
              I have a tag that create a Java variable using TEI. The scope of this
              variable is driving me crazy. The problem is hard to describe, so the
              email is a bit long - stay with me...
              <pre:setvar id="foo" value="test" /> create a Java variable
              named "foo", which has String value "test". I can use "foo" like this in
              the page later: <%= foo %>.
              Now, if I call setvar twice with same id:
              <pre:setvar id="foo" value="test" />
              <pre:setvar id="foo" value="another-test" />
              This is still ok. By checking the compiled Java file, the first call
              declare the var, the second call just use it without creating it again:
                   //first call
                   String foo=null;
                   foo="test";
                   //second call
                   foo="another test";
              Now the problem comes when the frist call is in "if" statement (code is not
              useful, only for demostration):
              <% if (1>0) { %>
                   <pre:setvar id="foo" value="test" />
              <% } %>
              <pre:setvar id="foo" value="another-test" />
              The compiled code looks like:
                   if (1>0) {
                        //first call
                        String foo=null;
                        foo="test";
                   //second call
                   foo="another test";
              Variable foo is out of scope at the second call! (BTW, I can workaround this by
              adding another <pre:setvar id="foo" value="" /> before the "if".)
              Is it a fault in JSP specification? Or a problem when WebLogic implements TEI?
              Any idea?
              Thanks,
              -- Jin
              

    I encountered the same problem in our environment. I did the same thing as
              James. Simply re-initialize all variables in the do end tag.
              Also, with the nested tags you use you may also need to implement cloneable
              in the inner tag if the outer tag keeps references to all the inner tag
              instances.
              For instance if the outer tag kept a vector of references to the inner tag,
              then you would need to use clone() on the inner tag before adding it to the
              vector.
              "James Lynn" <[email protected]> wrote in message
              news:3af05d29$[email protected]..
              > > But
              > > with WL 6.0, the cell tag handler reuse the same instance each time the
              > cell tag
              > > is called and the member field is not reset
              >
              > I had the same problem. As a work around, I reinitialize everything in my
              > doEndTag() method and it works.
              >
              >
              > --
              > James Lynn - Lead Software Architect
              > Oakscape - Java Powered eBusiness Solutions <http://www.oakscape.com/>
              >
              >
              

  • Using a Select list with Submit

    I am trying to use the select list with Submit on my page.
    I have 3 select lists.
    On the first one,I am showing the list of all jacks.
    When the user selects a jack from the first list, I want to show all the jacks except the one which was selected.
    When the user selects a jack from the second list, I want to show all the jacks except the ones selected in the first list and the second list.
    I have created the select lists with submit and then I have put the query for getting the jacks. I created an unconditional branch. I am also passing the variables so that I can set the values of the items on submit.
    I also created a computation as mentioned in one of the OTN discussions, and have mentioned the value of second list to be calculated from the first and 3rd from first and second.
    But after clicking the first select list, I am losing all the existing values on the first page. I wonder what I am missing here. Can anyone hellp?
    Thanks,
    Gargi

    Gargi,
    In this case using 'select list with redirect' makes more sense rather than with SUBMIT. So change all the select lists to 'select list with redirect' (it redirects to same page inserting 'select list' value session state).
    Now for the 2nd select list query add a condition in where clause like
    WHERE sl_col != :P1_SL1And for the 3rd select list query add a condition in where clause like
    WHERE sl_col NOT IN (:P1_SL1, :P1_SL2)Hope it helps :-)
    Cheers,
    Hari

Maybe you are looking for

  • How do you manage license aquisition?

    I'm interested in how other people manage confirming that a valid license is in place for new projects? Currently our stated policy is that the DBA has to see a copy of the purchase order before performing an install, however this results in the perc

  • Hard drive enclosure

    Hi, I bought a Eaglebit- Writebox external hard drive enclosure to house my old iBook G3 40 GB hard drive. I'm fairly confident I assembled it properly, but I can't see to get my MacBook (original black model) to recognize it. It doesn't show up in D

  • Trigger Inventory Audit Report With A Fixed Set Of Selection Parameters

    Hi All, Can we trigger Inventory audit Report with fixed warehouse selection ? Thanking you Malhaar

  • CLD-R sample exam #2, question #11

      Answer A is the stated correct answer according to the sample exam answers section. Correct me if I am wrong but Merge Errors ONLY reports the FIRST error.  If multiple errors occur with those four error lines, ONLY one will be reported by error ou

  • Spin Blur

    Hello Everyone. In Photoshop CC 2014 there is a new future called Spin Blur  I wonder If we have this In After Effects CC 2014. Thanks.