Placing the cursor; selecting tag content

Hello
One of my frustrations with DWCS4 is I can't place the cursor
where
I want w/o switching to code view. Example
<Div id="left">[]
<h2>{}heading</h2>
I cannot place the cursor at the [] spot in design view; it
always
goes to the {} spot. Seems to me when the cursor is at {} and
I hit
left arrow, it should go to [] but it does not.
Secondly, is there a trick to select everything inside
<tag>......</tag> WITHOUT selecting
<tag></tag> itself?
Thanks

> I cannot place the cursor at the [] spot in design view;
it always
> goes to the {} spot. Seems to me when the cursor is at
{} and I hit
> left arrow, it should go to [] but it does not.
Click on the <h2> content. Select the <h2> tag on
the Tag selector. Press
the left arrow on the keyboard. Bada bing bada boom.
> Secondly, is there a trick to select everything inside
> <tag>......</tag> WITHOUT selecting
<tag></tag> itself?
You mean the CONTENTS of <tag>....</tag>? I don't
think so.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"darius" <[email protected]> wrote in message
news:[email protected]..
> Hello
>
> One of my frustrations with DWCS4 is I can't place the
cursor where
> I want w/o switching to code view. Example
>
> <Div id="left">[]
> <h2>{}heading</h2>
>
> I cannot place the cursor at the [] spot in design view;
it always
> goes to the {} spot. Seems to me when the cursor is at
{} and I hit
> left arrow, it should go to [] but it does not.
>
> Secondly, is there a trick to select everything inside
> <tag>......</tag> WITHOUT selecting
<tag></tag> itself?
>
> Thanks

