Using Hidden Fields as Variables

I am limited in my JavaScript coding abilities. I am building a rather large homeowners insurance application that ultimately computes the premium. There are a ton of options that affect costs and I need a way to store a few numeric values. LC Designer doesn't appear to allow numeric variables (only string variables). As a work around, I have started to setup some hidden numeric fields to store some values and have their values change according to the users actions. I think this is going to work but is inefficient--the PDF ends up containing a lot of information about these hidden fields that is totally irrelevant to the task being asked of them. I thought I should ask a couple of questions before I get too far down the path I am taking.
My question #1: what are the other caveats in doing it this way?
My question #2: is there a better way or work-around that is relatively easy to do? (I am not stupid, but I am not much of a coder either). If someone could provide an example of something that can act like a numeric variable (easily accessed & changed) I would be most grateful.

Paul,
I have tried without success using the form properties variables tab for entering variables. There is absolutely no documentation on the specific manner in which this is done, or whether it can accommodate arrays. I mean absolutely no documentation that I can find other than references to the LC feature like: "enter variables in the variables tab of the form properties," period. Great! but tell me more please, like specifically how?
Other than the name of the variable and a value, are there supposed to be:    
"var"
"="
syntax needed, you get my drift, I hope.
And, what about arrays? And, does it matter if these values are intended to be numeric?
I think I would prefer to use the variables tab because it centralizes their location, and in some cases I may need to change ones I might use as constants, down the road. This becomes much handier for that.
Stephen