Similar Messages

  • How do I stop firefox from automatically placing the cursor in a textbox?

    How do I stop Firefox from automatically placing the cursor in a text box? On certain pages such as Google.com the cursor will be moved to the search text box automatically after a couple seconds from the page loading. So I'll be typing in the address bar or something and then half of what I am typing in the address bar becomes cut off and starts being entered in the Google.com text box for search. The same happens on Facebook.com and the cursor is automatically moved to the Status Update text box. I assume this is a built in "feature" of the web page, but it's damn annoying. Especially when I start typing in my status update box on Facebook before the page completely loads and then halfway through typing (once the page is done loading) my cursor is moved to the starting position of the text area and my text is cut off.
    Just the be clear the actual mouse pointer isn't being moved, just the prompt for entering text.
    How can this be stopped?
    == This happened ==
    Every time Firefox opened
    == Started since I can remember

    This problem has grown worse over the last couple of years. I use Firefox on Mac and Windows. I consider this problem to be a bug. Here's why: Event Driven interfaces, e.g., OSX and Windows, are never supposed to change typing-cursor focus WHILE SOMEONE'S TYPING!!!
    Firefox allows websites to change focus WHILE USERS TYPE!
    Hey, sorry for the caps, but I haven't used those for awhile and that's kind of fun. But really, more and more websites steal typing-cursor focus WHILE USERS TYPE.
    Efff them, but really, Eff Firefox for allowing this.
    It's almost like a symptom of our hyper scattered age where our attention jumps here and there.
    But really... I love Firefox, some of my best friends are Firefox, they're good people, don't get me wrong, but damn it, WHEN SOMEONE IS TYPING THE UNASSAILABLE RULE OF EVENT DRIVEN DESIGN IS NOTHING ELSE SHOULD CHANGE FOCUS WHILE SOMEONE IS TYPING!!!!
    FIX THIS PLEASE.
    Oh, I just ran out of capital letters. :) :) :)

  • How to keep the defaultValue in the netui:select tag at the beginning of the dropdown values?

    Hi,
    I am using <netui:select dataSource="{actionForm.xyz}" defaultValue="Any" optionsDataSource="{actionForm.someMap}"
    />
    Now I am getting the values from database to populate the dropdown using the optionsDataSource.
    As I am using the defaultValue, it is being added to the end of the dropdown and
    selected by default when I a mopening the page on browser.
    In my dropdown, the values are as follows:
    apple
    orange
    banana
    Any
    Now my requirement is, the defaultValue, Any, must be there at the top of the
    list instead at the bottom of thge dropdown values. i.e., In the above list, "Any"
    must be above apple option.
    How can I achieve this using netui:select tag?
    Thanks & Regards,
    Murthy

    Murthy,
    Unfortunately, though a very reasonable requirement, there is no option for
    placing the default item.
    - john
    "Murthy" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hi,
    I am using <netui:select dataSource="{actionForm.xyz}" defaultValue="Any"optionsDataSource="{actionForm.someMap}"
    />
    Now I am getting the values from database to populate the dropdown usingthe optionsDataSource.
    As I am using the defaultValue, it is being added to the end of thedropdown and
    selected by default when I a mopening the page on browser.
    In my dropdown, the values are as follows:
    apple
    orange
    banana
    Any
    Now my requirement is, the defaultValue, Any, must be there at the top ofthe
    list instead at the bottom of thge dropdown values. i.e., In the abovelist, "Any"
    must be above apple option.
    How can I achieve this using netui:select tag?
    Thanks & Regards,
    Murthy

  • How to display the link dynamically on placing the cursor on a field?

    Hello Experts,
    I have a requirement like, if i place the cursor on the prospect name in the details window of opportunity, prospects' email id should appear as a link. (Example: as tool tip appears when we place cursor on a field). I should be able to click on that email id to navigate from opportunity window to compose mail window.
    How can I achieve this functionality?
    Regards
    DNR Varma

    It's an interesting question.
    And I plan to write blog or wiki post on it.
    But right now out of time to design it in a beautiful big-post-style.
    So I'll just give you some ideas and later I'll publish detail scenario for this.
    1. First of all you need to put a javascript function in your view htm page and include jquery and cluetip in it too as described in mentioned blog.
    2. Then you need to create your own bsp element (tag) which will create a link with attributes onmouseover and rel since there is no standard element with such attributes. For this create your own bsp extension and copy bsp element Link from THTMLB bsp extension into it (enharite classes from thtmlb:link too). Then add two attributes 'rel' and 'onmouseover' to z-element and redefine DO_AT_BEGINNING method of element handler class:
    some problems with posting the code so [take a look at screenshot here|http://twitpic.com/7cp563].
    3. Then you need to implement chtmlb form iterator interface in some class. Good place is your view controller class. Put the IF_CHTMLB_FORM_ITERATOR on its interface tab. And implement the only method it has IF_CHTMLB_FORM_ITERATOR~RENDER_CELL_START (remember that this is a quick example so you need to adjust the code to your needs):
    also [take a look at another screenshot|http://twitpic.com/7cp5ot].
    4. Set chtmlb form iterator for your page.
    <%@page language="abap" %>
    <%@extension name="thtmlb" prefix="thtmlb" %>
    <%@extension name="chtmlb" prefix="chtmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    //!!! here must be jquery and cluetip includes with definition of CallTooltip function
    <%
    * Form iterator
    cl_chtmlb_config=>set_iterator( controller ). //!!! here we set iterator for chtmlb form
    %>
    <chtmlb:config mode = "RUNTIME"
                  xml  = "<%= controller->configuration_descr->get_config_data( ) %>" />
    That's it!
    Hope this will help you.

  • Placing the cursor in JTextField

    When the form gets loaded i want to place the cursor in a particular JTextBox of the form. How do i do this?
    thanks in advance.

    From the API
    grabFocus() - This method is intended for use by focus implementations. Client code should not use this method; instead, it should use requestFocus().
    requestFocus() - Because the focus behavior of this method is platform-dependent, developers are strongly encouraged to use requestFocusInWindow when possible.
    requestFocusInWindow() - The focus behavior of this method can be implemented uniformly across platforms, and thus developers are strongly encouraged to use this method over requestFocus when possible. Code which relies on requestFocus may exhibit different focus behavior on different platforms

  • I lost the option to "Download This Video" when placing the cursor over the video.

    I can use the "Download This Video" button using the Internet Explorer browser without any problems. I used to have this feature using the Firefox browser, but now I don't.

    One of the following steps should help.
    1. Install Adobe Flash Player.
        http://get.adobe.com/flashplayer/
        Restart
    2. Are Plug-ins Enabled?
        Enable Plug-ins
        Safari > Preferences > Security
        Web Content:
        Click in the box for "Enable Plug-ins".
    3. Check  whether you are currently  in  YouTube HTML 5 trial.
         http://www.youtube.com/html5
        At the bottom  left of the page  uncheck the box for
       "You are currently in the HTML5 trial".
    Best.

  • Index of the row where the cursor is clicked

    Hi all,
       I need to set some values in table control for the fields where i clicked the cursor.  Actually i am using the below code but its not working... 
         lo_el_zdcapsc = wdevent->get_context_element( 'CONTEXT_ELEMENT'  ).
        lv_sel_index = lo_el_zdcapsc->get_index( ).
             lo_nd_zdcapsc->set_attribute(
           EXPORTING
             index = lv_sel_index
             name =  `ZPLANTID`
             value = lv_plant ).
    For example I placed the cursor in 3 row at the plant column in my table control. So only 3 row plant value has to be set.
    Can anybody tell me how to read the index when a cursor is placed at a particular row.
    Regards
    Sireesha.

    hi
    u can use get_index method to get the index of the particular row selected
    data: lr_element type ref to if_wd_context_element.
    DATA ls_cn_node TYPE wd_this->element_cn_node.
    lr_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
    * get all declared attributes
      lr_element->get_static_attributes(
        IMPORTING
          static_attributes = ls_cn_node ).
    data lv type I.
    lv = lr_element->GET_INDEX( ).
    u have got the table row values in a strucure , now u can set it to new value
    regards,
    amit

  • JSP Select tag

    Hello,
    I want to make my select tag like this:
    For e.g. I have three or four select tags, if I select from the first tag, in the second some specific values must appear, if I select from the second in the third some values must appear. How can I do it using JSP?
    Any help would be very appreciate.

    I wrote the following that displays three select tags on an html page.
    Select an item from the first tag, the second is populated, select an item from the second and the third is populated.
    Below the three select tags, it shows the index values that you selected for each tag so you know if it works as you want. Left to be done is to create a java class that takes in arrays for the three tags and returns a string containing javascript shown in the example. I grouped the contents of the array so hopefully you will be able to see a pattern of how one array relates to another. You should be able to extend it as you need. (please dont tell me to use css in stead of table tags, this is only an example).
    <html>
         <head>
              <script language="javascript">
                   var a1;
                   var a2;
                   var a3;
                   function loadPage(){
                        //initialize all arrays for select tags
                       a1= [
                              ['0', ''],
                              ['1','A1'],
                              ['2','A2'],
                              ['3','A3']
                        a2= [
                              [['0',''],    ['1','A1B1'],    ['2', 'A1B2'],    ['3','A1B3']],
                              [['4',''],    ['5','A2B1'],    ['6', 'A2B2'],    ['7','A2B3']],
                              [['8',''],    ['9','A3B1'],    ['10','A3B2'],    ['11','A3B3']]
                        a3= [
                              [[],    [['0',''], ['1', 'A1B1C1'],['2', 'A1B1C2'],['3', 'A1B1C3']],      [['4',''], ['5','A1B2C1'], ['6','A1B2C2'], ['7','A1B2C3']],      [['8',''], ['9','A1B3C1'], ['10','A1B3C2'],['11','A1B3C3']]],
                              [[],    [['12',''],['13','A2B1C1'],['14','A2B1C2'],['15','A2B1C3']],      [['16',''],['17','A2B2C1'],['18','A2B2C2'],['19','A2B2C3']],     [['20',''],['21','A2B3C1'],['22','A2B3C2'],['23','A2B3C3']]],
                              [[],    [['24',''],['25','A3B1C1'],['26','A3B1C2'],['27','A3B1C3']],      [['36',''],['37','A3B2C1'],['38','A3B2C2'],['39','A3B2C3']],     [['28',''],['29','A3B3C1'],['30','A3B3C2'],['31','A3B3C3']]]
                        //populate the first select tag
                       for(ii=0;ii<a1.length;++ii){
                            document.myForm.selection1.options[ii] =new Option(a1[ii][1],a1[ii][0]);
                   //populate the second select tag, based on selection in first select tag
                   //display the index of the selected item
                   function selection1Changed(){
                        document.myForm.selection2.options.length=0;
                        document.myForm.selection3.options.length=0;
                        var a1Index=  document.myForm.selection1.selectedIndex;
                       for(ii=0;ii<a2[a1Index].length;++ii){
                            document.myForm.selection2.options[ii] =new Option(a2[a1Index][ii][1],a2[a1Index][ii][0]);
                       document.myForm.select1Value.value=document.myForm.selection1.options[a1Index].value;
                       document.myForm.select2Value.value="";
                       document.myForm.select3Value.value="";
                   //populate the third select tag, based on selection of first and second select tags
                   //display the index of the selected item
                   function selection2Changed(){
                        document.myForm.selection3.options.length=0;
                        var a1Index=  document.myForm.selection1.selectedIndex;
                        var a2Index=  document.myForm.selection2.selectedIndex;
                       for(ii=0;ii<a2[a2Index].length;++ii){
                                 document.myForm.selection3.options[ii] =new Option(a3[a1Index][a2Index][ii][1],a3[a1Index][a2Index][ii][0]);;
                       document.myForm.select2Value.value=document.myForm.selection2.options[a2Index].value;
                       document.myForm.select3Value.value="";
                   //display the index of the selected item
                   function selection3Changed(){
                        var a3Index=  document.myForm.selection3.selectedIndex;
                        document.myForm.select3Value.value=document.myForm.selection3.options[a3Index].value;
              </script>
         </head>
         <body onload="loadPage()">
              <form name="myForm">
                   <table>
                        <tr>
                             <td>
                                  Selection 1:
                             </td>
                             <td>
                                  Selection 2:
                             </td>
                             <td>
                                  Selection 3:
                             </td>                                        
                        </tr>               
                        <tr>
                             <td>
                                  <select name="selection1" onchange="selection1Changed()"></select>
                             </td>
                             <td>
                                  <select name="selection2" onchange="selection2Changed()"></select>
                             </td>
                             <td>
                                  <select name="selection3" onchange="selection3Changed()"></select>
                             </td>                                        
                        </tr>
                        <tr>
                             <td colspan="3">
                                  <table>
                                       <tr>
                                            <td>
                                                 first select tag value:
                                            </td>
                                            <td>
                                                 <input type="text" size="2" name="select1Value">
                                            </td>
                                       </tr>
                                       <tr>
                                            <td>
                                                 second select tag value:
                                            </td>
                                            <td>
                                                 <input type="text" size="2" name="select2Value">
                                            </td>
                                       </tr>
                                       <tr>
                                            <td>
                                                 third select tag value:
                                            </td>
                                            <td>
                                                 <input type="text" size="2" name="select3Value">
                                            </td>
                                       </tr>     
                                  </table>
                             </td>
                        </tr>
                   </table>
              </form>
         </body>
    </html>

  • Focus() call on a select tag seems to be causing problems

    I have a reasonably complicated web site with dynamically created, absolutely positioned, overlapping divs with form elements contained within them.
    Starting with Firefox 4 and in Firefox 5, clicking on a dropdown list (<select>) tag can cause fragments of text from some of the "bottom" (i.e. not visible) divs to appear within the "top" (i.e. visible) div.
    I can make this problem go away by setting the onmousedown handler (not previously set) for the select tag to a dummy event handler which terminates the event. I can force it to happen again either by allowing the event to bubble up or by explicitly calling .focus(). Also, causing any part of the screen to refresh (such as writing to the DOM) will cause the fragments of text to disappear and the problem does not then reoccur with the given <select> tag.
    This issue does not arise in IE 8 / 9, Opera 10 / 11 or Chrome.
    Is this a known issue? If it is the .focus() call which is causing the problem and given that that is native code, is there a workaround other than what I have done?

    Took a look at the SQL Navigator. The "DB Navigator" (the navigation tree on the left with all the DB objects in it) shows the right precision and scale of every column, whereas the "columns" tab that appears when you >double click the view in the DB navigator always shows "number(0,0)". So I consider this a bug of SQL Navigator, but don´t believe it has anything to do with your problem.Yup, you're absolitely right. Not impreseed with SQL navigator!!!
    Just a thought: Could it be that some restrictions concerning the db user (dunno, perhaps even FGAC?) prevents that specific data to be shown? Do you connect in SQL Navigator as the same user as with the other >applications?Nice idea but I'm using the same user account.
    My background is in SQL Server (don't hold it against me :) ) and that has a tool called Profiler than enables one to capture the query being executed against the database engine. Does Oracle have anything similar? It might be useful to test whether the driver does something funky to the query that might manifest itself in what I'm seeing!
    -Jamie

  • How to determine the cursor record count before the "open cursor"?

    Is it possible to determine the record count of an explicit cursor without running a count()? Say, my cursor definition is something like this,
    CURSOR cur_vehicle
    IS
    SELECT os.order_id, os.order_item, vs.part_id
    vs.part_num,
    vs.iso_num,
    vs.model_yr
    vs.dealer_cde,
    vs.cust_cde,
    px.plant_cd
    FROM parts_source vs,
    orders_source os,
    plant_tbl_crossref px
    wHERE os.order_id = vs.order_id
    AND vs.part_id = os.part_id
    AND vs.plant_cde = px.plant_cde
    ORDER BY os.order_id;
    I want to log the count of records returned by the above cursor prior to the first fetch, without running a count(1) for the query in cursor select.
    I know adding " Count(1) over(order by null) " in the cursor SELECT will bring it. But that does not help me log the record count to some log file or table before opening the cursor for processing.
    To conclude, my objective is to update the record count of cursor in some table before processing

    sarvan wrote:
    Is it possible to determine the record count of an explicit cursor without running a count()?
    ..snipped..No. The only way to do it correctly is inside that select.
    Each select is a consistent read. Which means that if this is done as 2 select statements, the 1st select can see a different version of the data than the 2nd select statement. does. So if you want a count and that to be consistent and on the same version of the data than the select, it has to be done as part of the select.
    Also consider what a cursor is. It is not a result set of sorts that is created in memory upfront - with a convenient interface that tells you the size/number of rows of that result set.
    A cursor is basically a program that reads database data as input and produce output. A fetch from a cursor is an instruction for this program to execute and output data.
    There's no data set that is created by the cursor from which the count can be determined. The cursor program does have state variables - like +%RowCount+ that specifies how many rows the cursor has thus far output. And you need to run that cursor to the end (no more output) in order to determine the total number of rows output by the cursor.

  • DBMS_XMLQuery behavior when using stored function within cursor select

    Consider the following SQL Statement
    select t1.id
    , t1.name
    , cursor ( select t2.id
    from tab t2
    where t2.t1_id
    = t1.id
    and validate(t2.xyz,:bd1)
    = 1
    from tab t1
    where t1.id = :bd2
    DBMS_XMLQuery is used to create a context and to bind the appropriate values. In this case 'validate' is a stored function. I get the following error message upon execution:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.sql.SQLException: Missing IN or OUT parameter at index:: 1
    Issuing a similar statement in SQL*Plus works fine. I was wondering whether this is a known issue when using a stored function in the cursor select statement in the context of DBMS_XMLQuery or whether I'm doing something wrong.

    Hi Jan,
    This problem has been identified and fixed. The fix should be available in the next release. Thank you for bringing this up to our attention.
    visar

  • Cursor selection not working-bu​g?

    hi i've the following problem. if u can find out please try the same
    created 3 cursors for an XY graph
    select one or many cursors from the legend. try to move the cursors using the '' tool. repeat this again
    the cursor selection is unpredictable!!
    Renn
    LV 12.0f1 (64 bit)
    Kudos always welcome for helpful posts

    Hi Dan,
    i have selected Cursor 0
    then i clicked near 7, then using the navigation button (on the right side), i've increased the Y value. Cursor 0 is selected but, the Y value of Cursor 2 is incremented.
    Many Customers are having problem with this. Please help.
    Thanks
    RENN
    Kudos always welcome for helpful posts
    Attachments:
    TestCursorLV2012.vi ‏8 KB
    TestCursorLV8.0.vi ‏11 KB

  • Using outer Select tag  to Fill Inner Select Tag

    I had written a code as follows
    Where I have a table in which two of it's cells are Select tags. i want onchange of first Master Select tag the other combo should be filled with values of database. When I have more than one rows in a table the Values are not preserved in the both Select tags as soon as i Select the Master Select Tag[u[/b]]
    <table width="100%" border="1" cellspacing="0" cellpadding="0" bgcolor="#C7D3EB" >                               
            <tr>
             <th  colspan="1"><font size="2" face="Verdana">Sr.No.</font></th>
             <th  colspan="1"><font size="2" face="Verdana">Expence Catg.</font></th>
             <th  colspan="1"><font size="2" face="Verdana">Expence Desc.</font></th>
             <th  colspan="1"><font size="2" face="Verdana">Budget Amt.</font></th>
             <th  colspan="1"><font size="2" face="Verdana">FIL Share(%)</font></th>
             <th  colspan="1"><font size="2" face="Verdana">Uesr Remark</font></th>
             <th  colspan="1"><font size="2" face="Verdana">Mkt. Remark</font></th>
            </tr>
            <%
             if(strentry!=null)
               for(int i=1; i<=entry; i++)
            %>
            <tr>
             <td> <font size="2" face="Verdana"><input name="sr_no"  value=<%=i%> type="text" size="2" ></font></td>
             <td> <font size="2" face="Verdana">
                   <select name="exp_hd" onchange="Submitme()">
                    <%
                    int j=i;
                      ArrayList expctg = spb.getExpenseCategory();
                      Iterator ite = expctg.iterator();
                        while(ite.hasNext())
                                String exp_catg = (String)ite.next();
                    %>
                                  <option value="<%=exp_catg%>" <%if(exp_catg.equals(expense_catg) ) out.println("selected"); %>><%=exp_catg%></option>
                    <% 
                    %>
                    </select>
             </td>
             <%
               if(expense_catg!=null)
                %>
                  <td> <font size="2" face="Verdana">
                     <select name="exp_desc">
                    <%
                      ArrayList expdesc = spb.getExpenseDesc(expense_catg);
                      Iterator ited = expdesc.iterator();
                        while(ited.hasNext())
                            String exp_desc_cd = (String)ited.next();
                            String exp_desc = (String)ited.next();
                   %>
                  <option value="<%=exp_desc_cd%>" <%if(exp_desc_cd.equals(expense_desc)) out.println("selected"); %>><%=exp_desc%></option>
                  <% 
                  %>
                   </select>
                <%
                %>
             <td> <font size="2" face="Verdana"><input name="bud_amt" type="text" size="5" ></font></td>
             <td> <font size="2" face="Verdana"><input name="fil_share" type="text" size="5" ></font></td>
             <td> <font size="2" face="Verdana"><input name="user_rmk" type="text" size="35" ></font></td>
             <td > <font size="2" face="Verdana"><input   disabled="true"  STYLE="background-color: #FFFFCC;"  name="mkt_rmk" type="text" size="35" ></font></td>
           </tr>
            <%  
        %> 
       </tr>In this entry is a variable on which the rows of table are decided.
    So whwt i have to do to preserve the values of Options in Select tags
    in Previous rows

    I had written a code as follows
    Where I have a table in which two of it's cells are Select tags. i want onchange of first Master Select tag the other combo should be filled with values of database. When I have more than one rows in a table the Values are not preserved in the both Select tags as soon as i Select the Master Select Tag[u[/b]]
    <table width="100%" border="1" cellspacing="0" cellpadding="0" bgcolor="#C7D3EB" >                               
            <tr>
             <th  colspan="1"><font size="2" face="Verdana">Sr.No.</font></th>
             <th  colspan="1"><font size="2" face="Verdana">Expence Catg.</font></th>
             <th  colspan="1"><font size="2" face="Verdana">Expence Desc.</font></th>
             <th  colspan="1"><font size="2" face="Verdana">Budget Amt.</font></th>
             <th  colspan="1"><font size="2" face="Verdana">FIL Share(%)</font></th>
             <th  colspan="1"><font size="2" face="Verdana">Uesr Remark</font></th>
             <th  colspan="1"><font size="2" face="Verdana">Mkt. Remark</font></th>
            </tr>
            <%
             if(strentry!=null)
               for(int i=1; i<=entry; i++)
            %>
            <tr>
             <td> <font size="2" face="Verdana"><input name="sr_no"  value=<%=i%> type="text" size="2" ></font></td>
             <td> <font size="2" face="Verdana">
                   <select name="exp_hd" onchange="Submitme()">
                    <%
                    int j=i;
                      ArrayList expctg = spb.getExpenseCategory();
                      Iterator ite = expctg.iterator();
                        while(ite.hasNext())
                                String exp_catg = (String)ite.next();
                    %>
                                  <option value="<%=exp_catg%>" <%if(exp_catg.equals(expense_catg) ) out.println("selected"); %>><%=exp_catg%></option>
                    <% 
                    %>
                    </select>
             </td>
             <%
               if(expense_catg!=null)
                %>
                  <td> <font size="2" face="Verdana">
                     <select name="exp_desc">
                    <%
                      ArrayList expdesc = spb.getExpenseDesc(expense_catg);
                      Iterator ited = expdesc.iterator();
                        while(ited.hasNext())
                            String exp_desc_cd = (String)ited.next();
                            String exp_desc = (String)ited.next();
                   %>
                  <option value="<%=exp_desc_cd%>" <%if(exp_desc_cd.equals(expense_desc)) out.println("selected"); %>><%=exp_desc%></option>
                  <% 
                  %>
                   </select>
                <%
                %>
             <td> <font size="2" face="Verdana"><input name="bud_amt" type="text" size="5" ></font></td>
             <td> <font size="2" face="Verdana"><input name="fil_share" type="text" size="5" ></font></td>
             <td> <font size="2" face="Verdana"><input name="user_rmk" type="text" size="35" ></font></td>
             <td > <font size="2" face="Verdana"><input   disabled="true"  STYLE="background-color: #FFFFCC;"  name="mkt_rmk" type="text" size="35" ></font></td>
           </tr>
            <%  
        %> 
       </tr>In this entry is a variable on which the rows of table are decided.
    So whwt i have to do to preserve the values of Options in Select tags
    in Previous rows

  • Form bean with int property and netui:select tag

    Hi,
    I've recently started using WebLogic 8.1 for a client project. There's
    been a bit of a learning curve, but I've been able to find most of my
    answers in the docs or on the dev2dev site. This one, though, I've been
    unable to manage.
    I have a database table, call it foo. In it I have columns for id
    (numeric) and name (string). I created a database control to read that
    data:
    select id, name
    from foo
    I then want to use this data to populate a select list in a form, which
    is going to be used to submit new records for another table. For the data:
    id     name
    1     Foo
    2     Bar
    3     Bletch
    I want to generate a select list (this is the output HTML, not the netui
    tags):
    <select name="foo">
    <option value="1">Foo</option>
    <option value="2">Bar</option>
    <option value="3">Bletch</option>
    </select>
    My first question is what the best way to do this is. I was able to get
    this working by creating a database control, which returns an array of a
    custom Foo class. I then pass that array into a utility method which
    converts it into a Map, and pass that map to the netui:select tag in the
    optionDataSource attribute. This works, but it seems rather roundabout,
    so I'm wondering if there's a better way to do it, without needing the
    conversion utility method in the middle. I tried playing around with
    the control, I tried using different netui tags (I thought I could do it
    with a repeater and netui:selectOption tags, but that didn't work), and
    nothing else worked.
    The second problem arose when I was tying the result to a Form Bean. I
    created a bean with all the data that I was reading from the form, and
    at first, I just made everything in the form bean be a String. For this
    select, though, the values are ids, so I thought I'd just make them be
    ints in the form bean instead. However, when I did that, WL decided
    that it wanted to add in a default option with a value of 0:
    <select name="foo">
    <option value="1">Foo</option>
    <option value="2">Bar</option>
    <option value="3">Bletch</option>
    <option value="0" selected>0</option>
    </select>
    I've tried to find a way to get rid of that 0, and I can't. Is there a
    way to prevent it from sticking in a default value like that? Or do I
    have to just leave it as a String in the form bean to get it to work the
    way I want?
    Thanks in advance for your help.
    Joe Robins                    Tel: 212-918-5057
    Thaumaturgix, Inc.               Fax: 212-918-5001
    19 W. 44th St., Suite 810          Email: [email protected]
    New York, NY 10036               http://www.tgix.com
    thau'ma-tur-gy, n. the working of miracles.

    wrt your 2nd problem, in the jpf, for the form bean, are you declaring your id
    like this:
    private int id;
    if so, try declaring it w/ a valid value, like:
    private int id = 1;
    -tanya
    Joe Robins <[email protected]> wrote:
    Hi,
    I've recently started using WebLogic 8.1 for a client project. There's
    been a bit of a learning curve, but I've been able to find most of my
    answers in the docs or on the dev2dev site. This one, though, I've been
    unable to manage.
    I have a database table, call it foo. In it I have columns for id
    (numeric) and name (string). I created a database control to read that
    data:
    select id, name
    from foo
    I then want to use this data to populate a select list in a form, which
    is going to be used to submit new records for another table. For the
    data:
    id     name
    1     Foo
    2     Bar
    3     Bletch
    I want to generate a select list (this is the output HTML, not the netui
    tags):
    <select name="foo">
    <option value="1">Foo</option>
    <option value="2">Bar</option>
    <option value="3">Bletch</option>
    </select>
    My first question is what the best way to do this is. I was able to
    get
    this working by creating a database control, which returns an array of
    a
    custom Foo class. I then pass that array into a utility method which
    converts it into a Map, and pass that map to the netui:select tag in
    the
    optionDataSource attribute. This works, but it seems rather roundabout,
    so I'm wondering if there's a better way to do it, without needing the
    conversion utility method in the middle. I tried playing around with
    the control, I tried using different netui tags (I thought I could do
    it
    with a repeater and netui:selectOption tags, but that didn't work), and
    nothing else worked.
    The second problem arose when I was tying the result to a Form Bean.
    I
    created a bean with all the data that I was reading from the form, and
    at first, I just made everything in the form bean be a String. For this
    select, though, the values are ids, so I thought I'd just make them be
    ints in the form bean instead. However, when I did that, WL decided
    that it wanted to add in a default option with a value of 0:
    <select name="foo">
    <option value="1">Foo</option>
    <option value="2">Bar</option>
    <option value="3">Bletch</option>
    <option value="0" selected>0</option>
    </select>
    I've tried to find a way to get rid of that 0, and I can't. Is there
    a
    way to prevent it from sticking in a default value like that? Or do
    I
    have to just leave it as a String in the form bean to get it to work
    the
    way I want?
    Thanks in advance for your help.
    Joe Robins                    Tel: 212-918-5057
    Thaumaturgix, Inc.               Fax: 212-918-5001
    19 W. 44th St., Suite 810          Email: [email protected]
    New York, NY 10036               http://www.tgix.com
    thau'ma-tur-gy, n. the working of miracles.

  • Pages won't let me drop the cursor

    I'm using Pages 5.5.2 on a Mid 2009 Macbook Pro with OS X Yosemite 10.10.2
    I have created a document by cutting and pasting text out of a pdf. I then formatted the text, re-arranged paragraphs, etc. I have been working in the file for a week with no issues until today.
    The first half of the document works as expected.
    The second half of the document: I can't drop the cursor, select text, etc.
    If I start with the cursor in the first half of the document and move it with the arrow keys into the second half, I can delete and add text.
    I'm stumped.

    The plot thickens: I have been editing with Track Changes enabled. When the markups are visible I am able to access those sections. When viewing the Final version, some of the section are no longer editable again (even though they used to be).
    My suspicion is the software has a limited capacity to keep unaccepted changes unresolved.
    This document is a specification for a building - 347 pages long, and I have 71 unaccepted changes in the first half of the document. I need to be able to never accept those changes, if possible.

Maybe you are looking for

  • I need to install windows on my new Macbook pro for running my flight simulator software

    Hi! I'm new to the Mac world and I need to install windows on my new Macbook pro for running my flight simulator software which only runs on windows. I would like to purchase and download the windows 8.1 rather than buying the CD. When i go to the mi

  • Eliminate duplicate while fetching data from source

    Hi All, CUSTOMER TRANSACTION CUST_LOC     CUT_ID          TRANSACTION_DATE     TRANSACTION_TYPE 100          12345          01-jan-2009          CREDIT 100          23456          15-jan-2000          CREDIT 100          12345          01-jan-2010   

  • RFC call from Excel using VBA

    I am trying to do an RFC call from Excel to SAP using VBA. RFC is working fine for most the RFC enabled Function Modules except DDIF_FIELDINFO_GET and DDIF_FIELDLABEL_GET. What can be the reason for this? Can someonme please help me with a macro code

  • Upload data eCATT in ECC6 vs 4.7

    HI There, I uploaded MM data in ECC6 before by using CATT (record scripts and load in configuration) but yesterday I was using someone's 4.7 IDES and surprisingly stuck. Scenario: In Ecc6 After recording script, creat test configuration and on varian

  • Soundsticks and Intel mac 24"

    Hi, first of all I own the first issue soundsticks and iSub. I now understand there is a soundsticks II. First question, what is the difference? Assuming I have a reply to the first question, I've heard that soundsticks II do not work with the new in