Similar Messages

  • Help, signatureValidate() function doesn't work on hidden fields

    I am trying to use the signatureValidate() function to check if any signature fields are signed. I am doing this because I need to have the signature fields lock the form manually so that a specific department can make changes after signatures have been applied (via a password field). I got the signature fields to lock the form and I can unlock everything with a password dialog. However, I am trying to add some code to the Change event so that if a user clears their signature and no other signatures have been applied, then the form will unlock. I wrote a script that checks the signature validation of each signature field to verify that all of them are unsigned, and it works perfectly until one of the signature fields becomes hidden. Then the code just doesn't work. Am I doing something wrong? Is there a way to check if a signature field (which may or may not be hidden) has been signed? Below is the code that I am using:
    var engMgrSig = event.target.getField("form1[0].Subform1[0].signatures[0].Eng_Manager[0].eng_manager_sign ature[0]").signatureValidate();
    var mfgMgrSig = event.target.getField("form1[0].Subform1[0].signatures[0].Mfg_Eng_Manager[0].mfg_engr_sig nature[0]").signatureValidate();
    if (mfgMgrSig == 0 && engMgrSig == 0)  {       
         oTargetField = this.resolveNode("ECO_table");
              oTargetField.access = "open";
    else {
         oTargetField = this.resolveNode("ECO_table");
              oTargetField.access = "readOnly";

    The fields are supposed to be hidden when the form is opened, but can be "added" (made visible) by the user to allow for additional signatures. I use hidden fields rather than a simple Add Instance because of data binding issues.
    I tried modifying the script to make the fields visible, fire the validation, and then hidden again, but for some reason it would either not work or it would make them visible after the first change and then hidden only if the field was changed again. Also, the code has to be able to recognize whether the fields were hidden before the code fired. If the were, they should be hidden afterwards. If they weren't then nothing needs to happen to them.
    I have tried using an IF statement to run a validation on the fields based on which ones are visible, but that doesn't seem to work either. Here is an example:
       // this field is always visible
        var status = event.target.getField("form1[0].Subform1[0].signatures_REV1[0].Eng_Manager[0].eng_manager _signature[0]").signatureValidate();
        var engMgrSig2 = event.target.getField("form1[0].Subform1[0].signatures_REV1[0].Eng_Manager2[0].eng_manage r_signature[0]").signatureValidate();
        var engMgrSig3 = event.target.getField("form1[0].Subform1[0].signatures_REV1[0].Eng_Manager3[0].eng_manage r_signature[0]").signatureValidate();
        // this field is always visible
        var mfgMgrSig1 = event.target.getField("form1[0].Subform1[0].signatures_REV1[0].Mfg_Eng_Manager[0].mfg_eng r_signature[0]").signatureValidate();
        var mfgMgrSig2 = event.target.getField("form1[0].Subform1[0].signatures_REV1[0].Mfg_Eng_Manager2[0].mfg_en gr_signature2[0]").signatureValidate();
        var mfgMgrSig3 = event.target.getField("form1[0].Subform1[0].signatures_REV1[0].Mfg_Eng_Manager3[0].mfg_en gr_signature3[0]").signatureValidate();
        //if all sig fields are visible
        if (this.resolveNode("signatures_REV1.Eng_Manager1").presence == "visible" && this.resolveNode("signatures_REV1.Eng_Manager3").presence == "visible" && this.resolveNode("signatures_REV1.Mfg_Eng_Manager2").presence == "visible" && this.resolveNode("signatures_REV1.Mfg_Eng_Manager3").presence == "visible") {
            if (status == 0 && mfgMgrSig1 == 0 && engMgrSig2 =0 && engMgrSig3 == 0 && mfgMgrSig2 == 0 && mfgMgrSig3 == 0)
                oTargetField = this.resolveNode("ECO_table");
                    oTargetField.access = "open";           
        //if eng_mgr2 is visible
        if (this.resolveNode("form1.Subform1.signatures_REV1.Eng_Manager2").presence = "visible" && this.resolveNode("form1.Subform1.signatures_REV1.Eng_Manager3").presence = "hidden" && this.resolveNode("form1.Subform1.signatures_REV1.Mfg_Eng_Manager2").presence = "hidden" && this.resolveNode("form1.Subform1.signatures_REV1.Mfg_Eng_Manager3").presence = "hidden") {
           if (status == 0 && mfgMgrSig1 == 0 && engMgrSig2 =0)
                oTargetField = this.resolveNode("ECO_table");
                    oTargetField.access = "open";

  • Progressive Profiling - Lead Source Most Recent Hidden Field - Query String

    I've just finished setting up my first progressive profile form and landing page. Caveat: I have not tested it out yet. On my other forms, I'm using a query string to capture lead source most recent as a hidden field. Is it also possible, using the same javascript, to capture that information on the form? I have added the source field to each of my three rule sets - but have no idea if it will work.
    Does anyone have any experience in using hidden fields with a query string and javascript in progressive profiling? Wow, that's a mouthful, and I can't even believe I know enough to be able to ask that question.
    thank you in advance for any guidance!

    Hi Leah,
    Great news! Nothing better than solving an Eloqua issue on a Monday!
    When you're using the cloud connector the HTML form name in the page code is "CCPPForm" instead of the HTML form name you used in the original form. If you take a look at the code of the page you're working on you'll see a div that includes your form. It should say "id="CCPPForm" name="CCPPForm"  in the form tag. Your instance might use something different, but I found using the progressive profile HTML name instead of my form HTML name did the trick. Also just double check to make sure your hidden field is showing for every rule in your progressive profile form rule settings.
    If this isn't making sense I'll grab some screen shots for you!
    Danielle

  • Storing variable in a hidden field

    HI,
    I've created an HTML form with drop downs. I'm storing the
    values of each option in a variable called currentvalue.
    Currentvalue keeps a running total and displays it on the page. I
    want to store the variable currentvalue in a hidden field to pass
    the value to the next HTML page. How can I do this?
    I'm using JavaScript for this application becuse I can't use
    any server side code since the application will be distributed on a
    CD.
    Thanks,

    Thanks MikeL7 for your code.
    I'm not sure about "var currentvalue = 9;" is that a fixed
    value that you've shown as an example?
    My currentvalue is a variable that is keeping a running total
    of the the values selected from each drop down. I need to capture
    the value of this running total into my hidden field that I can
    then pass on to page 2.
    I hope I'm making sense here.
    Thanks,

  • How to get hidden field  in popup  window (using jsf)

    Hi,
    I have one hidden field in page first.jsp like <h:inpuHidden id="checkedVals" value="" />.
    from first page i am opening popup (second.jsp) by onclick with command button.
    how can i get the hidden field in second.jsp?
    I want to make a hidden field in second.jsp with the value of hidden filed in first.jsp
    Please help me....
    Thanks in advance

    Hi
    This can help you.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield    = 'input field name'
                dynpprog    = 'progname'
                dynpnr      = 'dynnum'
                dynprofield = 'structure-inputfield name'
                value_org   = 'S'
           TABLES
                value_tab   = tbl_values_tab.(values u want to get while pressing f4)
    Reward if it is useful.
    Thanks
    Siva Kumar

  • File upload using Struts and hidden field

    Hi,
    I have seen many examples to upload file using <html:file> tag. But my request is how to upload file using hidden form field and ActionServlet.
    I want to upload image without using Browse button options, through hidden field i will set the image file path and will upload to server using ActionForm.
    Please help me friends to solve this new issue,
    regards,'
    dhaya.

    That's not possible.
    If it was, it would be a huge security hole. What about mailicious websites with hidden field which points to "c:/my documents/passwords.txt" and automatically submits the form using Javascript?
    Consider a signed applet instead. If it is unsigned then you'll get a security popup "Do you trust this software?" anyway.

  • Hidden field in form returns null value

    Hi all - I searched for this but found nothing that fit my problem although various other problems came up.
    I have a Login jsp, with a simple form for username and password:
    <form name="login" method="post" action="servlet/ControlServlet"
    onSubmit="return validateForm()"><table width="180" border="0"
    cellspacing="0" cellpadding="0">
                <tr>
                  <td width="96" class="logintext">Username</td>
                  <td width="84"> </td>
                </tr>
                <tr>
                  <td><input name="username" type="text" size="15"
    maxlength="15"></td>
                  <td><input type="submit" name="Submit" value="Login"></td>
                </tr>
                <tr>
                  <td class="logintext">Password</td>
                  <td> </td>
                </tr>
                <tr>
                  <td class="logintext"><input name="password" type="password"
    size="15" maxlength="15"></td>
                  <td><input name="actionCode" type="hidden" value="0"></td>
                </tr>
                <tr>
                  <td> </td>
                  <td><div align="center"><a href
    ="Register.jsp"><i>Register</i></a></div></td>
                </tr>
              </table>
              </form>Nothing complex in that form. my hidden field is actionCode and it should pass a 0 to my ControlServlet servlet.
    Here is a snippet from my servlet:
    import java.io.* ;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ControlServlet extends HttpServlet {
      public void doPost(HttpServletRequest request,
                        HttpServletResponse response)
          throws ServletException, IOException {
        response.setContentType("text/html");
                //get the printwriter to output for debugging
                PrintWriter out = response.getWriter();
                //read in form variables
            //String formUsername = request.getParameter("username");
            //String formPassword = request.getParameter("password");
            String action = request.getParameter("actionCode");
            //convert String to int for action
            //int actionInt = Integer.parseInt(action);
            //add action variable to request
            request.setAttribute("aktion", action);
                //debug point 1
                //use requestDispatcher to forward session info to JSP
               RequestDispatcher dispatcher =
               request.getRequestDispatcher("/mvcoutput.jsp");
               dispatcher.forward(request, response);I have commented out a bit for debugging purposes, but basically, the form variables are read in, the username and password don't give me any problems, but the actionCode does. Upon forwarding to a basic jsp for testing my output displays value "null" when using the command:
    request.getAttribute("aktion")Any reason why the hidden field is playing silly buggers ??
    cheers

    Anyone ???
    If I have a field in an html form which is hidden, do I retrieve it in the SAME WAY that I retrieve the non hidden form fields i.e. using the request.getParameter() method ??
    Cheers.

  • Pass Hidden Field (Rep ID) as Parameter when user logs into site

    I have set-up user validation to my site based on a userID and password, but I want to also pass a hidden field/parameter (RepID) to the rest of the site pages so that I can filter my record sets on those pages based on that RepID parameter.
    I have coded everything the way I thought it should be, but I'm getting the following error when I test it and from what I can see it is defined...
    Element PSWD is undefined in FORM.
    Here is the form coding, as well as the CF coding for the user validation...
    <form id="login" name="login" method="POST" action="<cfoutput>#MM_loginAction#</cfoutput>">
                    <table border="0" cellspacing="0" cellpadding="5">
                      <tr>
                        <td height="35" class="text_bold">Email</td>
                        <td height="35"><label for="email"></label>
                          <input type="text" name="email" id="email" /></td>
                      </tr>
                      <tr>
                        <td height="35" class="text_bold">Password</td>
                        <td height="35"><label for="pswd"></label>
                          <input name="pswd" type="password" id="pswd"  value="<cfoutput>#rsWeblogin#</cfoutput>" /></td>
                      </tr>
                      <tr>
                        <td height="35" class="text_bold"><input  name="salesman_id" type="hidden" id="salesman_id"  value="<cfoutput>#rsWeblogin.SALESMAN_ID#</cfoutput>"  /></td>
                        <td height="35"><input type="submit" name="submit" id="submit" value="Submit" /></td>
                      </tr>
                    </table>
                  </form>
    <cfparam name="FORM.email" default="1">
    <cfquery name="rsWeblogin" datasource="INSORB">
    SELECT *
    FROM dbo.WEBLOGIN
    WHERE E_MAIL = <cfqueryparam value="#FORM.email#" cfsqltype="cf_sql_clob" maxlength="64">
    </cfquery>
    <cfif IsDefined("FORM.email")>
        <cfset MM_redirectLoginSuccess="index.cfm">
        <cfset MM_redirectLoginFailed="login.cfm">
        <cfquery  name="MM_rsUser" datasource="INSORB">
        SELECT E_MAIL,PSWD FROM dbo.WEBLOGIN WHERE E_MAIL=<cfqueryparam  value="#FORM.email#" cfsqltype="cf_sql_clob" maxlength="64"> AND  PSWD=<cfqueryparam value="#FORM.pswd#" cfsqltype="cf_sql_clob"  maxlength="15">
        </cfquery>
        <cfif MM_rsUser.RecordCount NEQ 0>
          <cftry>
            <cflock scope="Session" timeout="30" type="Exclusive">
              <cfset Session.MM_Username=FORM.email>
              <cfset Session.MM_UserAuthorization="">
            </cflock>
            <cfif IsDefined("URL.accessdenied") AND true>
              <cfset MM_redirectLoginSuccess=URL.accessdenied>
            </cfif>
            <cflocation url="#MM_redirectLoginSuccess#" addtoken="no">
            <cfcatch type="Lock">
              <!--- code for handling timeout of cflock --->
            </cfcatch>
          </cftry>
        </cfif>
        <cflocation url="#MM_redirectLoginFailed#" addtoken="no">
        <cfelse>
        <cfset MM_LoginAction=CGI.SCRIPT_NAME>
        <cfif CGI.QUERY_STRING NEQ "">
          <cfset MM_LoginAction=MM_LoginAction & "?" & XMLFormat(CGI.QUERY_STRING)>
        </cfif>
    </cfif>
    Any help would be greatly appreciated!

    I don't have anything definitive to offer other than a couple of questions based on what I see on your login form:
    1. What is rsWeblogin that you are using to initialize the password field PSWD on the form? I would have expected the password field to be left empty in generating the form...
    2. The use of "#rsWeblogin#" to initialize the PSWD field, coupled with the use of "#rsWeblogin.salesman_ID#" to initialize the hidden field strike me as odd; that second one would lead me to believe rsWeblogin is a structure of some sort, and I'm not sure what you would be getting crunched into the password field as a result...
    Maybe one of those might give you some sort of clue?
    In addition, if the password field is left empty on the form itself, you may well not be getting a FORM.pswd variable coming through the submittal. You may need to either check that it is defined (probably best) or cfparam it to a known value that would never be used for a "real" password (problematic for all sorts of reasons) before using it in the authentication logic.
    /ron

  • Default form value using sql with bind variable

    I wish to create a form based upon a table with a foreign key. I wish to add a field to the form that is an uneditable text field with a default value using sql of 'select name from other_table where other_table_id = ?' where ? is a bind variable defined by a hidden field which is the value of the foreign key identified at runtime. How can this be done?
    null

    I don't think that will work. I have multiple people accessing the Portal at the same time with the same login (or lack of as public will be the most common user). I could set it easily enough as the value is passed to the form by a link object, so I could add it to the before page plsql block and set the value. But I am uncertain how it will behave in a multi-user mutlitasking environment.
    Maybe I should describe what I am looking to accomplish. I want to create a display above a form that will list static details from other tables (i.e. when editing a user's phone number, which is in one table, you want the user to see the person's name, which is in another table, and the form is based upon the phone table) ...
    Just as I am thinking about it, I thought of an idea. I could put some specific code in the before displaying page plsql section to query the database and use htp to output the information for data not in the table the form is based upon. I will try this and see how it works. It would have been nice to have just created a field that is not editable and had a default value, but this should work as well.
    Let me know if you see any problem with this or if you have any better suggestions.
    Thanks for the fast response.

  • Passing values to hidden fields in screens

    Hi ,
    I have designed a screen which has i field which is output only, and two fields which are hidden.. the output only field gets populated when i select value from an alv tht pops up on the screen based on certain conditions.. the hidden fields should also be populated than.. but the hidden fields are not getting populated i think..
    i have assigned a t-code to this screen,
    and i need to call this transaction from another program passing values to all the fields.. i used parameter id for all teh fields, but values are not getting populated in the hidden and display fields. i gets in when i make it input enabled.. but i cannot let users enter values in 1 field, and i do not want users to see the other field.. What do i do???? please give your valuable suggestions. .a ny idea how to correct the issue?
    Regards,
    Suzie

    Hi,
    If you want one of the fields to be grey mode you can do that statically in the screen painter or dynamically in the progarm
    in PBO
    loop at screen
    if screen-name = 'TO_BE_GREY_MODE'.
    SCREEN-INPUT = 0
    ENDIF
    endloop
    for hidden fields if the screen name and the variable name in the program are same the data transfer takes place but the users cannot see this.
    Regards
    Ramchander Rao.K

  • Passing/retrieving hidden fields from Its template(IAC)  to BSP page

    Hi i m passing hidden fields from its template to custom BSP page...but not able to retrieve the hidden field in bsp page...is there any way we can retrieve the data....is there any equivalent of request.getattribute() method which we use in jsp to fetch the hidden fields....

    <i>i m passing hidden fields from its template to custom BSP page...but not able to retrieve the hidden field in bsp page...</i>
    from ITS template how are you calling/passing parameter to BSP
    thru a form submit? or are you just openning the BSP thru a url link, in either case
    you could pass the data as a form field (post) or in the url of the BSP (GET)
    for example if the form field name in ITS template is myformfiled and you are submitting that to the BSP page then in the corresponding bsp page declare a page attribute withe same name (myformfiled) and mark the auto check box.
    now the value passed from ITS template will be available within BSP in the ABAP variable myformfiled which you can use the way you want.
    Hope this is clear
    Raja

  • Prefer hidden field instead of session attribute

    In my application we have around 17 jsp for getting information
    from the user.
    Also we have around 65 jsp for user navigation
    This 17 jsp has average 19 html components like textbox,
    select etc
    To maintain user entered data we prefer hidden field than
    session attribute.
    Number of user: 1, 00,000
    Server: WebSphere Application Server v6.1
    Framework: struts 1
    For every new module in our project we add corresponding
    variable in all the forms and there jsp to maintain the user entered data.
    I know that this is an extra work and changing the other module
    code just to retain the user information is not a good design.
    But we believe that putting the struts form in session will
    lead to memory out for 1, 00,000 user
    Please guide me is this approach right or wrong?
    Edited by: WorldOfJava on Jul 17, 2009 6:48 AM

    Hi WorldOfJava,
    IMO, it is not a good practice to hide data in forms and to transport them from page to page. It's growing uselessly the size of HTML documents. Also, the servlet which has to treat the user's request will have each time to extract the hidden data in order to fire them to the next servlet.
    Just imagine you have to build a web site like Amazon where people can buy products on line, your solution means that the content of the client's basket will be hidden in each page displayed in the client's browser !
    The better solution is to use a bean where data may be stored for each session. All you have to do, it's to build a Map that contains the session id (obtained via the getId() method of the [*HttpSession*|http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpSession.html] interface) as a key and the bean as a value. The advantage of such system is when you want to add new modules with new data in your application, you have only to add new instance variables and their getters/setters to the bean.

  • How to pass hidden field values on a click of a table row

    hi all,
    href = "bookAndNonBook.do"
    I am very new to struts. I have created a table using displaytable tag which displays results in a tabular format. In addtion, i have a hidden field (prodType), the table rows are getting highlighted when i get my mouse on a particular row.
    Following is the code from the results.jsp file
    <body
    onload="addRowHandlers('row', 'rowMouseOver')"
    bgcolor="#FFFFFF" text="#000000" leftmargin="100" topmargin="50"
    marginwidth="" marginheight="" rightmargin="30">
    <html:form action="/bookAndNonBook" method="post">
    <display:table name="sessionScope.productSearchList" id="row"
    sort="list" export="true" defaultsort="1" defaultorder="ascending"
    pagesize="15" decorator="org.displaytag.decorator.TotalTableDecorator"
    class="dataTable">
    <display:column property="prodType" title="ProdType" class="prodType"
    headerClass="prodType" media="html" />
    <display:column title="Title" property="titleName" sortable="true"
    class="title" headerClass="title" />
    </display:table>
    </html:form>
    </BODY>
    I am calling a funtion addRowHandlers which passes the table id (which is row) and the rowMouseover for highlighting the rows on mouse over.
    the code for function addRowHandlers is
    function addRowHandlers(tableId, rowClassName) {
    var previousClass = null;
    var table = document.getElementById(tableId);
    var rows = table.getElementsByTagName("tr");
    for (i = 1; i < rows.length; i++) {
    rows.onmouseover = function () {
    previousClass = this.className;
    this.className = this.className + " " + rowClassName ;
    this.style.cursor="hand";
    rows.onmouseout = function () {
    this.className = previousClass;
    this.style.cursor='';
    rows.onclick = function (){
    var cell = this.getElementsByTagName("td")[0];
    var ProdType = cell.innerHTML;
    alert("value of prodType = " + ProdType);
    when i run the above code and click on a particular row it returns me the value in the hidden field i.e. prodType for that particular row
    Now where i am having problem is i want that on the basis of prodType my jsp file should call different actions for different prodType as returned....somwhat a function like this
    function submitProduct(prodType) {
    if(prodType == "BK")
    resultsForm.action = "/bookProduct.do";
    else if(prodType == "NB")
    resultsForm.action = "/nonbookProduct.do";
    but i am unable to figure out that how do i this..
    Any help will be really appreciated
    Thanks
    Sam

    can you please suggest some good struts forums where i can post my question
    thanks in advance
    Sam

  • Add hidden fields in ALV

    Hi all,
       I wanna add a new field in ALV field catalog, so that when user choose function Change Layout to decide which fields are showed, they can choose the new field.
    In orginal source, the ALV uses field catalog from structure<b> LIPOV.</b> And the field I wanna add is just a normal text field (char15, for example) and its data will be extracted from a select statement.
    So, Here is the logic of report:
    data: ls_fieldcat type slis_fieldcat_alv.
    call function 'REUSE_ALV_FIELDCATALOG_MERGE'
            exporting
              i_internal_tabname     = 'itab_data1'
              i_structure_name       = 'LIPOV'
              i_client_never_display = 'X'
            changing
              ct_fieldcat            = ct_fieldcat[]
            exceptions
              inconsistent_interface = 1
              program_error          = 2
              others                 = 3.
    After this call, i add new field
        ls_fieldcat-col_pos = 110. " above function will retrieve a field catalog with 109 records
        ls_fieldcat-fieldname = 'new_text_field'.
        ls_fieldcat-tabname = 'itab_data1'.
        ls_fieldcat-seltext_l = 'NEW'.
        ls_fieldcat-no_out = 'X'.
        APPEND ls_fieldcat to ct_fieldcat .
        clear ls_fieldcat.
    Here, I copy all data from<b> itab_data</b> to <b>itab_data1</b>
    Display:
       call function 'REUSE_ALV_LIST_DISPLAY'
          exporting
            i_buffer_active          = 'X'
            i_callback_pf_status_set = gf_status
            i_callback_user_command  = gf_user_command
            i_structure_name         = 'LIPOV'
            is_layout                = gs_layout
            it_fieldcat              = ct_fieldcat
            it_events                = lt_events             
            it_sort                  = gt_sort
            is_variant               = gs_variant
          tables
            t_outtab                 = <b>itab_data1</b>
          exceptions
            program_error            = 1
            others                   = 2.
    Please note that there are something special here:
    Originally, ALV displayed with internal table itab_data.
    The new filed is a part of internal table itab_data1.
    <b>And the problem is:</b>
      When I choose Change Layour (Ctrl F8) to select the new field to display, It does not appear in HIDDEN FIELD.
    Any suggestion, plz.
    Thank you very much.

    Clemens Li,
    Thanks for your advice.
    I have a new problem. Now, the new field appears in Selection. However, displaying the new  field is impossible. My problem is:
    - In default, 8 fields will display. Then, I use CHANGE LAYOUT to choose the new field which will be at 9th position. -> <b>I got a dump</b>... It informs that a Field Symbol is not assigned.
    - Now, with the 8 fields above, I replace 8th position by the new field => It does not give me a dump but New field shows value of 8th field. I mean, if at first, 8th field is Quantity with value 10. Then I replace 8th field by my new field. When displaying again, it also gets 10 as its value.
    - It is so strange. Because in function 'REUSE_ALV_LIST_DISPLAY', I used itab_data1, which consists of all field of itab_data and an addition field (NEW). I dont know why it does not show value of the new field while all old fields have right values. (before using that function, I copied all contents of itab_data to itab_data1)
    So, everybody can help me this? Thanks

  • How can I display a letter grade in my gridview after calculating percentage into a hidden field in Visual Studio?

    For school I am working on an app using C# in visual studio that allows a student to enter their name, the number of points they earned and the points possible. When they click a submit button, the grade percentage is calculated in a hidden field and then
    the percentage and letter grade should spit out into the gridview. THe issue I am having is trying to figure out how to translate within the if statements regarding the percentage amount equalling whatever letter grade, and then spit that letter grade out
    into the gridview. Here is the code I have so far:
            protected void btnSubmit_Click(object sender, EventArgs e)
                SqlStudent.Insert();
                hdnGradePercent.Value = (((int.Parse("txtPointsEarned.Text")) / (int.Parse("txt.PointsPoss.Text")) * 100)).ToString();
                if ((int.Parse(hdnGradePercent.Value) >= 0) & ((int.Parse(hdnGradePercent.Value) <= 59)))
    (this is where I am having trouble. I can't figure out how to get the letter grade and percent to spit out into the   gridview.)
                else if ((int.Parse(hdnGradePercent.Value) >= 60) & ((int.Parse(hdnGradePercent.Value) <= 69)))
                else if ((int.Parse(hdnGradePercent.Value) >= 70) & ((int.Parse(hdnGradePercent.Value) <= 79)))
                else if ((int.Parse(hdnGradePercent.Value) >= 80) & ((int.Parse(hdnGradePercent.Value) <= 89)))
                else if ((int.Parse(hdnGradePercent.Value) >= 90) & ((int.Parse(hdnGradePercent.Value) <= 100)))
    Any help would be greatly appreciated! I've been stuck on this for hours and I"m losing my mind!!

    Please post ASP.NET questions in the ASP.NET forums (http://forums.asp.net ).

Maybe you are looking for

  • Difference between Select *    and Select single     ?

    difference between Select *    and Select single     ?

  • How do I add a Subnet and vlan with a catalyst 3550 and RV120

    Hello Friends. I have a scenario that i'm hoping i can get some help with. I'll be as detailed and descriptive as i can. This is for a business with 100 employees nodes and 100 camera nodes all needing IP internet through private addressing and publi

  • 8330 and duplicate calendar entries

    For some reason I am getting duplicate calendar entries (of the same event) from multiple email addresses.  How to I stop this?  I'm using Google sync (working fine) but I get entries from my Hotmail, another local ISP and Juno.  And Juno doesn't off

  • Can't tether Canon EOS-1D C to LR

    The camera shows "Busy" and is locked up when trying to tether to LR on Mac 10.8.2 Has anyone had any success?

  • Trouble playing .mov files in windows

    I used iMovie 08 on a Mac to import some videos from a Sony AVCHD camera. It created a .mov file for each clip (veery heavy ones, though short). They can be seen perfectly on a Mac, but in my PC Quicktime tells me i need to download some codec, and I